Skip to content

Commit

Permalink
[mgmt] containerservicefleet release (#27057)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazrael2119 authored Sep 13, 2023
1 parent 7b76147 commit 9be0b14
Show file tree
Hide file tree
Showing 73 changed files with 926 additions and 175 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@

# PRLabel: %Mgmt
/sdk/containerservice/arm-containerservice/ @qiaozha @MaryGao
/sdk/containerservice/arm-containerservicefleet/ @qiaozha @MaryGao
/sdk/containerservice/arm-containerservice-rest/ @qiaozha @MaryGao
/sdk/containerservice/ci.mgmt.yml @qiaozha @MaryGao

Expand Down
46 changes: 38 additions & 8 deletions sdk/containerservice/arm-containerservicefleet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,45 @@
# Release History

## 1.0.0-beta.2 (2023-09-08)

**Features**

## 1.0.0-beta.2 (Unreleased)
- Added operation FleetMembers.beginUpdate
- Added operation FleetMembers.beginUpdateAndWait
- Added operation Fleets.beginUpdate
- Added operation Fleets.beginUpdateAndWait
- Added Interface AgentProfile
- Added Interface APIServerAccessProfile
- Added Interface FleetMembersUpdateHeaders
- Added Interface FleetsUpdateHeaders
- Added Interface ManagedServiceIdentity
- Added Interface NodeImageSelection
- Added Interface NodeImageSelectionStatus
- Added Interface NodeImageVersion
- Added Interface UserAssignedIdentity
- Added Type Alias ManagedServiceIdentityType
- Added Type Alias NodeImageSelectionType
- Interface Fleet has a new optional parameter identity
- Interface FleetHubProfile has a new optional parameter agentProfile
- Interface FleetHubProfile has a new optional parameter apiServerAccessProfile
- Interface FleetMembersUpdateOptionalParams has a new optional parameter resumeFrom
- Interface FleetMembersUpdateOptionalParams has a new optional parameter updateIntervalInMs
- Interface FleetPatch has a new optional parameter identity
- Interface FleetsUpdateOptionalParams has a new optional parameter resumeFrom
- Interface FleetsUpdateOptionalParams has a new optional parameter updateIntervalInMs
- Interface ManagedClusterUpdate has a new optional parameter nodeImageSelection
- Interface MemberUpdateStatus has a new optional parameter message
- Interface UpdateRunStatus has a new optional parameter nodeImageSelection
- Added Enum KnownManagedServiceIdentityType
- Added Enum KnownNodeImageSelectionType
- Enum KnownUpdateState has a new value Skipped

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
**Breaking Changes**

- Removed operation FleetMembers.update
- Removed operation Fleets.update


## 1.0.0-beta.1 (2023-06-01)

The package of @azure/arm-containerservicefleet is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
8 changes: 4 additions & 4 deletions sdk/containerservice/arm-containerservicefleet/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "0724e72994ed3c77f76ed0bfa2df3b1f0c33a41b",
"commit": "241397aafd74aaad6161cd0058449f9eb6d5163c",
"readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerservice\\resource-manager\\Microsoft.ContainerService\\fleet\\readme.md --use=@autorest/[email protected].2 --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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerservice\\resource-manager\\Microsoft.ContainerService\\fleet\\readme.md --use=@autorest/[email protected].8 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].0",
"use": "@autorest/[email protected].2"
"release_tool": "@azure-tools/[email protected].2",
"use": "@autorest/[email protected].8"
}
2 changes: 1 addition & 1 deletion sdk/containerservice/arm-containerservicefleet/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "js",
"TagPrefix": "js/containerservice/arm-containerservicefleet",
"Tag": "js/containerservice/arm-containerservicefleet_d8ca3d9234"
"Tag": "js/containerservice/arm-containerservicefleet_45c203d480"
}
10 changes: 5 additions & 5 deletions sdk/containerservice/arm-containerservicefleet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.3",
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-rest-pipeline": "^1.12.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand Down Expand Up @@ -48,8 +48,8 @@
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0",
"ts-node": "^10.0.0"
"ts-node": "^10.0.0",
"@azure/dev-tool": "^1.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -121,4 +121,4 @@
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerservicefleet?view=azure-node-preview"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ import { SimplePollerLike } from '@azure/core-lro';
// @public
export type ActionType = string;

// @public
export interface AgentProfile {
subnetId?: string;
}

// @public
export interface APIServerAccessProfile {
enablePrivateCluster?: boolean;
enableVnetIntegration?: boolean;
subnetId?: string;
}

