-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [kmsinventory] new module for kmsinventory #9162
Conversation
* | ||
* <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> | ||
*/ | ||
java.util.List<com.google.cloud.kms.v1.CryptoKey> getCryptoKeysList(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compilation error (logs), from dependency on com.google.cloud.kms.v1
Error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project proto-google-cloud-kmsinventory-v1: Compilation failure: Compilation failure:
Error: /home/runner/work/google-cloud-java/google-cloud-java/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java:[35,41] package com.google.cloud.kms.v1 does not exist
Error: /home/runner/work/google-cloud-java/google-cloud-java/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java:[45,26] package com.google.cloud.kms.v1 does not exist
Error: /home/runner/work/google-cloud-java/google-cloud-java/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java:[65,51] package com.google.cloud.kms.v1 does not exist
Error: /home/runner/work/google-cloud-java/google-cloud-java/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java:[75,26] package com.google.cloud.kms.v1 does not exist
public static final int CRYPTO_KEYS_FIELD_NUMBER = 1; | ||
|
||
@SuppressWarnings("serial") | ||
private java.util.List<com.google.cloud.kms.v1.CryptoKey> cryptoKeys_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compilation error (logs), from dependency on com.google.cloud.kms.v1
Error: /home/runner/work/google-cloud-java/google-cloud-java/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java:[75,49] package com.google.cloud.kms.v1 does not exist
Error: /home/runner/work/google-cloud-java/google-cloud-java/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java:[86,48] package com.google.cloud.kms.v1 does not exist
Error: /home/runner/work/google-cloud-java/google-cloud-java/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java:[99,58] package com.google.cloud.kms.v1 does not exist
Error: /home/runner/work/google-cloud-java/google-cloud-java/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java:[126,33] package com.google.cloud.kms.v1 does not exist
Error: /home/runner/work/google-cloud-java/google-cloud-java/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java:[139,33] package com.google.cloud.kms.v1 does not exist
Error: /home/runner/work/google-cloud-java/google-cloud-java/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java:[612,51] package com.google.cloud.kms.v1 does not exist
Error: /home/runner/work/google-cloud-java/google-cloud-java/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java:[623,36] package com.google.cloud.kms.v1 does not exist
Error: /home/runner/work/google-cloud-java/google-cloud-java/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java:[624,46] package com.google.cloud.kms.v1.CryptoKey does not exist
...
<groupId>com.google.api.grpc</groupId> | ||
<artifactId>proto-google-cloud-kmsinventory-v1</artifactId> | ||
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-kmsinventory-v1:current} --> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably need to add a section like this to here:
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-kms-v1</artifactId>
<version>0.106.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-kms-v1:current} -->
to fix the compilation issue.
@suztomo @meltsufin FYI, this is a rare case that an API is dependent on another API's proto, I think it should be fine as long as the versions are centrally maintained in versions.txt, but want to make sure this is not a problem for releasing.
I believe there was an older thread regarding this library using cross-api dependencies: https://chat.google.com/room/AAAAYlCaXjg/sqzmXYYnbX8 Blake mentioned that asset already does this and maybe we can do something similar: google-cloud-java/java-asset/pom.xml Lines 84 to 93 in 5fd6f61
Er, Blake beat me to it... I believe it's the same idea. |
I think adding the proto module dependency is be preferred (though not sure what everyone else's opinion is). Looks like we're only dependent on |
The checks are hitting the same compilation errors - locally running google-cloud-java/.kokoro/build.sh Lines 41 to 49 in 5fd6f61
Perhaps there's something else needed (for test scope)? Going to experiment a bit more locally. |
Update: ci/unit checks are passing now - thanks for the help @blakeli0 and @lqiu96 ! Manual dependency additions made in 98daccc and 5fe62af: google-cloud-java/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml Lines 36 to 39 in 5fe62af
google-cloud-java/java-kmsinventory/pom.xml Lines 44 to 49 in 5fe62af
|
<dependency> | ||
<groupId>com.google.cloud</groupId> | ||
<artifactId>google-cloud-kmsinventory</artifactId> | ||
<version>0.0.0</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to manually add release please set up for this version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Can you please add it to our new module creation guide as well? cc @suztomo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial client library generation for
kmsinventory
:Note: there is no DevRel Services product page for this API yet (hence the failing snippetbot checks), and parameters above were collected from ticket (pointing to https://github.com/googleapis/googleapis/blob/master/google/cloud/kms/inventory/v1/kmsinventory_v1.yaml).
Summary of manual adjustments:
proto-google-cloud-kms-v1
: 98daccc and 5fe62af