Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-containerservice] Hobov2 Swagger #5438

Closed
wants to merge 1 commit into from
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
28 changes: 18 additions & 10 deletions sdk/containerservice/arm-containerservice/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# Release History

## 19.1.0 (2023-06-15)

**Features**

## 19.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added Interface AbsoluteMonthlySchedule
- Added Interface DailySchedule
- Added Interface DateSpan
- Added Interface DelegatedResource
- Added Interface MaintenanceWindow
- Added Interface RelativeMonthlySchedule
- Added Interface Schedule
- Added Interface WeeklySchedule
- Added Type Alias Type
- Interface MaintenanceConfiguration has a new optional parameter maintenanceWindow
- Interface ManagedClusterIdentity has a new optional parameter delegatedResources
- Added Enum KnownType


## 19.0.0 (2023-05-19)

**Features**
Expand Down
8 changes: 4 additions & 4 deletions sdk/containerservice/arm-containerservice/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "2455fb21a4bd29399209b0c8583edf1f39cdb35d",
"commit": "12faab053c4239c1df7e11168e435b46f70ce429",
"readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/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\\containerservice\\resource-manager\\Microsoft.ContainerService\\aks\\readme.md --use=@autorest/[email protected].2 --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/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md --use=@autorest/typescript@^6.0.4",
"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].2"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.1",
"use": "@autorest/typescript@^6.0.4"
}
14 changes: 3 additions & 11 deletions sdk/containerservice/arm-containerservice/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 ContainerServiceClient.",
"version": "19.0.1",
"version": "19.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/containerservice/arm-containerservice",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import { OperationState } from '@azure/core-lro';
import { PagedAsyncIterableIterator } from '@azure/core-paging';
import { SimplePollerLike } from '@azure/core-lro';

// @public
export interface AbsoluteMonthlySchedule {
dayOfMonth: number;
intervalMonths: number;
}

