azure.mgmt.devspaces.operations module¶
-
class
azure.mgmt.devspaces.operations.
ContainerHostMappingsOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
ContainerHostMappingsOperations operations.
Parameters: - client – Client for service requests.
- config – Configuration of service client.
- serializer – An object model serializer.
- deserializer – An object model deserializer.
Variables: api_version – Client API version. Constant value: “2019-04-01”.
-
get_container_host_mapping
(resource_group_name, location, container_host_resource_id=None, custom_headers=None, raw=False, **operation_config)[source]¶ Returns container host mapping object for a container host resource ID if an associated controller exists.
Parameters: - resource_group_name (str) – Resource group to which the resource belongs.
- location (str) – Location of the container host.
- container_host_resource_id (str) – ARM ID of the Container Host resource
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: ContainerHostMapping or ClientRawResponse if raw=true
Return type: ContainerHostMapping or ClientRawResponse
Raises:
-
models
= <module 'azure.mgmt.devspaces.models' from '/usr/lib/python3/dist-packages/azure/mgmt/devspaces/models/__init__.py'>¶
-
class
azure.mgmt.devspaces.operations.
Operations
(client, config, serializer, deserializer)[source]¶ Bases:
object
Operations operations.
Parameters: - client – Client for service requests.
- config – Configuration of service client.
- serializer – An object model serializer.
- deserializer – An object model deserializer.
Variables: api_version – Client API version. Constant value: “2019-04-01”.
-
list
(custom_headers=None, raw=False, **operation_config)[source]¶ Lists operations for the resource provider.
Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their description.
Parameters: Returns: An iterator like instance of ResourceProviderOperationDefinition
Return type: ResourceProviderOperationDefinitionPaged[ResourceProviderOperationDefinition]
Raises: CloudError
-
models
= <module 'azure.mgmt.devspaces.models' from '/usr/lib/python3/dist-packages/azure/mgmt/devspaces/models/__init__.py'>¶
-
class
azure.mgmt.devspaces.operations.
ControllersOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
ControllersOperations operations.
Parameters: - client – Client for service requests.
- config – Configuration of service client.
- serializer – An object model serializer.
- deserializer – An object model deserializer.
Variables: api_version – Client API version. Constant value: “2019-04-01”.
-
create
(resource_group_name, name, controller, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Creates an Azure Dev Spaces Controller.
Creates an Azure Dev Spaces Controller with the specified create parameters.
Parameters: - resource_group_name (str) – Resource group to which the resource belongs.
- name (str) – Name of the resource.
- controller (Controller) – Controller create parameters.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – The poller return type is ClientRawResponse, the direct response alongside the deserialized response
- polling – True for ARMPolling, False for no polling, or a polling object for personal polling strategy
Returns: An instance of LROPoller that returns Controller or ClientRawResponse<Controller> if raw==True
Return type: AzureOperationPoller[Controller] or AzureOperationPoller[ClientRawResponse[Controller]]
Raises:
-
delete
(resource_group_name, name, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Deletes an Azure Dev Spaces Controller.
Deletes an existing Azure Dev Spaces Controller.
Parameters: - resource_group_name (str) – Resource group to which the resource belongs.
- name (str) – Name of the resource.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – The poller return type is ClientRawResponse, the direct response alongside the deserialized response
- polling – True for ARMPolling, False for no polling, or a polling object for personal polling strategy
Returns: An instance of LROPoller that returns None or ClientRawResponse<None> if raw==True
Return type: AzureOperationPoller[None] or AzureOperationPoller[ClientRawResponse[None]]
Raises:
-
get
(resource_group_name, name, custom_headers=None, raw=False, **operation_config)[source]¶ Gets an Azure Dev Spaces Controller.
Gets the properties for an Azure Dev Spaces Controller.
Parameters: - resource_group_name (str) – Resource group to which the resource belongs.
- name (str) – Name of the resource.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: Controller or ClientRawResponse if raw=true
Return type: Controller or ClientRawResponse
Raises:
-
list
(custom_headers=None, raw=False, **operation_config)[source]¶ Lists the Azure Dev Spaces Controllers in a subscription.
Lists all the Azure Dev Spaces Controllers with their properties in the subscription.
Parameters: Returns: An iterator like instance of Controller
Return type: Raises:
-
list_by_resource_group
(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]¶ Lists the Azure Dev Spaces Controllers in a resource group.
Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group and subscription.
Parameters: Returns: An iterator like instance of Controller
Return type: Raises:
-
list_connection_details
(resource_group_name, name, target_container_host_resource_id, custom_headers=None, raw=False, **operation_config)[source]¶ Lists connection details for an Azure Dev Spaces Controller.
Lists connection details for the underlying container resources of an Azure Dev Spaces Controller.
Parameters: - resource_group_name (str) – Resource group to which the resource belongs.
- name (str) – Name of the resource.
- target_container_host_resource_id (str) – Resource ID of the target container host mapped to the Azure Dev Spaces Controller.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: ControllerConnectionDetailsList or ClientRawResponse if raw=true
Return type: ControllerConnectionDetailsList or ClientRawResponse
Raises:
-
update
(resource_group_name, name, tags=None, target_container_host_credentials_base64=None, custom_headers=None, raw=False, **operation_config)[source]¶ Updates an Azure Dev Spaces Controller.
Updates the properties of an existing Azure Dev Spaces Controller with the specified update parameters.
Parameters: - resource_group_name (str) – Resource group to which the resource belongs.
- name (str) – Name of the resource.
- tags (dict[str, str]) – Tags for the Azure Dev Spaces Controller.
- target_container_host_credentials_base64 (str) – Credentials of the target container host (base64).
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: Controller or ClientRawResponse if raw=true
Return type: Controller or ClientRawResponse
Raises:
-
models
= <module 'azure.mgmt.devspaces.models' from '/usr/lib/python3/dist-packages/azure/mgmt/devspaces/models/__init__.py'>¶