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] Expose a few more snapshot properties in 2021-09-01 swagger to match 2021-09-01 API #6114

Draft
wants to merge 1 commit into
base: feature/v4
Choose a base branch
from
Draft
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 @@ -27,7 +27,7 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/containerservice/arm-containerservice",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/containerservice/arm-containerservice",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class ContainerServiceClientContext extends msRestAzure.AzureServiceClien

super(credentials, options);

this.apiVersion = '2021-08-01';
this.apiVersion = '2021-09-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 @@ -68,5 +68,6 @@ export {
SystemData,
TimeInWeek,
TimeSpan,
UserAssignedIdentity
UserAssignedIdentity,
WindowsGmsaProfile
} from "../models/mappers";
56 changes: 56 additions & 0 deletions sdk/containerservice/arm-containerservice/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,27 @@ export interface AgentPool extends SubResource {
creationData?: CreationData;
}

/**
* Windows gMSA Profile in the managed cluster.
*/
export interface WindowsGmsaProfile {
/**
* Whether to enable Windows gMSA. Specifies whether to enable Windows gMSA in the managed
* cluster.
*/
enabled?: boolean;
/**
* Specifies the DNS server for Windows gMSA. <br><br> Set it to empty if you have configured the
* DNS server in the vnet which is used to create the managed cluster.
*/
dnsServer?: string;
/**
* Specifies the root domain name for Windows gMSA. <br><br> Set it to empty if you have
* configured the DNS server in the vnet which is used to create the managed cluster.
*/
rootDomainName?: string;
}

/**
* Profile for Windows VMs in the managed cluster.
*/
Expand Down Expand Up @@ -893,6 +914,10 @@ export interface ManagedClusterWindowsProfile {
* repo](https://github.com/kubernetes-csi/csi-proxy).
*/
enableCSIProxy?: boolean;
/**
* The Windows gMSA Profile in the Managed Cluster.
*/
gmsaProfile?: WindowsGmsaProfile;
}

/**
Expand Down Expand Up @@ -2333,6 +2358,37 @@ export interface Snapshot extends Resource {
* Possible values include: 'NodePool'. Default value: 'NodePool'.
*/
snapshotType?: SnapshotType;
/**
* The version of Kubernetes.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly kubernetesVersion?: string;
/**
* The version of node image.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly nodeImageVersion?: string;
/**
* Possible values include: 'Linux', 'Windows'
* **NOTE: This property will not be serialized. It can only be populated by the server.**.
* Default value: 'Linux'.
*/
readonly osType?: OSType;
/**
* Possible values include: 'Ubuntu', 'CBLMariner'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly osSku?: OSSKU;
/**
* The size of the VM.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly vmSize?: string;
/**
* Whether to use a FIPS-enabled OS.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly enableFIPS?: boolean;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ export {
SystemData,
TimeInWeek,
TimeSpan,
UserAssignedIdentity
UserAssignedIdentity,
WindowsGmsaProfile
} from "../models/mappers";
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,6 @@ export {
TagsObject,
TimeInWeek,
TimeSpan,
UserAssignedIdentity
UserAssignedIdentity,
WindowsGmsaProfile
} from "../models/mappers";
78 changes: 78 additions & 0 deletions sdk/containerservice/arm-containerservice/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,34 @@ export const AgentPool: msRest.CompositeMapper = {
}
};

export const WindowsGmsaProfile: msRest.CompositeMapper = {
serializedName: "WindowsGmsaProfile",
type: {
name: "Composite",
className: "WindowsGmsaProfile",
modelProperties: {
enabled: {
serializedName: "enabled",
type: {
name: "Boolean"
}
},
dnsServer: {
serializedName: "dnsServer",
type: {
name: "String"
}
},
rootDomainName: {
serializedName: "rootDomainName",
type: {
name: "String"
}
}
}
}
};

export const ManagedClusterWindowsProfile: msRest.CompositeMapper = {
serializedName: "ManagedClusterWindowsProfile",
type: {
Expand Down Expand Up @@ -1198,6 +1226,13 @@ export const ManagedClusterWindowsProfile: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
},
gmsaProfile: {
serializedName: "gmsaProfile",
type: {
name: "Composite",
className: "WindowsGmsaProfile"
}
}
}
}
Expand Down Expand Up @@ -3520,6 +3555,49 @@ export const Snapshot: msRest.CompositeMapper = {
type: {
name: "String"
}
},
kubernetesVersion: {
readOnly: true,
serializedName: "properties.kubernetesVersion",
type: {
name: "String"
}
},
nodeImageVersion: {
readOnly: true,
serializedName: "properties.nodeImageVersion",
type: {
name: "String"
}
},
osType: {
readOnly: true,
serializedName: "properties.osType",
defaultValue: 'Linux',
type: {
name: "String"
}
},
osSku: {
readOnly: true,
serializedName: "properties.osSku",
type: {
name: "String"
}
},
vmSize: {
readOnly: true,
serializedName: "properties.vmSize",
type: {
name: "String"
}
},
enableFIPS: {
readOnly: true,
serializedName: "properties.enableFIPS",
type: {
name: "Boolean"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ export {
SystemData,
TimeInWeek,
TimeSpan,
UserAssignedIdentity
UserAssignedIdentity,
WindowsGmsaProfile
} from "../models/mappers";
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,6 @@ export {
TagsObject,
TimeInWeek,
TimeSpan,
UserAssignedIdentity
UserAssignedIdentity,
WindowsGmsaProfile
} from "../models/mappers";