Skip to content

[AutoPR @azure/arm-containerservicefleet] Release the Fleet 2025-04-01-preview API #15675

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
53 changes: 42 additions & 11 deletions sdk/containerservice/arm-containerservicefleet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Release History

## 2.0.0 (2025-04-16)
## 2.0.0-beta.1 (2025-05-13)
Compared with version 1.1.0

### Features Added

- Added operation group AutoUpgradeProfileOperationsOperations
- Added operation group AutoUpgradeProfilesOperations
- Added operation group GatesOperations
- Added operation FleetMembersOperations.create
- Added operation FleetMembersOperations.delete
- Added operation FleetMembersOperations.updateAsync
Expand Down Expand Up @@ -37,15 +39,31 @@
- Added Interface FleetStatus
- Added Interface FleetsUpdateAsyncOptionalParams
- Added Interface FleetUpdateStrategyProperties
- Added Interface Gate
- Added Interface GateConfiguration
- Added Interface GatePatch
- Added Interface GatePatchProperties
- Added Interface GateProperties
- Added Interface GatesGetOptionalParams
- Added Interface GatesListByFleetOptionalParams
- Added Interface GatesUpdateOptionalParams
- Added Interface GateTarget
- Added Interface GenerateResponse
- Added Interface PagedAsyncIterableIterator
- Added Interface PageSettings
- Added Interface RestorePollerOptions
- Added Interface UpdateRunGateStatus
- Added Interface UpdateRunGateTargetProperties
- Added Interface UpdateRunProperties
- Added Type Alias AutoUpgradeLastTriggerStatus
- Added Type Alias AutoUpgradeNodeImageSelectionType
- Added Type Alias AutoUpgradeProfileProvisioningState
- Added Type Alias ContinuablePage
- Added Type Alias GateProvisioningState
- Added Type Alias GateState
- Added Type Alias GateTargetId
- Added Type Alias GateType
- Added Type Alias Timing
- Added Type Alias UpgradeChannel
- Interface APIServerAccessProfile has a new optional parameter enableVnetIntegration
- Interface APIServerAccessProfile has a new optional parameter subnetId
Expand All @@ -54,25 +72,28 @@
- Interface FleetMemberUpdate has a new optional parameter properties
- Interface FleetUpdateStrategy has a new optional parameter properties
- Interface NodeImageSelection has a new optional parameter customNodeImageVersions
- Interface UpdateGroup has a new optional parameter afterGates
- Interface UpdateGroup has a new optional parameter beforeGates
- Interface UpdateGroupStatus has a new optional parameter afterGates
- Interface UpdateGroupStatus has a new optional parameter beforeGates
- Interface UpdateRun has a new optional parameter properties
- Interface UpdateStage has a new optional parameter afterGates
- Interface UpdateStage has a new optional parameter beforeGates
- Interface UpdateStageStatus has a new optional parameter afterGates
- Interface UpdateStageStatus has a new optional parameter beforeGates
- Added Enum KnownAutoUpgradeLastTriggerStatus
- Added Enum KnownAutoUpgradeNodeImageSelectionType
- Added Enum KnownAutoUpgradeProfileProvisioningState
- Added Enum KnownGateProvisioningState
- Added Enum KnownGateState
- Added Enum KnownGateType
- Added Enum KnownTiming
- Added Enum KnownUpgradeChannel
- Added Enum KnownVersions
- Enum KnownManagedServiceIdentityType has a new value SystemAndUserAssigned
- Enum KnownNodeImageSelectionType has a new value Custom
- Enum KnownUpdateState has a new value Pending
- Added function restorePoller
- Type of parameter info of interface ErrorAdditionalInfo is changed from Record<string, unknown> to Record<string, any>
- Type of parameter tags of interface FleetPatch is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Type of parameter userAssignedIdentities of interface ManagedServiceIdentity is changed from {
[propertyName: string]: UserAssignedIdentity;
} to Record<string, UserAssignedIdentity>
- Type of parameter tags of interface TrackedResource is changed from {
[propertyName: string]: string;
} to Record<string, string>

