Skip to content
Closed
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
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-observability</artifactId>
<version>v1-rev20251211-2.0.0</version>
<version>v1-rev20260129-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-observability:v1-rev20251211-2.0.0'
implementation 'com.google.apis:google-api-services-observability:v1-rev20260129-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,237 @@
/*
* 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.observability.v1.model;

/**
* Bucket configuration for storing observability data.
*
* <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 Observability 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 Bucket extends com.google.api.client.json.GenericJson {

/**
* Optional. Settings for configuring CMEK on a bucket.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private CmekSettings cmekSettings;

/**
* Output only. Create timestamp.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;

/**
* Output only. Delete timestamp.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String deleteTime;

/**
* Optional. Description of the bucket.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String description;

/**
* Optional. User friendly display name.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String displayName;

/**
* Identifier. Name of the bucket. The format is:
* projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;

/**
* Output only. Timestamp when the bucket in soft-deleted state is purged.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String purgeTime;

/**
* Output only. Update timestamp.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String updateTime;

/**
* Optional. Settings for configuring CMEK on a bucket.
* @return value or {@code null} for none
*/
public CmekSettings getCmekSettings() {
return cmekSettings;
}

/**
* Optional. Settings for configuring CMEK on a bucket.
* @param cmekSettings cmekSettings or {@code null} for none
*/
public Bucket setCmekSettings(CmekSettings cmekSettings) {
this.cmekSettings = cmekSettings;
return this;
}

/**
* Output only. Create timestamp.
* @return value or {@code null} for none
*/
public String getCreateTime() {
return createTime;
}

/**
* Output only. Create timestamp.
* @param createTime createTime or {@code null} for none
*/
public Bucket setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}

/**
* Output only. Delete timestamp.
* @return value or {@code null} for none
*/
public String getDeleteTime() {
return deleteTime;
}

/**
* Output only. Delete timestamp.
* @param deleteTime deleteTime or {@code null} for none
*/
public Bucket setDeleteTime(String deleteTime) {
this.deleteTime = deleteTime;
return this;
}

/**
* Optional. Description of the bucket.
* @return value or {@code null} for none
*/
public java.lang.String getDescription() {
return description;
}

/**
* Optional. Description of the bucket.
* @param description description or {@code null} for none
*/
public Bucket setDescription(java.lang.String description) {
this.description = description;
return this;
}

/**
* Optional. User friendly display name.
* @return value or {@code null} for none
*/
public java.lang.String getDisplayName() {
return displayName;
}

/**
* Optional. User friendly display name.
* @param displayName displayName or {@code null} for none
*/
public Bucket setDisplayName(java.lang.String displayName) {
this.displayName = displayName;
return this;
}

/**
* Identifier. Name of the bucket. The format is:
* projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}

/**
* Identifier. Name of the bucket. The format is:
* projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]
* @param name name or {@code null} for none
*/
public Bucket setName(java.lang.String name) {
this.name = name;
return this;
}

/**
* Output only. Timestamp when the bucket in soft-deleted state is purged.
* @return value or {@code null} for none
*/
public String getPurgeTime() {
return purgeTime;
}

/**
* Output only. Timestamp when the bucket in soft-deleted state is purged.
* @param purgeTime purgeTime or {@code null} for none
*/
public Bucket setPurgeTime(String purgeTime) {
this.purgeTime = purgeTime;
return this;
}

/**
* Output only. Update timestamp.
* @return value or {@code null} for none
*/
public String getUpdateTime() {
return updateTime;
}

/**
* Output only. Update timestamp.
* @param updateTime updateTime or {@code null} for none
*/
public Bucket setUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}

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

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
/*
* 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.observability.v1.model;

/**
* Settings for configuring CMEK for a bucket.
*
* <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 Observability 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 CmekSettings extends com.google.api.client.json.GenericJson {

/**
* Optional. The resource name for the configured Cloud KMS key. The format is:
* projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY] For example:
* projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kmsKey;

/**
* Output only. The CryptoKeyVersion resource name for the configured Cloud KMS key. The format
* is: projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVer
* sions/[VERSION] For example: projects/my-project/locations/us-central1/keyRings/my-
* ring/cryptoKeys/my-key/cryptoKeyVersions/1 This read-only field is used to convey the specific
* configured CryptoKeyVersion of the `kms_key` that has been configured. It is populated when the
* CMEK settings are bound to a single key version.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kmsKeyVersion;

/**
* Output only. The service account used to access the key.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String serviceAccountId;

/**
* Optional. The resource name for the configured Cloud KMS key. The format is:
* projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY] For example:
* projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key
* @return value or {@code null} for none
*/
public java.lang.String getKmsKey() {
return kmsKey;
}

/**
* Optional. The resource name for the configured Cloud KMS key. The format is:
* projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY] For example:
* projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key
* @param kmsKey kmsKey or {@code null} for none
*/
public CmekSettings setKmsKey(java.lang.String kmsKey) {
this.kmsKey = kmsKey;
return this;
}

/**
* Output only. The CryptoKeyVersion resource name for the configured Cloud KMS key. The format
* is: projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVer
* sions/[VERSION] For example: projects/my-project/locations/us-central1/keyRings/my-
* ring/cryptoKeys/my-key/cryptoKeyVersions/1 This read-only field is used to convey the specific
* configured CryptoKeyVersion of the `kms_key` that has been configured. It is populated when the
* CMEK settings are bound to a single key version.
* @return value or {@code null} for none
*/
public java.lang.String getKmsKeyVersion() {
return kmsKeyVersion;
}

/**
* Output only. The CryptoKeyVersion resource name for the configured Cloud KMS key. The format
* is: projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVer
* sions/[VERSION] For example: projects/my-project/locations/us-central1/keyRings/my-
* ring/cryptoKeys/my-key/cryptoKeyVersions/1 This read-only field is used to convey the specific
* configured CryptoKeyVersion of the `kms_key` that has been configured. It is populated when the
* CMEK settings are bound to a single key version.
* @param kmsKeyVersion kmsKeyVersion or {@code null} for none
*/
public CmekSettings setKmsKeyVersion(java.lang.String kmsKeyVersion) {
this.kmsKeyVersion = kmsKeyVersion;
return this;
}

/**
* Output only. The service account used to access the key.
* @return value or {@code null} for none
*/
public java.lang.String getServiceAccountId() {
return serviceAccountId;
}

/**
* Output only. The service account used to access the key.
* @param serviceAccountId serviceAccountId or {@code null} for none
*/
public CmekSettings setServiceAccountId(java.lang.String serviceAccountId) {
this.serviceAccountId = serviceAccountId;
return this;
}

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

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

}
Loading
Loading