FieldPolicy class

Google API Policy Annotation This message defines a simple API policy annotation that can be used to annotate API request and response message fields with applicable policies.

One field may have multiple applicable policies that must all be satisfied before a request can be processed. This policy annotation is used to generate the overall policy that will be used for automatic runtime policy enforcement and documentation generation.

Constructors

FieldPolicy({String? resourcePermission, String? resourceType, String? selector})
FieldPolicy.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
no setterinherited
resourcePermission String?
Specifies the required permission(s) for the resource referred to by the field.
getter/setter pair
resourceType String?
Specifies the resource type for the resource referred to by the field.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selector String?
Selects one or more request or response message fields to apply this FieldPolicy.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited