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
16 changes: 11 additions & 5 deletions sdk/containerinstance/arm-containerinstance/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
# Release History

## 9.1.0-beta.2 (2023-04-10)
## 9.1.0 (2023-04-12)

**Features**

- Added Interface ConfidentialComputeProperties
- Added Interface DeploymentExtensionSpec
- Added Type Alias IsCustomProvisioningTimeout
- Added Interface SecurityContextCapabilitiesDefinition
- Added Interface SecurityContextDefinition
- Added Type Alias ContainerGroupPriority
- Interface Container has a new optional parameter securityContext
- Interface ContainerGroupProperties has a new optional parameter confidentialComputeProperties
- Interface ContainerGroupProperties has a new optional parameter extensions
- Interface ContainerGroupProperties has a new optional parameter isCustomProvisioningTimeout
- Interface ContainerGroupProperties has a new optional parameter provisioningTimeoutInSeconds
- Interface ContainerGroupProperties has a new optional parameter priority
- Interface EncryptionProperties has a new optional parameter identity
- Added Enum KnownIsCustomProvisioningTimeout
- Interface InitContainerDefinition has a new optional parameter securityContext
- Added Enum KnownContainerGroupPriority
- Enum KnownContainerGroupSku has a new value Confidential
- Added function getContinuationToken


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?view=azure-node-preview) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerinstance) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down
6 changes: 3 additions & 3 deletions sdk/containerinstance/arm-containerinstance/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "6b992c049ed7d6a95465d5c0a2234fc54c87b9bf",
"commit": "6f0a57a285d1e190180dbcf361b86dfec9492b08",
"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/typescript@6.0.0-rc.10 --generate-sample=true",
"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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/containerinstance/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
"use": "@autorest/typescript@6.0.0-rc.10"
}
12 changes: 2 additions & 10 deletions sdk/containerinstance/arm-containerinstance/package.json
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 ContainerInstanceManagementClient.",
"version": "9.1.0-beta.2",
"version": "9.1.0",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -111,13 +111,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 @@ -66,6 +66,11 @@ export interface CloudErrorBody {
target?: string;
}

// @public
export interface ConfidentialComputeProperties {
ccePolicy?: string;
}

