@@ -144,9 +144,40 @@ module NetworkingProfiles {
144144 NetworkProfile ( ) { this = properties .getProperty ( "networkProfile" ) }
145145
146146 /**
147- * Returns a string representation of the network profile.
147+ * Returns the network interfaces property of the network profile.
148148 */
149- string toString ( ) { result = "NetworkProfile" }
149+ StringLiteral getNetworkPlugin ( ) { result = this .getProperty ( "networkPlugin" ) }
150+
151+ predicate hasNetworkPlugin ( ) { exists ( this .getNetworkPlugin ( ) ) }
152+
153+ string networkPlugin ( ) { result = this .getNetworkPlugin ( ) .getValue ( ) }
154+
155+ /**
156+ * Returns the network policy for the virtual machine.
157+ */
158+ StringLiteral getNetworkPolicy ( ) { result = this .getProperty ( "networkPolicy" ) }
159+
160+ predicate hasNetworkPolicy ( ) { exists ( this .getNetworkPolicy ( ) ) }
161+
162+ string networkPolicy ( ) { result = this .getNetworkPolicy ( ) .getValue ( ) }
163+
164+ StringLiteral getLoadBalancerSku ( ) { result = this .getProperty ( "loadBalancerSku" ) }
165+
166+ predicate hasLoadBalancerSku ( ) { exists ( this .getLoadBalancerSku ( ) ) }
167+
168+ string loadBalancerSku ( ) { result = this .getLoadBalancerSku ( ) .getValue ( ) }
169+
170+ StringLiteral getOutboundType ( ) { result = this .getProperty ( "outboundType" ) }
171+
172+ string outboundType ( ) { result = this .getOutboundType ( ) .getValue ( ) }
173+
174+ predicate hasOutboundType ( ) { exists ( this .getOutboundType ( ) ) }
175+
176+ StringLiteral getServiceCidr ( ) { result = this .getProperty ( "serviceCidr" ) }
177+
178+ predicate hasServiceCidr ( ) { exists ( this .getServiceCidr ( ) ) }
179+
180+ string serviceCidr ( ) { result = this .getServiceCidr ( ) .getValue ( ) }
150181
151182 /**
152183 * Returns the network interfaces for the virtual machine.
@@ -161,6 +192,11 @@ module NetworkingProfiles {
161192 private Object getNetworkInterfacesObject ( ) {
162193 result = this .getProperty ( "networkInterfaces" ) .( Array ) .getElements ( )
163194 }
195+
196+ /**
197+ * Returns a string representation of the network profile.
198+ */
199+ string toString ( ) { result = "NetworkProfile" }
164200 }
165201}
166202
@@ -237,3 +273,44 @@ module StorageProfiles {
237273 Expr getVersion ( ) { result = this .getProperty ( "version" ) }
238274 }
239275}
276+
277+ module SecurityProfiles {
278+ /**
279+ * Represents the security profile for a managed AKS cluster.
280+ */
281+ class SecurityProfile extends Object {
282+ private ResourceProperties properties ;
283+
284+ /**
285+ * Constructs a SecurityProfile object for the given properties.
286+ */
287+ SecurityProfile ( ) { this = properties .getProperty ( "securityProfile" ) }
288+
289+ /**
290+ * Gets the Azure Key Vault KMS property.
291+ */
292+ Expr getAzureKeyVaultKms ( ) { result = this .getProperty ( "azureKeyVaultKms" ) }
293+
294+ /**
295+ * Gets the defender property.
296+ */
297+ Expr getDefender ( ) { result = this .getProperty ( "defender" ) }
298+
299+ /**
300+ * Gets the image cleaner property.
301+ */
302+ Expr getImageCleaner ( ) { result = this .getProperty ( "imageCleaner" ) }
303+
304+ /**
305+ * Gets the node restriction property.
306+ */
307+ Expr getNodeRestriction ( ) { result = this .getProperty ( "nodeRestriction" ) }
308+
309+ /**
310+ * Gets the workload identity property.
311+ */
312+ Expr getWorkloadIdentity ( ) { result = this .getProperty ( "workloadIdentity" ) }
313+
314+ string toString ( ) { result = "SecurityProfile" }
315+ }
316+ }
0 commit comments