Skip to content
Closed
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
787 changes: 394 additions & 393 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

26 changes: 15 additions & 11 deletions sdk/containerinstance/arm-containerinstance/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Release History

## 9.2.0-beta.1 (2024-06-26)
Compared with version 9.1.0

**Features**

## 9.1.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added Interface ConfigMap
- Added Interface ContainerGroupProfileReferenceDefinition
- Added Interface StandbyPoolProfileDefinition
- Interface Container has a new optional parameter configMap
- Interface ContainerGroupProperties has a new optional parameter containerGroupProfile
- Interface ContainerGroupProperties has a new optional parameter isCreatedFromStandbyPool
- Interface ContainerGroupProperties has a new optional parameter standbyPoolProfile


## 9.1.0 (2023-04-24)

**Features**
Expand Down Expand Up @@ -89,4 +93,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.

To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).

To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
2 changes: 1 addition & 1 deletion sdk/containerinstance/arm-containerinstance/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 Microsoft
Copyright (c) 2024 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion sdk/containerinstance/arm-containerinstance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerinstance/arm-containerinstance) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-containerinstance) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerinstance) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerinstance?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down
8 changes: 4 additions & 4 deletions sdk/containerinstance/arm-containerinstance/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "7a65f22cf67826187f75981e914c7e679039257b",
"commit": "e724d57701ea7efb7c69ede364e185988cb1e9e9",
"readme": "specification/containerinstance/resource-manager/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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerinstance\\resource-manager\\readme.md --use=@autorest/[email protected].0-rc.10 --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/containerinstance/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/js-sdk-release-tools@2.6.2",
"use": "@autorest/[email protected].0-rc.10"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.10",
"use": "@autorest/typescript@^6.0.12"
}
32 changes: 12 additions & 20 deletions sdk/containerinstance/arm-containerinstance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ContainerInstanceManagementClient.",
"version": "9.1.1",
"version": "9.2.0-beta.1",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.0",
"@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-auth": "^1.6.0",
"@azure/core-rest-pipeline": "^1.14.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -32,19 +32,20 @@
"mkdirp": "^3.0.1",
"typescript": "~5.4.5",
"uglify-js": "^3.4.9",
"rimraf": "^5.0.5",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^18.0.0",
"@azure/dev-tool": "^1.0.0",
"ts-node": "^10.0.0",
"@types/mocha": "^10.0.0"
"ts-node": "^10.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -77,7 +78,6 @@
"pack": "npm pack 2>&1",
"extract-api": "dev-tool run extract-api",
"lint": "echo skipped",
"audit": "echo skipped",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:browser": "echo skipped",
Expand Down Expand Up @@ -106,13 +106,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerinstance/arm-containerinstance",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerinstance?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerinstance/arm-containerinstance"
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,25 @@ export interface ConfidentialComputeProperties {
ccePolicy?: string;
}

// @public
export interface ConfigMap {
keyValuePairs?: {
[propertyName: string]: string;
};
}

// @public
export interface Container {
command?: string[];
configMap?: ConfigMap;
environmentVariables?: EnvironmentVariable[];
image: string;
image?: string;
readonly instanceView?: ContainerPropertiesInstanceView;
livenessProbe?: ContainerProbe;
name: string;
ports?: ContainerPort[];
readinessProbe?: ContainerProbe;
resources: ResourceRequirements;
resources?: ResourceRequirements;
securityContext?: SecurityContextDefinition;
volumeMounts?: VolumeMount[];
}
Expand Down Expand Up @@ -149,9 +157,16 @@ export type ContainerGroupNetworkProtocol = string;
// @public
export type ContainerGroupPriority = string;

// @public
export interface ContainerGroupProfileReferenceDefinition {
id?: string;
revision?: number;
}

