2.11.0 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0-beta02

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

Reference documentation and code samples for the Backup and DR Service v1 API class AccessConfig.

An access configuration attached to an instance's network interface.
Only one access config per instance is supported.

## Inheritance

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

## Implements

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

## 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.BackupDR.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.md.txt)

## Assembly

Google.Cloud.BackupDR.V1.dll

## Constructors

### AccessConfig()

    public AccessConfig()

### AccessConfig(AccessConfig)

    public AccessConfig(AccessConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `AccessConfig` |

## Properties

### ExternalIp

    public string ExternalIp { get; set; }

Optional. The external IP address of this access configuration.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ExternalIpv6

    public string ExternalIpv6 { get; set; }

Optional. The external IPv6 address of this access configuration.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ExternalIpv6PrefixLength

    public int ExternalIpv6PrefixLength { get; set; }

Optional. The prefix length of the external IPv6 range.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### HasExternalIp

    public bool HasExternalIp { get; }

Gets whether the "external_ip" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasExternalIpv6

    public bool HasExternalIpv6 { get; }

Gets whether the "external_ipv6" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasExternalIpv6PrefixLength

    public bool HasExternalIpv6PrefixLength { get; }

Gets whether the "external_ipv6_prefix_length" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasName

    public bool HasName { get; }

Gets whether the "name" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasNetworkTier

    public bool HasNetworkTier { get; }

Gets whether the "network_tier" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasPublicPtrDomainName

    public bool HasPublicPtrDomainName { get; }

Gets whether the "public_ptr_domain_name" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasSetPublicPtr

    public bool HasSetPublicPtr { get; }

Gets whether the "set_public_ptr" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasType

    public bool HasType { get; }

Gets whether the "type" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Name

    public string Name { get; set; }

Optional. The name of this access configuration.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### NetworkTier

    public AccessConfig.Types.NetworkTier NetworkTier { get; set; }

Optional. This signifies the networking tier used for configuring this
access

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AccessConfigTypesNetworkTier` |   |

### PublicPtrDomainName

    public string PublicPtrDomainName { get; set; }

Optional. The DNS domain name for the public PTR record.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### SetPublicPtr

    public bool SetPublicPtr { get; set; }

Optional. Specifies whether a public DNS 'PTR' record should be created to
map the external IP address of the instance to a DNS domain name.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Type

    public AccessConfig.Types.AccessType Type { get; set; }

Optional. In accessConfigs (IPv4), the
default and only option is ONE_TO_ONE_NAT. In
ipv6AccessConfigs, the default and only option is
DIRECT_IPV6.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AccessConfigTypesAccessType` |   |