Package com.google.genai.types
Class EncryptionSpec
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.EncryptionSpec
Represents a customer-managed encryption key spec that can be applied to a top-level resource.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptionSpec.Builder
builder()
Instantiates a builder for EncryptionSpec.static EncryptionSpec
Deserializes a JSON string to a EncryptionSpec object.Required.abstract EncryptionSpec.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
EncryptionSpec
public EncryptionSpec()
-
-
Method Details
-
kmsKeyName
Required. The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. The key needs to be in the same region as where the compute resource is created. -
builder
Instantiates a builder for EncryptionSpec. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a EncryptionSpec object.
-