Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
c08b774
[Automation] Generate SDK based on TypeSpec 0.32.0
azure-sdk Aug 8, 2025
1d7dc55
revert azure-ai-projects
weidongxu-microsoft Aug 8, 2025
b3d9361
revert azure-resourcemanager-connectedcache
weidongxu-microsoft Aug 8, 2025
00c3385
revert azure-resourcemanager-connectedcache
weidongxu-microsoft Aug 8, 2025
6966d54
revert azure-resourcemanager-connectedcache
weidongxu-microsoft Aug 8, 2025
8f80ee5
revert azure-ai-documentintelligence
weidongxu-microsoft Aug 8, 2025
b144fbd
update commit ID for azure-ai-documentintelligence
weidongxu-microsoft Aug 8, 2025
034f28e
revert azure-resourcemanager-hybridconnectivity
weidongxu-microsoft Aug 8, 2025
a408201
revert azure-resourcemanager-iotoperations
weidongxu-microsoft Aug 8, 2025
8e59d73
revert azure-resourcemanager-neonpostgres
weidongxu-microsoft Aug 8, 2025
e99a16b
revert azure-resourcemanager-onlineexperimentation
weidongxu-microsoft Aug 8, 2025
72afc38
revert azure-resourcemanager-onlineexperimentatio
weidongxu-microsoft Aug 8, 2025
bf4105c
revert azure-resourcemanager-sitemanager
weidongxu-microsoft Aug 8, 2025
ffd6b66
revert azure-resourcemanager-sitemanager
weidongxu-microsoft Aug 8, 2025
5d1ce8c
sync deleted files
weidongxu-microsoft Aug 8, 2025
1a3c2e8
revert azure-developer-loadtesting
weidongxu-microsoft Aug 8, 2025
45fc7e1
revert azure-ai-documentintelligence
weidongxu-microsoft Aug 8, 2025
4a5dcef
revert azure-resourcemanager-impactreporting
weidongxu-microsoft Aug 8, 2025
57f225e
revert azure-resourcemanager-secretsstoreextension
weidongxu-microsoft Aug 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Next Next commit
[Automation] Generate SDK based on TypeSpec 0.32.0
  • Loading branch information
azure-sdk committed Aug 8, 2025
commit c08b774532db030c5713124e9b0b1eee43d8b5d9
234 changes: 117 additions & 117 deletions eng/emitter-package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions eng/emitter-package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"main": "dist/src/index.js",
"dependencies": {
"@azure-tools/typespec-java": "0.31.12"
"@azure-tools/typespec-java": "0.32.0"
},
"devDependencies": {
"@azure-tools/typespec-autorest": "0.58.1",
"@azure-tools/typespec-azure-core": "0.58.0",
"@azure-tools/typespec-azure-resource-manager": "0.58.1",
"@azure-tools/typespec-azure-rulesets": "0.58.0",
"@azure-tools/typespec-client-generator-core": "0.58.2",
"@azure-tools/typespec-autorest": "0.59.0",
"@azure-tools/typespec-azure-core": "0.59.0",
"@azure-tools/typespec-azure-resource-manager": "0.59.0",
"@azure-tools/typespec-azure-rulesets": "0.59.0",
"@azure-tools/typespec-client-generator-core": "0.59.0",
"@azure-tools/typespec-liftr-base": "0.8.0",
"@typespec/compiler": "1.2.1",
"@typespec/http": "1.2.1",
"@typespec/openapi": "1.2.1",
"@typespec/rest": "0.72.1",
"@typespec/versioning": "0.72.1",
"@typespec/xml": "0.72.1"
"@typespec/compiler": "1.3.0",
"@typespec/http": "1.3.0",
"@typespec/openapi": "1.3.0",
"@typespec/rest": "0.73.0",
"@typespec/versioning": "0.73.0",
"@typespec/xml": "0.73.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import com.azure.ai.projects.implementation.DatasetsImpl;
import com.azure.ai.projects.implementation.JsonMergePatchHelper;
import com.azure.ai.projects.implementation.models.PagedDatasetVersion;
import com.azure.ai.projects.models.AssetCredentialResult;
import com.azure.ai.projects.models.DatasetVersion;
import com.azure.ai.projects.models.FileDatasetVersion;
Expand Down Expand Up @@ -272,42 +273,6 @@ public Mono<FolderDatasetVersion> createDatasetWithFolder(String name, String ve
});
}

