Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DeviceRegistry client settings for .Net SDK release #31749

Merged
merged 35 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
72a7125
Update client settings
ArthurMa1978 Dec 3, 2024
a158cce
Update
ArthurMa1978 Dec 3, 2024
2de5c28
update
ArthurMa1978 Dec 4, 2024
09d7967
update
ArthurMa1978 Dec 4, 2024
d2448b0
Remove Operations operation sample
ArthurMa1978 Dec 4, 2024
f918f55
Update PlaywrightTesting client settings for .Net SDK release
ArthurMa1978 Dec 6, 2024
d8d08de
update
ArthurMa1978 Dec 6, 2024
c2e66b3
update
ArthurMa1978 Dec 11, 2024
7f09da0
update
ArthurMa1978 Dec 11, 2024
a9205fe
update
ArthurMa1978 Dec 11, 2024
ca741f3
Merge branch 'main' of https://github.com/ArthurMa1978/azure-rest-api…
ArthurMa1978 Dec 11, 2024
995a73a
Merge branch 'main' into mgmt-dr
ArthurMa1978 Dec 11, 2024
f50dc6a
update
ArthurMa1978 Dec 11, 2024
2314303
update
ArthurMa1978 Dec 11, 2024
be248e9
update
ArthurMa1978 Dec 11, 2024
90e2e96
update
ArthurMa1978 Dec 13, 2024
ae079c6
update
ArthurMa1978 Dec 13, 2024
636a9b3
Temporary disable sampel generation.
ArthurMa1978 Dec 16, 2024
caecf72
update
ArthurMa1978 Dec 16, 2024
bf0d352
Merge branch 'main' of https://github.com/ArthurMa1978/azure-rest-api…
ArthurMa1978 Jan 14, 2025
c94c2c0
Merge branch 'main' into mgmt-dr
ArthurMa1978 Jan 14, 2025
579a37c
revert sample changes
ArthurMa1978 Jan 14, 2025
b23d51d
Merge branch 'main' of https://github.com/ArthurMa1978/azure-rest-api…
ArthurMa1978 Jan 15, 2025
aceaaf2
Merge branch 'main' into mgmt-dr
ArthurMa1978 Jan 15, 2025
c65ffba
Remove an extra space in cSpell.json
danieljurek Jan 15, 2025
24bef5d
update cspell
ArthurMa1978 Jan 15, 2025
7184b05
Merge branch 'main' of https://github.com/ArthurMa1978/azure-rest-api…
ArthurMa1978 Jan 17, 2025
5d514c1
Merge branch 'main' into mgmt-dr
ArthurMa1978 Jan 17, 2025
0715cb1
update
ArthurMa1978 Jan 17, 2025
25668a7
update
ArthurMa1978 Jan 17, 2025
ba38e06
update
ArthurMa1978 Jan 17, 2025
13ff732
Merge branch 'Azure:main' into mgmt-dr
ArthurMa1978 Jan 21, 2025
0ff6c94
update
ArthurMa1978 Jan 21, 2025
f1b8841
Merge branch 'mgmt-dr' of https://github.com/ArthurMa1978/azure-rest-…
ArthurMa1978 Jan 21, 2025
c207b92
update
ArthurMa1978 Jan 22, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ model AssetProperties {
manufacturer?: string;

@doc("Asset manufacturer URI.")
manufacturerUri?: string;
manufacturerUri?: url;
ArthurMa1978 marked this conversation as resolved.
Show resolved Hide resolved

@doc("Asset model name.")
`model`?: string;
Expand All @@ -90,7 +90,7 @@ model AssetProperties {
softwareRevision?: string;

@doc("Reference to the documentation.")
documentationUri?: string;
documentationUri?: url;
ArthurMa1978 marked this conversation as resolved.
Show resolved Hide resolved

@doc("Asset serial number.")
serialNumber?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ model BillingContainer is ProxyResource<BillingContainerProperties> {
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property"
@doc("Resource ETag")
@visibility("read")
etag?: string;
etag?: Azure.Core.eTag;
davidemontanari marked this conversation as resolved.
Show resolved Hide resolved
}

@added(Versions.v2024_09_01_preview)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,63 @@ import "./main.tsp";
import "@azure-tools/typespec-client-generator-core";

using Azure.ClientGenerator.Core;
using Microsoft.DeviceRegistry;

@@access(OperationStatus.get, Access.internal, "csharp");

@@clientName(Microsoft.DeviceRegistry, "DeviceRegistryMgmt", "python");

@@clientName(Asset, "DeviceRegistryAsset", "csharp");
davidemontanari marked this conversation as resolved.
Show resolved Hide resolved
@@clientName(AssetStatus, "DeviceRegistryAssetStatus", "csharp");
@@clientName(AssetStatusDataset, "DeviceRegistryAssetStatusDataset", "csharp");
@@clientName(AssetStatusError, "DeviceRegistryAssetStatusError", "csharp");
@@clientName(AssetStatusEvent, "DeviceRegistryAssetStatusEvent", "csharp");
@@clientName(AssetEndpointProfile,
"DeviceRegistryAssetEndpointProfile",
"csharp"
);
@@clientName(AssetEndpointProfileProperties,
"DeviceRegistryAssetEndpointProfileProperties",
"csharp"
);
@@clientName(DataPoint, "DeviceRegistryDataPoint", "csharp");
@@clientName(DataPointBase, "DeviceRegistryDataPointBase", "csharp");
@@clientName(Dataset, "DeviceRegistryDataset", "csharp");
@@clientName(DiscoveredAsset, "DeviceRegistryDiscoveredAsset", "csharp");
@@clientName(DiscoveredAssetProperties,
"DeviceRegistryDiscoveredAssetProperties",
"csharp"
);
@@clientName(DiscoveredAssetEndpointProfile,
"DeviceRegistryDiscoveredAssetEndpointProfile",
"csharp"
);
@@clientName(Event, "DeviceRegistryEvent", "csharp");
@@clientName(EventBase, "DeviceRegistryEventBase", "csharp");
@@clientName(Format, "DeviceRegistrySchemaFormat", "csharp");
@@clientName(Schema, "DeviceRegistrySchema", "csharp");
@@clientName(SchemaProperties, "DeviceRegistrySchemaProperties", "csharp");
@@clientName(SchemaRegistry, "DeviceRegistrySchemaRegistry", "csharp");
@@clientName(SchemaRegistryProperties,
"DeviceRegistrySchemaRegistryProperties",
"csharp"
);
@@clientName(SchemaType, "DeviceRegistrySchemaType", "csharp");
@@clientName(SchemaVersion, "DeviceRegistrySchemaVersion", "csharp");
@@clientName(SchemaVersionProperties,
"DeviceRegistrySchemaVersionProperties",
"csharp"
);
@@clientName(BillingContainer, "DeviceRegistryBillingContainer", "csharp");
@@clientName(ExtendedLocation, "DeviceRegistryExtendedLocation", "csharp");
@@clientName(ExtendedLocation.type, "ExtendedLocationType", "csharp");
@@clientName(TopicRetainType, "DeviceRegistryTopicRetainType", "csharp");
@@clientName(ProvisioningState, "DeviceRegistryProvisioningState", "csharp");
@@clientName(Authentication, "DeviceRegistryUserAuthentication", "csharp");
ArthurMa1978 marked this conversation as resolved.
Show resolved Hide resolved
@@clientName(Authentication, "DeviceRegistryUserAuthentication", "csharp");
@@clientName(Topic, "DeviceRegistryMqttTopic", "csharp");
ArthurMa1978 marked this conversation as resolved.
Show resolved Hide resolved
@@clientName(UsernamePasswordCredentials,
"DeviceRegistryUsernamePasswordCredentials",
"csharp"
);
@@clientName(X509Credentials, "DeviceRegistryX509Credentials", "csharp");
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ model DiscoveredAssetProperties {
manufacturer?: string;

@doc("Asset manufacturer URI.")
manufacturerUri?: string;
manufacturerUri?: url;
ArthurMa1978 marked this conversation as resolved.
Show resolved Hide resolved

@doc("Asset model name.")
`model`?: string;
Expand All @@ -68,7 +68,7 @@ model DiscoveredAssetProperties {
softwareRevision?: string;

@doc("Reference to the documentation.")
documentationUri?: string;
documentationUri?: url;
ArthurMa1978 marked this conversation as resolved.
Show resolved Hide resolved

@doc("Asset serial number.")
serialNumber?: string;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,19 @@ namespace Microsoft.DeviceRegistry;
enum Versions {
@doc("Microsoft.DeviceRegistry Resource Provider management API version 2023-11-01-preview.")
@useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1)
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
davidemontanari marked this conversation as resolved.
Show resolved Hide resolved
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3)
v2023_11_01_preview: "2023-11-01-preview",

@doc("Microsoft.DeviceRegistry Resource Provider management API version 2024-09-01-preview.")
@useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1)
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
v2024_09_01_preview: "2024-09-01-preview",

@doc("Microsoft.DeviceRegistry Resource Provider management API version 2024-11-01.")
@useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1)
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
v2024_11_01: "2024-11-01",
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ model SchemaRegistryProperties {

@doc("The Storage Account's Container URL where schemas will be stored.")
@visibility("read", "create")
storageAccountContainerUrl: string;
storageAccountContainerUrl: url;

@doc("Provisioning state of the resource.")
@visibility("read")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ options:
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/deviceregistry.json"
use-read-only-status-schema: true
omit-unreachable-types: true
"@azure-tools/typespec-csharp":
package-dir: "Azure.ResourceManager.DeviceRegistry"
flavor: azure
clear-output-folder: true
use-write-core: true
namespace: "{package-dir}"
api-version: "2024-09-01-preview"
"@azure-tools/typespec-java":
package-dir: "azure-resourcemanager-deviceregistry"
flavor: "azure"
Expand All @@ -38,4 +45,4 @@ options:
api-version: "2024-09-01-preview"
linter:
extends:
- "@azure-tools/typespec-azure-rulesets/resource-manager"
- "@azure-tools/typespec-azure-rulesets/resource-manager"
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,7 @@
},
"manufacturerUri": {
"type": "string",
"format": "uri",
"description": "Asset manufacturer URI."
},
"model": {
Expand All @@ -1074,6 +1075,7 @@
},
"documentationUri": {
"type": "string",
"format": "uri",
"description": "Reference to the documentation."
},
"serialNumber": {
Expand Down Expand Up @@ -1206,6 +1208,7 @@
},
"manufacturerUri": {
"type": "string",
"format": "uri",
"description": "Asset manufacturer URI."
},
"model": {
Expand All @@ -1226,6 +1229,7 @@
},
"documentationUri": {
"type": "string",
"format": "uri",
"description": "Reference to the documentation."
},
"serialNumber": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2757,6 +2757,7 @@
},
"manufacturerUri": {
"type": "string",
"format": "uri",
"description": "Asset manufacturer URI."
},
"model": {
Expand All @@ -2777,6 +2778,7 @@
},
"documentationUri": {
"type": "string",
"format": "uri",
"description": "Reference to the documentation."
},
"serialNumber": {
Expand Down Expand Up @@ -2976,6 +2978,7 @@
},
"manufacturerUri": {
"type": "string",
"format": "uri",
"description": "Asset manufacturer URI."
},
"model": {
Expand All @@ -2996,6 +2999,7 @@
},
"documentationUri": {
"type": "string",
"format": "uri",
"description": "Reference to the documentation."
},
"serialNumber": {
Expand Down Expand Up @@ -3160,6 +3164,10 @@
}
}
},
"Azure.Core.eTag": {
"type": "string",
"description": "The ETag (or entity tag) HTTP response header is an identifier for a specific version of a resource.\nIt lets caches be more efficient and save bandwidth, as a web server does not need to resend a full response if the content was not changed.\n\nIt is a string of ASCII characters placed between double quotes, like \"675af34563dc-tr34\"."
},
"BillingContainer": {
"type": "object",
"description": "billingContainer Model as Azure resource whose sole purpose is to keep track of billables resources under a subscription.",
Expand All @@ -3170,7 +3178,7 @@
"x-ms-client-flatten": true
},
"etag": {
"type": "string",
"$ref": "#/definitions/Azure.Core.eTag",
"description": "Resource ETag",
"readOnly": true
}
Expand Down Expand Up @@ -3542,6 +3550,7 @@
},
"manufacturerUri": {
"type": "string",
"format": "uri",
"description": "Asset manufacturer URI."
},
"model": {
Expand All @@ -3562,6 +3571,7 @@
},
"documentationUri": {
"type": "string",
"format": "uri",
"description": "Reference to the documentation."
},
"serialNumber": {
Expand Down Expand Up @@ -3645,6 +3655,7 @@
},
"manufacturerUri": {
"type": "string",
"format": "uri",
"description": "Asset manufacturer URI."
},
"model": {
Expand All @@ -3665,6 +3676,7 @@
},
"documentationUri": {
"type": "string",
"format": "uri",
"description": "Reference to the documentation."
},
"serialNumber": {
Expand Down Expand Up @@ -4119,6 +4131,7 @@
},
"storageAccountContainerUrl": {
"type": "string",
"format": "uri",
"description": "The Storage Account's Container URL where schemas will be stored.",
"x-ms-mutability": [
"read",
Expand Down
Loading
Loading