Skip to content

Commit aa15b15

Browse files
1 parent 809f89b commit aa15b15

File tree

10 files changed

+1904
-59
lines changed

10 files changed

+1904
-59
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-rev20240314-2.0.0</version>
25+
<version>v1-rev20240425-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-rev20240314-2.0.0'
38+
implementation 'com.google.apis:google-api-services-cloudkms:v1-rev20240425-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: 1203 additions & 53 deletions
Large diffs are not rendered by default.
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
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+
* Cloud KMS Autokey configuration for a folder.
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 AutokeyConfig extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or `projects/{PROJECT_NUMBER}`,
35+
* where Cloud KMS Autokey will provision new CryptoKeys. On UpdateAutokeyConfig, the caller will
36+
* require `cloudkms.cryptoKeys.setIamPolicy` permission on this key project. Once configured, for
37+
* Cloud KMS Autokey to function properly, this key project must have the Cloud KMS API activated
38+
* and the Cloud KMS Service Agent for this key project must be granted the `cloudkms.admin` role
39+
* (or pertinent permissions).
40+
* The value may be {@code null}.
41+
*/
42+
@com.google.api.client.util.Key
43+
private java.lang.String keyProject;
44+
45+
/**
46+
* Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.
47+
* The value may be {@code null}.
48+
*/
49+
@com.google.api.client.util.Key
50+
private java.lang.String name;
51+
52+
/**
53+
* Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or `projects/{PROJECT_NUMBER}`,
54+
* where Cloud KMS Autokey will provision new CryptoKeys. On UpdateAutokeyConfig, the caller will
55+
* require `cloudkms.cryptoKeys.setIamPolicy` permission on this key project. Once configured, for
56+
* Cloud KMS Autokey to function properly, this key project must have the Cloud KMS API activated
57+
* and the Cloud KMS Service Agent for this key project must be granted the `cloudkms.admin` role
58+
* (or pertinent permissions).
59+
* @return value or {@code null} for none
60+
*/
61+
public java.lang.String getKeyProject() {
62+
return keyProject;
63+
}
64+
65+
/**
66+
* Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or `projects/{PROJECT_NUMBER}`,
67+
* where Cloud KMS Autokey will provision new CryptoKeys. On UpdateAutokeyConfig, the caller will
68+
* require `cloudkms.cryptoKeys.setIamPolicy` permission on this key project. Once configured, for
69+
* Cloud KMS Autokey to function properly, this key project must have the Cloud KMS API activated
70+
* and the Cloud KMS Service Agent for this key project must be granted the `cloudkms.admin` role
71+
* (or pertinent permissions).
72+
* @param keyProject keyProject or {@code null} for none
73+
*/
74+
public AutokeyConfig setKeyProject(java.lang.String keyProject) {
75+
this.keyProject = keyProject;
76+
return this;
77+
}
78+
79+
/**
80+
* Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.
81+
* @return value or {@code null} for none
82+
*/
83+
public java.lang.String getName() {
84+
return name;
85+
}
86+
87+
/**
88+
* Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.
89+
* @param name name or {@code null} for none
90+
*/
91+
public AutokeyConfig setName(java.lang.String name) {
92+
this.name = name;
93+
return this;
94+
}
95+
96+
@Override
97+
public AutokeyConfig set(String fieldName, Object value) {
98+
return (AutokeyConfig) super.set(fieldName, value);
99+
}
100+
101+
@Override
102+
public AutokeyConfig clone() {
103+
return (AutokeyConfig) super.clone();
104+
}
105+
106+
}
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
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+
* Resource-oriented representation of a request to Cloud KMS Autokey and the resulting provisioning
21+
* of a CryptoKey.
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 KeyHandle extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Output only. Name of a CryptoKey that has been provisioned for Customer Managed Encryption Key
36+
* (CMEK) use in the KeyHandle's project and location for the requested resource type.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.lang.String kmsKey;
41+
42+
/**
43+
* Output only. Identifier. Name of the [KeyHandle] resource, e.g.
44+
* `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`.
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.lang.String name;
49+
50+
/**
51+
* Required. Indicates the resource type that the resulting CryptoKey is meant to protect, e.g.
52+
* `{SERVICE}.googleapis.com/{TYPE}`. See documentation for supported resource types.
53+
* The value may be {@code null}.
54+
*/
55+
@com.google.api.client.util.Key
56+
private java.lang.String resourceTypeSelector;
57+
58+
/**
59+
* Output only. Name of a CryptoKey that has been provisioned for Customer Managed Encryption Key
60+
* (CMEK) use in the KeyHandle's project and location for the requested resource type.
61+
* @return value or {@code null} for none
62+
*/
63+
public java.lang.String getKmsKey() {
64+
return kmsKey;
65+
}
66+
67+
/**
68+
* Output only. Name of a CryptoKey that has been provisioned for Customer Managed Encryption Key
69+
* (CMEK) use in the KeyHandle's project and location for the requested resource type.
70+
* @param kmsKey kmsKey or {@code null} for none
71+
*/
72+
public KeyHandle setKmsKey(java.lang.String kmsKey) {
73+
this.kmsKey = kmsKey;
74+
return this;
75+
}
76+
77+
/**
78+
* Output only. Identifier. Name of the [KeyHandle] resource, e.g.
79+
* `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`.
80+
* @return value or {@code null} for none
81+
*/
82+
public java.lang.String getName() {
83+
return name;
84+
}
85+
86+
/**
87+
* Output only. Identifier. Name of the [KeyHandle] resource, e.g.
88+
* `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`.
89+
* @param name name or {@code null} for none
90+
*/
91+
public KeyHandle setName(java.lang.String name) {
92+
this.name = name;
93+
return this;
94+
}
95+
96+
/**
97+
* Required. Indicates the resource type that the resulting CryptoKey is meant to protect, e.g.
98+
* `{SERVICE}.googleapis.com/{TYPE}`. See documentation for supported resource types.
99+
* @return value or {@code null} for none
100+
*/
101+
public java.lang.String getResourceTypeSelector() {
102+
return resourceTypeSelector;
103+
}
104+
105+
/**
106+
* Required. Indicates the resource type that the resulting CryptoKey is meant to protect, e.g.
107+
* `{SERVICE}.googleapis.com/{TYPE}`. See documentation for supported resource types.
108+
* @param resourceTypeSelector resourceTypeSelector or {@code null} for none
109+
*/
110+
public KeyHandle setResourceTypeSelector(java.lang.String resourceTypeSelector) {
111+
this.resourceTypeSelector = resourceTypeSelector;
112+
return this;
113+
}
114+
115+
@Override
116+
public KeyHandle set(String fieldName, Object value) {
117+
return (KeyHandle) super.set(fieldName, value);
118+
}
119+
120+
@Override
121+
public KeyHandle clone() {
122+
return (KeyHandle) super.clone();
123+
}
124+
125+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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 Autokey.ListKeyHandles.
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 ListKeyHandlesResponse extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Resulting KeyHandles.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<KeyHandle> keyHandles;
39+
40+
static {
41+
// hack to force ProGuard to consider KeyHandle used, since otherwise it would be stripped out
42+
// see https://github.com/google/google-api-java-client/issues/543
43+
com.google.api.client.util.Data.nullOf(KeyHandle.class);
44+
}
45+
46+
/**
47+
* Resulting KeyHandles.
48+
* @return value or {@code null} for none
49+
*/
50+
public java.util.List<KeyHandle> getKeyHandles() {
51+
return keyHandles;
52+
}
53+
54+
/**
55+
* Resulting KeyHandles.
56+
* @param keyHandles keyHandles or {@code null} for none
57+
*/
58+
public ListKeyHandlesResponse setKeyHandles(java.util.List<KeyHandle> keyHandles) {
59+
this.keyHandles = keyHandles;
60+
return this;
61+
}
62+
63+
@Override
64+
public ListKeyHandlesResponse set(String fieldName, Object value) {
65+
return (ListKeyHandlesResponse) super.set(fieldName, value);
66+
}
67+
68+
@Override
69+
public ListKeyHandlesResponse clone() {
70+
return (ListKeyHandlesResponse) super.clone();
71+
}
72+
73+
}

0 commit comments

Comments
 (0)