// @public (undocumented)
export class ContainerServiceFleetClient extends coreClient.ServiceClient {
// (undocumented)
Expand Down Expand Up @@ -66,6 +78,7 @@ export interface ErrorResponse {
export interface Fleet extends TrackedResource {
readonly eTag?: string;
hubProfile?: FleetHubProfile;
identity?: ManagedServiceIdentity;
readonly provisioningState?: FleetProvisioningState;
}

Expand All @@ -82,6 +95,8 @@ export interface FleetCredentialResults {

// @public
export interface FleetHubProfile {
agentProfile?: AgentProfile;
apiServerAccessProfile?: APIServerAccessProfile;
dnsPrefix?: string;
readonly fqdn?: string;
readonly kubernetesVersion?: string;
Expand Down Expand Up @@ -116,9 +131,10 @@ export interface FleetMembers {
beginCreateAndWait(resourceGroupName: string, fleetName: string, fleetMemberName: string, resource: FleetMember, options?: FleetMembersCreateOptionalParams): Promise<FleetMembersCreateResponse>;
beginDelete(resourceGroupName: string, fleetName: string, fleetMemberName: string, options?: FleetMembersDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, fleetName: string, fleetMemberName: string, options?: FleetMembersDeleteOptionalParams): Promise<void>;
beginUpdate(resourceGroupName: string, fleetName: string, fleetMemberName: string, properties: FleetMemberUpdate, options?: FleetMembersUpdateOptionalParams): Promise<SimplePollerLike<OperationState<FleetMembersUpdateResponse>, FleetMembersUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, fleetName: string, fleetMemberName: string, properties: FleetMemberUpdate, options?: FleetMembersUpdateOptionalParams): Promise<FleetMembersUpdateResponse>;
get(resourceGroupName: string, fleetName: string, fleetMemberName: string, options?: FleetMembersGetOptionalParams): Promise<FleetMembersGetResponse>;
listByFleet(resourceGroupName: string, fleetName: string, options?: FleetMembersListByFleetOptionalParams): PagedAsyncIterableIterator<FleetMember>;
update(resourceGroupName: string, fleetName: string, fleetMemberName: string, properties: FleetMemberUpdate, options?: FleetMembersUpdateOptionalParams): Promise<FleetMembersUpdateResponse>;
}

// @public
Expand Down Expand Up @@ -171,9 +187,17 @@ export interface FleetMembersListByFleetOptionalParams extends coreClient.Operat
// @public
export type FleetMembersListByFleetResponse = FleetMemberListResult;

// @public
export interface FleetMembersUpdateHeaders {
location?: string;
retryAfter?: number;
}

// @public
export interface FleetMembersUpdateOptionalParams extends coreClient.OperationOptions {
ifMatch?: string;
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
Expand All @@ -186,6 +210,7 @@ export interface FleetMemberUpdate {

// @public
export interface FleetPatch {
identity?: ManagedServiceIdentity;
tags?: {
[propertyName: string]: string;
};
Expand All @@ -200,11 +225,12 @@ export interface Fleets {
beginCreateOrUpdateAndWait(resourceGroupName: string, fleetName: string, resource: Fleet, options?: FleetsCreateOrUpdateOptionalParams): Promise<FleetsCreateOrUpdateResponse>;
beginDelete(resourceGroupName: string, fleetName: string, options?: FleetsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, fleetName: string, options?: FleetsDeleteOptionalParams): Promise<void>;
beginUpdate(resourceGroupName: string, fleetName: string, properties: FleetPatch, options?: FleetsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<FleetsUpdateResponse>, FleetsUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, fleetName: string, properties: FleetPatch, options?: FleetsUpdateOptionalParams): Promise<FleetsUpdateResponse>;
get(resourceGroupName: string, fleetName: string, options?: FleetsGetOptionalParams): Promise<FleetsGetResponse>;
listByResourceGroup(resourceGroupName: string, options?: FleetsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Fleet>;
listBySubscription(options?: FleetsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Fleet>;
listCredentials(resourceGroupName: string, fleetName: string, options?: FleetsListCredentialsOptionalParams): Promise<FleetsListCredentialsResponse>;
update(resourceGroupName: string, fleetName: string, properties: FleetPatch, options?: FleetsUpdateOptionalParams): Promise<FleetsUpdateResponse>;
}

// @public
Expand Down Expand Up @@ -278,9 +304,17 @@ export interface FleetsListCredentialsOptionalParams extends coreClient.Operatio
// @public
export type FleetsListCredentialsResponse = FleetCredentialResults;

// @public
export interface FleetsUpdateHeaders {
location?: string;
retryAfter?: number;
}

// @public
export interface FleetsUpdateOptionalParams extends coreClient.OperationOptions {
ifMatch?: string;
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
Expand Down Expand Up @@ -328,6 +362,20 @@ export enum KnownManagedClusterUpgradeType {
NodeImageOnly = "NodeImageOnly"
}

// @public
export enum KnownManagedServiceIdentityType {
None = "None",
SystemAssigned = "SystemAssigned",
SystemAssignedUserAssigned = "SystemAssigned, UserAssigned",
UserAssigned = "UserAssigned"
}

// @public
export enum KnownNodeImageSelectionType {
Consistent = "Consistent",
Latest = "Latest"
}

// @public
export enum KnownOrigin {
System = "system",
Expand All @@ -348,12 +396,14 @@ export enum KnownUpdateState {
Failed = "Failed",
NotStarted = "NotStarted",
Running = "Running",
Skipped = "Skipped",
Stopped = "Stopped",
Stopping = "Stopping"
}

// @public
export interface ManagedClusterUpdate {
nodeImageSelection?: NodeImageSelection;
upgrade: ManagedClusterUpgradeSpec;
}

Expand All @@ -366,14 +416,46 @@ export interface ManagedClusterUpgradeSpec {
// @public
export type ManagedClusterUpgradeType = string;

// @public
export interface ManagedServiceIdentity {
readonly principalId?: string;
readonly tenantId?: string;
type: ManagedServiceIdentityType;
userAssignedIdentities?: {
[propertyName: string]: UserAssignedIdentity;
};
}

// @public
export type ManagedServiceIdentityType = string;

// @public
export interface MemberUpdateStatus {
readonly clusterResourceId?: string;
readonly message?: string;
readonly name?: string;
readonly operationId?: string;
readonly status?: UpdateStatus;
}

// @public
export interface NodeImageSelection {
type: NodeImageSelectionType;
}

// @public
export interface NodeImageSelectionStatus {
readonly selectedNodeImageVersions?: NodeImageVersion[];
}

// @public
export type NodeImageSelectionType = string;

// @public
export interface NodeImageVersion {
readonly version?: string;
}

// @public
export interface Operation {
readonly actionType?: ActionType;
Expand Down Expand Up @@ -577,6 +659,7 @@ export type UpdateRunsStopResponse = UpdateRun;

// @public
export interface UpdateRunStatus {
readonly nodeImageSelection?: NodeImageSelectionStatus;
readonly stages?: UpdateStageStatus[];
readonly status?: UpdateStatus;
}
Expand Down Expand Up @@ -612,6 +695,12 @@ export interface UpdateStatus {
readonly state?: UpdateState;
}

// @public
export interface UserAssignedIdentity {
readonly clientId?: string;
readonly principalId?: string;
}

// @public
export interface WaitStatus {
readonly status?: UpdateStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Create a FleetMember
*
* @summary Create a FleetMember
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/FleetMembers_Create.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Create.json
*/
async function createsAFleetMemberResourceWithALongRunningOperation() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Delete a FleetMember
*
* @summary Delete a FleetMember
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/FleetMembers_Delete.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Delete.json
*/
async function deletesAFleetMemberResourceAsynchronouslyWithALongRunningOperation() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Get a FleetMember
*
* @summary Get a FleetMember
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/FleetMembers_Get.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Get.json
*/
async function getsAFleetMemberResource() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to List FleetMember resources by Fleet
*
* @summary List FleetMember resources by Fleet
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/FleetMembers_ListByFleet.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_ListByFleet.json
*/
async function listsTheMembersOfAFleet() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Update a FleetMember
*
* @summary Update a FleetMember
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/FleetMembers_Update.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Update.json
*/
async function updatesAFleetMemberResourceSynchronously() {
const subscriptionId =
Expand All @@ -33,7 +33,7 @@ async function updatesAFleetMemberResourceSynchronously() {
const properties: FleetMemberUpdate = { group: "staging" };
const credential = new DefaultAzureCredential();
const client = new ContainerServiceFleetClient(credential, subscriptionId);
const result = await client.fleetMembers.update(
const result = await client.fleetMembers.beginUpdateAndWait(
resourceGroupName,
fleetName,
fleetMemberName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Creates or updates a Fleet.
*
* @summary Creates or updates a Fleet.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/Fleets_CreateOrUpdate.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_CreateOrUpdate.json
*/
async function createsAFleetResourceWithALongRunningOperation() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Delete a Fleet
*
* @summary Delete a Fleet
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/Fleets_Delete.json
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Delete.json
*/
async function deletesAFleetResourceAsynchronouslyWithALongRunningOperation() {
const subscriptionId =
Expand Down
Loading

0 comments on commit 9be0b14

Please sign in to comment.