Class AuthorizationPolicy (0.7.1)

AuthorizationPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

AuthorizationPolicy is a resource that specifies how a server should authorize incoming connections. This resource in itself does not change the configuration unless it's attached to a target https proxy or endpoint config selector resource.

Attributes

NameDescription
name str
Required. Name of the AuthorizationPolicy resource. It matches pattern ``projects/{project}/locations/{location}/authorizationPolicies/
description str
Optional. Free-text description of the resource.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The timestamp when the resource was created.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The timestamp when the resource was updated.
labels Mapping[str, str]
Optional. Set of label tags associated with the AuthorizationPolicy resource.
action google.cloud.network_security_v1beta1.types.AuthorizationPolicy.Action
Required. The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".
rules Sequence[google.cloud.network_security_v1beta1.types.AuthorizationPolicy.Rule]
Optional. List of rules to match. Note that at least one of the rules must match in order for the action specified in the 'action' field to be taken. A rule is a match if there is a matching source and destination. If left blank, the action specified in the ``action`` field will be applied on every request.

Inheritance

builtins.object > proto.message.Message > AuthorizationPolicy

Classes

Action

Action(value)

Possible values that define what action to take.

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, `.Message`]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

Rule

Rule(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Specification of rules.