Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR containerservice/resource-manager] including apiServerAuthorizedIPRanges #4777

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
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ContainerServiceNetworkProfile {
* Kubernetes network. Possible values include: 'azure', 'kubenet'. Default
* value: 'kubenet' .
* @property {string} [networkPolicy] Network policy used for building
* Kubernetes network. Possible values include: 'calico'
* Kubernetes network. Possible values include: 'calico', 'azure'
* @property {string} [podCidr] A CIDR notation IP range from which to assign
* pod IPs when kubenet is used. Default value: '10.244.0.0/16' .
* @property {string} [serviceCidr] A CIDR notation IP range from which to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,8 @@ export interface ContainerServiceNetworkProfile {
*/
networkPlugin?: string;
/**
* Network policy used for building Kubernetes network. Possible values include: 'calico'
* Network policy used for building Kubernetes network. Possible values include: 'calico',
* 'azure'
*/
networkPolicy?: string;
/**
Expand Down Expand Up @@ -1043,6 +1044,10 @@ export interface ManagedCluster extends Resource {
* Profile of Azure Active Directory configuration.
*/
aadProfile?: ManagedClusterAADProfile;
/**
* Authorized IP Ranges to kubernetes API server.
*/
apiServerAuthorizedIPRanges?: string[];
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ManagedCluster extends models['Resource'] {
* @property {string} [networkProfile.networkPlugin] Network plugin used for
* building Kubernetes network. Possible values include: 'azure', 'kubenet'
* @property {string} [networkProfile.networkPolicy] Network policy used for
* building Kubernetes network. Possible values include: 'calico'
* building Kubernetes network. Possible values include: 'calico', 'azure'
* @property {string} [networkProfile.podCidr] A CIDR notation IP range from
* which to assign pod IPs when kubenet is used.
* @property {string} [networkProfile.serviceCidr] A CIDR notation IP range
Expand All @@ -75,6 +75,8 @@ class ManagedCluster extends models['Resource'] {
* @property {string} [aadProfile.tenantID] The AAD tenant ID to use for
* authentication. If not specified, will use the tenant of the deployment
* subscription.
* @property {array} [apiServerAuthorizedIPRanges] Authorized IP Ranges to
* kubernetes API server.
*/
constructor() {
super();
Expand Down Expand Up @@ -252,6 +254,20 @@ class ManagedCluster extends models['Resource'] {
name: 'Composite',
className: 'ManagedClusterAADProfile'
}
},
apiServerAuthorizedIPRanges: {
required: false,
serializedName: 'properties.apiServerAuthorizedIPRanges',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
Expand Down
24 changes: 20 additions & 4 deletions lib/services/containerservicesManagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2992,7 +2992,8 @@ export interface ManagedClusters {
* 'kubenet'
*
* @param {string} [parameters.networkProfile.networkPolicy] Network policy
* used for building Kubernetes network. Possible values include: 'calico'
* used for building Kubernetes network. Possible values include: 'calico',
* 'azure'
*
* @param {string} [parameters.networkProfile.podCidr] A CIDR notation IP range
* from which to assign pod IPs when kubenet is used.
Expand Down Expand Up @@ -3025,6 +3026,9 @@ export interface ManagedClusters {
* for authentication. If not specified, will use the tenant of the deployment
* subscription.
*
* @param {array} [parameters.apiServerAuthorizedIPRanges] Authorized IP Ranges
* to kubernetes API server.
*
* @param {string} parameters.location Resource location
*
* @param {object} [parameters.tags] Resource tags
Expand Down Expand Up @@ -3103,7 +3107,8 @@ export interface ManagedClusters {
* 'kubenet'
*
* @param {string} [parameters.networkProfile.networkPolicy] Network policy
* used for building Kubernetes network. Possible values include: 'calico'
* used for building Kubernetes network. Possible values include: 'calico',
* 'azure'
*
* @param {string} [parameters.networkProfile.podCidr] A CIDR notation IP range
* from which to assign pod IPs when kubenet is used.
Expand Down Expand Up @@ -3136,6 +3141,9 @@ export interface ManagedClusters {
* for authentication. If not specified, will use the tenant of the deployment
* subscription.
*
* @param {array} [parameters.apiServerAuthorizedIPRanges] Authorized IP Ranges
* to kubernetes API server.
*
* @param {string} parameters.location Resource location
*
* @param {object} [parameters.tags] Resource tags
Expand Down Expand Up @@ -3536,7 +3544,8 @@ export interface ManagedClusters {
* 'kubenet'
*
* @param {string} [parameters.networkProfile.networkPolicy] Network policy
* used for building Kubernetes network. Possible values include: 'calico'
* used for building Kubernetes network. Possible values include: 'calico',
* 'azure'
*
* @param {string} [parameters.networkProfile.podCidr] A CIDR notation IP range
* from which to assign pod IPs when kubenet is used.
Expand Down Expand Up @@ -3569,6 +3578,9 @@ export interface ManagedClusters {
* for authentication. If not specified, will use the tenant of the deployment
* subscription.
*
* @param {array} [parameters.apiServerAuthorizedIPRanges] Authorized IP Ranges
* to kubernetes API server.
*
* @param {string} parameters.location Resource location
*
* @param {object} [parameters.tags] Resource tags
Expand Down Expand Up @@ -3647,7 +3659,8 @@ export interface ManagedClusters {
* 'kubenet'
*
* @param {string} [parameters.networkProfile.networkPolicy] Network policy
* used for building Kubernetes network. Possible values include: 'calico'
* used for building Kubernetes network. Possible values include: 'calico',
* 'azure'
*
* @param {string} [parameters.networkProfile.podCidr] A CIDR notation IP range
* from which to assign pod IPs when kubenet is used.
Expand Down Expand Up @@ -3680,6 +3693,9 @@ export interface ManagedClusters {
* for authentication. If not specified, will use the tenant of the deployment
* subscription.
*
* @param {array} [parameters.apiServerAuthorizedIPRanges] Authorized IP Ranges
* to kubernetes API server.
*
* @param {string} parameters.location Resource location
*
* @param {object} [parameters.tags] Resource tags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,8 @@ function _get(resourceGroupName, resourceName, options, callback) {
* 'kubenet'
*
* @param {string} [parameters.networkProfile.networkPolicy] Network policy
* used for building Kubernetes network. Possible values include: 'calico'
* used for building Kubernetes network. Possible values include: 'calico',
* 'azure'
*
* @param {string} [parameters.networkProfile.podCidr] A CIDR notation IP range
* from which to assign pod IPs when kubenet is used.
Expand Down Expand Up @@ -1161,6 +1162,9 @@ function _get(resourceGroupName, resourceName, options, callback) {
* for authentication. If not specified, will use the tenant of the deployment
* subscription.
*
* @param {array} [parameters.apiServerAuthorizedIPRanges] Authorized IP Ranges
* to kubernetes API server.
*
* @param {string} parameters.location Resource location
*
* @param {object} [parameters.tags] Resource tags
Expand Down Expand Up @@ -1598,7 +1602,8 @@ function _resetAADProfile(resourceGroupName, resourceName, parameters, options,
* 'kubenet'
*
* @param {string} [parameters.networkProfile.networkPolicy] Network policy
* used for building Kubernetes network. Possible values include: 'calico'
* used for building Kubernetes network. Possible values include: 'calico',
* 'azure'
*
* @param {string} [parameters.networkProfile.podCidr] A CIDR notation IP range
* from which to assign pod IPs when kubenet is used.
Expand Down Expand Up @@ -1631,6 +1636,9 @@ function _resetAADProfile(resourceGroupName, resourceName, parameters, options,
* for authentication. If not specified, will use the tenant of the deployment
* subscription.
*
* @param {array} [parameters.apiServerAuthorizedIPRanges] Authorized IP Ranges
* to kubernetes API server.
*
* @param {string} parameters.location Resource location
*
* @param {object} [parameters.tags] Resource tags
Expand Down Expand Up @@ -3436,7 +3444,8 @@ class ManagedClusters {
* 'kubenet'
*
* @param {string} [parameters.networkProfile.networkPolicy] Network policy
* used for building Kubernetes network. Possible values include: 'calico'
* used for building Kubernetes network. Possible values include: 'calico',
* 'azure'
*
* @param {string} [parameters.networkProfile.podCidr] A CIDR notation IP range
* from which to assign pod IPs when kubenet is used.
Expand Down Expand Up @@ -3469,6 +3478,9 @@ class ManagedClusters {
* for authentication. If not specified, will use the tenant of the deployment
* subscription.
*
* @param {array} [parameters.apiServerAuthorizedIPRanges] Authorized IP Ranges
* to kubernetes API server.
*
* @param {string} parameters.location Resource location
*
* @param {object} [parameters.tags] Resource tags
Expand Down Expand Up @@ -3559,7 +3571,8 @@ class ManagedClusters {
* 'kubenet'
*
* @param {string} [parameters.networkProfile.networkPolicy] Network policy
* used for building Kubernetes network. Possible values include: 'calico'
* used for building Kubernetes network. Possible values include: 'calico',
* 'azure'
*
* @param {string} [parameters.networkProfile.podCidr] A CIDR notation IP range
* from which to assign pod IPs when kubenet is used.
Expand Down Expand Up @@ -3592,6 +3605,9 @@ class ManagedClusters {
* for authentication. If not specified, will use the tenant of the deployment
* subscription.
*
* @param {array} [parameters.apiServerAuthorizedIPRanges] Authorized IP Ranges
* to kubernetes API server.
*
* @param {string} parameters.location Resource location
*
* @param {object} [parameters.tags] Resource tags
Expand Down Expand Up @@ -4115,7 +4131,8 @@ class ManagedClusters {
* 'kubenet'
*
* @param {string} [parameters.networkProfile.networkPolicy] Network policy
* used for building Kubernetes network. Possible values include: 'calico'
* used for building Kubernetes network. Possible values include: 'calico',
* 'azure'
*
* @param {string} [parameters.networkProfile.podCidr] A CIDR notation IP range
* from which to assign pod IPs when kubenet is used.
Expand Down Expand Up @@ -4148,6 +4165,9 @@ class ManagedClusters {
* for authentication. If not specified, will use the tenant of the deployment
* subscription.
*
* @param {array} [parameters.apiServerAuthorizedIPRanges] Authorized IP Ranges
* to kubernetes API server.
*
* @param {string} parameters.location Resource location
*
* @param {object} [parameters.tags] Resource tags
Expand Down Expand Up @@ -4238,7 +4258,8 @@ class ManagedClusters {
* 'kubenet'
*
* @param {string} [parameters.networkProfile.networkPolicy] Network policy
* used for building Kubernetes network. Possible values include: 'calico'
* used for building Kubernetes network. Possible values include: 'calico',
* 'azure'
*
* @param {string} [parameters.networkProfile.podCidr] A CIDR notation IP range
* from which to assign pod IPs when kubenet is used.
Expand Down Expand Up @@ -4271,6 +4292,9 @@ class ManagedClusters {
* for authentication. If not specified, will use the tenant of the deployment
* subscription.
*
* @param {array} [parameters.apiServerAuthorizedIPRanges] Authorized IP Ranges
* to kubernetes API server.
*
* @param {string} parameters.location Resource location
*
* @param {object} [parameters.tags] Resource tags
Expand Down