Skip to content

Commit

Permalink
CodeGen from PR 32790 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 22e85ac6cfbc96fc105b00d7d39efd618da48079 into cce7b0f87b776c2c8fe4b23020cc05029fc9d723
  • Loading branch information
SDKAuto committed Mar 3, 2025
1 parent 3352cfc commit 49f9403
Show file tree
Hide file tree
Showing 46 changed files with 8,231 additions and 4,890 deletions.
2,369 changes: 1,212 additions & 1,157 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,129 @@
# Release History

## 1.0.0-beta.4 (2025-03-03)
Compared with version 1.0.0-beta.3

### Features Added

- Added operation ManagedClusters.beginStartFaultSimulation
- Added operation ManagedClusters.beginStartFaultSimulationAndWait
- Added operation ManagedClusters.beginStopFaultSimulation
- Added operation ManagedClusters.beginStopFaultSimulationAndWait
- Added operation ManagedClusters.getFaultSimulation
- Added operation ManagedClusters.listFaultSimulation
- Added operation NodeTypes.beginDeallocate
- Added operation NodeTypes.beginDeallocateAndWait
- Added operation NodeTypes.beginRedeploy
- Added operation NodeTypes.beginRedeployAndWait
- Added operation NodeTypes.beginStart
- Added operation NodeTypes.beginStartAndWait
- Added operation NodeTypes.beginStartFaultSimulation
- Added operation NodeTypes.beginStartFaultSimulationAndWait
- Added operation NodeTypes.beginStopFaultSimulation
- Added operation NodeTypes.beginStopFaultSimulationAndWait
- Added operation NodeTypes.getFaultSimulation
- Added operation NodeTypes.listFaultSimulation
- Added Interface ApplicationTypesDeleteHeaders
- Added Interface ErrorAdditionalInfo
- Added Interface ErrorDetail
- Added Interface ErrorResponse
- Added Interface FaultSimulation
- Added Interface FaultSimulationConstraints
- Added Interface FaultSimulationContent
- Added Interface FaultSimulationDetails
- Added Interface FaultSimulationIdContent
- Added Interface FaultSimulationListResult
- Added Interface ManagedClustersGetFaultSimulationOptionalParams
- Added Interface ManagedClustersListFaultSimulationNextOptionalParams
- Added Interface ManagedClustersListFaultSimulationOptionalParams
- Added Interface ManagedClustersStartFaultSimulationHeaders
- Added Interface ManagedClustersStartFaultSimulationOptionalParams
- Added Interface ManagedClustersStopFaultSimulationHeaders
- Added Interface ManagedClustersStopFaultSimulationOptionalParams
- Added Interface NodeTypeFaultSimulation
- Added Interface NodeTypesDeallocateHeaders
- Added Interface NodeTypesDeallocateOptionalParams
- Added Interface NodeTypesGetFaultSimulationOptionalParams
- Added Interface NodeTypesListFaultSimulationNextOptionalParams
- Added Interface NodeTypesListFaultSimulationOptionalParams
- Added Interface NodeTypesRedeployHeaders
- Added Interface NodeTypesRedeployOptionalParams
- Added Interface NodeTypesStartFaultSimulationHeaders
- Added Interface NodeTypesStartFaultSimulationOptionalParams
- Added Interface NodeTypesStartHeaders
- Added Interface NodeTypesStartOptionalParams
- Added Interface NodeTypesStopFaultSimulationHeaders
- Added Interface NodeTypesStopFaultSimulationOptionalParams
- Added Interface TrackedResource
- Added Interface ZoneFaultSimulationContent
- Added Type Alias ApplicationsDeleteResponse
- Added Type Alias ApplicationTypesDeleteResponse
- Added Type Alias ApplicationTypeVersionsDeleteResponse
- Added Type Alias CreatedByType
- Added Type Alias FaultKind
- Added Type Alias FaultSimulationContentUnion
- Added Type Alias FaultSimulationStatus
- Added Type Alias ManagedClustersDeleteResponse
- Added Type Alias ManagedClustersGetFaultSimulationResponse
- Added Type Alias ManagedClustersListFaultSimulationNextResponse
- Added Type Alias ManagedClustersListFaultSimulationResponse
- Added Type Alias ManagedClustersStartFaultSimulationResponse
- Added Type Alias ManagedClustersStopFaultSimulationResponse
- Added Type Alias NodeTypesDeallocateResponse
- Added Type Alias NodeTypesDeleteNodeResponse
- Added Type Alias NodeTypesDeleteResponse
- Added Type Alias NodeTypesGetFaultSimulationResponse
- Added Type Alias NodeTypesListFaultSimulationNextResponse
- Added Type Alias NodeTypesListFaultSimulationResponse
- Added Type Alias NodeTypesRedeployResponse
- Added Type Alias NodeTypesReimageResponse
- Added Type Alias NodeTypesRestartResponse
- Added Type Alias NodeTypesStartFaultSimulationResponse
- Added Type Alias NodeTypesStartResponse
- Added Type Alias NodeTypesStopFaultSimulationResponse
- Added Type Alias ServicesDeleteResponse
- Added Type Alias SfmcOperationStatus
- Interface ApplicationResource has a new optional parameter location
- Interface ApplicationResource has a new optional parameter tags
- Interface ApplicationTypeResource has a new optional parameter location
- Interface ApplicationTypeResource has a new optional parameter tags
- Interface ApplicationTypeVersionResource has a new optional parameter location
- Interface ApplicationTypeVersionResource has a new optional parameter tags
- Interface ManagedCluster has a new optional parameter etag
- Interface NodeType has a new optional parameter tags
- Interface ServiceResource has a new optional parameter location
- Interface ServiceResource has a new optional parameter tags
- Type of parameter type of interface ServicePlacementPolicy is changed from "InvalidDomain" | "NonPartiallyPlaceService" | "PreferredPrimaryDomain" | "RequiredDomain" | "RequiredDomainDistribution" to "InvalidDomain" | "NonPartiallyPlaceService" | "PreferredPrimaryDomain" | "RequiredDomainDistribution" | "RequiredDomain"
- Added Enum KnownCreatedByType
- Added Enum KnownFaultKind
- Added Enum KnownFaultSimulationStatus
- Added Enum KnownSfmcOperationStatus
- Enum KnownDiskType has a new value PremiumV2LRS
- Enum KnownDiskType has a new value PremiumZRS
- Enum KnownDiskType has a new value StandardSSDZRS

