Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/deviceregistry/azure-mgmt-deviceregistry/_meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commit": "812060f2268dc35ed8866bcbaf94aa767cf87c8d",
"commit": "03c105f96d40a33dd7196727818297057ec643ae",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/deviceregistry/DeviceRegistry.Management",
"@azure-tools/typespec-python": "0.38.4"
"@azure-tools/typespec-python": "0.39.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def from_dict(
:param function key_extractors: A key extractor function.
:param str content_type: JSON by default, set application/xml if XML.
:returns: An instance of this model
:raises: DeserializationError if something went wrong
:raises DeserializationError: if something went wrong
:rtype: Self
"""
deserializer = Deserializer(cls._infer_class_models())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
class Resource(_model_base.Model):
"""Common fields that are returned in the response for all Azure Resource Manager resources.

Readonly variables are only populated by the server, and will be ignored when sending a request.

:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
Expand Down Expand Up @@ -52,9 +50,6 @@ class TrackedResource(Resource):
"""The resource model definition for an Azure Resource Manager tracked top level resource which
has 'tags' and a 'location'.

Readonly variables are only populated by the server, and will be ignored when sending a request.


:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
Expand Down Expand Up @@ -99,9 +94,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class Asset(TrackedResource):
"""Asset definition.

Readonly variables are only populated by the server, and will be ignored when sending a request.


:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
Expand Down Expand Up @@ -154,9 +146,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class AssetEndpointProfile(TrackedResource):
"""Asset Endpoint Profile definition.

Readonly variables are only populated by the server, and will be ignored when sending a request.


:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
Expand Down Expand Up @@ -209,9 +198,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class AssetEndpointProfileProperties(_model_base.Model):
"""Defines the Asset Endpoint Profile properties.

Readonly variables are only populated by the server, and will be ignored when sending a request.


:ivar uuid: Globally unique, immutable, non-reusable id.
:vartype uuid: str
:ivar target_address: The local valid URI specifying the network address/DNS name of a
Expand Down Expand Up @@ -298,8 +284,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class AssetEndpointProfileStatus(_model_base.Model):
"""Defines the asset endpoint profile status properties.

Readonly variables are only populated by the server, and will be ignored when sending a request.

:ivar errors: Array object to transfer and persist errors that originate from the Edge.
:vartype errors: list[~azure.mgmt.deviceregistry.models.AssetEndpointProfileStatusError]
"""
Expand All @@ -311,8 +295,6 @@ class AssetEndpointProfileStatus(_model_base.Model):
class AssetEndpointProfileStatusError(_model_base.Model):
"""Defines the asset endpoint profile status error properties.

Readonly variables are only populated by the server, and will be ignored when sending a request.

:ivar code: Error code for classification of errors (ex: 400, 404, 500, etc.).
:vartype code: int
:ivar message: Human readable helpful error message to provide additional context for error
Expand Down Expand Up @@ -423,9 +405,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class AssetProperties(_model_base.Model):
"""Defines the asset properties.

Readonly variables are only populated by the server, and will be ignored when sending a request.


:ivar uuid: Globally unique, immutable, non-reusable id.
:vartype uuid: str
:ivar enabled: Enabled/Disabled status of the asset.
Expand Down Expand Up @@ -606,8 +585,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class AssetStatus(_model_base.Model):
"""Defines the asset status properties.

Readonly variables are only populated by the server, and will be ignored when sending a request.

:ivar errors: Array object to transfer and persist errors that originate from the Edge.
:vartype errors: list[~azure.mgmt.deviceregistry.models.AssetStatusError]
:ivar version: A read only incremental counter indicating the number of times the configuration
Expand Down Expand Up @@ -637,9 +614,6 @@ class AssetStatus(_model_base.Model):
class AssetStatusDataset(_model_base.Model):
"""Defines the asset status dataset properties.

Readonly variables are only populated by the server, and will be ignored when sending a request.


:ivar name: The name of the dataset. Must be unique within the status.datasets array. This name
is used to correlate between the spec and status dataset information. Required.
:vartype name: str
Expand All @@ -659,8 +633,6 @@ class AssetStatusDataset(_model_base.Model):
class AssetStatusError(_model_base.Model):
"""Defines the asset status error properties.

Readonly variables are only populated by the server, and will be ignored when sending a request.

:ivar code: Error code for classification of errors (ex: 400, 404, 500, etc.).
:vartype code: int
:ivar message: Human readable helpful error message to provide additional context for error
Expand All @@ -678,9 +650,6 @@ class AssetStatusError(_model_base.Model):
class AssetStatusEvent(_model_base.Model):
"""Defines the asset status event properties.

Readonly variables are only populated by the server, and will be ignored when sending a request.


:ivar name: The name of the event. Must be unique within the status.events array. This name is
used to correlate between the spec and status event information. Required.
:vartype name: str
Expand Down Expand Up @@ -872,7 +841,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class Authentication(_model_base.Model):
"""Definition of the client authentication mechanism to the server.


:ivar method: Defines the method to authenticate the user of the client at the server.
Required. Known values are: "Anonymous", "Certificate", and "UsernamePassword".
:vartype method: str or ~azure.mgmt.deviceregistry.models.AuthenticationMethod
Expand Down Expand Up @@ -924,8 +892,6 @@ class ProxyResource(Resource):
"""The resource model definition for a Azure Resource Manager proxy resource. It will not have
tags and a location.

Readonly variables are only populated by the server, and will be ignored when sending a request.

:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
Expand All @@ -944,8 +910,6 @@ class BillingContainer(ProxyResource):
"""billingContainer Model as Azure resource whose sole purpose is to keep track of billables
resources under a subscription.

Readonly variables are only populated by the server, and will be ignored when sending a request.

:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
Expand Down Expand Up @@ -991,8 +955,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class BillingContainerProperties(_model_base.Model):
"""Defines the billingContainer properties.