/**
* List all versions of the given DatasetVersion.
* <p><strong>Response Body Schema</strong></p>
*
* <pre>
* {@code
* {
* type: String(uri_file/uri_folder) (Required)
* dataUri: String (Optional, Required on create)
* isReference: Boolean (Optional)
* connectionName: String (Optional)
* id: String (Optional)
* name: String (Required)
* version: String (Required)
* description: String (Optional)
* tags (Optional): {
* String: String (Required)
* }
* }
* }
* </pre>
*
* @param name The name of the resource.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return paged collection of DatasetVersion items as paginated response with {@link PagedFlux}.
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux<BinaryData> listDatasetVersions(String name, RequestOptions requestOptions) {
return this.serviceClient.listDatasetVersionsAsync(name, requestOptions);
}

/**
* List the latest version of each DatasetVersion.
* <p><strong>Response Body Schema</strong></p>
Expand Down Expand Up @@ -471,26 +436,15 @@ public Mono<Response<BinaryData>> createOrUpdateDatasetVersionWithResponse(Strin
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return paged collection of DatasetVersion items as paginated response with {@link PagedFlux}.
* @return paged collection of DatasetVersion items on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux<DatasetVersion> listDatasetVersions(String name) {
// Generated convenience method for listDatasetVersions
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<PagedDatasetVersion> listDatasetVersions(String name) {
// Generated convenience method for listDatasetVersionsWithResponse
RequestOptions requestOptions = new RequestOptions();
PagedFlux<BinaryData> pagedFluxResponse = listDatasetVersions(name, requestOptions);
return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> {
Flux<PagedResponse<BinaryData>> flux = (continuationTokenParam == null)
? pagedFluxResponse.byPage().take(1)
: pagedFluxResponse.byPage(continuationTokenParam).take(1);
return flux.map(pagedResponse -> new PagedResponseBase<Void, DatasetVersion>(pagedResponse.getRequest(),
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
pagedResponse.getValue()
.stream()
.map(protocolMethodData -> protocolMethodData.toObject(DatasetVersion.class))
.collect(Collectors.toList()),
pagedResponse.getContinuationToken(), null));
});
return listDatasetVersionsWithResponse(name, requestOptions).flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(PagedDatasetVersion.class));
}

/**
Expand Down Expand Up @@ -595,4 +549,46 @@ public Mono<DatasetVersion> createOrUpdateDatasetVersion(String name, String ver
.flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(DatasetVersion.class));
}

/**
* List all versions of the given DatasetVersion.
* <p><strong>Response Body Schema</strong></p>
*
* <pre>
* {@code
* {
* value (Required): [
* (Required){
* type: String(uri_file/uri_folder) (Required)
* dataUri: String (Optional, Required on create)
* isReference: Boolean (Optional)
* connectionName: String (Optional)
* id: String (Optional)
* name: String (Required)
* version: String (Required)
* description: String (Optional)
* tags (Optional): {
* String: String (Required)
* }
* }
* ]
* nextLink: String (Optional)
* }
* }
* </pre>
*
* @param name The name of the resource.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return paged collection of DatasetVersion items along with {@link Response} on successful completion of
* {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Response<BinaryData>> listDatasetVersionsWithResponse(String name, RequestOptions requestOptions) {
return this.serviceClient.listDatasetVersionsWithResponseAsync(name, requestOptions);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import com.azure.ai.projects.implementation.DatasetsImpl;
import com.azure.ai.projects.implementation.JsonMergePatchHelper;
import com.azure.ai.projects.implementation.models.PagedDatasetVersion;
import com.azure.ai.projects.models.AssetCredentialResult;
import com.azure.ai.projects.models.DatasetVersion;
import com.azure.ai.projects.models.FileDatasetVersion;
Expand Down Expand Up @@ -257,42 +258,6 @@ public FolderDatasetVersion createDatasetWithFolder(String name, String version,
return datasetVersion;
}

/**
* List all versions of the given DatasetVersion.
* <p><strong>Response Body Schema</strong></p>
*
* <pre>
* {@code
* {
* type: String(uri_file/uri_folder) (Required)
* dataUri: String (Optional, Required on create)
* isReference: Boolean (Optional)
* connectionName: String (Optional)
* id: String (Optional)
* name: String (Required)
* version: String (Required)
* description: String (Optional)
* tags (Optional): {
* String: String (Required)
* }
* }
* }
* </pre>
*
* @param name The name of the resource.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return paged collection of DatasetVersion items as paginated response with {@link PagedIterable}.
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable<BinaryData> listDatasetVersions(String name, RequestOptions requestOptions) {
return this.serviceClient.listDatasetVersions(name, requestOptions);
}

/**
* List the latest version of each DatasetVersion.
* <p><strong>Response Body Schema</strong></p>
Expand Down Expand Up @@ -454,15 +419,14 @@ public Response<BinaryData> createOrUpdateDatasetVersionWithResponse(String name
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return paged collection of DatasetVersion items as paginated response with {@link PagedIterable}.
* @return paged collection of DatasetVersion items.
*/
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable<DatasetVersion> listDatasetVersions(String name) {
// Generated convenience method for listDatasetVersions
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedDatasetVersion listDatasetVersions(String name) {
// Generated convenience method for listDatasetVersionsWithResponse
RequestOptions requestOptions = new RequestOptions();
return serviceClient.listDatasetVersions(name, requestOptions)
.mapPage(bodyItemValue -> bodyItemValue.toObject(DatasetVersion.class));
return listDatasetVersionsWithResponse(name, requestOptions).getValue().toObject(PagedDatasetVersion.class);
}

/**
Expand Down Expand Up @@ -553,4 +517,45 @@ public DatasetVersion createOrUpdateDatasetVersion(String name, String version,
.getValue()
.toObject(DatasetVersion.class);
}

/**
* List all versions of the given DatasetVersion.
* <p><strong>Response Body Schema</strong></p>
*
* <pre>
* {@code
* {
* value (Required): [
* (Required){
* type: String(uri_file/uri_folder) (Required)
* dataUri: String (Optional, Required on create)
* isReference: Boolean (Optional)
* connectionName: String (Optional)
* id: String (Optional)
* name: String (Required)
* version: String (Required)
* description: String (Optional)
* tags (Optional): {
* String: String (Required)
* }
* }
* ]
* nextLink: String (Optional)
* }
* }
* </pre>
*
* @param name The name of the resource.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return paged collection of DatasetVersion items along with {@link Response}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<BinaryData> listDatasetVersionsWithResponse(String name, RequestOptions requestOptions) {
return this.serviceClient.listDatasetVersionsWithResponse(name, requestOptions);
}
}
Loading
Loading