RouteTablesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:route_tables> attribute.
- Inheritance
-
builtins.objectRouteTablesOperations
Constructor
RouteTablesOperations(*args, **kwargs)
Methods
begin_create_or_update |
Create or updates a route table in a specified resource group. |
begin_delete |
Deletes the specified route table. |
get |
Gets the specified route table. |
list |
Gets all route tables in a resource group. |
list_all |
Gets all route tables in a subscription. |
update_tags |
Updates a route table tags. |
begin_create_or_update
Create or updates a route table in a specified resource group.
begin_create_or_update(resource_group_name: str, route_table_name: str, parameters: _models.RouteTable, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.RouteTable]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
route_table_name
Required
|
The name of the route table. Required. |
parameters
Required
|
Parameters supplied to the create or update route table operation. Is either a RouteTable type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either RouteTable or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Deletes the specified route table.
begin_delete(resource_group_name: str, route_table_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
route_table_name
Required
|
The name of the route table. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets the specified route table.
get(resource_group_name: str, route_table_name: str, *, expand: str | None = None, **kwargs: Any) -> RouteTable
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
route_table_name
Required
|
The name of the route table. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
expand
|
Expands referenced resources. Default value is None. |
Returns
Type | Description |
---|---|
RouteTable or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Gets all route tables in a resource group.
list(resource_group_name: str, **kwargs: Any) -> Iterable[RouteTable]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either RouteTable or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_all
Gets all route tables in a subscription.
list_all(**kwargs: Any) -> Iterable[RouteTable]
Returns
Type | Description |
---|---|
An iterator like instance of either RouteTable or the result of cls(response) |
Exceptions
Type | Description |
---|---|
update_tags
Updates a route table tags.
update_tags(resource_group_name: str, route_table_name: str, parameters: _models.TagsObject, *, content_type: str = 'application/json', **kwargs: Any) -> _models.RouteTable
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
route_table_name
Required
|
The name of the route table. Required. |
parameters
Required
|
Parameters supplied to update route table tags. Is either a TagsObject type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
RouteTable or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.network.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\network\\models\\__init__.py'>
Azure SDK for Python