// @public
export interface ContainerGroupProperties {
confidentialComputeProperties?: ConfidentialComputeProperties;
containerGroupProfile?: ContainerGroupProfileReferenceDefinition;
containers: Container[];
diagnostics?: ContainerGroupDiagnostics;
dnsConfig?: DnsConfiguration;
Expand All @@ -162,11 +177,13 @@ export interface ContainerGroupProperties {
initContainers?: InitContainerDefinition[];
readonly instanceView?: ContainerGroupPropertiesInstanceView;
ipAddress?: IpAddress;
osType: OperatingSystemTypes;
readonly isCreatedFromStandbyPool?: boolean;
osType?: OperatingSystemTypes;
priority?: ContainerGroupPriority;
readonly provisioningState?: string;
restartPolicy?: ContainerGroupRestartPolicy;
sku?: ContainerGroupSku;
standbyPoolProfile?: StandbyPoolProfileDefinition;
subnetIds?: ContainerGroupSubnetId[];
volumes?: Volume[];
}
Expand Down Expand Up @@ -750,6 +767,12 @@ export interface SecurityContextDefinition {
seccompProfile?: string;
}

// @public
export interface StandbyPoolProfileDefinition {
failContainerGroupCreateOnReuseFailure?: boolean;
id?: string;
}

// @public
export interface SubnetServiceAssociationLink {
beginDelete(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetServiceAssociationLinkDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline";
import {
PipelineRequest,
PipelineResponse,
SendRequest
SendRequest,
} from "@azure/core-rest-pipeline";
import * as coreAuth from "@azure/core-auth";
import {
ContainerGroupsImpl,
OperationsImpl,
LocationImpl,
ContainersImpl,
SubnetServiceAssociationLinkImpl
SubnetServiceAssociationLinkImpl,
} from "./operations";
import {
ContainerGroups,
Operations,
Location,
Containers,
SubnetServiceAssociationLink
SubnetServiceAssociationLink,
} from "./operationsInterfaces";
import { ContainerInstanceManagementClientOptionalParams } from "./models";

Expand All @@ -45,7 +45,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
constructor(
credentials: coreAuth.TokenCredential,
subscriptionId: string,
options?: ContainerInstanceManagementClientOptionalParams
options?: ContainerInstanceManagementClientOptionalParams,
) {
if (credentials === undefined) {
throw new Error("'credentials' cannot be null");
Expand All @@ -60,10 +60,10 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
}
const defaults: ContainerInstanceManagementClientOptionalParams = {
requestContentType: "application/json; charset=utf-8",
credential: credentials
credential: credentials,
};

const packageDetails = `azsdk-js-arm-containerinstance/9.1.1`;
const packageDetails = `azsdk-js-arm-containerinstance/9.2.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand All @@ -73,20 +73,21 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
...defaults,
...options,
userAgentOptions: {
userAgentPrefix
userAgentPrefix,
},
endpoint:
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
options.endpoint ?? options.baseUri ?? "https://management.azure.com",
};
super(optionsWithDefaults);

let bearerTokenAuthenticationPolicyFound: boolean = false;
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
options.pipeline.getOrderedPolicies();
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
(pipelinePolicy) =>
pipelinePolicy.name ===
coreRestPipeline.bearerTokenAuthenticationPolicyName
coreRestPipeline.bearerTokenAuthenticationPolicyName,
);
}
if (
Expand All @@ -96,7 +97,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
!bearerTokenAuthenticationPolicyFound
) {
this.pipeline.removePolicy({
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
});
this.pipeline.addPolicy(
coreRestPipeline.bearerTokenAuthenticationPolicy({
Expand All @@ -106,23 +107,23 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
`${optionsWithDefaults.endpoint}/.default`,
challengeCallbacks: {
authorizeRequestOnChallenge:
coreClient.authorizeRequestOnClaimChallenge
}
})
coreClient.authorizeRequestOnClaimChallenge,
},
}),
);
}
// Parameter assignments
this.subscriptionId = subscriptionId;

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2023-05-01";
this.apiVersion = options.apiVersion || "2024-05-01-preview";
this.containerGroups = new ContainerGroupsImpl(this);
this.operations = new OperationsImpl(this);
this.location = new LocationImpl(this);
this.containers = new ContainersImpl(this);
this.subnetServiceAssociationLink = new SubnetServiceAssociationLinkImpl(
this
this,
);
this.addCustomApiVersionPolicy(options.apiVersion);
}
Expand All @@ -136,7 +137,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
name: "CustomApiVersionPolicy",
async sendRequest(
request: PipelineRequest,
next: SendRequest
next: SendRequest,
): Promise<PipelineResponse> {
const param = request.url.split("?");
if (param.length > 1) {
Expand All @@ -150,7 +151,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
request.url = param[0] + "?" + newParams.join("&");
}
return next(request);
}
},
};
this.pipeline.addPolicy(apiVersionPolicy);
}
Expand Down
6 changes: 3 additions & 3 deletions sdk/containerinstance/arm-containerinstance/src/lroImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ export function createLroSpec<T>(inputs: {
sendInitialRequest: () => sendOperationFn(args, spec),
sendPollRequest: (
path: string,
options?: { abortSignal?: AbortSignalLike }
options?: { abortSignal?: AbortSignalLike },
) => {
const { requestBody, ...restSpec } = spec;
return sendOperationFn(args, {
...restSpec,
httpMethod: "GET",
path,
abortSignal: options?.abortSignal
abortSignal: options?.abortSignal,
});
}
},
};
}
Loading