OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.serviceuser.v1; | 3 library googleapis.serviceuser.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http_1; | 10 import 'package:http/http.dart' as http_1; |
(...skipping 4565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4576 class UsageRule { | 4576 class UsageRule { |
4577 /** True, if the method allows unregistered calls; false otherwise. */ | 4577 /** True, if the method allows unregistered calls; false otherwise. */ |
4578 core.bool allowUnregisteredCalls; | 4578 core.bool allowUnregisteredCalls; |
4579 /** | 4579 /** |
4580 * Selects the methods to which this rule applies. Use '*' to indicate all | 4580 * Selects the methods to which this rule applies. Use '*' to indicate all |
4581 * methods in all APIs. | 4581 * methods in all APIs. |
4582 * | 4582 * |
4583 * Refer to selector for syntax details. | 4583 * Refer to selector for syntax details. |
4584 */ | 4584 */ |
4585 core.String selector; | 4585 core.String selector; |
| 4586 /** |
| 4587 * True, if the method should skip service control. If so, no control plane |
| 4588 * feature (like quota and billing) will be enabled. |
| 4589 */ |
| 4590 core.bool skipServiceControl; |
4586 | 4591 |
4587 UsageRule(); | 4592 UsageRule(); |
4588 | 4593 |
4589 UsageRule.fromJson(core.Map _json) { | 4594 UsageRule.fromJson(core.Map _json) { |
4590 if (_json.containsKey("allowUnregisteredCalls")) { | 4595 if (_json.containsKey("allowUnregisteredCalls")) { |
4591 allowUnregisteredCalls = _json["allowUnregisteredCalls"]; | 4596 allowUnregisteredCalls = _json["allowUnregisteredCalls"]; |
4592 } | 4597 } |
4593 if (_json.containsKey("selector")) { | 4598 if (_json.containsKey("selector")) { |
4594 selector = _json["selector"]; | 4599 selector = _json["selector"]; |
4595 } | 4600 } |
| 4601 if (_json.containsKey("skipServiceControl")) { |
| 4602 skipServiceControl = _json["skipServiceControl"]; |
| 4603 } |
4596 } | 4604 } |
4597 | 4605 |
4598 core.Map<core.String, core.Object> toJson() { | 4606 core.Map<core.String, core.Object> toJson() { |
4599 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4607 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4600 if (allowUnregisteredCalls != null) { | 4608 if (allowUnregisteredCalls != null) { |
4601 _json["allowUnregisteredCalls"] = allowUnregisteredCalls; | 4609 _json["allowUnregisteredCalls"] = allowUnregisteredCalls; |
4602 } | 4610 } |
4603 if (selector != null) { | 4611 if (selector != null) { |
4604 _json["selector"] = selector; | 4612 _json["selector"] = selector; |
4605 } | 4613 } |
| 4614 if (skipServiceControl != null) { |
| 4615 _json["skipServiceControl"] = skipServiceControl; |
| 4616 } |
4606 return _json; | 4617 return _json; |
4607 } | 4618 } |
4608 } | 4619 } |
4609 | 4620 |
4610 /** | 4621 /** |
4611 * `Visibility` defines restrictions for the visibility of service | 4622 * `Visibility` defines restrictions for the visibility of service |
4612 * elements. Restrictions are specified using visibility labels | 4623 * elements. Restrictions are specified using visibility labels |
4613 * (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects. | 4624 * (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects. |
4614 * | 4625 * |
4615 * Users and projects can have access to more than one visibility label. The | 4626 * Users and projects can have access to more than one visibility label. The |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4701 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4712 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4702 if (restriction != null) { | 4713 if (restriction != null) { |
4703 _json["restriction"] = restriction; | 4714 _json["restriction"] = restriction; |
4704 } | 4715 } |
4705 if (selector != null) { | 4716 if (selector != null) { |
4706 _json["selector"] = selector; | 4717 _json["selector"] = selector; |
4707 } | 4718 } |
4708 return _json; | 4719 return _json; |
4709 } | 4720 } |
4710 } | 4721 } |
OLD | NEW |