CommitsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:commits> attribute.
Constructor
CommitsOperations(*args, **kwargs)
Methods
| begin_create_or_update |
Creates or updates a commit. |
| begin_delete |
Deletes a commit. |
| get |
Gets the specified commit. |
| list |
Lists all commits for the specified network manager. |
begin_create_or_update
Creates or updates a commit.
begin_create_or_update(resource_group_name: str, network_manager_name: str, commit_name: str, resource: _models.Commit, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.Commit]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
network_manager_name
Required
|
The name of the network manager. Required. |
|
commit_name
Required
|
The name of the commit. Required. |
|
resource
Required
|
Parameters supplied to specify which commit to create. Is one of the following types: Commit, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns Commit. The Commit is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
begin_delete
Deletes a commit.
begin_delete(resource_group_name: str, network_manager_name: str, commit_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
network_manager_name
Required
|
The name of the network manager. Required. |
|
commit_name
Required
|
The name of the commit. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns None |
Exceptions
| Type | Description |
|---|---|
get
Gets the specified commit.
get(resource_group_name: str, network_manager_name: str, commit_name: str, **kwargs: Any) -> Commit
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
network_manager_name
Required
|
The name of the network manager. Required. |
|
commit_name
Required
|
The name of the commit. Required. |
Returns
| Type | Description |
|---|---|
|
Commit. The Commit is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list
Lists all commits for the specified network manager.
list(resource_group_name: str, network_manager_name: str, *, top: int | None = None, skip_token: str | None = None, **kwargs: Any) -> ItemPaged[Commit]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
network_manager_name
Required
|
The name of the network manager. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
top
|
An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. Default value: None
|
|
skip_token
|
SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of Commit |
Exceptions
| Type | Description |
|---|---|