Skip to content
Merged
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
2 changes: 1 addition & 1 deletion sdk/containerservice/arm-containerservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@azure/arm-containerservice",
"author": "Microsoft Corporation",
"description": "ContainerServiceClient Library with typescript type definitions for node.js and browser.",
"version": "14.0.0",
"version": "14.1.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.1.0",
"@azure/ms-rest-js": "^2.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class ContainerServiceClient extends ContainerServiceClientContext {
privateEndpointConnections: operations.PrivateEndpointConnections;
privateLinkResources: operations.PrivateLinkResources;
resolvePrivateLinkServiceId: operations.ResolvePrivateLinkServiceId;
snapshots: operations.Snapshots;

/**
* Initializes a new instance of the ContainerServiceClient class.
Expand All @@ -46,6 +47,7 @@ class ContainerServiceClient extends ContainerServiceClientContext {
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
this.privateLinkResources = new operations.PrivateLinkResources(this);
this.resolvePrivateLinkServiceId = new operations.ResolvePrivateLinkServiceId(this);
this.snapshots = new operations.Snapshots(this);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as msRestAzure from "@azure/ms-rest-azure-js";
import { TokenCredential } from "@azure/core-auth";

const packageName = "@azure/arm-containerservice";
const packageVersion = "14.0.0";
const packageVersion = "14.1.0";

export class ContainerServiceClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials | TokenCredential;
Expand Down Expand Up @@ -50,7 +50,7 @@ export class ContainerServiceClientContext extends msRestAzure.AzureServiceClien

super(credentials, options);

this.apiVersion = '2021-07-01';
this.apiVersion = '2021-08-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export {
ContainerServiceNetworkProfile,
ContainerServiceSshConfiguration,
ContainerServiceSshPublicKey,
CreationData,
ExtendedLocation,
KubeletConfig,
LinuxOSConfig,
Expand Down Expand Up @@ -61,6 +62,7 @@ export {
PrivateLinkServiceConnectionState,
Resource,
ResourceReference,
Snapshot,
SubResource,
SysctlConfig,
SystemData,
Expand Down
238 changes: 238 additions & 0 deletions sdk/containerservice/arm-containerservice/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,16 @@ export interface LinuxOSConfig {
swapFileSizeMB?: number;
}

/**
* Data used when creating a target resource from a source resource.
*/
export interface CreationData {
/**
* This is the ARM ID of the source object to be used to create the target object.
*/
sourceResourceId?: string;
}

/**
* Properties for the container service agent pool profile.
*/
Expand All @@ -464,6 +474,10 @@ export interface ManagedClusterAgentPoolProfileProperties {
* Possible values include: 'OS', 'Temporary'
*/
kubeletDiskType?: KubeletDiskType;
/**
* Possible values include: 'OCIContainer', 'WasmWasi'
*/
workloadRuntime?: WorkloadRuntime;
/**
* The ID of the subnet which agent pool nodes and optionally pods will join on startup. If this
* is not specified, a VNET and subnet will be generated and used. If no podSubnetID is
Expand Down Expand Up @@ -628,6 +642,11 @@ export interface ManagedClusterAgentPoolProfileProperties {
* Possible values include: 'MIG1g', 'MIG2g', 'MIG3g', 'MIG4g', 'MIG7g'
*/
gpuInstanceProfile?: GPUInstanceProfile;
/**
* CreationData to be used to specify the source Snapshot ID if the node pool will be
* created/upgraded using a snapshot.
*/
creationData?: CreationData;
}

/**
Expand Down Expand Up @@ -666,6 +685,10 @@ export interface AgentPool extends SubResource {
* Possible values include: 'OS', 'Temporary'
*/
kubeletDiskType?: KubeletDiskType;
/**
* Possible values include: 'OCIContainer', 'WasmWasi'
*/
workloadRuntime?: WorkloadRuntime;
/**
* The ID of the subnet which agent pool nodes and optionally pods will join on startup. If this
* is not specified, a VNET and subnet will be generated and used. If no podSubnetID is
Expand Down Expand Up @@ -830,6 +853,11 @@ export interface AgentPool extends SubResource {
* Possible values include: 'MIG1g', 'MIG2g', 'MIG3g', 'MIG4g', 'MIG7g'
*/
gpuInstanceProfile?: GPUInstanceProfile;
/**
* CreationData to be used to specify the source Snapshot ID if the node pool will be
* created/upgraded using a snapshot.
*/
creationData?: CreationData;
}

/**
Expand Down Expand Up @@ -976,6 +1004,10 @@ export interface ManagedClusterLoadBalancerProfile {
* (inclusive). The default value is 30 minutes. Default value: 30.
*/
idleTimeoutInMinutes?: number;
/**
* Enable multiple standard load balancers per AKS cluster or not.
*/
enableMultipleStandardLoadBalancers?: boolean;
}

