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
45 changes: 35 additions & 10 deletions sdk/containerinstance/arm-containerinstance/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,40 @@
# Release History

## 9.0.0 (2022-08-11)

**Features**

## 8.2.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added operation group SubnetServiceAssociationLink
- Added Interface ContainerGroupProperties
- Added Interface SubnetServiceAssociationLinkDeleteOptionalParams
- Added Interface UserAssignedIdentities
- Added Type Alias DnsNameLabelReusePolicy
- Interface IpAddress has a new optional parameter autoGeneratedDomainNameLabelScope
- Interface Usage has a new optional parameter id
- Class ContainerInstanceManagementClient has a new parameter subnetServiceAssociationLink
- Added Enum KnownDnsNameLabelReusePolicy

**Breaking Changes**

- Interface ContainerGroup no longer has parameter containers
- Interface ContainerGroup no longer has parameter diagnostics
- Interface ContainerGroup no longer has parameter dnsConfig
- Interface ContainerGroup no longer has parameter encryptionProperties
- Interface ContainerGroup no longer has parameter identity
- Interface ContainerGroup no longer has parameter imageRegistryCredentials
- Interface ContainerGroup no longer has parameter initContainers
- Interface ContainerGroup no longer has parameter instanceView
- Interface ContainerGroup no longer has parameter ipAddress
- Interface ContainerGroup no longer has parameter osType
- Interface ContainerGroup no longer has parameter provisioningState
- Interface ContainerGroup no longer has parameter restartPolicy
- Interface ContainerGroup no longer has parameter sku
- Interface ContainerGroup no longer has parameter subnetIds
- Interface ContainerGroup no longer has parameter volumes
- Interface IpAddress no longer has parameter dnsNameLabelReusePolicy
- Removed Enum KnownAutoGeneratedDomainNameLabelScope


## 8.2.0 (2022-07-11)

**Features**
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": "c18557c67e434073057866a60099c262336dde15",
"commit": "d90e6faa2b5242f43ebcb053abaa25990a7387cf",
"readme": "specification/containerinstance/resource-manager/readme.md",
"autorest_command": "autorest --version=3.7.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.1.20220707.1 --generate-sample=true",
"autorest_command": "",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.0",
"use": "@autorest/typescript@6.0.0-rc.1.20220707.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.1",
"use": "@autorest/typescript@6.0.0-rc.1"
}
14 changes: 3 additions & 11 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": "8.2.1",
"version": "9.0.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -109,13 +109,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerinstance?view=azure-node-preview"
}
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
import { PollerLike } from '@azure/core-lro';
import { PollOperationState } from '@azure/core-lro';

// @public
export type AutoGeneratedDomainNameLabelScope = string;

