azure.mgmt.mixedreality.operations module

class azure.mgmt.mixedreality.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 – Version of the API to be used with the client request. Constant value: “2019-02-28-preview”.

list(custom_headers=None, raw=False, **operation_config)[source]

Exposing Available Operations.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Operation

Return type:

OperationPaged[Operation]

Raises:

ErrorResponseException

models = <module 'azure.mgmt.mixedreality.models' from '/usr/lib/python3/dist-packages/azure/mgmt/mixedreality/models/__init__.py'>
class azure.mgmt.mixedreality.operations.SpatialAnchorsAccountsOperations(client, config, serializer, deserializer)[source]

Bases: object

SpatialAnchorsAccountsOperations 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 – Version of the API to be used with the client request. Constant value: “2019-02-28-preview”.

create(resource_group_name, spatial_anchors_account_name, location, tags=None, custom_headers=None, raw=False, **operation_config)[source]

Creating or Updating a Spatial Anchors Account.

Parameters:
  • resource_group_name (str) – Name of an Azure resource group.
  • spatial_anchors_account_name (str) – Name of an Mixed Reality Spatial Anchors Account.
  • location (str) – The geo-location where the resource lives
  • tags (dict[str, str]) – Resource tags.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

SpatialAnchorsAccount or ClientRawResponse if raw=true

Return type:

SpatialAnchorsAccount or ClientRawResponse

Raises:

ErrorResponseException

delete(resource_group_name, spatial_anchors_account_name, custom_headers=None, raw=False, **operation_config)[source]

Delete a Spatial Anchors Account.

Parameters:
  • resource_group_name (str) – Name of an Azure resource group.
  • spatial_anchors_account_name (str) – Name of an Mixed Reality Spatial Anchors Account.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

ErrorResponseException

get(resource_group_name, spatial_anchors_account_name, custom_headers=None, raw=False, **operation_config)[source]

Retrieve a Spatial Anchors Account.

Parameters:
  • resource_group_name (str) – Name of an Azure resource group.
  • spatial_anchors_account_name (str) – Name of an Mixed Reality Spatial Anchors Account.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

SpatialAnchorsAccount or ClientRawResponse if raw=true

Return type:

SpatialAnchorsAccount or ClientRawResponse

Raises:

ErrorResponseException

get_keys(resource_group_name, spatial_anchors_account_name, custom_headers=None, raw=False, **operation_config)[source]

Get Both of the 2 Keys of a Spatial Anchors Account.

Parameters:
  • resource_group_name (str) – Name of an Azure resource group.
  • spatial_anchors_account_name (str) – Name of an Mixed Reality Spatial Anchors Account.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

SpatialAnchorsAccountKeys or ClientRawResponse if raw=true

Return type:

SpatialAnchorsAccountKeys or ClientRawResponse

Raises:

ErrorResponseException

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

List Resources by Resource Group.

Parameters:
  • resource_group_name (str) – Name of an Azure resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of SpatialAnchorsAccount

Return type:

SpatialAnchorsAccountPaged[SpatialAnchorsAccount]

Raises:

ErrorResponseException

list_by_subscription(custom_headers=None, raw=False, **operation_config)[source]

List Spatial Anchors Accounts by Subscription.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of SpatialAnchorsAccount

Return type:

SpatialAnchorsAccountPaged[SpatialAnchorsAccount]

Raises:

ErrorResponseException

regenerate_keys(resource_group_name, spatial_anchors_account_name, serial=1, custom_headers=None, raw=False, **operation_config)[source]

Regenerate 1 Key of a Spatial Anchors Account.

Parameters:
  • resource_group_name (str) – Name of an Azure resource group.
  • spatial_anchors_account_name (str) – Name of an Mixed Reality Spatial Anchors Account.
  • serial (int) – serial of key to be regenerated
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

SpatialAnchorsAccountKeys or ClientRawResponse if raw=true

Return type:

SpatialAnchorsAccountKeys or ClientRawResponse

Raises:

ErrorResponseException

update(resource_group_name, spatial_anchors_account_name, location, tags=None, custom_headers=None, raw=False, **operation_config)[source]

Updating a Spatial Anchors Account.

Parameters:
  • resource_group_name (str) – Name of an Azure resource group.
  • spatial_anchors_account_name (str) – Name of an Mixed Reality Spatial Anchors Account.
  • location (str) – The geo-location where the resource lives
  • tags (dict[str, str]) – Resource tags.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

SpatialAnchorsAccount or ClientRawResponse if raw=true

Return type:

SpatialAnchorsAccount or ClientRawResponse

Raises:

ErrorResponseException

models = <module 'azure.mgmt.mixedreality.models' from '/usr/lib/python3/dist-packages/azure/mgmt/mixedreality/models/__init__.py'>