/**
Expand Down Expand Up @@ -1667,6 +1699,10 @@ export interface ManagedClusterAPIServerAccessProfile {
* Whether to create additional public FQDN for private cluster or not.
*/
enablePrivateClusterPublicFQDN?: boolean;
/**
* Whether to disable run command for the cluster or not.
*/
disableRunCommand?: boolean;
}

/**
Expand Down Expand Up @@ -1905,6 +1941,12 @@ export interface ManagedCluster extends Resource {
* Security profile for the managed cluster.
*/
securityProfile?: ManagedClusterSecurityProfile;
/**
* Whether the cluster can be accessed through public network or not. Default value is 'Enabled'
* (case insensitive). Could be set to 'Disabled' to enable private cluster. Possible values
* include: 'Enabled', 'Disabled'
*/
publicNetworkAccess?: PublicNetworkAccess;
}

/**
Expand Down Expand Up @@ -2274,6 +2316,25 @@ export interface OutboundEnvironmentEndpoint {
endpoints?: EndpointDependency[];
}

/**
* A node pool snapshot resource.
*/
export interface Snapshot extends Resource {
/**
* The system metadata relating to this snapshot.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly systemData?: SystemData;
/**
* CreationData to be used to specify the source agent pool resource ID to create this snapshot.
*/
creationData?: CreationData;
/**
* Possible values include: 'NodePool'. Default value: 'NodePool'.
*/
snapshotType?: SnapshotType;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -2381,6 +2442,19 @@ export interface AgentPoolListResult extends Array<AgentPool> {
readonly nextLink?: string;
}

/**
* @interface
* The response from the List Snapshots operation.
* @extends Array<Snapshot>
*/
export interface SnapshotListResult extends Array<Snapshot> {
/**
* The URL to get the next set of snapshot results.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly nextLink?: string;
}

/**
* Defines values for ContainerServiceStorageProfileTypes.
* Possible values include: 'StorageAccount', 'ManagedDisks'
Expand Down Expand Up @@ -2450,6 +2524,14 @@ export type OSDiskType = 'Managed' | 'Ephemeral';
*/
export type KubeletDiskType = 'OS' | 'Temporary';

/**
* Defines values for WorkloadRuntime.
* Possible values include: 'OCIContainer', 'WasmWasi'
* @readonly
* @enum {string}
*/
export type WorkloadRuntime = 'OCIContainer' | 'WasmWasi';

/**
* Defines values for OSType.
* Possible values include: 'Linux', 'Windows'
Expand Down Expand Up @@ -2644,6 +2726,14 @@ export type UpgradeChannel = 'rapid' | 'stable' | 'patch' | 'node-image' | 'none
*/
export type Expander = 'least-waste' | 'most-pods' | 'priority' | 'random';

/**
* Defines values for PublicNetworkAccess.
* Possible values include: 'Enabled', 'Disabled'
* @readonly
* @enum {string}
*/
export type PublicNetworkAccess = 'Enabled' | 'Disabled';

/**
* Defines values for PrivateEndpointConnectionProvisioningState.
* Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed'
Expand All @@ -2660,6 +2750,14 @@ export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating
*/
export type ConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected';

/**
* Defines values for SnapshotType.
* Possible values include: 'NodePool'
* @readonly
* @enum {string}
*/
export type SnapshotType = 'NodePool';

/**
* Contains response data for the list operation.
*/
Expand Down Expand Up @@ -3439,3 +3537,143 @@ export type ResolvePrivateLinkServiceIdPOSTResponse = PrivateLinkResource & {
parsedBody: PrivateLinkResource;
};
};

/**
* Contains response data for the list operation.
*/
export type SnapshotsListResponse = SnapshotListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SnapshotListResult;
};
};

/**
* Contains response data for the listByResourceGroup operation.
*/
export type SnapshotsListByResourceGroupResponse = SnapshotListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SnapshotListResult;
};
};

/**
* Contains response data for the get operation.
*/
export type SnapshotsGetResponse = Snapshot & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: Snapshot;
};
};

/**
* Contains response data for the createOrUpdate operation.
*/
export type SnapshotsCreateOrUpdateResponse = Snapshot & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: Snapshot;
};
};

/**
* Contains response data for the updateTags operation.
*/
export type SnapshotsUpdateTagsResponse = Snapshot & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: Snapshot;
};
};

/**
* Contains response data for the listNext operation.
*/
export type SnapshotsListNextResponse = SnapshotListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SnapshotListResult;
};
};

/**
* Contains response data for the listByResourceGroupNext operation.
*/
export type SnapshotsListByResourceGroupNextResponse = SnapshotListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SnapshotListResult;
};
};
Loading