diff --git a/azure-graphrbac/src/main/java/com/microsoft/azure/graphrbac/implementation/ApplicationInner.java b/azure-graphrbac/src/main/java/com/microsoft/azure/graphrbac/implementation/ApplicationInner.java index a3a19f291e82..816fb5978dfe 100644 --- a/azure-graphrbac/src/main/java/com/microsoft/azure/graphrbac/implementation/ApplicationInner.java +++ b/azure-graphrbac/src/main/java/com/microsoft/azure/graphrbac/implementation/ApplicationInner.java @@ -85,6 +85,18 @@ public class ApplicationInner extends DirectoryObjectInner { @JsonProperty(value = "requiredResourceAccess") private List requiredResourceAccess; + /** + * A collection of KeyCredential objects. + */ + @JsonProperty(value = "keyCredentials") + private List keyCredentials; + + /** + * A collection of PasswordCredential objects. + */ + @JsonProperty(value = "passwordCredentials") + private List passwordCredentials; + /** * Get the application ID. * @@ -285,4 +297,44 @@ public ApplicationInner withRequiredResourceAccess(List return this; } + /** + * Get a collection of KeyCredential objects. + * + * @return the keyCredentials value + */ + public List keyCredentials() { + return this.keyCredentials; + } + + /** + * Set a collection of KeyCredential objects. + * + * @param keyCredentials the keyCredentials value to set + * @return the ApplicationInner object itself. + */ + public ApplicationInner withKeyCredentials(List keyCredentials) { + this.keyCredentials = keyCredentials; + return this; + } + + /** + * Get a collection of PasswordCredential objects. + * + * @return the passwordCredentials value + */ + public List passwordCredentials() { + return this.passwordCredentials; + } + + /** + * Set a collection of PasswordCredential objects. + * + * @param passwordCredentials the passwordCredentials value to set + * @return the ApplicationInner object itself. + */ + public ApplicationInner withPasswordCredentials(List passwordCredentials) { + this.passwordCredentials = passwordCredentials; + return this; + } + } diff --git a/azure-graphrbac/src/main/java/com/microsoft/azure/graphrbac/implementation/KeyCredentialInner.java b/azure-graphrbac/src/main/java/com/microsoft/azure/graphrbac/implementation/KeyCredentialInner.java index 74d72b5c8ab9..440f32304506 100644 --- a/azure-graphrbac/src/main/java/com/microsoft/azure/graphrbac/implementation/KeyCredentialInner.java +++ b/azure-graphrbac/src/main/java/com/microsoft/azure/graphrbac/implementation/KeyCredentialInner.java @@ -62,7 +62,7 @@ public class KeyCredentialInner { * Custom Key Identifier. */ @JsonProperty(value = "customKeyIdentifier") - private byte[] customKeyIdentifier; + private String customKeyIdentifier; /** * Get unmatched properties from the message are deserialized this collection. @@ -209,7 +209,7 @@ public KeyCredentialInner withType(String type) { * * @return the customKeyIdentifier value */ - public byte[] customKeyIdentifier() { + public String customKeyIdentifier() { return this.customKeyIdentifier; } @@ -219,7 +219,7 @@ public byte[] customKeyIdentifier() { * @param customKeyIdentifier the customKeyIdentifier value to set * @return the KeyCredentialInner object itself. */ - public KeyCredentialInner withCustomKeyIdentifier(byte[] customKeyIdentifier) { + public KeyCredentialInner withCustomKeyIdentifier(String customKeyIdentifier) { this.customKeyIdentifier = customKeyIdentifier; return this; } diff --git a/azure-graphrbac/src/main/java/com/microsoft/azure/graphrbac/implementation/PasswordCredentialInner.java b/azure-graphrbac/src/main/java/com/microsoft/azure/graphrbac/implementation/PasswordCredentialInner.java index 6d65afec9995..044e3cd0e360 100644 --- a/azure-graphrbac/src/main/java/com/microsoft/azure/graphrbac/implementation/PasswordCredentialInner.java +++ b/azure-graphrbac/src/main/java/com/microsoft/azure/graphrbac/implementation/PasswordCredentialInner.java @@ -46,6 +46,12 @@ public class PasswordCredentialInner { @JsonProperty(value = "value") private String value; + /** + * Custom Key Identifier. + */ + @JsonProperty(value = "customKeyIdentifier") + private byte[] customKeyIdentifier; + /** * Get unmatched properties from the message are deserialized this collection. * @@ -146,4 +152,24 @@ public PasswordCredentialInner withValue(String value) { return this; } + /** + * Get custom Key Identifier. + * + * @return the customKeyIdentifier value + */ + public byte[] customKeyIdentifier() { + return this.customKeyIdentifier; + } + + /** + * Set custom Key Identifier. + * + * @param customKeyIdentifier the customKeyIdentifier value to set + * @return the PasswordCredentialInner object itself. + */ + public PasswordCredentialInner withCustomKeyIdentifier(byte[] customKeyIdentifier) { + this.customKeyIdentifier = customKeyIdentifier; + return this; + } + }