otcextensions.sdk.dcaas.v2.connection¶
The Connection Class¶
The Connection
class inherits from
Resource
.
- class otcextensions.sdk.dcaas.v2.connection.Connection(_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.
- base_path: str = '/dcaas/direct-connects'¶
The base part of the URI for this resource.
- resource_key: ty.Optional[str] = 'direct_connect'¶
Singular form of key for resource.
- resources_key: ty.Optional[str] = 'direct_connects'¶
Plural form of key for resource.
- allow_list = True¶
Allow list operation for this resource.
- allow_fetch = True¶
Allow get operation for this resource.
- allow_create = True¶
Allow create operation for this resource.
- allow_delete = True¶
Allow delete operation for this resource.
- allow_commit = True¶
Allow update operation for this resource.
- id¶
ID of the direct connection.
- name: ty.Union[Body, URI]¶
Indicates the connection name.
- description¶
Indicates the description of the connection.
- bandwidth¶
Specifies the connection bandwidth in Mbit/s.
- location: ty.Union[Computed, Body, Header]¶
Specifies the connection access location.
- device_id¶
Specifies the gateway device ID of the connection.
- interface_name¶
Specifies the name of the interface accessed by the connection.
- redundant_id¶
Specifies the ID of the redundant connection using the same gateway.
- provider¶
Specifies the connection bandwidth in Mbit/s.
- type¶
Specifies the connection type. The value can be hosted.
- vlan¶
Specifies the VLAN pre-allocated to the hosted connection.
- apply_time¶
Specifies the time when the connection is requested.
- create_time¶
Specifies the time when the connection is created.
- delete_time¶
Specifies the time when the connection is deleted.
- order_id¶
Specifies the order number of the connection.
- product_id¶
Specifies the product ID corresponding to the connection’s order.