Index: generated/googleapis/lib/servicemanagement/v1.dart |
diff --git a/generated/googleapis/lib/servicemanagement/v1.dart b/generated/googleapis/lib/servicemanagement/v1.dart |
index cf06c3b01c2e6f08bba13c63d69406e463a1a4dc..9e7711ae963c1379d47746f8f8647e633e333bc2 100644 |
--- a/generated/googleapis/lib/servicemanagement/v1.dart |
+++ b/generated/googleapis/lib/servicemanagement/v1.dart |
@@ -1356,8 +1356,8 @@ class Advice { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (description != null) { |
_json["description"] = description; |
} |
@@ -1440,8 +1440,8 @@ class Api { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (methods != null) { |
_json["methods"] = methods.map((value) => (value).toJson()).toList(); |
} |
@@ -1548,8 +1548,8 @@ class AuditConfig { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (auditLogConfigs != null) { |
_json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()).toList(); |
} |
@@ -1612,8 +1612,8 @@ class AuditLogConfig { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (exemptedMembers != null) { |
_json["exemptedMembers"] = exemptedMembers; |
} |
@@ -1695,8 +1695,8 @@ class AuthProvider { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (audiences != null) { |
_json["audiences"] = audiences; |
} |
@@ -1758,8 +1758,8 @@ class AuthRequirement { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (audiences != null) { |
_json["audiences"] = audiences; |
} |
@@ -1807,8 +1807,8 @@ class Authentication { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (providers != null) { |
_json["providers"] = providers.map((value) => (value).toJson()).toList(); |
} |
@@ -1874,8 +1874,8 @@ class AuthenticationRule { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (allowWithoutCredential != null) { |
_json["allowWithoutCredential"] = allowWithoutCredential; |
} |
@@ -1922,8 +1922,8 @@ class AuthorizationConfig { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (provider != null) { |
_json["provider"] = provider; |
} |
@@ -1948,8 +1948,8 @@ class Backend { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (rules != null) { |
_json["rules"] = rules.map((value) => (value).toJson()).toList(); |
} |
@@ -1995,8 +1995,8 @@ class BackendRule { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (address != null) { |
_json["address"] = address; |
} |
@@ -2015,6 +2015,14 @@ class BackendRule { |
/** Associates `members` with a `role`. */ |
class Binding { |
+ /** |
+ * The condition that is associated with this binding. |
+ * NOTE: an unsatisfied condition will not allow user access via current |
+ * binding. Different bindings, including their conditions, are examined |
+ * independently. |
+ * This field is GOOGLE_INTERNAL. |
+ */ |
+ Expr condition; |
/** |
* Specifies the identities requesting access for a Cloud Platform resource. |
* `members` can have the following values: |
@@ -2050,6 +2058,9 @@ class Binding { |
Binding(); |
Binding.fromJson(core.Map _json) { |
+ if (_json.containsKey("condition")) { |
+ condition = new Expr.fromJson(_json["condition"]); |
+ } |
if (_json.containsKey("members")) { |
members = _json["members"]; |
} |
@@ -2058,8 +2069,11 @@ class Binding { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ if (condition != null) { |
+ _json["condition"] = (condition).toJson(); |
+ } |
if (members != null) { |
_json["members"] = members; |
} |
@@ -2094,8 +2108,8 @@ class ChangeReport { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (configChanges != null) { |
_json["configChanges"] = configChanges.map((value) => (value).toJson()).toList(); |
} |
@@ -2122,8 +2136,8 @@ class CloudAuditOptions { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (logName != null) { |
_json["logName"] = logName; |
} |
@@ -2149,7 +2163,6 @@ class Condition { |
* member of the specified group. Approvers can only grant additional |
* access, and are thus only used in a strictly positive context |
* (e.g. ALLOW/IN or DENY/NOT_IN). |
- * See: go/rpc-security-policy-dynamicauth. |
* - "JUSTIFICATION_TYPE" : What types of justifications have been supplied |
* with this request. |
* String values should match enum names from tech.iam.JustificationType, |
@@ -2217,8 +2230,8 @@ class Condition { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (iam != null) { |
_json["iam"] = iam; |
} |
@@ -2314,8 +2327,8 @@ class ConfigChange { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (advices != null) { |
_json["advices"] = advices.map((value) => (value).toJson()).toList(); |
} |
@@ -2379,8 +2392,8 @@ class ConfigFile { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (fileContents != null) { |
_json["fileContents"] = fileContents; |
} |
@@ -2410,8 +2423,8 @@ class ConfigRef { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (name != null) { |
_json["name"] = name; |
} |
@@ -2447,8 +2460,8 @@ class ConfigSource { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (files != null) { |
_json["files"] = files.map((value) => (value).toJson()).toList(); |
} |
@@ -2494,8 +2507,8 @@ class Context { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (rules != null) { |
_json["rules"] = rules.map((value) => (value).toJson()).toList(); |
} |
@@ -2533,8 +2546,8 @@ class ContextRule { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (provided != null) { |
_json["provided"] = provided; |
} |
@@ -2568,8 +2581,8 @@ class Control { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (environment != null) { |
_json["environment"] = environment; |
} |
@@ -2595,8 +2608,8 @@ class CounterOptions { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (field != null) { |
_json["field"] = field; |
} |
@@ -2624,8 +2637,8 @@ class CustomAuthRequirements { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (provider != null) { |
_json["provider"] = provider; |
} |
@@ -2668,8 +2681,8 @@ class CustomError { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (rules != null) { |
_json["rules"] = rules.map((value) => (value).toJson()).toList(); |
} |
@@ -2705,8 +2718,8 @@ class CustomErrorRule { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (isErrorType != null) { |
_json["isErrorType"] = isErrorType; |
} |
@@ -2735,8 +2748,8 @@ class CustomHttpPattern { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2755,8 +2768,8 @@ class DataAccessOptions { |
DataAccessOptions.fromJson(core.Map _json) { |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
return _json; |
} |
} |
@@ -2772,8 +2785,8 @@ class DeleteServiceStrategy { |
DeleteServiceStrategy.fromJson(core.Map _json) { |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
return _json; |
} |
} |
@@ -2806,8 +2819,8 @@ class Diagnostic { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2844,8 +2857,8 @@ class DisableServiceRequest { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (consumerId != null) { |
_json["consumerId"] = consumerId; |
} |
@@ -2965,8 +2978,8 @@ class Documentation { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (documentationRootUrl != null) { |
_json["documentationRootUrl"] = documentationRootUrl; |
} |
@@ -3020,8 +3033,8 @@ class DocumentationRule { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (deprecationDescription != null) { |
_json["deprecationDescription"] = deprecationDescription; |
} |
@@ -3058,8 +3071,8 @@ class EnableServiceRequest { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (consumerId != null) { |
_json["consumerId"] = consumerId; |
} |
@@ -3146,8 +3159,8 @@ class Endpoint { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (aliases != null) { |
_json["aliases"] = aliases; |
} |
@@ -3208,8 +3221,8 @@ class Enum { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (enumvalue != null) { |
_json["enumvalue"] = enumvalue.map((value) => (value).toJson()).toList(); |
} |
@@ -3252,8 +3265,8 @@ class EnumValue { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (name != null) { |
_json["name"] = name; |
} |
@@ -3283,8 +3296,8 @@ class Experimental { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (authorization != null) { |
_json["authorization"] = (authorization).toJson(); |
} |
@@ -3292,6 +3305,74 @@ class Experimental { |
} |
} |
+/** |
+ * Represents an expression text. Example: |
+ * |
+ * title: "User account presence" |
+ * description: "Determines whether the request has a user account" |
+ * expression: "size(request.user) > 0" |
+ */ |
+class Expr { |
+ /** |
+ * An optional description of the expression. This is a longer text which |
+ * describes the expression, e.g. when hovered over it in a UI. |
+ */ |
+ core.String description; |
+ /** |
+ * Textual representation of an expression in |
+ * [Common Expression Language](http://go/api-expr) syntax. |
+ * |
+ * The application context of the containing message determines which |
+ * well-known feature set of CEL is supported. |
+ */ |
+ core.String expression; |
+ /** |
+ * An optional string indicating the location of the expression for error |
+ * reporting, e.g. a file name and a position in the file. |
+ */ |
+ core.String location; |
+ /** |
+ * An optional title for the expression, i.e. a short string describing |
+ * its purpose. This can be used e.g. in UIs which allow to enter the |
+ * expression. |
+ */ |
+ core.String title; |
+ |
+ Expr(); |
+ |
+ Expr.fromJson(core.Map _json) { |
+ if (_json.containsKey("description")) { |
+ description = _json["description"]; |
+ } |
+ if (_json.containsKey("expression")) { |
+ expression = _json["expression"]; |
+ } |
+ if (_json.containsKey("location")) { |
+ location = _json["location"]; |
+ } |
+ if (_json.containsKey("title")) { |
+ title = _json["title"]; |
+ } |
+ } |
+ |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ if (description != null) { |
+ _json["description"] = description; |
+ } |
+ if (expression != null) { |
+ _json["expression"] = expression; |
+ } |
+ if (location != null) { |
+ _json["location"] = location; |
+ } |
+ if (title != null) { |
+ _json["title"] = title; |
+ } |
+ return _json; |
+ } |
+} |
+ |
/** A single field of a message type. */ |
class Field { |
/** |
@@ -3387,8 +3468,8 @@ class Field { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (cardinality != null) { |
_json["cardinality"] = cardinality; |
} |
@@ -3481,8 +3562,8 @@ class FlowOperationMetadata { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (cancelState != null) { |
_json["cancelState"] = cancelState; |
} |
@@ -3538,8 +3619,8 @@ class GenerateConfigReportRequest { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (newConfig != null) { |
_json["newConfig"] = newConfig; |
} |
@@ -3585,8 +3666,8 @@ class GenerateConfigReportResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (changeReports != null) { |
_json["changeReports"] = changeReports.map((value) => (value).toJson()).toList(); |
} |
@@ -3611,14 +3692,14 @@ class GetIamPolicyRequest { |
GetIamPolicyRequest.fromJson(core.Map _json) { |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
return _json; |
} |
} |
/** |
- * Defines the HTTP configuration for a service. It contains a list of |
+ * Defines the HTTP configuration for an API service. It contains a list of |
* HttpRule, each specifying the mapping of an RPC method |
* to one or more HTTP REST API methods. |
*/ |
@@ -3650,8 +3731,8 @@ class Http { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (fullyDecodeReservedExpansion != null) { |
_json["fullyDecodeReservedExpansion"] = fullyDecodeReservedExpansion; |
} |
@@ -3664,11 +3745,11 @@ class Http { |
/** |
* `HttpRule` defines the mapping of an RPC method to one or more HTTP |
- * REST APIs. The mapping determines what portions of the request |
- * message are populated from the path, query parameters, or body of |
- * the HTTP request. The mapping is typically specified as an |
- * `google.api.http` annotation, see "google/api/annotations.proto" |
- * for details. |
+ * REST API methods. The mapping specifies how different portions of the RPC |
+ * request message are mapped to URL path, URL query parameters, and |
+ * HTTP request body. The mapping is typically specified as an |
+ * `google.api.http` annotation on the RPC method, |
+ * see "google/api/annotations.proto" for details. |
* |
* The mapping consists of a field specifying the path template and |
* method kind. The path template can refer to fields in the request |
@@ -3717,6 +3798,11 @@ class Http { |
* parameters. Assume the following definition of the request message: |
* |
* |
+ * service Messaging { |
+ * rpc GetMessage(GetMessageRequest) returns (Message) { |
+ * option (google.api.http).get = "/v1/messages/{message_id}"; |
+ * } |
+ * } |
* message GetMessageRequest { |
* message SubMessage { |
* string subfield = 1; |
@@ -3834,7 +3920,7 @@ class Http { |
* to the request message are as follows: |
* |
* 1. The `body` field specifies either `*` or a field path, or is |
- * omitted. If omitted, it assumes there is no HTTP body. |
+ * omitted. If omitted, it indicates there is no HTTP request body. |
* 2. Leaf fields (recursive expansion of nested messages in the |
* request) can be classified into three types: |
* (a) Matched in the URL template. |
@@ -3853,29 +3939,34 @@ class Http { |
* FieldPath = IDENT { "." IDENT } ; |
* Verb = ":" LITERAL ; |
* |
- * The syntax `*` matches a single path segment. It follows the semantics of |
- * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String |
- * Expansion. |
+ * The syntax `*` matches a single path segment. The syntax `**` matches zero |
+ * or more path segments, which must be the last part of the path except the |
+ * `Verb`. The syntax `LITERAL` matches literal text in the path. |
* |
- * The syntax `**` matches zero or more path segments. It follows the semantics |
- * of [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.3 Reserved |
- * Expansion. NOTE: it must be the last segment in the path except the Verb. |
- * |
- * The syntax `LITERAL` matches literal text in the URL path. |
- * |
- * The syntax `Variable` matches the entire path as specified by its template; |
- * this nested template must not contain further variables. If a variable |
+ * The syntax `Variable` matches part of the URL path as specified by its |
+ * template. A variable template must not contain other variables. If a variable |
* matches a single path segment, its template may be omitted, e.g. `{var}` |
* is equivalent to `{var=*}`. |
* |
+ * If a variable contains exactly one path segment, such as `"{var}"` or |
+ * `"{var=*}"`, when such a variable is expanded into a URL path, all characters |
+ * except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the |
+ * Discovery Document as `{var}`. |
+ * |
+ * If a variable contains one or more path segments, such as `"{var=foo / * }"` |
+ * or `"{var=**}"`, when such a variable is expanded into a URL path, all |
+ * characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables |
+ * show up in the Discovery Document as `{+var}`. |
+ * |
+ * NOTE: While the single segment variable matches the semantics of |
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 |
+ * Simple String Expansion, the multi segment variable **does not** match |
+ * RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion |
+ * does not expand special characters like `?` and `#`, which would lead |
+ * to invalid URLs. |
+ * |
* NOTE: the field paths in variables and in the `body` must not refer to |
* repeated fields or map fields. |
- * |
- * Use CustomHttpPattern to specify any HTTP method that is not included in the |
- * `pattern` field, such as HEAD, or "*" to leave the HTTP method unspecified |
- * for |
- * a given URL path rule. The wild-card rule is useful for services that provide |
- * content to Web (HTML) clients. |
*/ |
class HttpRule { |
/** |
@@ -3891,7 +3982,12 @@ class HttpRule { |
* present at the top-level of request message type. |
*/ |
core.String body; |
- /** Custom pattern is used for defining custom verbs. */ |
+ /** |
+ * The custom pattern is used for specifying an HTTP method that is not |
+ * included in the `pattern` field, such as HEAD, or "*" to leave the |
+ * HTTP method unspecified for this rule. The wild-card rule is useful |
+ * for services that provide content to Web (HTML) clients. |
+ */ |
CustomHttpPattern custom; |
/** Used for deleting a resource. */ |
core.String delete; |
@@ -3943,6 +4039,24 @@ class HttpRule { |
* field is configured to override the derived collection name. |
*/ |
core.String restCollection; |
+ /** |
+ * Optional. The rest method name is by default derived from the URL |
+ * pattern. If specified, this field overrides the default method name. |
+ * Example: |
+ * |
+ * rpc CreateResource(CreateResourceRequest) |
+ * returns (CreateResourceResponse) { |
+ * option (google.api.http) = { |
+ * post: "/v1/resources", |
+ * body: "resource", |
+ * rest_method_name: "insert" |
+ * }; |
+ * } |
+ * |
+ * This method has the automatically derived rest method name "create", but |
+ * for backwards compatability with apiary, it is specified as insert. |
+ */ |
+ core.String restMethodName; |
/** |
* Selects methods to which this rule applies. |
* |
@@ -3989,13 +4103,16 @@ class HttpRule { |
if (_json.containsKey("restCollection")) { |
restCollection = _json["restCollection"]; |
} |
+ if (_json.containsKey("restMethodName")) { |
+ restMethodName = _json["restMethodName"]; |
+ } |
if (_json.containsKey("selector")) { |
selector = _json["selector"]; |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (additionalBindings != null) { |
_json["additionalBindings"] = additionalBindings.map((value) => (value).toJson()).toList(); |
} |
@@ -4032,6 +4149,9 @@ class HttpRule { |
if (restCollection != null) { |
_json["restCollection"] = restCollection; |
} |
+ if (restMethodName != null) { |
+ _json["restMethodName"] = restMethodName; |
+ } |
if (selector != null) { |
_json["selector"] = selector; |
} |
@@ -4068,8 +4188,8 @@ class LabelDescriptor { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (description != null) { |
_json["description"] = description; |
} |
@@ -4101,8 +4221,8 @@ class ListOperationsResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (nextPageToken != null) { |
_json["nextPageToken"] = nextPageToken; |
} |
@@ -4131,8 +4251,8 @@ class ListServiceConfigsResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (nextPageToken != null) { |
_json["nextPageToken"] = nextPageToken; |
} |
@@ -4161,8 +4281,8 @@ class ListServiceRolloutsResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (nextPageToken != null) { |
_json["nextPageToken"] = nextPageToken; |
} |
@@ -4193,8 +4313,8 @@ class ListServicesResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (nextPageToken != null) { |
_json["nextPageToken"] = nextPageToken; |
} |
@@ -4228,8 +4348,8 @@ class LogConfig { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (cloudAudit != null) { |
_json["cloudAudit"] = (cloudAudit).toJson(); |
} |
@@ -4295,8 +4415,8 @@ class LogDescriptor { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (description != null) { |
_json["description"] = description; |
} |
@@ -4371,8 +4491,8 @@ class Logging { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (consumerDestinations != null) { |
_json["consumerDestinations"] = consumerDestinations.map((value) => (value).toJson()).toList(); |
} |
@@ -4412,8 +4532,8 @@ class LoggingDestination { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (logs != null) { |
_json["logs"] = logs; |
} |
@@ -4448,8 +4568,8 @@ class ManagedService { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (producerProjectId != null) { |
_json["producerProjectId"] = producerProjectId; |
} |
@@ -4516,8 +4636,8 @@ class MediaDownload { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (completeNotification != null) { |
_json["completeNotification"] = completeNotification; |
} |
@@ -4609,8 +4729,8 @@ class MediaUpload { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (completeNotification != null) { |
_json["completeNotification"] = completeNotification; |
} |
@@ -4687,8 +4807,8 @@ class Method { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (name != null) { |
_json["name"] = name; |
} |
@@ -4885,8 +5005,8 @@ class MetricDescriptor { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (description != null) { |
_json["description"] = description; |
} |
@@ -4917,10 +5037,7 @@ class MetricDescriptor { |
/** |
* Bind API methods to metrics. Binding a method to a metric causes that |
- * metric's configured quota, billing, and monitoring behaviors to apply to the |
- * method call. |
- * |
- * Used by metric-based quotas only. |
+ * metric's configured quota behaviors to apply to the method call. |
*/ |
class MetricRule { |
/** |
@@ -4950,8 +5067,8 @@ class MetricRule { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (metricCosts != null) { |
_json["metricCosts"] = metricCosts; |
} |
@@ -5061,8 +5178,8 @@ class Mixin { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (name != null) { |
_json["name"] = name; |
} |
@@ -5139,8 +5256,8 @@ class MonitoredResourceDescriptor { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (description != null) { |
_json["description"] = description; |
} |
@@ -5226,8 +5343,8 @@ class Monitoring { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (consumerDestinations != null) { |
_json["consumerDestinations"] = consumerDestinations.map((value) => (value).toJson()).toList(); |
} |
@@ -5265,8 +5382,8 @@ class MonitoringDestination { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (metrics != null) { |
_json["metrics"] = metrics; |
} |
@@ -5317,8 +5434,8 @@ class OAuthRequirements { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (canonicalScopes != null) { |
_json["canonicalScopes"] = canonicalScopes; |
} |
@@ -5390,8 +5507,8 @@ class Operation { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (done != null) { |
_json["done"] = done; |
} |
@@ -5442,8 +5559,8 @@ class OperationMetadata { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (progressPercentage != null) { |
_json["progressPercentage"] = progressPercentage; |
} |
@@ -5494,8 +5611,8 @@ class Option { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (name != null) { |
_json["name"] = name; |
} |
@@ -5554,8 +5671,8 @@ class Page { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (content != null) { |
_json["content"] = content; |
} |
@@ -5607,7 +5724,6 @@ class Policy { |
core.List<AuditConfig> auditConfigs; |
/** |
* Associates a list of `members` to a `role`. |
- * Multiple `bindings` must not be specified for the same `role`. |
* `bindings` with no members will result in an error. |
*/ |
core.List<Binding> bindings; |
@@ -5670,8 +5786,8 @@ class Policy { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (auditConfigs != null) { |
_json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toList(); |
} |
@@ -5745,17 +5861,11 @@ class Policy { |
* value_type: INT64 |
*/ |
class Quota { |
- /** |
- * List of `QuotaLimit` definitions for the service. |
- * |
- * Used by metric-based quotas only. |
- */ |
+ /** List of `QuotaLimit` definitions for the service. */ |
core.List<QuotaLimit> limits; |
/** |
* List of `MetricRule` definitions, each one mapping a selected method to one |
* or more metrics. |
- * |
- * Used by metric-based quotas only. |
*/ |
core.List<MetricRule> metricRules; |
@@ -5770,8 +5880,8 @@ class Quota { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (limits != null) { |
_json["limits"] = limits.map((value) => (value).toJson()).toList(); |
} |
@@ -5858,10 +5968,6 @@ class QuotaLimit { |
* Name of the quota limit. The name is used to refer to the limit when |
* overriding the default limit on per-consumer basis. |
* |
- * For group-based quota limits, the name must be unique within the quota |
- * group. If a name is not provided, it will be generated from the limit_by |
- * and duration fields. |
- * |
* For metric-based quota limits, the name must be provided, and it must be |
* unique within the service. The name can only include alphanumeric |
* characters as well as '-'. |
@@ -5887,21 +5993,10 @@ class QuotaLimit { |
* * "/d" for quota every 24 hours, starting 00:00 US Pacific Time. |
* * Otherwise the quota won't be reset by time, such as storage limit. |
* * One and only one of the granted containers: |
- * * "/{organization}" quota for an organization. |
- * * "/{project}" quota for a project. |
- * * "/{folder}" quota for a folder. |
- * * "/{resource}" quota for a universal resource. |
- * * Zero or more quota segmentation dimension. Not all combos are valid. |
- * * "/{region}" quota for every region. Not to be used with time intervals. |
- * * Otherwise the resources granted on the target is not segmented. |
- * * "/{zone}" quota for every zone. Not to be used with time intervals. |
- * * Otherwise the resources granted on the target is not segmented. |
- * * "/{resource}" quota for a resource associated with a project or org. |
+ * * "/{project}" quota for a project |
* |
* Here are some examples: |
* * "1/min/{project}" for quota per minute per project. |
- * * "1/min/{user}" for quota per minute per user. |
- * * "1/min/{organization}" for quota per minute per organization. |
* |
* Note: the order of unit components is insignificant. |
* The "1" at the beginning is required to follow the metric unit syntax. |
@@ -5909,40 +6004,7 @@ class QuotaLimit { |
* Used by metric-based quotas only. |
*/ |
core.String unit; |
- /** |
- * Tiered limit values. Also allows for regional or zone overrides for these |
- * values if "/{region}" or "/{zone}" is specified in the unit field. |
- * |
- * Currently supported tiers from low to high: |
- * VERY_LOW, LOW, STANDARD, HIGH, VERY_HIGH |
- * |
- * To apply different limit values for users according to their tiers, specify |
- * the values for the tiers you want to differentiate. For example: |
- * {LOW:100, STANDARD:500, HIGH:1000, VERY_HIGH:5000} |
- * |
- * The limit value for each tier is optional except for the tier STANDARD. |
- * The limit value for an unspecified tier falls to the value of its next |
- * tier towards tier STANDARD. For the above example, the limit value for tier |
- * STANDARD is 500. |
- * |
- * To apply the same limit value for all users, just specify limit value for |
- * tier STANDARD. For example: {STANDARD:500}. |
- * |
- * To apply a regional overide for a tier, add a map entry with key |
- * "<TIER>/<region>", where <region> is a region name. Similarly, for a zone |
- * override, add a map entry with key "<TIER>/{zone}". |
- * Further, a wildcard can be used at the end of a zone name in order to |
- * specify zone level overrides. For example: |
- * LOW: 10, STANDARD: 50, HIGH: 100, |
- * LOW/us-central1: 20, STANDARD/us-central1: 60, HIGH/us-central1: 200, |
- * LOW/us-central1-*: 10, STANDARD/us-central1-*: 20, HIGH/us-central1-*: 80 |
- * |
- * The regional overrides tier set for each region must be the same as |
- * the tier set for default limit values. Same rule applies for zone overrides |
- * tier as well. |
- * |
- * Used by metric-based quotas only. |
- */ |
+ /** Tiered limit values, currently only STANDARD is supported. */ |
core.Map<core.String, core.String> values; |
QuotaLimit(); |
@@ -5980,8 +6042,8 @@ class QuotaLimit { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (defaultLimit != null) { |
_json["defaultLimit"] = defaultLimit; |
} |
@@ -6095,8 +6157,8 @@ class Rollout { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (createTime != null) { |
_json["createTime"] = createTime; |
} |
@@ -6193,8 +6255,8 @@ class Rule { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (action != null) { |
_json["action"] = action; |
} |
@@ -6317,11 +6379,7 @@ class Service { |
* e.g. `calendar.googleapis.com`. |
*/ |
core.String name; |
- /** |
- * The id of the Google developer project that owns the service. |
- * Members of this project can manage the service configuration, |
- * manage consumption of the service, etc. |
- */ |
+ /** The Google project that owns this service. */ |
core.String producerProjectId; |
/** Quota configuration. */ |
Quota quota; |
@@ -6339,7 +6397,7 @@ class Service { |
* to define system APIs in ESF. |
*/ |
core.List<Type> systemTypes; |
- /** The product title associated with this service. */ |
+ /** The product title for this service. */ |
core.String title; |
/** |
* A list of all proto message types included in this API service. |
@@ -6446,8 +6504,8 @@ class Service { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (apis != null) { |
_json["apis"] = apis.map((value) => (value).toJson()).toList(); |
} |
@@ -6565,8 +6623,8 @@ class SetIamPolicyRequest { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (policy != null) { |
_json["policy"] = (policy).toJson(); |
} |
@@ -6596,8 +6654,8 @@ class SourceContext { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (fileName != null) { |
_json["fileName"] = fileName; |
} |
@@ -6623,8 +6681,8 @@ class SourceInfo { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (sourceFiles != null) { |
_json["sourceFiles"] = sourceFiles; |
} |
@@ -6720,8 +6778,8 @@ class Status { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (code != null) { |
_json["code"] = code; |
} |
@@ -6764,8 +6822,8 @@ class Step { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (description != null) { |
_json["description"] = description; |
} |
@@ -6798,8 +6856,8 @@ class SubmitConfigSourceRequest { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (configSource != null) { |
_json["configSource"] = (configSource).toJson(); |
} |
@@ -6823,8 +6881,8 @@ class SubmitConfigSourceResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (serviceConfig != null) { |
_json["serviceConfig"] = (serviceConfig).toJson(); |
} |
@@ -6867,8 +6925,8 @@ class SystemParameter { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (httpHeader != null) { |
_json["httpHeader"] = httpHeader; |
} |
@@ -6914,8 +6972,8 @@ class SystemParameterRule { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (parameters != null) { |
_json["parameters"] = parameters.map((value) => (value).toJson()).toList(); |
} |
@@ -6976,8 +7034,8 @@ class SystemParameters { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (rules != null) { |
_json["rules"] = rules.map((value) => (value).toJson()).toList(); |
} |
@@ -7003,8 +7061,8 @@ class TestIamPermissionsRequest { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (permissions != null) { |
_json["permissions"] = permissions; |
} |
@@ -7028,8 +7086,8 @@ class TestIamPermissionsResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (permissions != null) { |
_json["permissions"] = permissions; |
} |
@@ -7038,9 +7096,10 @@ class TestIamPermissionsResponse { |
} |
/** |
- * Strategy that specifies how Google Service Control should select |
- * different |
- * versions of service configurations based on traffic percentage. |
+ * Strategy that specifies how clients of Google Service Controller want to |
+ * send traffic to use different config versions. This is generally |
+ * used by API proxy to split traffic based on your configured precentage for |
+ * each config version. |
* |
* One example of how to gradually rollout a new service configuration using |
* this |
@@ -7084,8 +7143,8 @@ class TrafficPercentStrategy { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (percentages != null) { |
_json["percentages"] = percentages; |
} |
@@ -7136,8 +7195,8 @@ class Type { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (fields != null) { |
_json["fields"] = fields.map((value) => (value).toJson()).toList(); |
} |
@@ -7173,8 +7232,8 @@ class UndeleteServiceResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (service != null) { |
_json["service"] = (service).toJson(); |
} |
@@ -7222,8 +7281,8 @@ class Usage { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (producerNotificationChannel != null) { |
_json["producerNotificationChannel"] = producerNotificationChannel; |
} |
@@ -7286,8 +7345,8 @@ class UsageRule { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (allowUnregisteredCalls != null) { |
_json["allowUnregisteredCalls"] = allowUnregisteredCalls; |
} |
@@ -7338,8 +7397,8 @@ class Visibility { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (rules != null) { |
_json["rules"] = rules.map((value) => (value).toJson()).toList(); |
} |
@@ -7388,8 +7447,8 @@ class VisibilityRule { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (restriction != null) { |
_json["restriction"] = restriction; |
} |