diff --git a/clients/google-api-services-accessapproval/v1/2.0.0/README.md b/clients/google-api-services-accessapproval/v1/2.0.0/README.md index f2927aed1f4..74d14cf83cb 100644 --- a/clients/google-api-services-accessapproval/v1/2.0.0/README.md +++ b/clients/google-api-services-accessapproval/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-accessapproval - v1-rev20231020-2.0.0 + v1-rev20231110-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-accessapproval:v1-rev20231020-2.0.0' + implementation 'com.google.apis:google-api-services-accessapproval:v1-rev20231110-2.0.0' } ``` diff --git a/clients/google-api-services-accessapproval/v1/2.0.0/com/google/api/services/accessapproval/v1/model/SignatureInfo.java b/clients/google-api-services-accessapproval/v1/2.0.0/com/google/api/services/accessapproval/v1/model/SignatureInfo.java index e4e1a1ef752..fa71377228a 100644 --- a/clients/google-api-services-accessapproval/v1/2.0.0/com/google/api/services/accessapproval/v1/model/SignatureInfo.java +++ b/clients/google-api-services-accessapproval/v1/2.0.0/com/google/api/services/accessapproval/v1/model/SignatureInfo.java @@ -36,6 +36,14 @@ public final class SignatureInfo extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String customerKmsKeyVersion; + /** + * The hashing algorithm used for signature verification. It will only be present in the case of + * Google managed keys. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String googleKeyAlgorithm; + /** * The public key for the Google default signing, encoded in PEM format. The signature was created * using a private key which may be verified using this public key. @@ -44,6 +52,14 @@ public final class SignatureInfo extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String googlePublicKeyPem; + /** + * The serialized ApprovalRequest message without the approve.signature_info field. This to allow + * the customer to verify signatures if they want to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serializedApprovalRequest; + /** * The digital signature. * The value may be {@code null}. @@ -68,6 +84,25 @@ public SignatureInfo setCustomerKmsKeyVersion(java.lang.String customerKmsKeyVer return this; } + /** + * The hashing algorithm used for signature verification. It will only be present in the case of + * Google managed keys. + * @return value or {@code null} for none + */ + public java.lang.String getGoogleKeyAlgorithm() { + return googleKeyAlgorithm; + } + + /** + * The hashing algorithm used for signature verification. It will only be present in the case of + * Google managed keys. + * @param googleKeyAlgorithm googleKeyAlgorithm or {@code null} for none + */ + public SignatureInfo setGoogleKeyAlgorithm(java.lang.String googleKeyAlgorithm) { + this.googleKeyAlgorithm = googleKeyAlgorithm; + return this; + } + /** * The public key for the Google default signing, encoded in PEM format. The signature was created * using a private key which may be verified using this public key. @@ -87,6 +122,55 @@ public SignatureInfo setGooglePublicKeyPem(java.lang.String googlePublicKeyPem) return this; } + /** + * The serialized ApprovalRequest message without the approve.signature_info field. This to allow + * the customer to verify signatures if they want to. + * @see #decodeSerializedApprovalRequest() + * @return value or {@code null} for none + */ + public java.lang.String getSerializedApprovalRequest() { + return serializedApprovalRequest; + } + + /** + * The serialized ApprovalRequest message without the approve.signature_info field. This to allow + * the customer to verify signatures if they want to. + * @see #getSerializedApprovalRequest() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSerializedApprovalRequest() { + return com.google.api.client.util.Base64.decodeBase64(serializedApprovalRequest); + } + + /** + * The serialized ApprovalRequest message without the approve.signature_info field. This to allow + * the customer to verify signatures if they want to. + * @see #encodeSerializedApprovalRequest() + * @param serializedApprovalRequest serializedApprovalRequest or {@code null} for none + */ + public SignatureInfo setSerializedApprovalRequest(java.lang.String serializedApprovalRequest) { + this.serializedApprovalRequest = serializedApprovalRequest; + return this; + } + + /** + * The serialized ApprovalRequest message without the approve.signature_info field. This to allow + * the customer to verify signatures if they want to. + * @see #setSerializedApprovalRequest() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public SignatureInfo encodeSerializedApprovalRequest(byte[] serializedApprovalRequest) { + this.serializedApprovalRequest = com.google.api.client.util.Base64.encodeBase64URLSafeString(serializedApprovalRequest); + return this; + } + /** * The digital signature. * @see #decodeSignature() diff --git a/clients/google-api-services-accessapproval/v1/2.0.0/pom.xml b/clients/google-api-services-accessapproval/v1/2.0.0/pom.xml index 1530ebd14b4..9e4db18861b 100644 --- a/clients/google-api-services-accessapproval/v1/2.0.0/pom.xml +++ b/clients/google-api-services-accessapproval/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-accessapproval - v1-rev20231020-2.0.0 - Access Approval API v1-rev20231020-2.0.0 + v1-rev20231110-2.0.0 + Access Approval API v1-rev20231110-2.0.0 jar 2011 diff --git a/clients/google-api-services-accessapproval/v1/README.md b/clients/google-api-services-accessapproval/v1/README.md index f2927aed1f4..74d14cf83cb 100644 --- a/clients/google-api-services-accessapproval/v1/README.md +++ b/clients/google-api-services-accessapproval/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-accessapproval - v1-rev20231020-2.0.0 + v1-rev20231110-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-accessapproval:v1-rev20231020-2.0.0' + implementation 'com.google.apis:google-api-services-accessapproval:v1-rev20231110-2.0.0' } ```