// @public
export interface AzureFileVolume {
readOnly?: boolean;
Expand Down Expand Up @@ -69,12 +66,6 @@ export interface CloudErrorBody {
target?: string;
}

// @public (undocumented)
export interface Components10Wh5UdSchemasContainergroupidentityPropertiesUserassignedidentitiesAdditionalproperties {
readonly clientId?: string;
readonly principalId?: string;
}

// @public
export interface Container {
command?: string[];
Expand Down Expand Up @@ -119,22 +110,7 @@ export interface ContainerExecResponse {
}

// @public
export interface ContainerGroup extends Resource {
containers: Container[];
diagnostics?: ContainerGroupDiagnostics;
dnsConfig?: DnsConfiguration;
encryptionProperties?: EncryptionProperties;
identity?: ContainerGroupIdentity;
imageRegistryCredentials?: ImageRegistryCredential[];
initContainers?: InitContainerDefinition[];
readonly instanceView?: ContainerGroupPropertiesInstanceView;
ipAddress?: IpAddress;
osType: OperatingSystemTypes;
readonly provisioningState?: string;
restartPolicy?: ContainerGroupRestartPolicy;
sku?: ContainerGroupSku;
subnetIds?: ContainerGroupSubnetId[];
volumes?: Volume[];
export interface ContainerGroup extends Resource, ContainerGroupProperties {
}

// @public
Expand All @@ -148,7 +124,7 @@ export interface ContainerGroupIdentity {
readonly tenantId?: string;
type?: ResourceIdentityType;
userAssignedIdentities?: {
[propertyName: string]: Components10Wh5UdSchemasContainergroupidentityPropertiesUserassignedidentitiesAdditionalproperties;
[propertyName: string]: UserAssignedIdentities;
};
}

Expand All @@ -164,6 +140,25 @@ export interface ContainerGroupListResult {
// @public
export type ContainerGroupNetworkProtocol = string;

// @public
export interface ContainerGroupProperties {
containers: Container[];
diagnostics?: ContainerGroupDiagnostics;
dnsConfig?: DnsConfiguration;
encryptionProperties?: EncryptionProperties;
identity?: ContainerGroupIdentity;
imageRegistryCredentials?: ImageRegistryCredential[];
initContainers?: InitContainerDefinition[];
readonly instanceView?: ContainerGroupPropertiesInstanceView;
ipAddress?: IpAddress;
osType: OperatingSystemTypes;
readonly provisioningState?: string;
restartPolicy?: ContainerGroupRestartPolicy;
sku?: ContainerGroupSku;
subnetIds?: ContainerGroupSubnetId[];
volumes?: Volume[];
}

// @public
export interface ContainerGroupPropertiesInstanceView {
readonly events?: Event_2[];
Expand Down Expand Up @@ -309,6 +304,8 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
// (undocumented)
operations: Operations;
// (undocumented)
subnetServiceAssociationLink: SubnetServiceAssociationLink;
// (undocumented)
subscriptionId: string;
}

Expand Down Expand Up @@ -396,6 +393,9 @@ export interface DnsConfiguration {
searchDomains?: string;
}

// @public
export type DnsNameLabelReusePolicy = string;

// @public
export interface EncryptionProperties {
keyName: string;
Expand Down Expand Up @@ -472,23 +472,14 @@ export interface InitContainerPropertiesDefinitionInstanceView {

// @public
export interface IpAddress {
autoGeneratedDomainNameLabelScope?: DnsNameLabelReusePolicy;
dnsNameLabel?: string;
dnsNameLabelReusePolicy?: AutoGeneratedDomainNameLabelScope;
readonly fqdn?: string;
ip?: string;
ports: Port[];
type: ContainerGroupIpAddressType;
}

// @public
export enum KnownAutoGeneratedDomainNameLabelScope {
Noreuse = "Noreuse",
ResourceGroupReuse = "ResourceGroupReuse",
SubscriptionReuse = "SubscriptionReuse",
TenantReuse = "TenantReuse",
Unsecure = "Unsecure"
}

// @public
export enum KnownContainerGroupIpAddressType {
Private = "Private",
Expand Down Expand Up @@ -526,6 +517,15 @@ export enum KnownContainerNetworkProtocol {
UDP = "UDP"
}

// @public
export enum KnownDnsNameLabelReusePolicy {
Noreuse = "Noreuse",
ResourceGroupReuse = "ResourceGroupReuse",
SubscriptionReuse = "SubscriptionReuse",
TenantReuse = "TenantReuse",
Unsecure = "Unsecure"
}

// @public
export enum KnownGpuSku {
K80 = "K80",
Expand Down Expand Up @@ -701,9 +701,22 @@ export interface ResourceRequirements {
// @public
export type Scheme = string;

// @public
export interface SubnetServiceAssociationLink {
beginDelete(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetServiceAssociationLinkDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetServiceAssociationLinkDeleteOptionalParams): Promise<void>;
}

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

// @public
export interface Usage {
readonly currentValue?: number;
readonly id?: string;
readonly limit?: number;
readonly name?: UsageName;
readonly unit?: string;
Expand All @@ -720,6 +733,12 @@ export interface UsageName {
readonly value?: string;
}

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

// @public
export interface Volume {
azureFile?: AzureFileVolume;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ import {
ContainerGroupsImpl,
OperationsImpl,
LocationImpl,
ContainersImpl
ContainersImpl,
SubnetServiceAssociationLinkImpl
} from "./operations";
import {
ContainerGroups,
Operations,
Location,
Containers
Containers,
SubnetServiceAssociationLink
} from "./operationsInterfaces";
import { ContainerInstanceManagementClientOptionalParams } from "./models";

Expand Down Expand Up @@ -61,7 +63,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
credential: credentials
};

const packageDetails = `azsdk-js-arm-containerinstance/8.2.1`;
const packageDetails = `azsdk-js-arm-containerinstance/9.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand All @@ -81,34 +83,27 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
};
super(optionsWithDefaults);

let bearerTokenAuthenticationPolicyFound: boolean = false;
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
(pipelinePolicy) =>
pipelinePolicy.name ===
coreRestPipeline.bearerTokenAuthenticationPolicyName
);
}
if (
!options ||
!options.pipeline ||
options.pipeline.getOrderedPolicies().length == 0 ||
!bearerTokenAuthenticationPolicyFound
) {
this.pipeline.removePolicy({
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
});
this.pipeline.addPolicy(
coreRestPipeline.bearerTokenAuthenticationPolicy({
credential: credentials,
scopes: `${optionsWithDefaults.credentialScopes}`,
challengeCallbacks: {
authorizeRequestOnChallenge:
coreClient.authorizeRequestOnClaimChallenge
}
})
);
if (!bearerTokenAuthenticationPolicyFound) {
this.pipeline.removePolicy({
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
});
this.pipeline.addPolicy(
coreRestPipeline.bearerTokenAuthenticationPolicy({
scopes: `${optionsWithDefaults.baseUri}/.default`,
challengeCallbacks: {
authorizeRequestOnChallenge:
coreClient.authorizeRequestOnClaimChallenge
}
})
);
}
}
// Parameter assignments
this.subscriptionId = subscriptionId;
Expand All @@ -120,6 +115,9 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
this.operations = new OperationsImpl(this);
this.location = new LocationImpl(this);
this.containers = new ContainersImpl(this);
this.subnetServiceAssociationLink = new SubnetServiceAssociationLinkImpl(
this
);
this.addCustomApiVersionPolicy(options.apiVersion);
}

Expand Down Expand Up @@ -155,4 +153,5 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
operations: Operations;
location: Location;
containers: Containers;
subnetServiceAssociationLink: SubnetServiceAssociationLink;
}
Loading