Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-cloudkms/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-cloudkms</artifactId>
<version>v1-rev20240314-2.0.0</version>
<version>v1-rev20240425-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-cloudkms:v1-rev20240314-2.0.0'
implementation 'com.google.apis:google-api-services-cloudkms:v1-rev20240425-2.0.0'
}
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.cloudkms.v1.model;

/**
* Cloud KMS Autokey configuration for a folder.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Key Management Service (KMS) API. For a
* detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class AutokeyConfig extends com.google.api.client.json.GenericJson {

/**
* Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or `projects/{PROJECT_NUMBER}`,
* where Cloud KMS Autokey will provision new CryptoKeys. On UpdateAutokeyConfig, the caller will
* require `cloudkms.cryptoKeys.setIamPolicy` permission on this key project. Once configured, for
* Cloud KMS Autokey to function properly, this key project must have the Cloud KMS API activated
* and the Cloud KMS Service Agent for this key project must be granted the `cloudkms.admin` role
* (or pertinent permissions).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String keyProject;

/**
* Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;

/**
* Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or `projects/{PROJECT_NUMBER}`,
* where Cloud KMS Autokey will provision new CryptoKeys. On UpdateAutokeyConfig, the caller will
* require `cloudkms.cryptoKeys.setIamPolicy` permission on this key project. Once configured, for
* Cloud KMS Autokey to function properly, this key project must have the Cloud KMS API activated
* and the Cloud KMS Service Agent for this key project must be granted the `cloudkms.admin` role
* (or pertinent permissions).
* @return value or {@code null} for none
*/
public java.lang.String getKeyProject() {
return keyProject;
}

/**
* Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or `projects/{PROJECT_NUMBER}`,
* where Cloud KMS Autokey will provision new CryptoKeys. On UpdateAutokeyConfig, the caller will
* require `cloudkms.cryptoKeys.setIamPolicy` permission on this key project. Once configured, for
* Cloud KMS Autokey to function properly, this key project must have the Cloud KMS API activated
* and the Cloud KMS Service Agent for this key project must be granted the `cloudkms.admin` role
* (or pertinent permissions).
* @param keyProject keyProject or {@code null} for none
*/
public AutokeyConfig setKeyProject(java.lang.String keyProject) {
this.keyProject = keyProject;
return this;
}

/**
* Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}

/**
* Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.
* @param name name or {@code null} for none
*/
public AutokeyConfig setName(java.lang.String name) {
this.name = name;
return this;
}

@Override
public AutokeyConfig set(String fieldName, Object value) {
return (AutokeyConfig) super.set(fieldName, value);
}

@Override
public AutokeyConfig clone() {
return (AutokeyConfig) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.cloudkms.v1.model;

/**
* Resource-oriented representation of a request to Cloud KMS Autokey and the resulting provisioning
* of a CryptoKey.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Key Management Service (KMS) API. For a
* detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class KeyHandle extends com.google.api.client.json.GenericJson {

/**
* Output only. Name of a CryptoKey that has been provisioned for Customer Managed Encryption Key
* (CMEK) use in the KeyHandle's project and location for the requested resource type.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kmsKey;

/**
* Output only. Identifier. Name of the [KeyHandle] resource, e.g.
* `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;

/**
* Required. Indicates the resource type that the resulting CryptoKey is meant to protect, e.g.
* `{SERVICE}.googleapis.com/{TYPE}`. See documentation for supported resource types.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String resourceTypeSelector;

/**
* Output only. Name of a CryptoKey that has been provisioned for Customer Managed Encryption Key
* (CMEK) use in the KeyHandle's project and location for the requested resource type.
* @return value or {@code null} for none
*/
public java.lang.String getKmsKey() {
return kmsKey;
}

/**
* Output only. Name of a CryptoKey that has been provisioned for Customer Managed Encryption Key
* (CMEK) use in the KeyHandle's project and location for the requested resource type.
* @param kmsKey kmsKey or {@code null} for none
*/
public KeyHandle setKmsKey(java.lang.String kmsKey) {
this.kmsKey = kmsKey;
return this;
}

/**
* Output only. Identifier. Name of the [KeyHandle] resource, e.g.
* `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}

/**
* Output only. Identifier. Name of the [KeyHandle] resource, e.g.
* `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`.
* @param name name or {@code null} for none
*/
public KeyHandle setName(java.lang.String name) {
this.name = name;
return this;
}

/**
* Required. Indicates the resource type that the resulting CryptoKey is meant to protect, e.g.
* `{SERVICE}.googleapis.com/{TYPE}`. See documentation for supported resource types.
* @return value or {@code null} for none
*/
public java.lang.String getResourceTypeSelector() {
return resourceTypeSelector;
}

/**
* Required. Indicates the resource type that the resulting CryptoKey is meant to protect, e.g.
* `{SERVICE}.googleapis.com/{TYPE}`. See documentation for supported resource types.
* @param resourceTypeSelector resourceTypeSelector or {@code null} for none
*/
public KeyHandle setResourceTypeSelector(java.lang.String resourceTypeSelector) {
this.resourceTypeSelector = resourceTypeSelector;
return this;
}

@Override
public KeyHandle set(String fieldName, Object value) {
return (KeyHandle) super.set(fieldName, value);
}

@Override
public KeyHandle clone() {
return (KeyHandle) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.cloudkms.v1.model;

/**
* Response message for Autokey.ListKeyHandles.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Key Management Service (KMS) API. For a
* detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ListKeyHandlesResponse extends com.google.api.client.json.GenericJson {

/**
* Resulting KeyHandles.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<KeyHandle> keyHandles;

static {
// hack to force ProGuard to consider KeyHandle used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(KeyHandle.class);
}

/**
* Resulting KeyHandles.
* @return value or {@code null} for none
*/
public java.util.List<KeyHandle> getKeyHandles() {
return keyHandles;
}

/**
* Resulting KeyHandles.
* @param keyHandles keyHandles or {@code null} for none
*/
public ListKeyHandlesResponse setKeyHandles(java.util.List<KeyHandle> keyHandles) {
this.keyHandles = keyHandles;
return this;
}

@Override
public ListKeyHandlesResponse set(String fieldName, Object value) {
return (ListKeyHandlesResponse) super.set(fieldName, value);
}

@Override
public ListKeyHandlesResponse clone() {
return (ListKeyHandlesResponse) super.clone();
}

}
Loading