diff --git a/sdk/deviceregistry/azure-mgmt-deviceregistry/_meta.json b/sdk/deviceregistry/azure-mgmt-deviceregistry/_meta.json index 9dd89c8226c2..62291dcd22ea 100644 --- a/sdk/deviceregistry/azure-mgmt-deviceregistry/_meta.json +++ b/sdk/deviceregistry/azure-mgmt-deviceregistry/_meta.json @@ -1,6 +1,6 @@ { - "commit": "812060f2268dc35ed8866bcbaf94aa767cf87c8d", + "commit": "bb720b097f7c7afa6cdc8246f6fb654ef390993a", "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.40.0" } \ 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/aio/operations/_operations.py b/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/aio/operations/_operations.py index 4fc1b5061e20..08d1ee8afff5 100644 --- a/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/aio/operations/_operations.py +++ b/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/aio/operations/_operations.py @@ -84,9 +84,6 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def list(self, **kwargs: Any) -> AsyncIterable["_models.Operation"]: """List the operations for the provider. @@ -146,7 +143,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.Operation], deserialized["value"]) + list_of_elem = _deserialize(List[_models.Operation], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, AsyncList(list_of_elem) @@ -188,9 +185,6 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def get(self, location: str, operation_id: str, **kwargs: Any) -> _models.OperationStatusResult: """Returns the current status of an async operation. @@ -274,9 +268,6 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def get(self, resource_group_name: str, asset_name: str, **kwargs: Any) -> _models.Asset: """Get a Asset. @@ -342,9 +333,6 @@ async def get(self, resource_group_name: str, asset_name: str, **kwargs: Any) -> return deserialized # type: ignore - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def _create_or_replace_initial( self, resource_group_name: str, asset_name: str, resource: Union[_models.Asset, JSON, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: @@ -499,9 +487,6 @@ async def begin_create_or_replace( """ @distributed_trace_async - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def begin_create_or_replace( self, resource_group_name: str, asset_name: str, resource: Union[_models.Asset, JSON, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.Asset]: @@ -572,9 +557,6 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def _update_initial( self, resource_group_name: str, @@ -731,9 +713,6 @@ async def begin_update( """ @distributed_trace_async - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def begin_update( self, resource_group_name: str, @@ -808,9 +787,6 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def _delete_initial(self, resource_group_name: str, asset_name: str, **kwargs: Any) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -867,9 +843,6 @@ async def _delete_initial(self, resource_group_name: str, asset_name: str, **kwa return deserialized # type: ignore @distributed_trace_async - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def begin_delete(self, resource_group_name: str, asset_name: str, **kwargs: Any) -> AsyncLROPoller[None]: """Delete a Asset. @@ -927,9 +900,6 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.Asset"]: """List Asset resources by resource group. @@ -994,7 +964,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.Asset], deserialized["value"]) + list_of_elem = _deserialize(List[_models.Asset], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, AsyncList(list_of_elem) @@ -1018,9 +988,6 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.Asset"]: """List Asset resources by subscription ID. @@ -1081,7 +1048,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.Asset], deserialized["value"]) + list_of_elem = _deserialize(List[_models.Asset], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, AsyncList(list_of_elem) @@ -1123,9 +1090,6 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def get( self, resource_group_name: str, asset_endpoint_profile_name: str, **kwargs: Any ) -> _models.AssetEndpointProfile: @@ -1193,9 +1157,6 @@ async def get( return deserialized # type: ignore - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def _create_or_replace_initial( self, resource_group_name: str, @@ -1357,9 +1318,6 @@ async def begin_create_or_replace( """ @distributed_trace_async - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def begin_create_or_replace( self, resource_group_name: str, @@ -1435,9 +1393,6 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def _update_initial( self, resource_group_name: str, @@ -1597,9 +1552,6 @@ async def begin_update( """ @distributed_trace_async - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def begin_update( self, resource_group_name: str, @@ -1676,9 +1628,6 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def _delete_initial( self, resource_group_name: str, asset_endpoint_profile_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: @@ -1737,9 +1686,6 @@ async def _delete_initial( return deserialized # type: ignore @distributed_trace_async - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) async def begin_delete( self, resource_group_name: str, asset_endpoint_profile_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: @@ -1799,9 +1745,6 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def list_by_resource_group( self, resource_group_name: str, **kwargs: Any ) -> AsyncIterable["_models.AssetEndpointProfile"]: @@ -1869,7 +1812,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.AssetEndpointProfile], deserialized["value"]) + list_of_elem = _deserialize(List[_models.AssetEndpointProfile], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, AsyncList(list_of_elem) @@ -1893,9 +1836,6 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.AssetEndpointProfile"]: """List AssetEndpointProfile resources by subscription ID. @@ -1957,7 +1897,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.AssetEndpointProfile], deserialized["value"]) + list_of_elem = _deserialize(List[_models.AssetEndpointProfile], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, AsyncList(list_of_elem) @@ -2001,9 +1941,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async @api_version_validation( method_added_on="2024-09-01-preview", - params_added_on={ - "2024-09-01-preview": ["base_url", "api_version", "subscription_id", "billing_container_name", "accept"] - }, + params_added_on={"2024-09-01-preview": ["api_version", "subscription_id", "billing_container_name", "accept"]}, ) async def get(self, billing_container_name: str, **kwargs: Any) -> _models.BillingContainer: """Get a BillingContainer. @@ -2069,7 +2007,7 @@ async def get(self, billing_container_name: str, **kwargs: Any) -> _models.Billi @distributed_trace @api_version_validation( method_added_on="2024-09-01-preview", - params_added_on={"2024-09-01-preview": ["base_url", "api_version", "subscription_id", "accept"]}, + params_added_on={"2024-09-01-preview": ["api_version", "subscription_id", "accept"]}, ) def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.BillingContainer"]: """List BillingContainer resources by subscription ID. @@ -2132,7 +2070,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.BillingContainer], deserialized["value"]) + list_of_elem = _deserialize(List[_models.BillingContainer], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, AsyncList(list_of_elem) 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/azure/mgmt/deviceregistry/operations/_operations.py b/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/operations/_operations.py index 2519b9c67207..26d98e55985a 100644 --- a/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/operations/_operations.py +++ b/sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/operations/_operations.py @@ -512,9 +512,6 @@ def __init__(self, *args, **kwargs): self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def list(self, **kwargs: Any) -> Iterable["_models.Operation"]: """List the operations for the provider. @@ -574,7 +571,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.Operation], deserialized["value"]) + list_of_elem = _deserialize(List[_models.Operation], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, iter(list_of_elem) @@ -616,9 +613,6 @@ def __init__(self, *args, **kwargs): self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def get(self, location: str, operation_id: str, **kwargs: Any) -> _models.OperationStatusResult: """Returns the current status of an async operation. @@ -702,9 +696,6 @@ def __init__(self, *args, **kwargs): self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def get(self, resource_group_name: str, asset_name: str, **kwargs: Any) -> _models.Asset: """Get a Asset. @@ -770,9 +761,6 @@ def get(self, resource_group_name: str, asset_name: str, **kwargs: Any) -> _mode return deserialized # type: ignore - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def _create_or_replace_initial( self, resource_group_name: str, asset_name: str, resource: Union[_models.Asset, JSON, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: @@ -927,9 +915,6 @@ def begin_create_or_replace( """ @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def begin_create_or_replace( self, resource_group_name: str, asset_name: str, resource: Union[_models.Asset, JSON, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Asset]: @@ -1000,9 +985,6 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def _update_initial( self, resource_group_name: str, @@ -1159,9 +1141,6 @@ def begin_update( """ @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def begin_update( self, resource_group_name: str, @@ -1236,9 +1215,6 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def _delete_initial(self, resource_group_name: str, asset_name: str, **kwargs: Any) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -1295,9 +1271,6 @@ def _delete_initial(self, resource_group_name: str, asset_name: str, **kwargs: A return deserialized # type: ignore @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def begin_delete(self, resource_group_name: str, asset_name: str, **kwargs: Any) -> LROPoller[None]: """Delete a Asset. @@ -1355,9 +1328,6 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.Asset"]: """List Asset resources by resource group. @@ -1422,7 +1392,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.Asset], deserialized["value"]) + list_of_elem = _deserialize(List[_models.Asset], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, iter(list_of_elem) @@ -1446,9 +1416,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.Asset"]: """List Asset resources by subscription ID. @@ -1509,7 +1476,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.Asset], deserialized["value"]) + list_of_elem = _deserialize(List[_models.Asset], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, iter(list_of_elem) @@ -1551,9 +1518,6 @@ def __init__(self, *args, **kwargs): self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def get( self, resource_group_name: str, asset_endpoint_profile_name: str, **kwargs: Any ) -> _models.AssetEndpointProfile: @@ -1621,9 +1585,6 @@ def get( return deserialized # type: ignore - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def _create_or_replace_initial( self, resource_group_name: str, @@ -1782,9 +1743,6 @@ def begin_create_or_replace( """ @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def begin_create_or_replace( self, resource_group_name: str, @@ -1859,9 +1817,6 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def _update_initial( self, resource_group_name: str, @@ -2018,9 +1973,6 @@ def begin_update( """ @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def begin_update( self, resource_group_name: str, @@ -2096,9 +2048,6 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def _delete_initial( self, resource_group_name: str, asset_endpoint_profile_name: str, **kwargs: Any ) -> Iterator[bytes]: @@ -2157,9 +2106,6 @@ def _delete_initial( return deserialized # type: ignore @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def begin_delete( self, resource_group_name: str, asset_endpoint_profile_name: str, **kwargs: Any ) -> LROPoller[None]: @@ -2219,9 +2165,6 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def list_by_resource_group( self, resource_group_name: str, **kwargs: Any ) -> Iterable["_models.AssetEndpointProfile"]: @@ -2288,7 +2231,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.AssetEndpointProfile], deserialized["value"]) + list_of_elem = _deserialize(List[_models.AssetEndpointProfile], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, iter(list_of_elem) @@ -2312,9 +2255,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) @distributed_trace - @api_version_validation( - params_added_on={"2024-09-01-preview": ["base_url"]}, - ) def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.AssetEndpointProfile"]: """List AssetEndpointProfile resources by subscription ID. @@ -2375,7 +2315,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.AssetEndpointProfile], deserialized["value"]) + list_of_elem = _deserialize(List[_models.AssetEndpointProfile], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, iter(list_of_elem) @@ -2419,9 +2359,7 @@ def __init__(self, *args, **kwargs): @distributed_trace @api_version_validation( method_added_on="2024-09-01-preview", - params_added_on={ - "2024-09-01-preview": ["base_url", "api_version", "subscription_id", "billing_container_name", "accept"] - }, + params_added_on={"2024-09-01-preview": ["api_version", "subscription_id", "billing_container_name", "accept"]}, ) def get(self, billing_container_name: str, **kwargs: Any) -> _models.BillingContainer: """Get a BillingContainer. @@ -2487,7 +2425,7 @@ def get(self, billing_container_name: str, **kwargs: Any) -> _models.BillingCont @distributed_trace @api_version_validation( method_added_on="2024-09-01-preview", - params_added_on={"2024-09-01-preview": ["base_url", "api_version", "subscription_id", "accept"]}, + params_added_on={"2024-09-01-preview": ["api_version", "subscription_id", "accept"]}, ) def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.BillingContainer"]: """List BillingContainer resources by subscription ID. @@ -2549,7 +2487,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.BillingContainer], deserialized["value"]) + list_of_elem = _deserialize(List[_models.BillingContainer], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, iter(list_of_elem) diff --git a/sdk/deviceregistry/azure-mgmt-deviceregistry/sdk_packaging.toml b/sdk/deviceregistry/azure-mgmt-deviceregistry/sdk_packaging.toml index 4a9347e91c9c..3f02d2a0962e 100644 --- a/sdk/deviceregistry/azure-mgmt-deviceregistry/sdk_packaging.toml +++ b/sdk/deviceregistry/azure-mgmt-deviceregistry/sdk_packaging.toml @@ -3,7 +3,7 @@ package_name = "azure-mgmt-deviceregistry" package_nspkg = "azure-mgmt-nspkg" package_pprint_name = "Deviceregistry Management" package_doc_id = "" -is_stable = false +is_stable = true is_arm = true need_msrestazure = false need_azuremgmtcore = true diff --git a/sdk/deviceregistry/azure-mgmt-deviceregistry/tsp-location.yaml b/sdk/deviceregistry/azure-mgmt-deviceregistry/tsp-location.yaml index 9f4e014c4d8d..5d25153be7cd 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: bb720b097f7c7afa6cdc8246f6fb654ef390993a repo: Azure/azure-rest-api-specs additionalDirectories: