ProjectsOperations Class
ProjectsOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectProjectsOperations
Constructor
ProjectsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| create_or_update |
Create or update project. The project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one. |
| delete |
Delete project. The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project. |
| get |
Get project information. The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project. |
| list |
Get projects in a service. The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource. |
| update |
Update project. The project resource is a nested resource representing a stored migration project. The PATCH method updates an existing project. |
create_or_update
Create or update project.
The project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one.
create_or_update(group_name: str, service_name: str, project_name: str, parameters: _models.Project, **kwargs: Any) -> _models.Project
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Project, or the result of cls(response)
Return type
Exceptions
delete
Delete project.
The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.
delete(group_name: str, service_name: str, project_name: str, delete_running_tasks: Optional[bool] = None, **kwargs: Any) -> None
Parameters
- delete_running_tasks
- bool
Delete the resource even if it contains running tasks.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get
Get project information.
The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.
get(group_name: str, service_name: str, project_name: str, **kwargs: Any) -> _models.Project
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Project, or the result of cls(response)
Return type
Exceptions
list
Get projects in a service.
The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.
list(group_name: str, service_name: str, **kwargs: Any) -> Iterable[_models.ProjectList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ProjectList or the result of cls(response)
Return type
Exceptions
update
Update project.
The project resource is a nested resource representing a stored migration project. The PATCH method updates an existing project.
update(group_name: str, service_name: str, project_name: str, parameters: _models.Project, **kwargs: Any) -> _models.Project
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Project, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.datamigration.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\datamigration\\models\\__init__.py'>
Feedback
Submit and view feedback for