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 31 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
1 change: 1 addition & 0 deletions cspell.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '0.2'

Check failure on line 1 in cspell.yaml

View workflow job for this annotation

GitHub Actions / Protected Files

File 'cspell.yaml' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections.
language: en
flagWords:
- teh
Expand Down Expand Up @@ -43,6 +43,7 @@
- localizable
- mbps
- mgmt
- mqtt
ArthurMa1978 marked this conversation as resolved.
Show resolved Hide resolved
- odata
- onboarded
- payg
Expand Down
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,17 +1,97 @@
import "./main.tsp";

Check failure on line 1 in specification/deviceregistry/DeviceRegistry.Management/client.tsp

View workflow job for this annotation

GitHub Actions / Protected Files

File 'specification/deviceregistry/DeviceRegistry.Management/client.tsp' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections.
import "@azure-tools/typespec-client-generator-core";

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

// Java Client configuration
@@clientNamespace(Microsoft.DeviceRegistry,
"com.azure.resourcemanager.deviceregistry",
"java"
);
@@clientName(Microsoft.DeviceRegistry, "DeviceRegistryMgmt", "python");

@@clientName(Microsoft.DeviceRegistry,
"DeviceRegistryManagementClient",
"java"
);

// Python Client configuration
@@clientName(Microsoft.DeviceRegistry, "DeviceRegistryMgmt", "python");

// CSharp Client configuration
@@scope(OperationStatus.get, "!csharp");

@@clientName(Asset, "DeviceRegistryAsset", "csharp");
davidemontanari marked this conversation as resolved.
Show resolved Hide resolved
@@clientName(AssetProperties.enabled, "IsEnabled", "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");

@@alternateType(SchemaRegistryProperties.storageAccountContainerUrl,
url,
"csharp"
);
@@alternateType(AssetProperties.manufacturerUri, url, "csharp");
@@alternateType(AssetProperties.documentationUri, url, "csharp");
@@alternateType(BillingContainer.etag, Azure.Core.eTag, "csharp");
@@alternateType(DiscoveredAssetProperties.manufacturerUri, url, "csharp");
@@alternateType(DiscoveredAssetProperties.documentationUri, url, "csharp");
@@alternateType(SchemaRegistryProperties.storageAccountContainerUrl,
url,
"csharp"
);

// JavaScript Client configuration
@@clientName(Microsoft.DeviceRegistry,
"DeviceRegistryManagementClient",
"javascript"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "@typespec/http";

Check failure on line 1 in specification/deviceregistry/DeviceRegistry.Management/main.tsp

View workflow job for this annotation

GitHub Actions / Protected Files

File 'specification/deviceregistry/DeviceRegistry.Management/main.tsp' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections.
import "@typespec/rest";
import "@typespec/versioning";
import "@azure-tools/typespec-azure-resource-manager";
Expand Down Expand Up @@ -29,16 +29,19 @@
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
@@ -1,4 +1,4 @@
emit:

Check failure on line 1 in specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml

View workflow job for this annotation

GitHub Actions / Protected Files

File 'specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections.
- "@azure-tools/typespec-autorest"
parameters:
"service-dir":
Expand All @@ -13,6 +13,13 @@
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 Down
Loading