otcextensions.sdk.nat.v2.gateway¶
The NAT Gateway Class¶
The Gateway
class inherits from
Resource
.
- class otcextensions.sdk.nat.v2.gateway.Gateway(_synchronized=False, connection=None, **attrs)¶
The base resource
- Parameters:
_synchronized (bool) – This is not intended to be used directly. See
new()
andexisting()
.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: ty.Optional[str] = 'nat_gateways'¶
Plural form of key for resource.
- resource_key: ty.Optional[str] = 'nat_gateway'¶
Singular form of key for resource.
- base_path: str = '/nat_gateways'¶
The base part of the URI for this resource.
- allow_create = True¶
Allow create operation for this resource.
- allow_fetch = True¶
Allow get operation for this resource.
- allow_commit = True¶
Allow update operation for this resource.
- allow_delete = True¶
Allow delete operation for this resource.
- allow_list = True¶
Allow list operation for this resource.
- admin_state_up¶
Specifies whether GW is up or down true: Gw is up false: GW is down
- created_at¶
Specifies when GW was is created format is yyyy-mm-dd hh:mm:ss
- description¶
Provides description of gateway
- id¶
Specifies the ID of the gateway.
- internal_network_id¶
Specifies the network ID of the downstream interface
- name: ty.Union[Body, URI]¶
Specifies the name of the gateway. Contains only digits, letters, underscores and hyphens
- project_id¶
Specifies the project ID
- router_id¶
Specifies the router ID
- spec¶
Specifies the type of the gateway. 1: small type, supports up to 10,000 SNAT connections 2: medium type, supports up to 50,000 SNAT connections 3: large type, supports up to 200,000 SNAT connections 4: extra-large type, supports up to 1,000,000 SNAT connections
- status¶
Specifies the status