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

feat: Refactored Elliptic Key curves to provide additional options, the NamedCurve enum is replaced by the EcKeyType message #158

Merged
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -203,8 +203,8 @@ public final OperationsClient getOperationsClient() {
* @param certificateId Optional. It must be unique within a location and match the regular
* expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
* [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
* Enterprise [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier], but is optional
* and its value is ignored otherwise.
* Enterprise [CertificateAuthority.Tier][], but is optional and its value is ignored
* otherwise.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Certificate createCertificate(
Expand Down Expand Up @@ -245,8 +245,8 @@ public final Certificate createCertificate(
* @param certificateId Optional. It must be unique within a location and match the regular
* expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
* [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
* Enterprise [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier], but is optional
* and its value is ignored otherwise.
* Enterprise [CertificateAuthority.Tier][], but is optional and its value is ignored
* otherwise.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Certificate createCertificate(
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -16,4 +16,30 @@
<className>com/google/cloud/security/privateca/v1/*OrBuilder</className>
<method>boolean has*(*)</method>
</difference>
<difference>
<differenceType>7006</differenceType>
<className>com/google/cloud/security/privateca/v1/CaPool*</className>
<method>* getEllipticCurve*(*)</method>
<to>com.google.cloud.security.privateca.v1.CaPool$IssuancePolicy$AllowedKeyType$EcKeyType</to>
</difference>
<difference>
<differenceType>7005</differenceType>
<className>com/google/cloud/security/privateca/v1/CaPool$IssuancePolicy$AllowedKeyType$Builder</className>
<method>* setEllipticCurve(*)</method>
<to>* setEllipticCurve(*)</to>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/google/cloud/security/privateca/v1/CaPool*</className>
<method>* getEllipticCurve*(*)</method>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/google/cloud/security/privateca/v1/CaPool*</className>
<method>* setEllipticCurve*(*)</method>
</difference>
<difference>
<differenceType>8001</differenceType>
<className>com/google/cloud/security/privateca/v1/CaPool$IssuancePolicy$AllowedKeyType$NamedCurve</className>
</difference>
</differences>
Expand Up @@ -154,9 +154,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* <pre>
* Required. The resource name for this
* [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
* in the format `projects/&#42;&#47;locations/&#42;&#47;caPools/&#42;&#47;certificateAuthorities/&#42;`.
* Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
* format `projects/&#42;&#47;locations/&#42;&#47;caPools/&#42;&#47;certificateAuthorities/&#42;`.
* </pre>
*
* <code>
Expand All @@ -181,9 +180,8 @@ public java.lang.String getName() {
*
*
* <pre>
* Required. The resource name for this
* [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
* in the format `projects/&#42;&#47;locations/&#42;&#47;caPools/&#42;&#47;certificateAuthorities/&#42;`.
* Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
* format `projects/&#42;&#47;locations/&#42;&#47;caPools/&#42;&#47;certificateAuthorities/&#42;`.
* </pre>
*
* <code>
Expand Down Expand Up @@ -262,8 +260,8 @@ public com.google.protobuf.ByteString getPemCaCertificateBytes() {
*
*
* <pre>
* Required. Must include information about the issuer of
* 'pem_ca_certificate', and any further issuers until the self-signed CA.
* Required. Must include information about the issuer of 'pem_ca_certificate', and any
* further issuers until the self-signed CA.
* </pre>
*
* <code>
Expand All @@ -280,8 +278,8 @@ public boolean hasSubordinateConfig() {
*
*
* <pre>
* Required. Must include information about the issuer of
* 'pem_ca_certificate', and any further issuers until the self-signed CA.
* Required. Must include information about the issuer of 'pem_ca_certificate', and any
* further issuers until the self-signed CA.
* </pre>
*
* <code>
Expand All @@ -300,8 +298,8 @@ public com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateCo
*
*
* <pre>
* Required. Must include information about the issuer of
* 'pem_ca_certificate', and any further issuers until the self-signed CA.
* Required. Must include information about the issuer of 'pem_ca_certificate', and any
* further issuers until the self-signed CA.
* </pre>
*
* <code>
Expand All @@ -320,10 +318,10 @@ public com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateCo
*
*
* <pre>
* Optional. An ID to identify requests. Specify a unique request ID so that
* if you must retry your request, the server will know to ignore the request
* if it has already been completed. The server will guarantee that for at
* least 60 minutes since the first request.
* Optional. An ID to identify requests. Specify a unique request ID so that if you must
* retry your request, the server will know to ignore the request if it has
* already been completed. The server will guarantee that for at least 60
* minutes since the first request.
* For example, consider a situation where you make an initial request and t
* he request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID
Expand Down Expand Up @@ -353,10 +351,10 @@ public java.lang.String getRequestId() {
*
*
* <pre>
* Optional. An ID to identify requests. Specify a unique request ID so that
* if you must retry your request, the server will know to ignore the request
* if it has already been completed. The server will guarantee that for at
* least 60 minutes since the first request.
* Optional. An ID to identify requests. Specify a unique request ID so that if you must
* retry your request, the server will know to ignore the request if it has
* already been completed. The server will guarantee that for at least 60
* minutes since the first request.
* For example, consider a situation where you make an initial request and t
* he request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID
Expand Down Expand Up @@ -787,9 +785,8 @@ public Builder mergeFrom(
*
*
* <pre>
* Required. The resource name for this
* [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
* in the format `projects/&#42;&#47;locations/&#42;&#47;caPools/&#42;&#47;certificateAuthorities/&#42;`.
* Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
* format `projects/&#42;&#47;locations/&#42;&#47;caPools/&#42;&#47;certificateAuthorities/&#42;`.
* </pre>
*
* <code>
Expand All @@ -813,9 +810,8 @@ public java.lang.String getName() {
*
*
* <pre>
* Required. The resource name for this
* [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
* in the format `projects/&#42;&#47;locations/&#42;&#47;caPools/&#42;&#47;certificateAuthorities/&#42;`.
* Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
* format `projects/&#42;&#47;locations/&#42;&#47;caPools/&#42;&#47;certificateAuthorities/&#42;`.
* </pre>
*
* <code>
Expand All @@ -839,9 +835,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* <pre>
* Required. The resource name for this
* [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
* in the format `projects/&#42;&#47;locations/&#42;&#47;caPools/&#42;&#47;certificateAuthorities/&#42;`.
* Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
* format `projects/&#42;&#47;locations/&#42;&#47;caPools/&#42;&#47;certificateAuthorities/&#42;`.
* </pre>
*
* <code>
Expand All @@ -864,9 +859,8 @@ public Builder setName(java.lang.String value) {
*
*
* <pre>
* Required. The resource name for this
* [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
* in the format `projects/&#42;&#47;locations/&#42;&#47;caPools/&#42;&#47;certificateAuthorities/&#42;`.
* Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
* format `projects/&#42;&#47;locations/&#42;&#47;caPools/&#42;&#47;certificateAuthorities/&#42;`.
* </pre>
*
* <code>
Expand All @@ -885,9 +879,8 @@ public Builder clearName() {
*
*
* <pre>
* Required. The resource name for this
* [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
* in the format `projects/&#42;&#47;locations/&#42;&#47;caPools/&#42;&#47;certificateAuthorities/&#42;`.
* Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
* format `projects/&#42;&#47;locations/&#42;&#47;caPools/&#42;&#47;certificateAuthorities/&#42;`.
* </pre>
*
* <code>
Expand Down Expand Up @@ -1029,8 +1022,8 @@ public Builder setPemCaCertificateBytes(com.google.protobuf.ByteString value) {
*
*
* <pre>
* Required. Must include information about the issuer of
* 'pem_ca_certificate', and any further issuers until the self-signed CA.
* Required. Must include information about the issuer of 'pem_ca_certificate', and any
* further issuers until the self-signed CA.
* </pre>
*
* <code>
Expand All @@ -1046,8 +1039,8 @@ public boolean hasSubordinateConfig() {
*
*
* <pre>
* Required. Must include information about the issuer of
* 'pem_ca_certificate', and any further issuers until the self-signed CA.
* Required. Must include information about the issuer of 'pem_ca_certificate', and any
* further issuers until the self-signed CA.
* </pre>
*
* <code>
Expand All @@ -1069,8 +1062,8 @@ public com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateCo
*
*
* <pre>
* Required. Must include information about the issuer of
* 'pem_ca_certificate', and any further issuers until the self-signed CA.
* Required. Must include information about the issuer of 'pem_ca_certificate', and any
* further issuers until the self-signed CA.
* </pre>
*
* <code>
Expand All @@ -1095,8 +1088,8 @@ public Builder setSubordinateConfig(
*
*
* <pre>
* Required. Must include information about the issuer of
* 'pem_ca_certificate', and any further issuers until the self-signed CA.
* Required. Must include information about the issuer of 'pem_ca_certificate', and any
* further issuers until the self-signed CA.
* </pre>
*
* <code>
Expand All @@ -1118,8 +1111,8 @@ public Builder setSubordinateConfig(
*
*
* <pre>
* Required. Must include information about the issuer of
* 'pem_ca_certificate', and any further issuers until the self-signed CA.
* Required. Must include information about the issuer of 'pem_ca_certificate', and any
* further issuers until the self-signed CA.
* </pre>
*
* <code>
Expand Down Expand Up @@ -1149,8 +1142,8 @@ public Builder mergeSubordinateConfig(
*
*
* <pre>
* Required. Must include information about the issuer of
* 'pem_ca_certificate', and any further issuers until the self-signed CA.
* Required. Must include information about the issuer of 'pem_ca_certificate', and any
* further issuers until the self-signed CA.
* </pre>
*
* <code>
Expand All @@ -1172,8 +1165,8 @@ public Builder clearSubordinateConfig() {
*
*
* <pre>
* Required. Must include information about the issuer of
* 'pem_ca_certificate', and any further issuers until the self-signed CA.
* Required. Must include information about the issuer of 'pem_ca_certificate', and any
* further issuers until the self-signed CA.
* </pre>
*
* <code>
Expand All @@ -1190,8 +1183,8 @@ public Builder clearSubordinateConfig() {
*
*
* <pre>
* Required. Must include information about the issuer of
* 'pem_ca_certificate', and any further issuers until the self-signed CA.
* Required. Must include information about the issuer of 'pem_ca_certificate', and any
* further issuers until the self-signed CA.
* </pre>
*
* <code>
Expand All @@ -1212,8 +1205,8 @@ public Builder clearSubordinateConfig() {
*
*
* <pre>
* Required. Must include information about the issuer of
* 'pem_ca_certificate', and any further issuers until the self-signed CA.
* Required. Must include information about the issuer of 'pem_ca_certificate', and any
* further issuers until the self-signed CA.
* </pre>
*
* <code>
Expand Down Expand Up @@ -1242,10 +1235,10 @@ public Builder clearSubordinateConfig() {
*
*
* <pre>
* Optional. An ID to identify requests. Specify a unique request ID so that
* if you must retry your request, the server will know to ignore the request
* if it has already been completed. The server will guarantee that for at
* least 60 minutes since the first request.
* Optional. An ID to identify requests. Specify a unique request ID so that if you must
* retry your request, the server will know to ignore the request if it has
* already been completed. The server will guarantee that for at least 60
* minutes since the first request.
* For example, consider a situation where you make an initial request and t
* he request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID
Expand Down Expand Up @@ -1274,10 +1267,10 @@ public java.lang.String getRequestId() {
*
*
* <pre>
* Optional. An ID to identify requests. Specify a unique request ID so that
* if you must retry your request, the server will know to ignore the request
* if it has already been completed. The server will guarantee that for at
* least 60 minutes since the first request.
* Optional. An ID to identify requests. Specify a unique request ID so that if you must
* retry your request, the server will know to ignore the request if it has
* already been completed. The server will guarantee that for at least 60
* minutes since the first request.
* For example, consider a situation where you make an initial request and t
* he request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID
Expand Down Expand Up @@ -1306,10 +1299,10 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
*
*
* <pre>
* Optional. An ID to identify requests. Specify a unique request ID so that
* if you must retry your request, the server will know to ignore the request
* if it has already been completed. The server will guarantee that for at
* least 60 minutes since the first request.
* Optional. An ID to identify requests. Specify a unique request ID so that if you must
* retry your request, the server will know to ignore the request if it has
* already been completed. The server will guarantee that for at least 60
* minutes since the first request.
* For example, consider a situation where you make an initial request and t
* he request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID
Expand Down Expand Up @@ -1337,10 +1330,10 @@ public Builder setRequestId(java.lang.String value) {
*
*
* <pre>
* Optional. An ID to identify requests. Specify a unique request ID so that
* if you must retry your request, the server will know to ignore the request
* if it has already been completed. The server will guarantee that for at
* least 60 minutes since the first request.
* Optional. An ID to identify requests. Specify a unique request ID so that if you must
* retry your request, the server will know to ignore the request if it has
* already been completed. The server will guarantee that for at least 60
* minutes since the first request.
* For example, consider a situation where you make an initial request and t
* he request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID
Expand All @@ -1364,10 +1357,10 @@ public Builder clearRequestId() {
*
*
* <pre>
* Optional. An ID to identify requests. Specify a unique request ID so that
* if you must retry your request, the server will know to ignore the request
* if it has already been completed. The server will guarantee that for at
* least 60 minutes since the first request.
* Optional. An ID to identify requests. Specify a unique request ID so that if you must
* retry your request, the server will know to ignore the request if it has
* already been completed. The server will guarantee that for at least 60
* minutes since the first request.
* For example, consider a situation where you make an initial request and t
* he request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID
Expand Down