Skip to content

Commit 2ca5f84

Browse files
1 parent 0f6e55c commit 2ca5f84

9 files changed

+1700
-79
lines changed

clients/google-api-services-cloudkms/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-cloudkms</artifactId>
25-
<version>v1-rev20250501-2.0.0</version>
25+
<version>v1-rev20250516-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-cloudkms:v1-rev20250501-2.0.0'
38+
implementation 'com.google.apis:google-api-services-cloudkms:v1-rev20250516-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/CloudKMS.java

Lines changed: 1289 additions & 73 deletions
Large diffs are not rendered by default.

clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/AutokeyConfig.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@
3030
@SuppressWarnings("javadoc")
3131
public final class AutokeyConfig extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* Optional. A checksum computed by the server based on the value of other fields. This may be
35+
* sent on update requests to ensure that the client has an up-to-date value before proceeding.
36+
* The request will be rejected with an ABORTED error on a mismatched etag.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.lang.String etag;
41+
3342
/**
3443
* Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or `projects/{PROJECT_NUMBER}`,
3544
* where Cloud KMS Autokey will provision a new CryptoKey when a KeyHandle is created. On
@@ -57,6 +66,27 @@ public final class AutokeyConfig extends com.google.api.client.json.GenericJson
5766
@com.google.api.client.util.Key
5867
private java.lang.String state;
5968

69+
/**
70+
* Optional. A checksum computed by the server based on the value of other fields. This may be
71+
* sent on update requests to ensure that the client has an up-to-date value before proceeding.
72+
* The request will be rejected with an ABORTED error on a mismatched etag.
73+
* @return value or {@code null} for none
74+
*/
75+
public java.lang.String getEtag() {
76+
return etag;
77+
}
78+
79+
/**
80+
* Optional. A checksum computed by the server based on the value of other fields. This may be
81+
* sent on update requests to ensure that the client has an up-to-date value before proceeding.
82+
* The request will be rejected with an ABORTED error on a mismatched etag.
83+
* @param etag etag or {@code null} for none
84+
*/
85+
public AutokeyConfig setEtag(java.lang.String etag) {
86+
this.etag = etag;
87+
return this;
88+
}
89+
6090
/**
6191
* Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or `projects/{PROJECT_NUMBER}`,
6292
* where Cloud KMS Autokey will provision a new CryptoKey when a KeyHandle is created. On
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.cloudkms.v1.model;
18+
19+
/**
20+
* The configuration of a protection level for a project's Key Access Justifications enrollment.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Key Management Service (KMS) API. For a
24+
* detailed explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class KeyAccessJustificationsEnrollmentConfig extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Whether the project has KAJ logging enabled.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Boolean auditLogging;
39+
40+
/**
41+
* Whether the project is enrolled in KAJ policy enforcement.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.Boolean policyEnforcement;
46+
47+
/**
48+
* Whether the project has KAJ logging enabled.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.lang.Boolean getAuditLogging() {
52+
return auditLogging;
53+
}
54+
55+
/**
56+
* Whether the project has KAJ logging enabled.
57+
* @param auditLogging auditLogging or {@code null} for none
58+
*/
59+
public KeyAccessJustificationsEnrollmentConfig setAuditLogging(java.lang.Boolean auditLogging) {
60+
this.auditLogging = auditLogging;
61+
return this;
62+
}
63+
64+
/**
65+
* Whether the project is enrolled in KAJ policy enforcement.
66+
* @return value or {@code null} for none
67+
*/
68+
public java.lang.Boolean getPolicyEnforcement() {
69+
return policyEnforcement;
70+
}
71+
72+
/**
73+
* Whether the project is enrolled in KAJ policy enforcement.
74+
* @param policyEnforcement policyEnforcement or {@code null} for none
75+
*/
76+
public KeyAccessJustificationsEnrollmentConfig setPolicyEnforcement(java.lang.Boolean policyEnforcement) {
77+
this.policyEnforcement = policyEnforcement;
78+
return this;
79+
}
80+
81+
@Override
82+
public KeyAccessJustificationsEnrollmentConfig set(String fieldName, Object value) {
83+
return (KeyAccessJustificationsEnrollmentConfig) super.set(fieldName, value);
84+
}
85+
86+
@Override
87+
public KeyAccessJustificationsEnrollmentConfig clone() {
88+
return (KeyAccessJustificationsEnrollmentConfig) super.clone();
89+
}
90+
91+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.cloudkms.v1.model;
18+
19+
/**
20+
* A singleton configuration for Key Access Justifications policies.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Key Management Service (KMS) API. For a
24+
* detailed explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class KeyAccessJustificationsPolicyConfig extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. The default key access justification policy used when a CryptoKey is created in this
35+
* folder. This is only used when a Key Access Justifications policy is not provided in the
36+
* CreateCryptoKeyRequest. This overrides any default policies in its ancestry.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private KeyAccessJustificationsPolicy defaultKeyAccessJustificationPolicy;
41+
42+
/**
43+
* Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of
44+
* "{organizations|folders|projects}/kajPolicyConfig".
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.lang.String name;
49+
50+
/**
51+
* Optional. The default key access justification policy used when a CryptoKey is created in this
52+
* folder. This is only used when a Key Access Justifications policy is not provided in the
53+
* CreateCryptoKeyRequest. This overrides any default policies in its ancestry.
54+
* @return value or {@code null} for none
55+
*/
56+
public KeyAccessJustificationsPolicy getDefaultKeyAccessJustificationPolicy() {
57+
return defaultKeyAccessJustificationPolicy;
58+
}
59+
60+
/**
61+
* Optional. The default key access justification policy used when a CryptoKey is created in this
62+
* folder. This is only used when a Key Access Justifications policy is not provided in the
63+
* CreateCryptoKeyRequest. This overrides any default policies in its ancestry.
64+
* @param defaultKeyAccessJustificationPolicy defaultKeyAccessJustificationPolicy or {@code null} for none
65+
*/
66+
public KeyAccessJustificationsPolicyConfig setDefaultKeyAccessJustificationPolicy(KeyAccessJustificationsPolicy defaultKeyAccessJustificationPolicy) {
67+
this.defaultKeyAccessJustificationPolicy = defaultKeyAccessJustificationPolicy;
68+
return this;
69+
}
70+
71+
/**
72+
* Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of
73+
* "{organizations|folders|projects}/kajPolicyConfig".
74+
* @return value or {@code null} for none
75+
*/
76+
public java.lang.String getName() {
77+
return name;
78+
}
79+
80+
/**
81+
* Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of
82+
* "{organizations|folders|projects}/kajPolicyConfig".
83+
* @param name name or {@code null} for none
84+
*/
85+
public KeyAccessJustificationsPolicyConfig setName(java.lang.String name) {
86+
this.name = name;
87+
return this;
88+
}
89+
90+
@Override
91+
public KeyAccessJustificationsPolicyConfig set(String fieldName, Object value) {
92+
return (KeyAccessJustificationsPolicyConfig) super.set(fieldName, value);
93+
}
94+
95+
@Override
96+
public KeyAccessJustificationsPolicyConfig clone() {
97+
return (KeyAccessJustificationsPolicyConfig) super.clone();
98+
}
99+
100+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.cloudkms.v1.model;
18+
19+
/**
20+
* Response message for
21+
* KeyAccessJustificationsConfig.ShowEffectiveKeyAccessJustificationsEnrollmentConfig
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Cloud Key Management Service (KMS) API. For a
25+
* detailed explanation see:
26+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* The effective KeyAccessJustificationsEnrollmentConfig for external keys.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private KeyAccessJustificationsEnrollmentConfig externalConfig;
40+
41+
/**
42+
* The effective KeyAccessJustificationsEnrollmentConfig for hardware keys.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private KeyAccessJustificationsEnrollmentConfig hardwareConfig;
47+
48+
/**
49+
* The effective KeyAccessJustificationsEnrollmentConfig for software keys.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private KeyAccessJustificationsEnrollmentConfig softwareConfig;
54+
55+
/**
56+
* The effective KeyAccessJustificationsEnrollmentConfig for external keys.
57+
* @return value or {@code null} for none
58+
*/
59+
public KeyAccessJustificationsEnrollmentConfig getExternalConfig() {
60+
return externalConfig;
61+
}
62+
63+
/**
64+
* The effective KeyAccessJustificationsEnrollmentConfig for external keys.
65+
* @param externalConfig externalConfig or {@code null} for none
66+
*/
67+
public ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse setExternalConfig(KeyAccessJustificationsEnrollmentConfig externalConfig) {
68+
this.externalConfig = externalConfig;
69+
return this;
70+
}
71+
72+
/**
73+
* The effective KeyAccessJustificationsEnrollmentConfig for hardware keys.
74+
* @return value or {@code null} for none
75+
*/
76+
public KeyAccessJustificationsEnrollmentConfig getHardwareConfig() {
77+
return hardwareConfig;
78+
}
79+
80+
/**
81+
* The effective KeyAccessJustificationsEnrollmentConfig for hardware keys.
82+
* @param hardwareConfig hardwareConfig or {@code null} for none
83+
*/
84+
public ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse setHardwareConfig(KeyAccessJustificationsEnrollmentConfig hardwareConfig) {
85+
this.hardwareConfig = hardwareConfig;
86+
return this;
87+
}
88+
89+
/**
90+
* The effective KeyAccessJustificationsEnrollmentConfig for software keys.
91+
* @return value or {@code null} for none
92+
*/
93+
public KeyAccessJustificationsEnrollmentConfig getSoftwareConfig() {
94+
return softwareConfig;
95+
}
96+
97+
/**
98+
* The effective KeyAccessJustificationsEnrollmentConfig for software keys.
99+
* @param softwareConfig softwareConfig or {@code null} for none
100+
*/
101+
public ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse setSoftwareConfig(KeyAccessJustificationsEnrollmentConfig softwareConfig) {
102+
this.softwareConfig = softwareConfig;
103+
return this;
104+
}
105+
106+
@Override
107+
public ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse set(String fieldName, Object value) {
108+
return (ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse) super.set(fieldName, value);
109+
}
110+
111+
@Override
112+
public ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse clone() {
113+
return (ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse) super.clone();
114+
}
115+
116+
}

0 commit comments

Comments
 (0)