Skip to content

Commit d61633f

Browse files
author
SDKAuto
committed
CodeGen from PR 32938 in Azure/azure-rest-api-specs
Merge 0a04a5454a0f5616f7cf7d6e728c8d0b7a8c12ba into 535377f6ef91e9d847bbee77d55871eb8b37b7b2
1 parent 1f7312f commit d61633f

File tree

6 files changed

+6
-67
lines changed

6 files changed

+6
-67
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"commit": "812060f2268dc35ed8866bcbaf94aa767cf87c8d",
2+
"commit": "8f6744026f8f69f599f4713dadf1109f04e23a31",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"typespec_src": "specification/deviceregistry/DeviceRegistry.Management",
5-
"@azure-tools/typespec-python": "0.38.4"
5+
"@azure-tools/typespec-python": "0.39.1"
66
}

sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/_serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def from_dict(
411411
:param function key_extractors: A key extractor function.
412412
:param str content_type: JSON by default, set application/xml if XML.
413413
:returns: An instance of this model
414-
:raises: DeserializationError if something went wrong
414+
:raises DeserializationError: if something went wrong
415415
:rtype: Self
416416
"""
417417
deserializer = Deserializer(cls._infer_class_models())

sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0"
9+
VERSION = "1.0.0b1"

sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/models/_models.py

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
class Resource(_model_base.Model):
2222
"""Common fields that are returned in the response for all Azure Resource Manager resources.
2323
24-
Readonly variables are only populated by the server, and will be ignored when sending a request.
25-
2624
:ivar id: Fully qualified resource ID for the resource. Ex -
2725
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
2826
:vartype id: str
@@ -52,9 +50,6 @@ class TrackedResource(Resource):
5250
"""The resource model definition for an Azure Resource Manager tracked top level resource which
5351
has 'tags' and a 'location'.
5452
55-
Readonly variables are only populated by the server, and will be ignored when sending a request.
56-
57-
5853
:ivar id: Fully qualified resource ID for the resource. Ex -
5954
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
6055
:vartype id: str
@@ -99,9 +94,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
9994
class Asset(TrackedResource):
10095
"""Asset definition.
10196
102-
Readonly variables are only populated by the server, and will be ignored when sending a request.
103-
104-
10597
:ivar id: Fully qualified resource ID for the resource. Ex -
10698
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
10799
:vartype id: str
@@ -154,9 +146,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
154146
class AssetEndpointProfile(TrackedResource):
155147
"""Asset Endpoint Profile definition.
156148
157-
Readonly variables are only populated by the server, and will be ignored when sending a request.
158-
159-
160149
:ivar id: Fully qualified resource ID for the resource. Ex -
161150
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
162151
:vartype id: str
@@ -209,9 +198,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
209198
class AssetEndpointProfileProperties(_model_base.Model):
210199
"""Defines the Asset Endpoint Profile properties.
211200
212-
Readonly variables are only populated by the server, and will be ignored when sending a request.
213-
214-
215201
:ivar uuid: Globally unique, immutable, non-reusable id.
216202
:vartype uuid: str
217203
: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:
298284
class AssetEndpointProfileStatus(_model_base.Model):
299285
"""Defines the asset endpoint profile status properties.
300286
301-
Readonly variables are only populated by the server, and will be ignored when sending a request.
302-
303287
:ivar errors: Array object to transfer and persist errors that originate from the Edge.
304288
:vartype errors: list[~azure.mgmt.deviceregistry.models.AssetEndpointProfileStatusError]
305289
"""
@@ -311,8 +295,6 @@ class AssetEndpointProfileStatus(_model_base.Model):
311295
class AssetEndpointProfileStatusError(_model_base.Model):
312296
"""Defines the asset endpoint profile status error properties.
313297
314-
Readonly variables are only populated by the server, and will be ignored when sending a request.
315-
316298
:ivar code: Error code for classification of errors (ex: 400, 404, 500, etc.).
317299
:vartype code: int
318300
: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:
423405
class AssetProperties(_model_base.Model):
424406
"""Defines the asset properties.
425407
426-
Readonly variables are only populated by the server, and will be ignored when sending a request.
427-
428-
429408
:ivar uuid: Globally unique, immutable, non-reusable id.
430409
:vartype uuid: str
431410
:ivar enabled: Enabled/Disabled status of the asset.
@@ -606,8 +585,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
606585
class AssetStatus(_model_base.Model):
607586
"""Defines the asset status properties.
608587
609-
Readonly variables are only populated by the server, and will be ignored when sending a request.
610-
611588
:ivar errors: Array object to transfer and persist errors that originate from the Edge.
612589
:vartype errors: list[~azure.mgmt.deviceregistry.models.AssetStatusError]
613590
:ivar version: A read only incremental counter indicating the number of times the configuration
@@ -637,9 +614,6 @@ class AssetStatus(_model_base.Model):
637614
class AssetStatusDataset(_model_base.Model):
638615
"""Defines the asset status dataset properties.
639616
640-
Readonly variables are only populated by the server, and will be ignored when sending a request.
641-
642-
643617
:ivar name: The name of the dataset. Must be unique within the status.datasets array. This name
644618
is used to correlate between the spec and status dataset information. Required.
645619
:vartype name: str
@@ -659,8 +633,6 @@ class AssetStatusDataset(_model_base.Model):
659633
class AssetStatusError(_model_base.Model):
660634
"""Defines the asset status error properties.
661635
662-
Readonly variables are only populated by the server, and will be ignored when sending a request.
663-
664636
:ivar code: Error code for classification of errors (ex: 400, 404, 500, etc.).
665637
:vartype code: int
666638
:ivar message: Human readable helpful error message to provide additional context for error
@@ -678,9 +650,6 @@ class AssetStatusError(_model_base.Model):
678650
class AssetStatusEvent(_model_base.Model):
679651
"""Defines the asset status event properties.
680652
681-
Readonly variables are only populated by the server, and will be ignored when sending a request.
682-
683-
684653
:ivar name: The name of the event. Must be unique within the status.events array. This name is
685654
used to correlate between the spec and status event information. Required.
686655
:vartype name: str
@@ -872,7 +841,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
872841
class Authentication(_model_base.Model):
873842
"""Definition of the client authentication mechanism to the server.
874843
875-
876844
:ivar method: Defines the method to authenticate the user of the client at the server.
877845
Required. Known values are: "Anonymous", "Certificate", and "UsernamePassword".
878846
:vartype method: str or ~azure.mgmt.deviceregistry.models.AuthenticationMethod
@@ -924,8 +892,6 @@ class ProxyResource(Resource):
924892
"""The resource model definition for a Azure Resource Manager proxy resource. It will not have
925893
tags and a location.
926894
927-
Readonly variables are only populated by the server, and will be ignored when sending a request.
928-
929895
:ivar id: Fully qualified resource ID for the resource. Ex -
930896
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
931897
:vartype id: str
@@ -944,8 +910,6 @@ class BillingContainer(ProxyResource):
944910
"""billingContainer Model as Azure resource whose sole purpose is to keep track of billables
945911
resources under a subscription.
946912
947-
Readonly variables are only populated by the server, and will be ignored when sending a request.
948-
949913
:ivar id: Fully qualified resource ID for the resource. Ex -
950914
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
951915
:vartype id: str
@@ -991,8 +955,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
991955
class BillingContainerProperties(_model_base.Model):
992956
"""Defines the billingContainer properties.
993957
994-
Readonly variables are only populated by the server, and will be ignored when sending a request.
995-
996958
:ivar provisioning_state: Provisioning state of the resource. Known values are: "Succeeded",
997959
"Failed", "Canceled", "Accepted", and "Deleting".
998960
:vartype provisioning_state: str or ~azure.mgmt.deviceregistry.models.ProvisioningState
@@ -1008,7 +970,6 @@ class BillingContainerProperties(_model_base.Model):
1008970
class DataPointBase(_model_base.Model):
1009971
"""Defines the data point properties.
1010972
1011-
1012973
:ivar name: The name of the data point. Required.
1013974
:vartype name: str
1014975
: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:
10541015
class DataPoint(DataPointBase):
10551016
"""Defines the data point properties.
10561017
1057-
10581018
:ivar name: The name of the data point. Required.
10591019
:vartype name: str
10601020
: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:
11001060
class Dataset(_model_base.Model):
11011061
"""Defines the dataset properties.
11021062
1103-
11041063
:ivar name: Name of the dataset. Required.
11051064
:vartype name: str
11061065
:ivar dataset_configuration: Stringified JSON that contains connector-specific JSON string that
@@ -1152,8 +1111,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
11521111
class ErrorAdditionalInfo(_model_base.Model):
11531112
"""The resource management error additional info.
11541113
1155-
Readonly variables are only populated by the server, and will be ignored when sending a request.
1156-
11571114
:ivar type: The additional info type.
11581115
:vartype type: str
11591116
:ivar info: The additional info.
@@ -1169,8 +1126,6 @@ class ErrorAdditionalInfo(_model_base.Model):
11691126
class ErrorDetail(_model_base.Model):
11701127
"""The error detail.
11711128
1172-
Readonly variables are only populated by the server, and will be ignored when sending a request.
1173-
11741129
:ivar code: The error code.
11751130
:vartype code: str
11761131
:ivar message: The error message.
@@ -1229,7 +1184,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
12291184
class EventBase(_model_base.Model):
12301185
"""Defines the event properties.
12311186
1232-
12331187
:ivar name: The name of the event. Required.
12341188
:vartype name: str
12351189
: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:
12801234
class Event(EventBase):
12811235
"""Defines the event properties.
12821236
1283-
12841237
:ivar name: The name of the event. Required.
12851238
:vartype name: str
12861239
: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:
13281281
class ExtendedLocation(_model_base.Model):
13291282
"""The extended location.
13301283
1331-
13321284
:ivar type: The extended location type. Required.
13331285
:vartype type: str
13341286
:ivar name: The extended location name. Required.
@@ -1362,9 +1314,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
13621314
class MessageSchemaReference(_model_base.Model):
13631315
"""Defines the message schema reference properties.
13641316
1365-
Readonly variables are only populated by the server, and will be ignored when sending a request.
1366-
1367-
13681317
:ivar schema_registry_namespace: The message schema registry namespace. Required.
13691318
:vartype schema_registry_namespace: str
13701319
:ivar schema_name: The message schema name. Required.
@@ -1384,8 +1333,6 @@ class MessageSchemaReference(_model_base.Model):
13841333
class Operation(_model_base.Model):
13851334
"""Details of a REST API operation, returned from the Resource Provider Operations API.
13861335
1387-
Readonly variables are only populated by the server, and will be ignored when sending a request.
1388-
13891336
:ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
13901337
"Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
13911338
:vartype name: str
@@ -1443,8 +1390,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
14431390
class OperationDisplay(_model_base.Model):
14441391
"""Localized display information for and operation.
14451392
1446-
Readonly variables are only populated by the server, and will be ignored when sending a request.
1447-
14481393
:ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft
14491394
Monitoring Insights" or "Microsoft Compute".
14501395
:vartype provider: str
@@ -1476,9 +1421,6 @@ class OperationDisplay(_model_base.Model):
14761421
class OperationStatusResult(_model_base.Model):
14771422
"""The current status of an async operation.
14781423
1479-
Readonly variables are only populated by the server, and will be ignored when sending a request.
1480-
1481-
14821424
:ivar id: Fully qualified ID for the async operation.
14831425
:vartype id: str
14841426
:ivar name: Name of the async operation.
@@ -1622,7 +1564,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
16221564
class Topic(_model_base.Model):
16231565
"""Object that describes the topic information.
16241566
1625-
16261567
:ivar path: The topic path for messages published to an MQTT broker. Required.
16271568
:vartype path: str
16281569
: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:
16601601
class UsernamePasswordCredentials(_model_base.Model):
16611602
"""The credentials for authentication mode UsernamePassword.
16621603
1663-
16641604
:ivar username_secret_name: The name of the secret containing the username. Required.
16651605
:vartype username_secret_name: str
16661606
: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:
16981638
class X509Credentials(_model_base.Model):
16991639
"""The x509 certificate for authentication mode Certificate.
17001640
1701-
17021641
:ivar certificate_secret_name: The name of the secret containing the certificate and private
17031642
key (e.g. stored as .der/.pem or .der/.pfx). Required.
17041643
:vartype certificate_secret_name: str

sdk/deviceregistry/azure-mgmt-deviceregistry/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
url="https://github.com/Azure/azure-sdk-for-python",
5050
keywords="azure, azure sdk", # update with search keywords relevant to the azure service / product
5151
classifiers=[
52-
"Development Status :: 5 - Production/Stable",
52+
"Development Status :: 4 - Beta",
5353
"Programming Language :: Python",
5454
"Programming Language :: Python :: 3 :: Only",
5555
"Programming Language :: Python :: 3",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
directory: specification/deviceregistry/DeviceRegistry.Management
2-
commit: 812060f2268dc35ed8866bcbaf94aa767cf87c8d
2+
commit: 8f6744026f8f69f599f4713dadf1109f04e23a31
33
repo: Azure/azure-rest-api-specs
44
additionalDirectories:

0 commit comments

Comments
 (0)