### Breaking Changes

Expand Down Expand Up @@ -128,6 +149,16 @@
- Interface UpdateRunsSkipOptionalParams no longer has parameter resumeFrom
- Interface UpdateRunsStartOptionalParams no longer has parameter resumeFrom
- Interface UpdateRunsStopOptionalParams no longer has parameter resumeFrom
- Type of parameter info of interface ErrorAdditionalInfo is changed from Record<string, unknown> to Record<string, any>
- Type of parameter tags of interface FleetPatch is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Type of parameter userAssignedIdentities of interface ManagedServiceIdentity is changed from {
[propertyName: string]: UserAssignedIdentity;
} to Record<string, UserAssignedIdentity>
- Type of parameter tags of interface TrackedResource is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Class ContainerServiceFleetClient no longer has parameter $host
- Class ContainerServiceFleetClient no longer has parameter apiVersion
- Class ContainerServiceFleetClient no longer has parameter subscriptionId
Expand Down
19 changes: 9 additions & 10 deletions sdk/containerservice/arm-containerservicefleet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Install the Azure ContainerServiceFleet client library for JavaScript with `npm`
npm install @azure/arm-containerservicefleet
```

### Create and authenticate a `ContainerServiceFleetClient`
### Create and authenticate a `ContainerServiceClient`

To create a client object to access the Azure ContainerServiceFleet API, you will need the `endpoint` of your Azure ContainerServiceFleet resource and a `credential`. The Azure ContainerServiceFleet client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure ContainerServiceFleet resource in the [Azure Portal][azure_portal].
Expand All @@ -52,25 +52,24 @@ For more information about how to create an Azure AD Application check out [this
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.

```ts snippet:ReadmeSampleCreateClient_Node
import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet";
import { ContainerServiceClient } from "@azure/arm-containerservicefleet";
import { DefaultAzureCredential } from "@azure/identity";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new ContainerServiceFleetClient(new DefaultAzureCredential(), subscriptionId);
const client = new ContainerServiceClient(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 { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet";
import { ContainerServiceClient } from "@azure/arm-containerservicefleet";

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


Expand All @@ -79,9 +78,9 @@ To use this client library in the browser, first you need to use a bundler. For

## Key concepts

### ContainerServiceFleetClient
### ContainerServiceClient

`ContainerServiceFleetClient` is the primary interface for developers using the Azure ContainerServiceFleet client library. Explore the methods on this client object to understand the different features of the Azure ContainerServiceFleet service that you can access.
`ContainerServiceClient` is the primary interface for developers using the Azure ContainerServiceFleet client library. Explore the methods on this client object to understand the different features of the Azure ContainerServiceFleet service that you can access.

## Troubleshooting

Expand Down
6 changes: 0 additions & 6 deletions sdk/containerservice/arm-containerservicefleet/assets.json

This file was deleted.

49 changes: 38 additions & 11 deletions sdk/containerservice/arm-containerservicefleet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/arm-containerservicefleet",
"version": "2.0.0",
"version": "2.0.0-beta.1",
"description": "A generated SDK for ContainerServiceClient.",
"engines": {
"node": ">=18.0.0"
Expand All @@ -16,6 +16,7 @@
"./api/autoUpgradeProfiles": "./src/api/autoUpgradeProfiles/index.ts",
"./api/fleetUpdateStrategies": "./src/api/fleetUpdateStrategies/index.ts",
"./api/updateRuns": "./src/api/updateRuns/index.ts",
"./api/gates": "./src/api/gates/index.ts",
"./api/fleetMembers": "./src/api/fleetMembers/index.ts",
"./api/fleets": "./src/api/fleets/index.ts",
"./api/operations": "./src/api/operations/index.ts",
Expand Down Expand Up @@ -70,9 +71,9 @@
"@azure/abort-controller": "^2.1.2",
"@azure/core-auth": "^1.9.0",
"@azure/core-lro": "^3.1.0",
"@azure/core-rest-pipeline": "^1.19.1",
"@azure/core-util": "^1.11.0",
"@azure/logger": "^1.1.4",
"@azure/core-rest-pipeline": "^1.20.0",
"@azure/core-util": "^1.12.0",
"@azure/logger": "^1.2.0",
"tslib": "^2.8.1"
},
"devDependencies": {
Expand All @@ -81,33 +82,41 @@
"@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
"@azure/identity": "^4.8.0",
"@azure/identity": "^4.9.1",
"@types/node": "^18.0.0",
"@vitest/browser": "^3.0.9",
"@vitest/coverage-istanbul": "^3.0.9",
"dotenv": "^16.0.0",
"eslint": "^9.9.0",
"playwright": "^1.51.1",
"playwright": "^1.52.0",
"typescript": "~5.8.2",
"vitest": "^3.0.9"
},
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"build:samples": "tsc -p tsconfig.samples.json && dev-tool samples publish -f",
"build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"",
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"execute:samples": "dev-tool samples run samples-dev",
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"",
"generate:client": "echo skipped",
"lint": "echo skipped",
"lint:fix": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
"integration-test:node": "echo skipped",
"lint": "eslint package.json api-extractor.json src test",
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
"test": "npm run test:node && npm run test:browser",
"test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
"test:browser": "echo skipped",
"test:node": "dev-tool run test:vitest",
"test:node:esm": "dev-tool run test:vitest --esm",
"update-snippets": "dev-tool run update-snippets"
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
"unit-test:node": "dev-tool run test:vitest",
"update-snippets": "dev-tool run update-snippets",
"test:node:esm": "dev-tool run test:vitest --esm"
},
"//sampleConfiguration": {
"productName": "@azure/arm-containerservicefleet",
Expand Down Expand Up @@ -229,6 +238,24 @@
"default": "./dist/commonjs/api/updateRuns/index.js"
}
},
"./api/gates": {
"browser": {
"types": "./dist/browser/api/gates/index.d.ts",
"default": "./dist/browser/api/gates/index.js"
},
"react-native": {
"types": "./dist/react-native/api/gates/index.d.ts",
"default": "./dist/react-native/api/gates/index.js"
},
"import": {
"types": "./dist/esm/api/gates/index.d.ts",
"default": "./dist/esm/api/gates/index.js"
},
"require": {
"types": "./dist/commonjs/api/gates/index.d.ts",
"default": "./dist/commonjs/api/gates/index.js"
}
},
"./api/fleetMembers": {
"browser": {
"types": "./dist/browser/api/fleetMembers/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## API Report File for "@azure/arm-containerservicefleet"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts

import { Client } from '@azure-rest/core-client';
import { OperationOptions } from '@azure-rest/core-client';
import { OperationState } from '@azure/core-lro';
import { PollerLike } from '@azure/core-lro';

// @public
export interface GatesGetOptionalParams extends OperationOptions {
}

// @public
export interface GatesListByFleetOptionalParams extends OperationOptions {
}

// @public
export interface GatesUpdateOptionalParams extends OperationOptions {
ifMatch?: string;
ifNoneMatch?: string;
updateIntervalInMs?: number;
}

// @public
export function get(context: ContainerServiceFleetContext, resourceGroupName: string, fleetName: string, gateName: string, options?: GatesGetOptionalParams): Promise<Gate>;

// @public
export function listByFleet(context: ContainerServiceFleetContext, resourceGroupName: string, fleetName: string, options?: GatesListByFleetOptionalParams): PagedAsyncIterableIterator<Gate>;

// @public
export function update(context: ContainerServiceFleetContext, resourceGroupName: string, fleetName: string, gateName: string, properties: GatePatch, options?: GatesUpdateOptionalParams): PollerLike<OperationState<Gate>, Gate>;

// (No @packageDocumentation comment for this package)

```
Loading