From d61633f5ce12762f05430e7377b8b486ac31e3fc Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 14 Mar 2025 03:26:04 +0000 Subject: [PATCH] CodeGen from PR 32938 in Azure/azure-rest-api-specs Merge 0a04a5454a0f5616f7cf7d6e728c8d0b7a8c12ba into 535377f6ef91e9d847bbee77d55871eb8b37b7b2 --- .../azure-mgmt-deviceregistry/_meta.json | 4 +- .../mgmt/deviceregistry/_serialization.py | 2 +- .../azure/mgmt/deviceregistry/_version.py | 2 +- .../mgmt/deviceregistry/models/_models.py | 61 ------------------- .../azure-mgmt-deviceregistry/setup.py | 2 +- .../tsp-location.yaml | 2 +- 6 files changed, 6 insertions(+), 67 deletions(-) diff --git a/sdk/deviceregistry/azure-mgmt-deviceregistry/_meta.json b/sdk/deviceregistry/azure-mgmt-deviceregistry/_meta.json index 9dd89c8226c2..bd9e02363f57 100644 --- a/sdk/deviceregistry/azure-mgmt-deviceregistry/_meta.json +++ b/sdk/deviceregistry/azure-mgmt-deviceregistry/_meta.json @@ -1,6 +1,6 @@ { - "commit": "812060f2268dc35ed8866bcbaf94aa767cf87c8d", + "commit": "8f6744026f8f69f599f4713dadf1109f04e23a31", "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.1" } \ No newline at end of file diff --git a/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/_serialization.py b/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/_serialization.py index e2a20b1d534c..7a0232de5ddc 100644 --- a/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/_serialization.py +++ b/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/_serialization.py @@ -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()) diff --git a/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/_version.py b/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/_version.py index 0ec13ea52bbf..be71c81bd282 100644 --- a/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/_version.py +++ b/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/_version.py @@ -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" diff --git a/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/models/_models.py b/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/models/_models.py index 1e48551e1d25..dcb778cc47a3 100644 --- a/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/models/_models.py +++ b/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/models/_models.py @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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] """ @@ -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 @@ -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. @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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. @@ -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. @@ -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 @@ -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 @@ -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. @@ -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. @@ -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 @@ -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 @@ -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. @@ -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 @@ -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. @@ -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 diff --git a/sdk/deviceregistry/azure-mgmt-deviceregistry/setup.py b/sdk/deviceregistry/azure-mgmt-deviceregistry/setup.py index 2ea6f92b7ed3..d48695cb5e69 100644 --- a/sdk/deviceregistry/azure-mgmt-deviceregistry/setup.py +++ b/sdk/deviceregistry/azure-mgmt-deviceregistry/setup.py @@ -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", diff --git a/sdk/deviceregistry/azure-mgmt-deviceregistry/tsp-location.yaml b/sdk/deviceregistry/azure-mgmt-deviceregistry/tsp-location.yaml index 9f4e014c4d8d..2ed32af43a94 100644 --- a/sdk/deviceregistry/azure-mgmt-deviceregistry/tsp-location.yaml +++ b/sdk/deviceregistry/azure-mgmt-deviceregistry/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/deviceregistry/DeviceRegistry.Management -commit: 812060f2268dc35ed8866bcbaf94aa767cf87c8d +commit: 8f6744026f8f69f599f4713dadf1109f04e23a31 repo: Azure/azure-rest-api-specs additionalDirectories: