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] [AKS] feat: add python SDK generation for 1001/1101-preview api #6741

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/main/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-10-01';
this.apiVersion = '2021-11-01-preview';
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 @@ -44,6 +44,7 @@ export {
ManagedClusterLoadBalancerProfileOutboundIPs,
ManagedClusterManagedOutboundIPProfile,
ManagedClusterNATGatewayProfile,
ManagedClusterOIDCIssuerProfile,
ManagedClusterPodIdentity,
ManagedClusterPodIdentityException,
ManagedClusterPodIdentityProfile,
Expand Down
26 changes: 26 additions & 0 deletions sdk/containerservice/arm-containerservice/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,21 @@ export interface ManagedClusterPodIdentityProfile {
userAssignedIdentityExceptions?: ManagedClusterPodIdentityException[];
}

/**
* The OIDC issuer profile of the Managed Cluster.
*/
export interface ManagedClusterOIDCIssuerProfile {
/**
* The OIDC issuer url of the Managed Cluster.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly issuerURL?: string;
/**
* Whether the OIDC issuer is enabled.
*/
enabled?: boolean;
}

/**
* For more details see [managed AAD on AKS](https://docs.microsoft.com/azure/aks/managed-aad).
* @summary AADProfile specifies attributes for Azure Active Directory integration.
Expand Down Expand Up @@ -1932,6 +1947,10 @@ export interface ManagedCluster extends Resource {
* AAD pod identity integration.
*/
podIdentityProfile?: ManagedClusterPodIdentityProfile;
/**
* The OIDC issuer profile of the Managed Cluster.
*/
oidcIssuerProfile?: ManagedClusterOIDCIssuerProfile;
/**
* The name of the resource group containing agent pool nodes.
*/
Expand All @@ -1945,6 +1964,13 @@ export interface ManagedCluster extends Resource {
* for removal on October 15th, 2020. Learn more at aka.ms/aks/azpodpolicy.
*/
enablePodSecurityPolicy?: boolean;
/**
* Enable namespace as Azure resource. The default value is false. It can be enabled/disabled on
* creation and updation of the managed cluster. See
* [https://aka.ms/NamespaceARMResource](https://aka.ms/NamespaceARMResource) for more details on
* Namespace as a ARM Resource.
*/
enableNamespaceResources?: boolean;
/**
* The network configuration profile.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export {
ManagedClusterLoadBalancerProfileOutboundIPs,
ManagedClusterManagedOutboundIPProfile,
ManagedClusterNATGatewayProfile,
ManagedClusterOIDCIssuerProfile,
ManagedClusterPodIdentity,
ManagedClusterPodIdentityException,
ManagedClusterPodIdentityProfile,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export {
ManagedClusterLoadBalancerProfileOutboundIPs,
ManagedClusterManagedOutboundIPProfile,
ManagedClusterNATGatewayProfile,
ManagedClusterOIDCIssuerProfile,
ManagedClusterPodIdentity,
ManagedClusterPodIdentityException,
ManagedClusterPodIdentityProfile,
Expand Down
36 changes: 36 additions & 0 deletions sdk/containerservice/arm-containerservice/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2324,6 +2324,29 @@ export const ManagedClusterPodIdentityProfile: msRest.CompositeMapper = {
}
};

export const ManagedClusterOIDCIssuerProfile: msRest.CompositeMapper = {
serializedName: "ManagedClusterOIDCIssuerProfile",
type: {
name: "Composite",
className: "ManagedClusterOIDCIssuerProfile",
modelProperties: {
issuerURL: {
readOnly: true,
serializedName: "issuerURL",
type: {
name: "String"
}
},
enabled: {
serializedName: "enabled",
type: {
name: "Boolean"
}
}
}
}
};

export const ManagedClusterAADProfile: msRest.CompositeMapper = {
serializedName: "ManagedClusterAADProfile",
type: {
Expand Down Expand Up @@ -2825,6 +2848,13 @@ export const ManagedCluster: msRest.CompositeMapper = {
className: "ManagedClusterPodIdentityProfile"
}
},
oidcIssuerProfile: {
serializedName: "properties.oidcIssuerProfile",
type: {
name: "Composite",
className: "ManagedClusterOIDCIssuerProfile"
}
},
nodeResourceGroup: {
serializedName: "properties.nodeResourceGroup",
type: {
Expand All @@ -2843,6 +2873,12 @@ export const ManagedCluster: msRest.CompositeMapper = {
name: "Boolean"
}
},
enableNamespaceResources: {
serializedName: "properties.enableNamespaceResources",
type: {
name: "Boolean"
}
},
networkProfile: {
serializedName: "properties.networkProfile",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export {
ManagedClusterLoadBalancerProfileOutboundIPs,
ManagedClusterManagedOutboundIPProfile,
ManagedClusterNATGatewayProfile,
ManagedClusterOIDCIssuerProfile,
ManagedClusterPodIdentity,
ManagedClusterPodIdentityException,
ManagedClusterPodIdentityProfile,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export {
ManagedClusterLoadBalancerProfileOutboundIPs,
ManagedClusterManagedOutboundIPProfile,
ManagedClusterNATGatewayProfile,
ManagedClusterOIDCIssuerProfile,
ManagedClusterPodIdentity,
ManagedClusterPodIdentityException,
ManagedClusterPodIdentityProfile,
Expand Down