// @public
export interface AgentPool extends SubResource {
availabilityZones?: string[];
Expand Down Expand Up @@ -323,6 +329,25 @@ export interface CredentialResults {
readonly kubeconfigs?: CredentialResult[];
}

// @public
export interface DailySchedule {
intervalDays: number;
}

// @public
export interface DateSpan {
end: Date;
start: Date;
}

// @public
export interface DelegatedResource {
location?: string;
referralResource?: string;
resourceId?: string;
tenantId?: string;
}

// @public
export interface EndpointDependency {
domainName?: string;
Expand Down Expand Up @@ -582,6 +607,15 @@ export enum KnownSnapshotType {
NodePool = "NodePool"
}

// @public
export enum KnownType {
First = "First",
Fourth = "Fourth",
Last = "Last",
Second = "Second",
Third = "Third"
}

// @public
export enum KnownUpgradeChannel {
NodeImage = "node-image",
Expand Down Expand Up @@ -671,6 +705,7 @@ export type LoadBalancerSku = string;

// @public
export interface MaintenanceConfiguration extends SubResource {
maintenanceWindow?: MaintenanceWindow;
notAllowedTime?: TimeSpan[];
readonly systemData?: SystemData;
timeInWeek?: TimeInWeek[];
Expand Down Expand Up @@ -722,6 +757,16 @@ export interface MaintenanceConfigurationsListByManagedClusterOptionalParams ext
// @public
export type MaintenanceConfigurationsListByManagedClusterResponse = MaintenanceConfigurationListResult;

// @public
export interface MaintenanceWindow {
durationHours: number;
notAllowedDates?: DateSpan[];
schedule: Schedule;
startDate?: Date;
startTime: string;
utcOffset?: string;
}

// @public
export interface ManagedCluster extends TrackedResource {
aadProfile?: ManagedClusterAADProfile;
Expand Down Expand Up @@ -893,6 +938,9 @@ export interface ManagedClusterHttpProxyConfig {

// @public
export interface ManagedClusterIdentity {
delegatedResources?: {
[propertyName: string]: DelegatedResource;
};
readonly principalId?: string;
readonly tenantId?: string;
type?: ResourceIdentityType;
Expand Down Expand Up @@ -1618,6 +1666,13 @@ export interface PrivateLinkServiceConnectionState {
// @public
export type PublicNetworkAccess = string;

// @public
export interface RelativeMonthlySchedule {
dayOfWeek: WeekDay;
intervalMonths: number;
weekIndex: Type;
}

// @public
export interface ResolvePrivateLinkServiceId {
post(resourceGroupName: string, resourceName: string, parameters: PrivateLinkResource, options?: ResolvePrivateLinkServiceIdPostOptionalParams): Promise<ResolvePrivateLinkServiceIdPostResponse>;
Expand Down Expand Up @@ -1673,6 +1728,14 @@ export type ScaleSetEvictionPolicy = string;
// @public
export type ScaleSetPriority = string;

// @public
export interface Schedule {
absoluteMonthly?: AbsoluteMonthlySchedule;
daily?: DailySchedule;
relativeMonthly?: RelativeMonthlySchedule;
weekly?: WeeklySchedule;
}

// @public
export interface Snapshot extends TrackedResource {
creationData?: CreationData;
Expand Down Expand Up @@ -1833,6 +1896,9 @@ export interface TrackedResource extends Resource {
};
}

// @public
export type Type = string;

// @public
export type UpgradeChannel = string;

Expand All @@ -1846,6 +1912,12 @@ export interface UserAssignedIdentity {
// @public
export type WeekDay = string;

// @public
export interface WeeklySchedule {
dayOfWeek: WeekDay;
intervalWeeks: number;
}

// @public
export interface WindowsGmsaProfile {
dnsServer?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-containerservice/19.0.1`;
const packageDetails = `azsdk-js-arm-containerservice/19.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -121,7 +121,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2023-04-01";
this.apiVersion = options.apiVersion || "2023-06-01";
this.operations = new OperationsImpl(this);
this.managedClusters = new ManagedClustersImpl(this);
this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this);
Expand Down
111 changes: 111 additions & 0 deletions sdk/containerservice/arm-containerservice/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,26 @@ export interface ManagedClusterIdentity {
readonly tenantId?: string;
/** For more information see [use managed identities in AKS](https://docs.microsoft.com/azure/aks/use-managed-identity). */
type?: ResourceIdentityType;
/** The delegated identity resources assigned to this managed cluster. This can only be set by another Azure Resource Provider, and managed cluster only accept one delegated identity resource. Internal use only. */
delegatedResources?: { [propertyName: string]: DelegatedResource };
/** The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */
userAssignedIdentities?: {
[propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue;
};
}

/** Delegated resource properties - internal use only. */
export interface DelegatedResource {
/** The ARM resource id of the delegated resource - internal use only. */
resourceId?: string;
/** The tenant id of the delegated resource - internal use only. */
tenantId?: string;
/** The delegation id of the referral delegation (optional) - internal use only. */
referralResource?: string;
/** The source resource location - internal use only. */
location?: string;
}

export interface ManagedServiceIdentityUserAssignedIdentitiesValue {
/**
* The principal id of user assigned identity.
Expand Down Expand Up @@ -1009,6 +1023,74 @@ export interface TimeSpan {
end?: Date;
}

/** Maintenance window used to configure scheduled auto-upgrade for a Managed Cluster. */
export interface MaintenanceWindow {
/** Recurrence schedule for the maintenance window. */
schedule: Schedule;
/** Length of maintenance window range from 4 to 24 hours. */
durationHours: number;
/** The UTC offset in format +/-HH:mm. For example, '+05:30' for IST and '-07:00' for PST. If not specified, the default is '+00:00'. */
utcOffset?: string;
/** The date the maintenance window activates. If the current date is before this date, the maintenance window is inactive and will not be used for upgrades. If not specified, the maintenance window will be active right away. */
startDate?: Date;
/** The start time of the maintenance window. Accepted values are from '00:00' to '23:59'. 'utcOffset' applies to this field. For example: '02:00' with 'utcOffset: +02:00' means UTC time '00:00'. */
startTime: string;
/** Date ranges on which upgrade is not allowed. 'utcOffset' applies to this field. For example, with 'utcOffset: +02:00' and 'dateSpan' being '2022-12-23' to '2023-01-03', maintenance will be blocked from '2022-12-22 22:00' to '2023-01-03 22:00' in UTC time. */
notAllowedDates?: DateSpan[];
}

/** One and only one of the schedule types should be specified. Choose either 'daily', 'weekly', 'absoluteMonthly' or 'relativeMonthly' for your maintenance schedule. */
export interface Schedule {
/** For schedules like: 'recur every day' or 'recur every 3 days'. */
daily?: DailySchedule;
/** For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'. */
weekly?: WeeklySchedule;
/** For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'. */
absoluteMonthly?: AbsoluteMonthlySchedule;
/** For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'. */
relativeMonthly?: RelativeMonthlySchedule;
}

/** For schedules like: 'recur every day' or 'recur every 3 days'. */
export interface DailySchedule {
/** Specifies the number of days between each set of occurrences. */
intervalDays: number;
}

/** For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'. */
export interface WeeklySchedule {
/** Specifies the number of weeks between each set of occurrences. */
intervalWeeks: number;
/** Specifies on which day of the week the maintenance occurs. */
dayOfWeek: WeekDay;
}

/** For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'. */
export interface AbsoluteMonthlySchedule {
/** Specifies the number of months between each set of occurrences. */
intervalMonths: number;
/** The date of the month. */
dayOfMonth: number;
}

/** For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'. */
export interface RelativeMonthlySchedule {
/** Specifies the number of months between each set of occurrences. */
intervalMonths: number;
/** Specifies on which week of the month the dayOfWeek applies. */
weekIndex: Type;
/** Specifies on which day of the week the maintenance occurs. */
dayOfWeek: WeekDay;
}

/** For example, between '2022-12-23' and '2023-01-05'. */
export interface DateSpan {
/** The start date of the date span. */
start: Date;
/** The end date of the date span. */
end: Date;
}

/** Reference to another subresource. */
export interface SubResource {
/**
Expand Down Expand Up @@ -1286,6 +1368,8 @@ export interface MaintenanceConfiguration extends SubResource {
timeInWeek?: TimeInWeek[];
/** Time slots on which upgrade is not allowed. */
notAllowedTime?: TimeSpan[];
/** Maintenance window for the maintenance configuration. */
maintenanceWindow?: MaintenanceWindow;
}

/** Agent Pool. */
Expand Down Expand Up @@ -2277,6 +2361,33 @@ export enum KnownWeekDay {
*/
export type WeekDay = string;

/** Known values of {@link Type} that the service accepts. */
export enum KnownType {
/** First week of the month. */
First = "First",
/** Second week of the month. */
Second = "Second",
/** Third week of the month. */
Third = "Third",
/** Fourth week of the month. */
Fourth = "Fourth",
/** Last week of the month. */
Last = "Last"
}

/**
* Defines values for Type. \
* {@link KnownType} can be used interchangeably with Type,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **First**: First week of the month. \
* **Second**: Second week of the month. \
* **Third**: Third week of the month. \
* **Fourth**: Fourth week of the month. \
* **Last**: Last week of the month.
*/
export type Type = string;

/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
export enum KnownPrivateEndpointConnectionProvisioningState {
/** Canceled */
Expand Down
Loading