Class AuthorizationPolicy (0.9.1)

Stay organized with collections Save and categorize content based on your preferences.
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 MutableMapping[str, str]
Optional. Set of label tags associated with the AuthorizationPolicy resource.
action google.cloud.network_security_v1.types.AuthorizationPolicy.Action
Required. The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".
rules MutableSequence[google.cloud.network_security_v1.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.

Classes

Action

Action(value)

Possible values that define what action to take.

Values: ACTION_UNSPECIFIED (0): Default value. ALLOW (1): Grant access. DENY (2): Deny access. Deny rules should be avoided unless they are used to provide a default "deny all" fallback.

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.