// @public
export interface Container {
command?: string[];
Expand All @@ -77,6 +82,7 @@ export interface Container {
ports?: ContainerPort[];
readinessProbe?: ContainerProbe;
resources: ResourceRequirements;
securityContext?: SecurityContextDefinition;
volumeMounts?: VolumeMount[];
}

Expand Down Expand Up @@ -140,8 +146,12 @@ export interface ContainerGroupListResult {
// @public
export type ContainerGroupNetworkProtocol = string;

// @public
export type ContainerGroupPriority = string;

// @public
export interface ContainerGroupProperties {
confidentialComputeProperties?: ConfidentialComputeProperties;
containers: Container[];
diagnostics?: ContainerGroupDiagnostics;
dnsConfig?: DnsConfiguration;
Expand All @@ -152,10 +162,9 @@ export interface ContainerGroupProperties {
initContainers?: InitContainerDefinition[];
readonly instanceView?: ContainerGroupPropertiesInstanceView;
ipAddress?: IpAddress;
readonly isCustomProvisioningTimeout?: IsCustomProvisioningTimeout;
osType: OperatingSystemTypes;
priority?: ContainerGroupPriority;
readonly provisioningState?: string;
provisioningTimeoutInSeconds?: number;
restartPolicy?: ContainerGroupRestartPolicy;
sku?: ContainerGroupSku;
subnetIds?: ContainerGroupSubnetId[];
Expand Down Expand Up @@ -475,6 +484,7 @@ export interface InitContainerDefinition {
image?: string;
readonly instanceView?: InitContainerPropertiesDefinitionInstanceView;
name: string;
securityContext?: SecurityContextDefinition;
volumeMounts?: VolumeMount[];
}

Expand All @@ -496,9 +506,6 @@ export interface IpAddress {
type: ContainerGroupIpAddressType;
}

// @public
export type IsCustomProvisioningTimeout = string;

// @public
export enum KnownContainerGroupIpAddressType {
Private = "Private",
Expand All @@ -511,6 +518,12 @@ export enum KnownContainerGroupNetworkProtocol {
UDP = "UDP"
}

// @public
export enum KnownContainerGroupPriority {
Regular = "Regular",
Spot = "Spot"
}

// @public
export enum KnownContainerGroupRestartPolicy {
Always = "Always",
Expand All @@ -520,6 +533,7 @@ export enum KnownContainerGroupRestartPolicy {

// @public
export enum KnownContainerGroupSku {
Confidential = "Confidential",
Dedicated = "Dedicated",
Standard = "Standard"
}
Expand Down Expand Up @@ -552,12 +566,6 @@ export enum KnownGpuSku {
V100 = "V100"
}

// @public
export enum KnownIsCustomProvisioningTimeout {
False = "False",
True = "True"
}

// @public
export enum KnownLogAnalyticsLogType {
ContainerInsights = "ContainerInsights",
Expand Down Expand Up @@ -726,6 +734,22 @@ export interface ResourceRequirements {
// @public
export type Scheme = string;

// @public
export interface SecurityContextCapabilitiesDefinition {
add?: string[];
drop?: string[];
}

// @public
export interface SecurityContextDefinition {
allowPrivilegeEscalation?: boolean;
capabilities?: SecurityContextCapabilitiesDefinition;
privileged?: boolean;
runAsGroup?: number;
runAsUser?: number;
seccompProfile?: 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 @@ -63,7 +63,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
credential: credentials
};

const packageDetails = `azsdk-js-arm-containerinstance/9.1.0-beta.2`;
const packageDetails = `azsdk-js-arm-containerinstance/9.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -116,7 +116,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2023-02-01-preview";
this.apiVersion = options.apiVersion || "2023-05-01";
this.containerGroups = new ContainerGroupsImpl(this);
this.operations = new OperationsImpl(this);
this.location = new LocationImpl(this);
Expand Down
88 changes: 61 additions & 27 deletions sdk/containerinstance/arm-containerinstance/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ export interface ContainerGroupProperties {
containers: Container[];
/** The image registry credentials by which the container group is created from. */
imageRegistryCredentials?: ImageRegistryCredential[];
/** Time in seconds in which a container group deployment would timeout and fail. The allowed maximum value is 1800 seconds. If value is not provided, property is given maximum value by default. */
provisioningTimeoutInSeconds?: number;
/**
* Flag indicating whether a custom value was provided for the provisioningTimeoutInSeconds property
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly isCustomProvisioningTimeout?: IsCustomProvisioningTimeout;
/**
* Restart policy for all containers within the container group.
* - `Always` Always restart
Expand Down Expand Up @@ -94,6 +87,10 @@ export interface ContainerGroupProperties {
initContainers?: InitContainerDefinition[];
/** extensions used by virtual kubelet */
extensions?: DeploymentExtensionSpec[];
/** The properties for confidential container group */
confidentialComputeProperties?: ConfidentialComputeProperties;
/** The priority of the container group. */
priority?: ContainerGroupPriority;
}

/** Identity for the container group. */
Expand Down Expand Up @@ -153,6 +150,8 @@ export interface Container {
livenessProbe?: ContainerProbe;
/** The readiness probe. */
readinessProbe?: ContainerProbe;
/** The container security properties. */
securityContext?: SecurityContextDefinition;
}

/** The port exposed on the container instance. */
Expand Down Expand Up @@ -350,6 +349,30 @@ export interface HttpHeader {
value?: string;
}

/** The security context for the container. */
export interface SecurityContextDefinition {
/** The flag to determine if the container permissions is elevated to Privileged. */
privileged?: boolean;
/** A boolean value indicating whether the init process can elevate its privileges */
allowPrivilegeEscalation?: boolean;
/** The capabilities to add or drop from a container. */
capabilities?: SecurityContextCapabilitiesDefinition;
/** Sets the User GID for the container. */
runAsGroup?: number;
/** Sets the User UID for the container. */
runAsUser?: number;
/** a base64 encoded string containing the contents of the JSON in the seccomp profile */
seccompProfile?: string;
}

/** The capabilities to add or drop from a container. */
export interface SecurityContextCapabilitiesDefinition {
/** The capabilities to add to the container. */
add?: string[];
/** The capabilities to drop from the container. */
drop?: string[];
}

/** Image registry credential. */
export interface ImageRegistryCredential {
/** The Docker image registry server without a protocol such as "http" and "https". */
Expand Down Expand Up @@ -508,6 +531,8 @@ export interface InitContainerDefinition {
readonly instanceView?: InitContainerPropertiesDefinitionInstanceView;
/** The volume mounts available to the init container. */
volumeMounts?: VolumeMount[];
/** The container security properties. */
securityContext?: SecurityContextDefinition;
}

/** The instance view of the init container. Only valid in response. */
Expand Down Expand Up @@ -548,6 +573,12 @@ export interface DeploymentExtensionSpec {
protectedSettings?: Record<string, unknown>;
}

/** The properties for confidential container group */
export interface ConfidentialComputeProperties {
/** The base64 encoded confidential compute enforcement policy */
ccePolicy?: string;
}

/** An error response from the Container Instance service. */
export interface CloudError {
/** An error response from the Container Instance service. */
Expand Down Expand Up @@ -825,24 +856,6 @@ export enum KnownScheme {
*/
export type Scheme = string;

/** Known values of {@link IsCustomProvisioningTimeout} that the service accepts. */
export enum KnownIsCustomProvisioningTimeout {
/** True */
True = "True",
/** False */
False = "False"
}

/**
* Defines values for IsCustomProvisioningTimeout. \
* {@link KnownIsCustomProvisioningTimeout} can be used interchangeably with IsCustomProvisioningTimeout,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **True** \
* **False**
*/
export type IsCustomProvisioningTimeout = string;

/** Known values of {@link ContainerGroupRestartPolicy} that the service accepts. */
export enum KnownContainerGroupRestartPolicy {
/** Always */
Expand Down Expand Up @@ -968,7 +981,9 @@ export enum KnownContainerGroupSku {
/** Standard */
Standard = "Standard",
/** Dedicated */
Dedicated = "Dedicated"
Dedicated = "Dedicated",
/** Confidential */
Confidential = "Confidential"
}

/**
Expand All @@ -977,10 +992,29 @@ export enum KnownContainerGroupSku {
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Standard** \
* **Dedicated**
* **Dedicated** \
* **Confidential**
*/
export type ContainerGroupSku = string;

/** Known values of {@link ContainerGroupPriority} that the service accepts. */
export enum KnownContainerGroupPriority {
/** Regular */
Regular = "Regular",
/** Spot */
Spot = "Spot"
}

/**
* Defines values for ContainerGroupPriority. \
* {@link KnownContainerGroupPriority} can be used interchangeably with ContainerGroupPriority,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Regular** \
* **Spot**
*/
export type ContainerGroupPriority = string;

/** Known values of {@link ContainerInstanceOperationsOrigin} that the service accepts. */
export enum KnownContainerInstanceOperationsOrigin {
/** User */
Expand Down
Loading