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 22 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 @@ -2,16 +2,81 @@ import "./main.tsp";
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
@@access(OperationStatus.get, Access.internal, "csharp");

@@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");

// JavaScript Client configuration
@@clientName(Microsoft.DeviceRegistry,
"DeviceRegistryManagementClient",
"javascript"
Expand Down
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 @@ -13,6 +13,15 @@ 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"
# Disable generate samples until CodGen support remove operation https://github.com/Azure/autorest.csharp/issues/5191
generate-sample-project: false
"@azure-tools/typespec-java":
package-dir: "azure-resourcemanager-deviceregistry"
flavor: "azure"
Expand Down
Loading