### Breaking Changes

- Interface ProxyResource no longer has parameter location
- Interface ProxyResource no longer has parameter tags
- Interface Resource no longer has parameter etag
- Interface Resource no longer has parameter location
- Interface Resource no longer has parameter tags
- Parameter value of interface ApplicationResourceList is now required
- Parameter value of interface ApplicationTypeResourceList is now required
- Parameter value of interface ApplicationTypeVersionResourceList is now required
- Parameter value of interface ManagedClusterListResult is now required
- Parameter value of interface ManagedVMSizesResult is now required
- Parameter value of interface NodeTypeListResult is now required
- Parameter value of interface NodeTypeListSkuResult is now required
- Parameter value of interface OperationListResult is now required
- Parameter value of interface ServiceResourceList is now required
- Type of parameter supportExpiryUtc of interface ManagedClusterCodeVersionResult is changed from string to Date
- Type of parameter createdByType of interface SystemData is changed from string to CreatedByType
- Type of parameter lastModifiedByType of interface SystemData is changed from string to CreatedByType
- Removed Enum KnownUpgradeMode


## 1.0.0-beta.3 (2024-12-12)
Compared with version 1.0.0-beta.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
Original file line number Diff line number Diff line change
Expand Up @@ -48,34 +48,29 @@ You will also need to **register a new AAD application and grant access to Azure
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).

Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.

```ts snippet:ReadmeSampleCreateClient_Node
import { ServiceFabricManagedClustersManagementClient } from "@azure/arm-servicefabricmanagedclusters";
import { DefaultAzureCredential } from "@azure/identity";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new ServiceFabricManagedClustersManagementClient(
new DefaultAzureCredential(),
subscriptionId,
);
const client = new ServiceFabricManagedClustersManagementClient(new DefaultAzureCredential(), subscriptionId);
```

For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.

```ts snippet:ReadmeSampleCreateClient_Browser
import { InteractiveBrowserCredential } from "@azure/identity";
import { ServiceFabricManagedClustersManagementClient } from "@azure/arm-servicefabricmanagedclusters";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
clientId: "<YOUR_CLIENT_ID>"
});
const client = new ServiceFabricManagedClustersManagementClient(credential, subscriptionId);
```

### JavaScript Bundle

To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).

## Key concepts
Expand Down Expand Up @@ -110,7 +105,7 @@ If you'd like to contribute to this library, please read the [contributing guide

- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fservicefabricmanagedclusters%2Farm-servicefabricmanagedclusters%2FREADME.png)

[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "552b4dd311f90f4a7b2f7adf45461d7a8774a1cc",
"commit": "cc4a66c2d1d9e97c8340dfe0018b51ece93b36d9",
"readme": "specification/servicefabricmanagedclusters/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\servicefabricmanagedclusters\\resource-manager\\readme.md --use=@autorest/[email protected].29 --generate-sample=true",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/servicefabricmanagedclusters/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].16",
"use": "@autorest/[email protected].29"
"release_tool": "@azure-tools/[email protected].21",
"use": "@autorest/typescript@^6.0.12"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "dist/esm/index.d.ts",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": {
"enabled": true
},
Expand All @@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "dist/arm-servicefabricmanagedclusters.d.ts"
"publicTrimmedFilePath": "./types/arm-servicefabricmanagedclusters.d.ts"
},
"messages": {
"tsdocMessageReporting": {
Expand All @@ -28,4 +28,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ServiceFabricManagedClustersManagementClient.",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"engines": {
"node": ">=18.0.0"
},
Expand All @@ -25,22 +25,22 @@
],
"license": "MIT",
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js",
"module": "./dist-esm/src/index.js",
"types": "./dist/commonjs/index.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.1.0",
"@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.6.0",
"@azure/identity": "^4.7.0",
"@azure/logger": "^1.1.4",
"@types/node": "^18.0.0",
"@vitest/browser": "^3.0.5",
"@vitest/coverage-istanbul": "^3.0.5",
"@vitest/browser": "^3.0.6",
"@vitest/coverage-istanbul": "^3.0.6",
"dotenv": "^16.0.0",
"playwright": "^1.50.1",
"typescript": "~5.7.2",
"vitest": "^3.0.5"
"typescript": "~5.6.2",
"vitest": "^3.0.6"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -93,14 +93,6 @@
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-servicefabricmanagedclusters?view=azure-node-preview"
},
"type": "module",
"tshy": {
"project": "./tsconfig.src.json",
Expand Down Expand Up @@ -141,4 +133,4 @@
}
}
}
}
}
Loading

0 comments on commit 49f9403

Please sign in to comment.