Readonly variables are only populated by the server, and will be ignored when sending a request.

:ivar provisioning_state: Provisioning state of the resource. Known values are: "Succeeded",
"Failed", "Canceled", "Accepted", and "Deleting".
:vartype provisioning_state: str or ~azure.mgmt.deviceregistry.models.ProvisioningState
Expand All @@ -1008,7 +970,6 @@ class BillingContainerProperties(_model_base.Model):
class DataPointBase(_model_base.Model):
"""Defines the data point properties.


:ivar name: The name of the data point. Required.
:vartype name: str
:ivar data_source: The address of the source of the data in the asset (e.g. URL) so that a
Expand Down Expand Up @@ -1054,7 +1015,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class DataPoint(DataPointBase):
"""Defines the data point properties.


:ivar name: The name of the data point. Required.
:vartype name: str
:ivar data_source: The address of the source of the data in the asset (e.g. URL) so that a
Expand Down Expand Up @@ -1100,7 +1060,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class Dataset(_model_base.Model):
"""Defines the dataset properties.


:ivar name: Name of the dataset. Required.
:vartype name: str
:ivar dataset_configuration: Stringified JSON that contains connector-specific JSON string that
Expand Down Expand Up @@ -1152,8 +1111,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ErrorAdditionalInfo(_model_base.Model):
"""The resource management error additional info.

Readonly variables are only populated by the server, and will be ignored when sending a request.

:ivar type: The additional info type.
:vartype type: str
:ivar info: The additional info.
Expand All @@ -1169,8 +1126,6 @@ class ErrorAdditionalInfo(_model_base.Model):
class ErrorDetail(_model_base.Model):
"""The error detail.

Readonly variables are only populated by the server, and will be ignored when sending a request.

:ivar code: The error code.
:vartype code: str
:ivar message: The error message.
Expand Down Expand Up @@ -1229,7 +1184,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class EventBase(_model_base.Model):
"""Defines the event properties.


:ivar name: The name of the event. Required.
:vartype name: str
:ivar event_notifier: The address of the notifier of the event in the asset (e.g. URL) so that
Expand Down Expand Up @@ -1280,7 +1234,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class Event(EventBase):
"""Defines the event properties.


:ivar name: The name of the event. Required.
:vartype name: str
:ivar event_notifier: The address of the notifier of the event in the asset (e.g. URL) so that
Expand Down Expand Up @@ -1328,7 +1281,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ExtendedLocation(_model_base.Model):
"""The extended location.


:ivar type: The extended location type. Required.
:vartype type: str
:ivar name: The extended location name. Required.
Expand Down Expand Up @@ -1362,9 +1314,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class MessageSchemaReference(_model_base.Model):
"""Defines the message schema reference properties.

Readonly variables are only populated by the server, and will be ignored when sending a request.


:ivar schema_registry_namespace: The message schema registry namespace. Required.
:vartype schema_registry_namespace: str
:ivar schema_name: The message schema name. Required.
Expand All @@ -1384,8 +1333,6 @@ class MessageSchemaReference(_model_base.Model):
class Operation(_model_base.Model):
"""Details of a REST API operation, returned from the Resource Provider Operations API.

Readonly variables are only populated by the server, and will be ignored when sending a request.

:ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
"Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
:vartype name: str
Expand Down Expand Up @@ -1443,8 +1390,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class OperationDisplay(_model_base.Model):
"""Localized display information for and operation.

Readonly variables are only populated by the server, and will be ignored when sending a request.

:ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft
Monitoring Insights" or "Microsoft Compute".
:vartype provider: str
Expand Down Expand Up @@ -1476,9 +1421,6 @@ class OperationDisplay(_model_base.Model):
class OperationStatusResult(_model_base.Model):
"""The current status of an async operation.

Readonly variables are only populated by the server, and will be ignored when sending a request.


:ivar id: Fully qualified ID for the async operation.
:vartype id: str
:ivar name: Name of the async operation.
Expand Down Expand Up @@ -1622,7 +1564,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class Topic(_model_base.Model):
"""Object that describes the topic information.


:ivar path: The topic path for messages published to an MQTT broker. Required.
:vartype path: str
:ivar retain: When set to 'Keep', messages published to an MQTT broker will have the retain
Expand Down Expand Up @@ -1660,7 +1601,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class UsernamePasswordCredentials(_model_base.Model):
"""The credentials for authentication mode UsernamePassword.


:ivar username_secret_name: The name of the secret containing the username. Required.
:vartype username_secret_name: str
:ivar password_secret_name: The name of the secret containing the password. Required.
Expand Down Expand Up @@ -1698,7 +1638,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class X509Credentials(_model_base.Model):
"""The x509 certificate for authentication mode Certificate.


:ivar certificate_secret_name: The name of the secret containing the certificate and private
key (e.g. stored as .der/.pem or .der/.pfx). Required.
:vartype certificate_secret_name: str
Expand Down
2 changes: 1 addition & 1 deletion sdk/deviceregistry/azure-mgmt-deviceregistry/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
url="https://github.com/Azure/azure-sdk-for-python",
keywords="azure, azure sdk", # update with search keywords relevant to the azure service / product
classifiers=[
"Development Status :: 5 - Production/Stable",
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
directory: specification/deviceregistry/DeviceRegistry.Management
commit: 812060f2268dc35ed8866bcbaf94aa767cf87c8d
commit: 03c105f96d40a33dd7196727818297057ec643ae
repo: Azure/azure-rest-api-specs
additionalDirectories: