otcextensions.sdk.natv3.v3.snat

The Private SNAT Rule Class

The PrivateSnat class inherits from Resource.

class otcextensions.sdk.natv3.v3.snat.PrivateSnat

The base resource

Parameters:
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

resources_key: str | None = 'snat_rules'

Plural form of key for resource.

resource_key: str | None = 'snat_rule'

Singular form of key for resource.

base_path: str = '/private-nat/snat-rules'

The base part of the URI for this resource.

allow_create = True

Allow create operation for this resource.

allow_commit = True

Allow update operation for this resource.

allow_delete = True

Allow delete operation for this resource.

allow_fetch = True

Allow get operation for this resource.

allow_list = True

Allow list operation for this resource.

id: str

Specifies the SNAT rule ID.

project_id

Specifies the project ID.

gateway_id

Specifies the private NAT gateway ID.

cidr

Specifies the CIDR block that matches the SNAT rule.

virsubnet_id

Specifies the ID of the subnet that matches the SNAT rule.

description

Provides supplementary information about the SNAT rule.

transit_ip_ids

Specifies the IDs of associated transit IP addresses. Accepted on create and update requests.

transit_ip_associations

Specifies the list of details of associated transit IP addresses.

created_at

Specifies when the SNAT rule was created.

updated_at

Specifies when the SNAT rule was updated.

enterprise_project_id

Specifies the enterprise project ID.

status

Specifies the SNAT rule status. ACTIVE, FROZEN