Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 0 additions & 7 deletions specification/ai/Azure.AI.Projects/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ using Azure.ClientGenerator.Core;
// More accurate naming
@@clientName(Azure.AI.Projects.AssetCredentialResponse, "DatasetCredential");

// In Python, the emitter changes "keys" to "keys_property", since there is already
// a "keys" method in the generated code due to usage of MutableMapping. Call it credential_keys instead.
@@clientName(Azure.AI.Projects.CustomCredential.keys,
"credential_keys",
"python"
);

// Less generic names for C# SDK (avoid one-word class names)
@@clientName(Azure.AI.Projects.Connection, "ConnectionProperties", "csharp");
@@clientName(Azure.AI.Projects.Deployment, "AssetDeployment", "csharp");
Expand Down
5 changes: 2 additions & 3 deletions specification/ai/Azure.AI.Projects/connections/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ model CustomCredential extends BaseCredentials {
@visibility(Lifecycle.Read)
type: CredentialType.custom;

@doc("The credential type")
@visibility(Lifecycle.Read)
keys: Record<string>;
// Secret custom keys
...Record<string>;
}

#suppress "@azure-tools/typespec-azure-core/casing-style"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2242,19 +2242,9 @@
"CustomCredential": {
"type": "object",
"description": "Custom credential definition",
"properties": {
"keys": {
"type": "object",
"description": "The credential type",
"additionalProperties": {
"type": "string"
},
"readOnly": true
}
"additionalProperties": {
"type": "string"
},
"required": [
"keys"
],
"allOf": [
{
"$ref": "#/definitions/BaseCredentials"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1443,19 +1443,9 @@
"CustomCredential": {
"type": "object",
"description": "Custom credential definition",
"properties": {
"keys": {
"type": "object",
"description": "The credential type",
"additionalProperties": {
"type": "string"
},
"readOnly": true
}
"additionalProperties": {
"type": "string"
},
"required": [
"keys"
],
"allOf": [
{
"$ref": "#/definitions/BaseCredentials"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1443,19 +1443,9 @@
"CustomCredential": {
"type": "object",
"description": "Custom credential definition",
"properties": {
"keys": {
"type": "object",
"description": "The credential type",
"additionalProperties": {
"type": "string"
},
"readOnly": true
}
"additionalProperties": {
"type": "string"
},
"required": [
"keys"
],
"allOf": [
{
"$ref": "#/definitions/BaseCredentials"
Expand Down
Loading