1.7.0 (latest) 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class AuthzExtension : IMessage<AuthzExtension>, IEquatable<AuthzExtension>, IDeepCloneable<AuthzExtension>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Services v1 API class AuthzExtension.

`AuthzExtension` is a resource that allows traffic forwarding
to a callout backend service to make an authorization decision.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AuthzExtension

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AuthzExtension](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.AuthzExtension), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AuthzExtension](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.AuthzExtension), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AuthzExtension](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.AuthzExtension), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.NetworkServices.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1)

## Assembly

Google.Cloud.NetworkServices.V1.dll

## Constructors

### AuthzExtension()

    public AuthzExtension()

### AuthzExtension(AuthzExtension)

    public AuthzExtension(AuthzExtension other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.AuthzExtension` |

## Properties

### Authority

    public string Authority { get; set; }

Optional. The `:authority` header in the gRPC request sent from Envoy to
the extension service. It is required when the `service` field points to a
backend service or a wasm plugin.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### AuthzExtensionName

    public AuthzExtensionName AuthzExtensionName { get; set; }

[AuthzExtensionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.AuthzExtensionName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.AuthzExtension#Google_Cloud_NetworkServices_V1_AuthzExtension_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.AuthzExtensionName` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The timestamp when the resource was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Description

    public string Description { get; set; }

Optional. A human-readable description of the resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### FailOpen

    public bool FailOpen { get; set; }

Optional. Determines how the proxy behaves if the call to the extension
fails or times out.

When set to `TRUE`, request or response processing continues without
error. Any subsequent extensions in the extension chain are also
executed. When set to `FALSE` or the default setting of `FALSE` is used,
one of the following happens:

- If response headers have not been delivered to the downstream client,
  a generic 500 error is returned to the client. The error response can be
  tailored by configuring a custom error response in the load balancer.

- If response headers have been delivered, then the HTTP stream to the
  downstream client is reset.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### ForwardAttributes

    public RepeatedField<string> ForwardAttributes { get; }

Optional. List of the Envoy attributes to forward to the extension server.
The attributes provided here are included as part of the
`ProcessingRequest.attributes` field (of type
`map<string, google.protobuf.Struct>`), where the keys are the attribute
names. Refer to the
[documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
for the names of attributes that can be forwarded. If omitted, no
attributes are sent. Each element is a string indicating the
attribute name.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### ForwardHeaders

    public RepeatedField<string> ForwardHeaders { get; }

Optional. List of the HTTP headers to forward to the extension
(from the client). If omitted, all headers are sent.
Each element is a string indicating the header name.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Labels

    public MapField<string, string> Labels { get; }

Optional. Set of labels associated with the `AuthzExtension`
resource.

The format must comply with [the requirements for
labels](https://docs.cloud.google.com/compute/docs/labeling-resources#requirements) for Google Cloud
resources.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### LoadBalancingScheme

    public LoadBalancingScheme LoadBalancingScheme { get; set; }

Optional. All backend services and forwarding rules referenced by this
extension must share the same load balancing scheme. Supported values:
`INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
that do not reference a backend service. For more information, refer to
[Backend services
overview](https://cloud.google.com/load-balancing/docs/backend-service).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.LoadBalancingScheme` |   |

### Metadata

    public Struct Metadata { get; set; }

Optional. The metadata provided here is included as part of the
`metadata_context` (of type `google.protobuf.Struct`) in the
`ProcessingRequest` message sent to the extension
server. The metadata is available under the namespace
`com.google.authz_extension.<resource_name>`.
The following variables are supported in the metadata Struct:

`{forwarding_rule_id}` - substituted with the forwarding rule's fully
qualified resource name.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` |   |

### Name

    public string Name { get; set; }

Required. Identifier. Name of the `AuthzExtension` resource in the
following format:
`projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Service

    public string Service { get; set; }

Required. The reference to the service that runs the extension.

To configure a callout extension, `service` must be a fully-qualified
reference
to a [backend
service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices)
in the format:
`https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}`
or
`https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Timeout

    public Duration Timeout { get; set; }

Required. Specifies the timeout for each individual message on the stream.
The timeout must be between 10-10000 milliseconds.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Duration.html` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The timestamp when the resource was updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### WireFormat

    public WireFormat WireFormat { get; set; }

Optional. The format of communication supported by the callout extension.
This field is supported only for regional `AuthzExtension` resources. If
not specified, the default value `EXT_PROC_GRPC` is used. Global
`AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WireFormat` |   |