Skip to content
Prev Previous commit
Next Next commit
More
  • Loading branch information
dargilco committed Apr 27, 2025
commit a0265a8e4fee8ea7ee3e7991fd38311d81a911d1
18 changes: 18 additions & 0 deletions specification/ai/Azure.AI.Projects/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ using Azure.ClientGenerator.Core;

@@clientName(Azure.AI.Projects, "AIProjectClient");

// Shorter method names for SDK datasets operations
@@clientName(Azure.AI.Projects.Datasets.listLatest, "list");
@@clientName(Azure.AI.Projects.Datasets.getVersion, "get");
@@clientName(Azure.AI.Projects.Datasets.deleteVersion, "delete");
Expand All @@ -15,7 +16,24 @@ using Azure.ClientGenerator.Core;
"pendingUpload"
);

// Shorter method names for SDK Index operations
@@clientName(Azure.AI.Projects.Indexes.listLatest, "list");
@@clientName(Azure.AI.Projects.Indexes.getVersion, "get");
@@clientName(Azure.AI.Projects.Indexes.deleteVersion, "delete");
@@clientName(Azure.AI.Projects.Indexes.createOrUpdateVersion, "createOrUpdate");

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

// All SDKs hand-write a single public method with boolean "includeCredentials" input parameters
// that calls either on of the internal methods below
@@access(Azure.AI.Projects.Connections.get, Access.internal);
@@access(Azure.AI.Projects.Connections.getWithCredentials, Access.internal);

// For some reason for Python the emitter creates an empty ServicePatternsOperations operation
// class. Mark it as internal here. Apply to all languages just in case.
@@access(Azure.AI.Projects.ServicePatterns, Access.internal);
2 changes: 1 addition & 1 deletion specification/ai/Azure.AI.Projects/connections/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ model EntraIDCredentials extends BaseCredentials {
type: CredentialType.entraId;
}

@doc("Custom credential defintion")
@doc("Custom credential definition")
model CustomCredential extends BaseCredentials {
@doc("The credential type")
@visibility(Lifecycle.Read)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2379,7 +2379,7 @@
},
"CustomCredential": {
"type": "object",
"description": "Custom credential defintion",
"description": "Custom credential definition",
"properties": {
"keys": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@
},
"CustomCredential": {
"type": "object",
"description": "Custom credential defintion",
"description": "Custom credential definition",
"properties": {
"keys": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@
},
"CustomCredential": {
"type": "object",
"description": "Custom credential defintion",
"description": "Custom credential definition",
"properties": {
"keys": {
"type": "object",
Expand Down
Loading