genproto: google.golang.org/genproto/googleapis/cloud/kms/v1 Index | Files

package kms

import "google.golang.org/genproto/googleapis/cloud/kms/v1"

Index

Package Files

resources.pb.go service.pb.go

Variables

var CryptoKeyVersion_CryptoKeyVersionAlgorithm_name = map[int32]string{
    0:  "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED",
    1:  "GOOGLE_SYMMETRIC_ENCRYPTION",
    2:  "RSA_SIGN_PSS_2048_SHA256",
    3:  "RSA_SIGN_PSS_3072_SHA256",
    4:  "RSA_SIGN_PSS_4096_SHA256",
    15: "RSA_SIGN_PSS_4096_SHA512",
    5:  "RSA_SIGN_PKCS1_2048_SHA256",
    6:  "RSA_SIGN_PKCS1_3072_SHA256",
    7:  "RSA_SIGN_PKCS1_4096_SHA256",
    16: "RSA_SIGN_PKCS1_4096_SHA512",
    8:  "RSA_DECRYPT_OAEP_2048_SHA256",
    9:  "RSA_DECRYPT_OAEP_3072_SHA256",
    10: "RSA_DECRYPT_OAEP_4096_SHA256",
    17: "RSA_DECRYPT_OAEP_4096_SHA512",
    12: "EC_SIGN_P256_SHA256",
    13: "EC_SIGN_P384_SHA384",
}
var CryptoKeyVersion_CryptoKeyVersionAlgorithm_value = map[string]int32{
    "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED": 0,
    "GOOGLE_SYMMETRIC_ENCRYPTION":              1,
    "RSA_SIGN_PSS_2048_SHA256":                 2,
    "RSA_SIGN_PSS_3072_SHA256":                 3,
    "RSA_SIGN_PSS_4096_SHA256":                 4,
    "RSA_SIGN_PSS_4096_SHA512":                 15,
    "RSA_SIGN_PKCS1_2048_SHA256":               5,
    "RSA_SIGN_PKCS1_3072_SHA256":               6,
    "RSA_SIGN_PKCS1_4096_SHA256":               7,
    "RSA_SIGN_PKCS1_4096_SHA512":               16,
    "RSA_DECRYPT_OAEP_2048_SHA256":             8,
    "RSA_DECRYPT_OAEP_3072_SHA256":             9,
    "RSA_DECRYPT_OAEP_4096_SHA256":             10,
    "RSA_DECRYPT_OAEP_4096_SHA512":             17,
    "EC_SIGN_P256_SHA256":                      12,
    "EC_SIGN_P384_SHA384":                      13,
}
var CryptoKeyVersion_CryptoKeyVersionState_name = map[int32]string{
    0:  "CRYPTO_KEY_VERSION_STATE_UNSPECIFIED",
    5:  "PENDING_GENERATION",
    1:  "ENABLED",
    2:  "DISABLED",
    3:  "DESTROYED",
    4:  "DESTROY_SCHEDULED",
    6:  "PENDING_IMPORT",
    7:  "IMPORT_FAILED",
}
var CryptoKeyVersion_CryptoKeyVersionState_value = map[string]int32{
    "CRYPTO_KEY_VERSION_STATE_UNSPECIFIED": 0,
    "PENDING_GENERATION":                   5,
    "ENABLED":                              1,
    "DISABLED":                             2,
    "DESTROYED":                            3,
    "DESTROY_SCHEDULED":                    4,
    "PENDING_IMPORT":                       6,
    "IMPORT_FAILED":                        7,
}
var CryptoKeyVersion_CryptoKeyVersionView_name = map[int32]string{
    0:  "CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED",
    1:  "FULL",
}
var CryptoKeyVersion_CryptoKeyVersionView_value = map[string]int32{
    "CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED": 0,
    "FULL":                                1,
}
var CryptoKey_CryptoKeyPurpose_name = map[int32]string{
    0:  "CRYPTO_KEY_PURPOSE_UNSPECIFIED",
    1:  "ENCRYPT_DECRYPT",
    5:  "ASYMMETRIC_SIGN",
    6:  "ASYMMETRIC_DECRYPT",
}
var CryptoKey_CryptoKeyPurpose_value = map[string]int32{
    "CRYPTO_KEY_PURPOSE_UNSPECIFIED": 0,
    "ENCRYPT_DECRYPT":                1,
    "ASYMMETRIC_SIGN":                5,
    "ASYMMETRIC_DECRYPT":             6,
}
var ImportJob_ImportJobState_name = map[int32]string{
    0:  "IMPORT_JOB_STATE_UNSPECIFIED",
    1:  "PENDING_GENERATION",
    2:  "ACTIVE",
    3:  "EXPIRED",
}
var ImportJob_ImportJobState_value = map[string]int32{
    "IMPORT_JOB_STATE_UNSPECIFIED": 0,
    "PENDING_GENERATION":           1,
    "ACTIVE":                       2,
    "EXPIRED":                      3,
}
var ImportJob_ImportMethod_name = map[int32]string{
    0:  "IMPORT_METHOD_UNSPECIFIED",
    1:  "RSA_OAEP_3072_SHA1_AES_256",
    2:  "RSA_OAEP_4096_SHA1_AES_256",
}
var ImportJob_ImportMethod_value = map[string]int32{
    "IMPORT_METHOD_UNSPECIFIED":  0,
    "RSA_OAEP_3072_SHA1_AES_256": 1,
    "RSA_OAEP_4096_SHA1_AES_256": 2,
}
var KeyOperationAttestation_AttestationFormat_name = map[int32]string{
    0:  "ATTESTATION_FORMAT_UNSPECIFIED",
    3:  "CAVIUM_V1_COMPRESSED",
    4:  "CAVIUM_V2_COMPRESSED",
}
var KeyOperationAttestation_AttestationFormat_value = map[string]int32{
    "ATTESTATION_FORMAT_UNSPECIFIED": 0,
    "CAVIUM_V1_COMPRESSED":           3,
    "CAVIUM_V2_COMPRESSED":           4,
}
var ProtectionLevel_name = map[int32]string{
    0:  "PROTECTION_LEVEL_UNSPECIFIED",
    1:  "SOFTWARE",
    2:  "HSM",
    3:  "EXTERNAL",
}
var ProtectionLevel_value = map[string]int32{
    "PROTECTION_LEVEL_UNSPECIFIED": 0,
    "SOFTWARE":                     1,
    "HSM":                          2,
    "EXTERNAL":                     3,
}

func RegisterKeyManagementServiceServer Uses

func RegisterKeyManagementServiceServer(s *grpc.Server, srv KeyManagementServiceServer)

type AsymmetricDecryptRequest Uses

type AsymmetricDecryptRequest struct {
    // Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    // decryption.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Required. The data encrypted with the named [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public
    // key using OAEP.
    Ciphertext           []byte   `protobuf:"bytes,3,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt].

func (*AsymmetricDecryptRequest) Descriptor Uses

func (*AsymmetricDecryptRequest) Descriptor() ([]byte, []int)

func (*AsymmetricDecryptRequest) GetCiphertext Uses

func (m *AsymmetricDecryptRequest) GetCiphertext() []byte

func (*AsymmetricDecryptRequest) GetName Uses

func (m *AsymmetricDecryptRequest) GetName() string

func (*AsymmetricDecryptRequest) ProtoMessage Uses

func (*AsymmetricDecryptRequest) ProtoMessage()

func (*AsymmetricDecryptRequest) Reset Uses

func (m *AsymmetricDecryptRequest) Reset()

func (*AsymmetricDecryptRequest) String Uses

func (m *AsymmetricDecryptRequest) String() string

func (*AsymmetricDecryptRequest) XXX_DiscardUnknown Uses

func (m *AsymmetricDecryptRequest) XXX_DiscardUnknown()

func (*AsymmetricDecryptRequest) XXX_Marshal Uses

func (m *AsymmetricDecryptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AsymmetricDecryptRequest) XXX_Merge Uses

func (m *AsymmetricDecryptRequest) XXX_Merge(src proto.Message)

func (*AsymmetricDecryptRequest) XXX_Size Uses

func (m *AsymmetricDecryptRequest) XXX_Size() int

func (*AsymmetricDecryptRequest) XXX_Unmarshal Uses

func (m *AsymmetricDecryptRequest) XXX_Unmarshal(b []byte) error

type AsymmetricDecryptResponse Uses

type AsymmetricDecryptResponse struct {
    // The decrypted data originally encrypted with the matching public key.
    Plaintext            []byte   `protobuf:"bytes,1,opt,name=plaintext,proto3" json:"plaintext,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Response message for [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt].

func (*AsymmetricDecryptResponse) Descriptor Uses

func (*AsymmetricDecryptResponse) Descriptor() ([]byte, []int)

func (*AsymmetricDecryptResponse) GetPlaintext Uses

func (m *AsymmetricDecryptResponse) GetPlaintext() []byte

func (*AsymmetricDecryptResponse) ProtoMessage Uses

func (*AsymmetricDecryptResponse) ProtoMessage()

func (*AsymmetricDecryptResponse) Reset Uses

func (m *AsymmetricDecryptResponse) Reset()

func (*AsymmetricDecryptResponse) String Uses

func (m *AsymmetricDecryptResponse) String() string

func (*AsymmetricDecryptResponse) XXX_DiscardUnknown Uses

func (m *AsymmetricDecryptResponse) XXX_DiscardUnknown()

func (*AsymmetricDecryptResponse) XXX_Marshal Uses

func (m *AsymmetricDecryptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AsymmetricDecryptResponse) XXX_Merge Uses

func (m *AsymmetricDecryptResponse) XXX_Merge(src proto.Message)

func (*AsymmetricDecryptResponse) XXX_Size Uses

func (m *AsymmetricDecryptResponse) XXX_Size() int

func (*AsymmetricDecryptResponse) XXX_Unmarshal Uses

func (m *AsymmetricDecryptResponse) XXX_Unmarshal(b []byte) error

type AsymmetricSignRequest Uses

type AsymmetricSignRequest struct {
    // Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for signing.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Required. The digest of the data to sign. The digest must be produced with
    // the same digest algorithm as specified by the key version's
    // [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
    Digest               *Digest  `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign].

func (*AsymmetricSignRequest) Descriptor Uses

func (*AsymmetricSignRequest) Descriptor() ([]byte, []int)

func (*AsymmetricSignRequest) GetDigest Uses

func (m *AsymmetricSignRequest) GetDigest() *Digest

func (*AsymmetricSignRequest) GetName Uses

func (m *AsymmetricSignRequest) GetName() string

func (*AsymmetricSignRequest) ProtoMessage Uses

func (*AsymmetricSignRequest) ProtoMessage()

func (*AsymmetricSignRequest) Reset Uses

func (m *AsymmetricSignRequest) Reset()

func (*AsymmetricSignRequest) String Uses

func (m *AsymmetricSignRequest) String() string

func (*AsymmetricSignRequest) XXX_DiscardUnknown Uses

func (m *AsymmetricSignRequest) XXX_DiscardUnknown()

func (*AsymmetricSignRequest) XXX_Marshal Uses

func (m *AsymmetricSignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AsymmetricSignRequest) XXX_Merge Uses

func (m *AsymmetricSignRequest) XXX_Merge(src proto.Message)

func (*AsymmetricSignRequest) XXX_Size Uses

func (m *AsymmetricSignRequest) XXX_Size() int

func (*AsymmetricSignRequest) XXX_Unmarshal Uses

func (m *AsymmetricSignRequest) XXX_Unmarshal(b []byte) error

type AsymmetricSignResponse Uses

type AsymmetricSignResponse struct {
    // The created signature.
    Signature            []byte   `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Response message for [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign].

func (*AsymmetricSignResponse) Descriptor Uses

func (*AsymmetricSignResponse) Descriptor() ([]byte, []int)

func (*AsymmetricSignResponse) GetSignature Uses

func (m *AsymmetricSignResponse) GetSignature() []byte

func (*AsymmetricSignResponse) ProtoMessage Uses

func (*AsymmetricSignResponse) ProtoMessage()

func (*AsymmetricSignResponse) Reset Uses

func (m *AsymmetricSignResponse) Reset()

func (*AsymmetricSignResponse) String Uses

func (m *AsymmetricSignResponse) String() string

func (*AsymmetricSignResponse) XXX_DiscardUnknown Uses

func (m *AsymmetricSignResponse) XXX_DiscardUnknown()

func (*AsymmetricSignResponse) XXX_Marshal Uses

func (m *AsymmetricSignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AsymmetricSignResponse) XXX_Merge Uses

func (m *AsymmetricSignResponse) XXX_Merge(src proto.Message)

func (*AsymmetricSignResponse) XXX_Size Uses

func (m *AsymmetricSignResponse) XXX_Size() int

func (*AsymmetricSignResponse) XXX_Unmarshal Uses

func (m *AsymmetricSignResponse) XXX_Unmarshal(b []byte) error

type CreateCryptoKeyRequest Uses

type CreateCryptoKeyRequest struct {
    // Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing associated with the
    // [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Required. It must be unique within a KeyRing and match the regular
    // expression `[a-zA-Z0-9_-]{1,63}`
    CryptoKeyId string `protobuf:"bytes,2,opt,name=crypto_key_id,json=cryptoKeyId,proto3" json:"crypto_key_id,omitempty"`
    // Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field values.
    CryptoKey *CryptoKey `protobuf:"bytes,3,opt,name=crypto_key,json=cryptoKey,proto3" json:"crypto_key,omitempty"`
    // If set to true, the request will create a [CryptoKey][google.cloud.kms.v1.CryptoKey] without any
    // [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]. You must manually call
    // [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
    // [ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion]
    // before you can use this [CryptoKey][google.cloud.kms.v1.CryptoKey].
    SkipInitialVersionCreation bool     `protobuf:"varint,5,opt,name=skip_initial_version_creation,json=skipInitialVersionCreation,proto3" json:"skip_initial_version_creation,omitempty"`
    XXX_NoUnkeyedLiteral       struct{} `json:"-"`
    XXX_unrecognized           []byte   `json:"-"`
    XXX_sizecache              int32    `json:"-"`
}

Request message for [KeyManagementService.CreateCryptoKey][google.cloud.kms.v1.KeyManagementService.CreateCryptoKey].

func (*CreateCryptoKeyRequest) Descriptor Uses

func (*CreateCryptoKeyRequest) Descriptor() ([]byte, []int)

func (*CreateCryptoKeyRequest) GetCryptoKey Uses

func (m *CreateCryptoKeyRequest) GetCryptoKey() *CryptoKey

func (*CreateCryptoKeyRequest) GetCryptoKeyId Uses

func (m *CreateCryptoKeyRequest) GetCryptoKeyId() string

func (*CreateCryptoKeyRequest) GetParent Uses

func (m *CreateCryptoKeyRequest) GetParent() string

func (*CreateCryptoKeyRequest) GetSkipInitialVersionCreation Uses

func (m *CreateCryptoKeyRequest) GetSkipInitialVersionCreation() bool

func (*CreateCryptoKeyRequest) ProtoMessage Uses

func (*CreateCryptoKeyRequest) ProtoMessage()

func (*CreateCryptoKeyRequest) Reset Uses

func (m *CreateCryptoKeyRequest) Reset()

func (*CreateCryptoKeyRequest) String Uses

func (m *CreateCryptoKeyRequest) String() string

func (*CreateCryptoKeyRequest) XXX_DiscardUnknown Uses

func (m *CreateCryptoKeyRequest) XXX_DiscardUnknown()

func (*CreateCryptoKeyRequest) XXX_Marshal Uses

func (m *CreateCryptoKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateCryptoKeyRequest) XXX_Merge Uses

func (m *CreateCryptoKeyRequest) XXX_Merge(src proto.Message)

func (*CreateCryptoKeyRequest) XXX_Size Uses

func (m *CreateCryptoKeyRequest) XXX_Size() int

func (*CreateCryptoKeyRequest) XXX_Unmarshal Uses

func (m *CreateCryptoKeyRequest) XXX_Unmarshal(b []byte) error

type CreateCryptoKeyVersionRequest Uses

type CreateCryptoKeyVersionRequest struct {
    // Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with
    // the [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with initial field values.
    CryptoKeyVersion     *CryptoKeyVersion `protobuf:"bytes,2,opt,name=crypto_key_version,json=cryptoKeyVersion,proto3" json:"crypto_key_version,omitempty"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

Request message for [KeyManagementService.CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion].

func (*CreateCryptoKeyVersionRequest) Descriptor Uses

func (*CreateCryptoKeyVersionRequest) Descriptor() ([]byte, []int)

func (*CreateCryptoKeyVersionRequest) GetCryptoKeyVersion Uses

func (m *CreateCryptoKeyVersionRequest) GetCryptoKeyVersion() *CryptoKeyVersion

func (*CreateCryptoKeyVersionRequest) GetParent Uses

func (m *CreateCryptoKeyVersionRequest) GetParent() string

func (*CreateCryptoKeyVersionRequest) ProtoMessage Uses

func (*CreateCryptoKeyVersionRequest) ProtoMessage()

func (*CreateCryptoKeyVersionRequest) Reset Uses

func (m *CreateCryptoKeyVersionRequest) Reset()

func (*CreateCryptoKeyVersionRequest) String Uses

func (m *CreateCryptoKeyVersionRequest) String() string

func (*CreateCryptoKeyVersionRequest) XXX_DiscardUnknown Uses

func (m *CreateCryptoKeyVersionRequest) XXX_DiscardUnknown()

func (*CreateCryptoKeyVersionRequest) XXX_Marshal Uses

func (m *CreateCryptoKeyVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateCryptoKeyVersionRequest) XXX_Merge Uses

func (m *CreateCryptoKeyVersionRequest) XXX_Merge(src proto.Message)

func (*CreateCryptoKeyVersionRequest) XXX_Size Uses

func (m *CreateCryptoKeyVersionRequest) XXX_Size() int

func (*CreateCryptoKeyVersionRequest) XXX_Unmarshal Uses

func (m *CreateCryptoKeyVersionRequest) XXX_Unmarshal(b []byte) error

type CreateImportJobRequest Uses

type CreateImportJobRequest struct {
    // Required. The [name][google.cloud.kms.v1.KeyRing.name] of the [KeyRing][google.cloud.kms.v1.KeyRing] associated with the
    // [ImportJobs][google.cloud.kms.v1.ImportJob].
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Required. It must be unique within a KeyRing and match the regular
    // expression `[a-zA-Z0-9_-]{1,63}`
    ImportJobId string `protobuf:"bytes,2,opt,name=import_job_id,json=importJobId,proto3" json:"import_job_id,omitempty"`
    // Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field values.
    ImportJob            *ImportJob `protobuf:"bytes,3,opt,name=import_job,json=importJob,proto3" json:"import_job,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

Request message for [KeyManagementService.CreateImportJob][google.cloud.kms.v1.KeyManagementService.CreateImportJob].

func (*CreateImportJobRequest) Descriptor Uses

func (*CreateImportJobRequest) Descriptor() ([]byte, []int)

func (*CreateImportJobRequest) GetImportJob Uses

func (m *CreateImportJobRequest) GetImportJob() *ImportJob

func (*CreateImportJobRequest) GetImportJobId Uses

func (m *CreateImportJobRequest) GetImportJobId() string

func (*CreateImportJobRequest) GetParent Uses

func (m *CreateImportJobRequest) GetParent() string

func (*CreateImportJobRequest) ProtoMessage Uses

func (*CreateImportJobRequest) ProtoMessage()

func (*CreateImportJobRequest) Reset Uses

func (m *CreateImportJobRequest) Reset()

func (*CreateImportJobRequest) String Uses

func (m *CreateImportJobRequest) String() string

func (*CreateImportJobRequest) XXX_DiscardUnknown Uses

func (m *CreateImportJobRequest) XXX_DiscardUnknown()

func (*CreateImportJobRequest) XXX_Marshal Uses

func (m *CreateImportJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateImportJobRequest) XXX_Merge Uses

func (m *CreateImportJobRequest) XXX_Merge(src proto.Message)

func (*CreateImportJobRequest) XXX_Size Uses

func (m *CreateImportJobRequest) XXX_Size() int

func (*CreateImportJobRequest) XXX_Unmarshal Uses

func (m *CreateImportJobRequest) XXX_Unmarshal(b []byte) error

type CreateKeyRingRequest Uses

type CreateKeyRingRequest struct {
    // Required. The resource name of the location associated with the
    // [KeyRings][google.cloud.kms.v1.KeyRing], in the format `projects/*/locations/*`.
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Required. It must be unique within a location and match the regular
    // expression `[a-zA-Z0-9_-]{1,63}`
    KeyRingId string `protobuf:"bytes,2,opt,name=key_ring_id,json=keyRingId,proto3" json:"key_ring_id,omitempty"`
    // Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field values.
    KeyRing              *KeyRing `protobuf:"bytes,3,opt,name=key_ring,json=keyRing,proto3" json:"key_ring,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.CreateKeyRing][google.cloud.kms.v1.KeyManagementService.CreateKeyRing].

func (*CreateKeyRingRequest) Descriptor Uses

func (*CreateKeyRingRequest) Descriptor() ([]byte, []int)

func (*CreateKeyRingRequest) GetKeyRing Uses

func (m *CreateKeyRingRequest) GetKeyRing() *KeyRing

func (*CreateKeyRingRequest) GetKeyRingId Uses

func (m *CreateKeyRingRequest) GetKeyRingId() string

func (*CreateKeyRingRequest) GetParent Uses

func (m *CreateKeyRingRequest) GetParent() string

func (*CreateKeyRingRequest) ProtoMessage Uses

func (*CreateKeyRingRequest) ProtoMessage()

func (*CreateKeyRingRequest) Reset Uses

func (m *CreateKeyRingRequest) Reset()

func (*CreateKeyRingRequest) String Uses

func (m *CreateKeyRingRequest) String() string

func (*CreateKeyRingRequest) XXX_DiscardUnknown Uses

func (m *CreateKeyRingRequest) XXX_DiscardUnknown()

func (*CreateKeyRingRequest) XXX_Marshal Uses

func (m *CreateKeyRingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateKeyRingRequest) XXX_Merge Uses

func (m *CreateKeyRingRequest) XXX_Merge(src proto.Message)

func (*CreateKeyRingRequest) XXX_Size Uses

func (m *CreateKeyRingRequest) XXX_Size() int

func (*CreateKeyRingRequest) XXX_Unmarshal Uses

func (m *CreateKeyRingRequest) XXX_Unmarshal(b []byte) error

type CryptoKey Uses

type CryptoKey struct {
    // Output only. The resource name for this [CryptoKey][google.cloud.kms.v1.CryptoKey] in the format
    // `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Output only. A copy of the "primary" [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
    // by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] when this [CryptoKey][google.cloud.kms.v1.CryptoKey] is given
    // in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name].
    //
    // The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via
    // [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion].
    //
    // Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose]
    // [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] may have a
    // primary. For other keys, this field will be omitted.
    Primary *CryptoKeyVersion `protobuf:"bytes,2,opt,name=primary,proto3" json:"primary,omitempty"`
    // Immutable. The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey].
    Purpose CryptoKey_CryptoKeyPurpose `protobuf:"varint,3,opt,name=purpose,proto3,enum=google.cloud.kms.v1.CryptoKey_CryptoKeyPurpose" json:"purpose,omitempty"`
    // Output only. The time at which this [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
    CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
    // At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time], the Key Management Service will automatically:
    //
    // 1. Create a new version of this [CryptoKey][google.cloud.kms.v1.CryptoKey].
    // 2. Mark the new version as primary.
    //
    // Key rotations performed manually via
    // [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and
    // [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]
    // do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time].
    //
    // Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose]
    // [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support
    // automatic rotation. For other keys, this field must be omitted.
    NextRotationTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=next_rotation_time,json=nextRotationTime,proto3" json:"next_rotation_time,omitempty"`
    // Controls the rate of automatic rotation.
    //
    // Types that are valid to be assigned to RotationSchedule:
    //	*CryptoKey_RotationPeriod
    RotationSchedule isCryptoKey_RotationSchedule `protobuf_oneof:"rotation_schedule"`
    // A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
    // The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
    // [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
    // auto-rotation are controlled by this template.
    VersionTemplate *CryptoKeyVersionTemplate `protobuf:"bytes,11,opt,name=version_template,json=versionTemplate,proto3" json:"version_template,omitempty"`
    // Labels with user-defined metadata. For more information, see
    // [Labeling Keys](/kms/docs/labeling-keys).
    Labels               map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

A [CryptoKey][google.cloud.kms.v1.CryptoKey] represents a logical key that can be used for cryptographic operations.

A [CryptoKey][google.cloud.kms.v1.CryptoKey] is made up of one or more [versions][google.cloud.kms.v1.CryptoKeyVersion], which represent the actual key material used in cryptographic operations.

func (*CryptoKey) Descriptor Uses

func (*CryptoKey) Descriptor() ([]byte, []int)

func (*CryptoKey) GetCreateTime Uses

func (m *CryptoKey) GetCreateTime() *timestamp.Timestamp

func (*CryptoKey) GetLabels Uses

func (m *CryptoKey) GetLabels() map[string]string

func (*CryptoKey) GetName Uses

func (m *CryptoKey) GetName() string

func (*CryptoKey) GetNextRotationTime Uses

func (m *CryptoKey) GetNextRotationTime() *timestamp.Timestamp

func (*CryptoKey) GetPrimary Uses

func (m *CryptoKey) GetPrimary() *CryptoKeyVersion

func (*CryptoKey) GetPurpose Uses

func (m *CryptoKey) GetPurpose() CryptoKey_CryptoKeyPurpose

func (*CryptoKey) GetRotationPeriod Uses

func (m *CryptoKey) GetRotationPeriod() *duration.Duration

func (*CryptoKey) GetRotationSchedule Uses

func (m *CryptoKey) GetRotationSchedule() isCryptoKey_RotationSchedule

func (*CryptoKey) GetVersionTemplate Uses

func (m *CryptoKey) GetVersionTemplate() *CryptoKeyVersionTemplate

func (*CryptoKey) ProtoMessage Uses

func (*CryptoKey) ProtoMessage()

func (*CryptoKey) Reset Uses

func (m *CryptoKey) Reset()

func (*CryptoKey) String Uses

func (m *CryptoKey) String() string

func (*CryptoKey) XXX_DiscardUnknown Uses

func (m *CryptoKey) XXX_DiscardUnknown()

func (*CryptoKey) XXX_Marshal Uses

func (m *CryptoKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CryptoKey) XXX_Merge Uses

func (m *CryptoKey) XXX_Merge(src proto.Message)

func (*CryptoKey) XXX_OneofWrappers Uses

func (*CryptoKey) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*CryptoKey) XXX_Size Uses

func (m *CryptoKey) XXX_Size() int

func (*CryptoKey) XXX_Unmarshal Uses

func (m *CryptoKey) XXX_Unmarshal(b []byte) error

type CryptoKeyVersion Uses

type CryptoKeyVersion struct {
    // Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
    // `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    State CryptoKeyVersion_CryptoKeyVersionState `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionState" json:"state,omitempty"`
    // Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] describing how crypto operations are
    // performed with this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    ProtectionLevel ProtectionLevel `protobuf:"varint,7,opt,name=protection_level,json=protectionLevel,proto3,enum=google.cloud.kms.v1.ProtectionLevel" json:"protection_level,omitempty"`
    // Output only. The [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] that this
    // [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] supports.
    Algorithm CryptoKeyVersion_CryptoKeyVersionAlgorithm `protobuf:"varint,10,opt,name=algorithm,proto3,enum=google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionAlgorithm" json:"algorithm,omitempty"`
    // Output only. Statement that was generated and signed by the HSM at key
    // creation time. Use this statement to verify attributes of the key as stored
    // on the HSM, independently of Google. Only provided for key versions with
    // [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    Attestation *KeyOperationAttestation `protobuf:"bytes,8,opt,name=attestation,proto3" json:"attestation,omitempty"`
    // Output only. The time at which this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] was created.
    CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
    // Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
    // generated.
    GenerateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=generate_time,json=generateTime,proto3" json:"generate_time,omitempty"`
    // Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is scheduled
    // for destruction. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is
    // [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
    DestroyTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=destroy_time,json=destroyTime,proto3" json:"destroy_time,omitempty"`
    // Output only. The time this CryptoKeyVersion's key material was
    // destroyed. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is
    // [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
    DestroyEventTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=destroy_event_time,json=destroyEventTime,proto3" json:"destroy_event_time,omitempty"`
    // Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob] used to import this
    // [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only present if the underlying key material was
    // imported.
    ImportJob string `protobuf:"bytes,14,opt,name=import_job,json=importJob,proto3" json:"import_job,omitempty"`
    // Output only. The time at which this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material
    // was imported.
    ImportTime *timestamp.Timestamp `protobuf:"bytes,15,opt,name=import_time,json=importTime,proto3" json:"import_time,omitempty"`
    // Output only. The root cause of an import failure. Only present if
    // [state][google.cloud.kms.v1.CryptoKeyVersion.state] is
    // [IMPORT_FAILED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.IMPORT_FAILED].
    ImportFailureReason  string   `protobuf:"bytes,16,opt,name=import_failure_reason,json=importFailureReason,proto3" json:"import_failure_reason,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents an individual cryptographic key, and the associated key material.

An [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] version can be used for cryptographic operations.

For security reasons, the raw cryptographic key material represented by a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] can never be viewed or exported. It can only be used to encrypt, decrypt, or sign data when an authorized user or application invokes Cloud KMS.

func (*CryptoKeyVersion) Descriptor Uses

func (*CryptoKeyVersion) Descriptor() ([]byte, []int)

func (*CryptoKeyVersion) GetAlgorithm Uses

func (m *CryptoKeyVersion) GetAlgorithm() CryptoKeyVersion_CryptoKeyVersionAlgorithm

func (*CryptoKeyVersion) GetAttestation Uses

func (m *CryptoKeyVersion) GetAttestation() *KeyOperationAttestation

func (*CryptoKeyVersion) GetCreateTime Uses

func (m *CryptoKeyVersion) GetCreateTime() *timestamp.Timestamp

func (*CryptoKeyVersion) GetDestroyEventTime Uses

func (m *CryptoKeyVersion) GetDestroyEventTime() *timestamp.Timestamp

func (*CryptoKeyVersion) GetDestroyTime Uses

func (m *CryptoKeyVersion) GetDestroyTime() *timestamp.Timestamp

func (*CryptoKeyVersion) GetGenerateTime Uses

func (m *CryptoKeyVersion) GetGenerateTime() *timestamp.Timestamp

func (*CryptoKeyVersion) GetImportFailureReason Uses

func (m *CryptoKeyVersion) GetImportFailureReason() string

func (*CryptoKeyVersion) GetImportJob Uses

func (m *CryptoKeyVersion) GetImportJob() string

func (*CryptoKeyVersion) GetImportTime Uses

func (m *CryptoKeyVersion) GetImportTime() *timestamp.Timestamp

func (*CryptoKeyVersion) GetName Uses

func (m *CryptoKeyVersion) GetName() string

func (*CryptoKeyVersion) GetProtectionLevel Uses

func (m *CryptoKeyVersion) GetProtectionLevel() ProtectionLevel

func (*CryptoKeyVersion) GetState Uses

func (m *CryptoKeyVersion) GetState() CryptoKeyVersion_CryptoKeyVersionState

func (*CryptoKeyVersion) ProtoMessage Uses

func (*CryptoKeyVersion) ProtoMessage()

func (*CryptoKeyVersion) Reset Uses

func (m *CryptoKeyVersion) Reset()

func (*CryptoKeyVersion) String Uses

func (m *CryptoKeyVersion) String() string

func (*CryptoKeyVersion) XXX_DiscardUnknown Uses

func (m *CryptoKeyVersion) XXX_DiscardUnknown()

func (*CryptoKeyVersion) XXX_Marshal Uses

func (m *CryptoKeyVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CryptoKeyVersion) XXX_Merge Uses

func (m *CryptoKeyVersion) XXX_Merge(src proto.Message)

func (*CryptoKeyVersion) XXX_Size Uses

func (m *CryptoKeyVersion) XXX_Size() int

func (*CryptoKeyVersion) XXX_Unmarshal Uses

func (m *CryptoKeyVersion) XXX_Unmarshal(b []byte) error

type CryptoKeyVersionTemplate Uses

type CryptoKeyVersionTemplate struct {
    // [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on
    // this template. Immutable. Defaults to [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].
    ProtectionLevel ProtectionLevel `protobuf:"varint,1,opt,name=protection_level,json=protectionLevel,proto3,enum=google.cloud.kms.v1.ProtectionLevel" json:"protection_level,omitempty"`
    // Required. [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] to use
    // when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this template.
    //
    // For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both
    // this field is omitted and [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is
    // [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
    Algorithm            CryptoKeyVersion_CryptoKeyVersionAlgorithm `protobuf:"varint,3,opt,name=algorithm,proto3,enum=google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionAlgorithm" json:"algorithm,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                                   `json:"-"`
    XXX_unrecognized     []byte                                     `json:"-"`
    XXX_sizecache        int32                                      `json:"-"`
}

A [CryptoKeyVersionTemplate][google.cloud.kms.v1.CryptoKeyVersionTemplate] specifies the properties to use when creating a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], either manually with [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or automatically as a result of auto-rotation.

func (*CryptoKeyVersionTemplate) Descriptor Uses

func (*CryptoKeyVersionTemplate) Descriptor() ([]byte, []int)

func (*CryptoKeyVersionTemplate) GetAlgorithm Uses

func (m *CryptoKeyVersionTemplate) GetAlgorithm() CryptoKeyVersion_CryptoKeyVersionAlgorithm

func (*CryptoKeyVersionTemplate) GetProtectionLevel Uses

func (m *CryptoKeyVersionTemplate) GetProtectionLevel() ProtectionLevel

func (*CryptoKeyVersionTemplate) ProtoMessage Uses

func (*CryptoKeyVersionTemplate) ProtoMessage()

func (*CryptoKeyVersionTemplate) Reset Uses

func (m *CryptoKeyVersionTemplate) Reset()

func (*CryptoKeyVersionTemplate) String Uses

func (m *CryptoKeyVersionTemplate) String() string

func (*CryptoKeyVersionTemplate) XXX_DiscardUnknown Uses

func (m *CryptoKeyVersionTemplate) XXX_DiscardUnknown()

func (*CryptoKeyVersionTemplate) XXX_Marshal Uses

func (m *CryptoKeyVersionTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CryptoKeyVersionTemplate) XXX_Merge Uses

func (m *CryptoKeyVersionTemplate) XXX_Merge(src proto.Message)

func (*CryptoKeyVersionTemplate) XXX_Size Uses

func (m *CryptoKeyVersionTemplate) XXX_Size() int

func (*CryptoKeyVersionTemplate) XXX_Unmarshal Uses

func (m *CryptoKeyVersionTemplate) XXX_Unmarshal(b []byte) error

type CryptoKeyVersion_CryptoKeyVersionAlgorithm Uses

type CryptoKeyVersion_CryptoKeyVersionAlgorithm int32

The algorithm of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], indicating what parameters must be used for each cryptographic operation.

The [GOOGLE_SYMMETRIC_ENCRYPTION][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.GOOGLE_SYMMETRIC_ENCRYPTION] algorithm is usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].

Algorithms beginning with "RSA_SIGN_" are usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN].

The fields in the name after "RSA_SIGN_" correspond to the following parameters: padding algorithm, modulus bit length, and digest algorithm.

For PSS, the salt length used is equal to the length of digest algorithm. For example, [RSA_SIGN_PSS_2048_SHA256][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256] will use PSS with a salt length of 256 bits or 32 bytes.

Algorithms beginning with "RSA_DECRYPT_" are usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].

The fields in the name after "RSA_DECRYPT_" correspond to the following parameters: padding algorithm, modulus bit length, and digest algorithm.

Algorithms beginning with "EC_SIGN_" are usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN].

The fields in the name after "EC_SIGN_" correspond to the following parameters: elliptic curve, digest algorithm.

For more information, see [Key purposes and algorithms] (https://cloud.google.com/kms/docs/algorithms).

const (
    // Not specified.
    CryptoKeyVersion_CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED CryptoKeyVersion_CryptoKeyVersionAlgorithm = 0
    // Creates symmetric encryption keys.
    CryptoKeyVersion_GOOGLE_SYMMETRIC_ENCRYPTION CryptoKeyVersion_CryptoKeyVersionAlgorithm = 1
    // RSASSA-PSS 2048 bit key with a SHA256 digest.
    CryptoKeyVersion_RSA_SIGN_PSS_2048_SHA256 CryptoKeyVersion_CryptoKeyVersionAlgorithm = 2
    // RSASSA-PSS 3072 bit key with a SHA256 digest.
    CryptoKeyVersion_RSA_SIGN_PSS_3072_SHA256 CryptoKeyVersion_CryptoKeyVersionAlgorithm = 3
    // RSASSA-PSS 4096 bit key with a SHA256 digest.
    CryptoKeyVersion_RSA_SIGN_PSS_4096_SHA256 CryptoKeyVersion_CryptoKeyVersionAlgorithm = 4
    // RSASSA-PSS 4096 bit key with a SHA512 digest.
    CryptoKeyVersion_RSA_SIGN_PSS_4096_SHA512 CryptoKeyVersion_CryptoKeyVersionAlgorithm = 15
    // RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
    CryptoKeyVersion_RSA_SIGN_PKCS1_2048_SHA256 CryptoKeyVersion_CryptoKeyVersionAlgorithm = 5
    // RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
    CryptoKeyVersion_RSA_SIGN_PKCS1_3072_SHA256 CryptoKeyVersion_CryptoKeyVersionAlgorithm = 6
    // RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
    CryptoKeyVersion_RSA_SIGN_PKCS1_4096_SHA256 CryptoKeyVersion_CryptoKeyVersionAlgorithm = 7
    // RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
    CryptoKeyVersion_RSA_SIGN_PKCS1_4096_SHA512 CryptoKeyVersion_CryptoKeyVersionAlgorithm = 16
    // RSAES-OAEP 2048 bit key with a SHA256 digest.
    CryptoKeyVersion_RSA_DECRYPT_OAEP_2048_SHA256 CryptoKeyVersion_CryptoKeyVersionAlgorithm = 8
    // RSAES-OAEP 3072 bit key with a SHA256 digest.
    CryptoKeyVersion_RSA_DECRYPT_OAEP_3072_SHA256 CryptoKeyVersion_CryptoKeyVersionAlgorithm = 9
    // RSAES-OAEP 4096 bit key with a SHA256 digest.
    CryptoKeyVersion_RSA_DECRYPT_OAEP_4096_SHA256 CryptoKeyVersion_CryptoKeyVersionAlgorithm = 10
    // RSAES-OAEP 4096 bit key with a SHA512 digest.
    CryptoKeyVersion_RSA_DECRYPT_OAEP_4096_SHA512 CryptoKeyVersion_CryptoKeyVersionAlgorithm = 17
    // ECDSA on the NIST P-256 curve with a SHA256 digest.
    CryptoKeyVersion_EC_SIGN_P256_SHA256 CryptoKeyVersion_CryptoKeyVersionAlgorithm = 12
    // ECDSA on the NIST P-384 curve with a SHA384 digest.
    CryptoKeyVersion_EC_SIGN_P384_SHA384 CryptoKeyVersion_CryptoKeyVersionAlgorithm = 13
)

func (CryptoKeyVersion_CryptoKeyVersionAlgorithm) EnumDescriptor Uses

func (CryptoKeyVersion_CryptoKeyVersionAlgorithm) EnumDescriptor() ([]byte, []int)

func (CryptoKeyVersion_CryptoKeyVersionAlgorithm) String Uses

func (x CryptoKeyVersion_CryptoKeyVersionAlgorithm) String() string

type CryptoKeyVersion_CryptoKeyVersionState Uses

type CryptoKeyVersion_CryptoKeyVersionState int32

The state of a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], indicating if it can be used.

const (
    // Not specified.
    CryptoKeyVersion_CRYPTO_KEY_VERSION_STATE_UNSPECIFIED CryptoKeyVersion_CryptoKeyVersionState = 0
    // This version is still being generated. It may not be used, enabled,
    // disabled, or destroyed yet. Cloud KMS will automatically mark this
    // version [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] as soon as the version is ready.
    CryptoKeyVersion_PENDING_GENERATION CryptoKeyVersion_CryptoKeyVersionState = 5
    // This version may be used for cryptographic operations.
    CryptoKeyVersion_ENABLED CryptoKeyVersion_CryptoKeyVersionState = 1
    // This version may not be used, but the key material is still available,
    // and the version can be placed back into the [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] state.
    CryptoKeyVersion_DISABLED CryptoKeyVersion_CryptoKeyVersionState = 2
    // This version is destroyed, and the key material is no longer stored.
    // A version may not leave this state once entered.
    CryptoKeyVersion_DESTROYED CryptoKeyVersion_CryptoKeyVersionState = 3
    // This version is scheduled for destruction, and will be destroyed soon.
    // Call
    // [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion]
    // to put it back into the [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED] state.
    CryptoKeyVersion_DESTROY_SCHEDULED CryptoKeyVersion_CryptoKeyVersionState = 4
    // This version is still being imported. It may not be used, enabled,
    // disabled, or destroyed yet. Cloud KMS will automatically mark this
    // version [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] as soon as the version is ready.
    CryptoKeyVersion_PENDING_IMPORT CryptoKeyVersion_CryptoKeyVersionState = 6
    // This version was not imported successfully. It may not be used, enabled,
    // disabled, or destroyed. The submitted key material has been discarded.
    // Additional details can be found in
    // [CryptoKeyVersion.import_failure_reason][google.cloud.kms.v1.CryptoKeyVersion.import_failure_reason].
    CryptoKeyVersion_IMPORT_FAILED CryptoKeyVersion_CryptoKeyVersionState = 7
)

func (CryptoKeyVersion_CryptoKeyVersionState) EnumDescriptor Uses

func (CryptoKeyVersion_CryptoKeyVersionState) EnumDescriptor() ([]byte, []int)

func (CryptoKeyVersion_CryptoKeyVersionState) String Uses

func (x CryptoKeyVersion_CryptoKeyVersionState) String() string

type CryptoKeyVersion_CryptoKeyVersionView Uses

type CryptoKeyVersion_CryptoKeyVersionView int32

A view for [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]s. Controls the level of detail returned for [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] in [KeyManagementService.ListCryptoKeyVersions][google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions] and [KeyManagementService.ListCryptoKeys][google.cloud.kms.v1.KeyManagementService.ListCryptoKeys].

const (
    // Default view for each [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Does not include
    // the [attestation][google.cloud.kms.v1.CryptoKeyVersion.attestation] field.
    CryptoKeyVersion_CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED CryptoKeyVersion_CryptoKeyVersionView = 0
    // Provides all fields in each [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], including the
    // [attestation][google.cloud.kms.v1.CryptoKeyVersion.attestation].
    CryptoKeyVersion_FULL CryptoKeyVersion_CryptoKeyVersionView = 1
)

func (CryptoKeyVersion_CryptoKeyVersionView) EnumDescriptor Uses

func (CryptoKeyVersion_CryptoKeyVersionView) EnumDescriptor() ([]byte, []int)

func (CryptoKeyVersion_CryptoKeyVersionView) String Uses

func (x CryptoKeyVersion_CryptoKeyVersionView) String() string

type CryptoKey_CryptoKeyPurpose Uses

type CryptoKey_CryptoKeyPurpose int32

[CryptoKeyPurpose][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose] describes the cryptographic capabilities of a [CryptoKey][google.cloud.kms.v1.CryptoKey]. A given key can only be used for the operations allowed by its purpose. For more information, see [Key purposes](https://cloud.google.com/kms/docs/algorithms#key_purposes).

const (
    // Not specified.
    CryptoKey_CRYPTO_KEY_PURPOSE_UNSPECIFIED CryptoKey_CryptoKeyPurpose = 0
    // [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with
    // [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] and
    // [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
    CryptoKey_ENCRYPT_DECRYPT CryptoKey_CryptoKeyPurpose = 1
    // [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with
    // [AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign] and
    // [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
    CryptoKey_ASYMMETRIC_SIGN CryptoKey_CryptoKeyPurpose = 5
    // [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with
    // [AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt] and
    // [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
    CryptoKey_ASYMMETRIC_DECRYPT CryptoKey_CryptoKeyPurpose = 6
)

func (CryptoKey_CryptoKeyPurpose) EnumDescriptor Uses

func (CryptoKey_CryptoKeyPurpose) EnumDescriptor() ([]byte, []int)

func (CryptoKey_CryptoKeyPurpose) String Uses

func (x CryptoKey_CryptoKeyPurpose) String() string

type CryptoKey_RotationPeriod Uses

type CryptoKey_RotationPeriod struct {
    RotationPeriod *duration.Duration `protobuf:"bytes,8,opt,name=rotation_period,json=rotationPeriod,proto3,oneof"`
}

type DecryptRequest Uses

type DecryptRequest struct {
    // Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption.
    // The server will choose the appropriate version.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Required. The encrypted data originally returned in
    // [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
    Ciphertext []byte `protobuf:"bytes,2,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
    // Optional. Optional data that must match the data originally supplied in
    // [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
    AdditionalAuthenticatedData []byte   `protobuf:"bytes,3,opt,name=additional_authenticated_data,json=additionalAuthenticatedData,proto3" json:"additional_authenticated_data,omitempty"`
    XXX_NoUnkeyedLiteral        struct{} `json:"-"`
    XXX_unrecognized            []byte   `json:"-"`
    XXX_sizecache               int32    `json:"-"`
}

Request message for [KeyManagementService.Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].

func (*DecryptRequest) Descriptor Uses

func (*DecryptRequest) Descriptor() ([]byte, []int)

func (*DecryptRequest) GetAdditionalAuthenticatedData Uses

func (m *DecryptRequest) GetAdditionalAuthenticatedData() []byte

func (*DecryptRequest) GetCiphertext Uses

func (m *DecryptRequest) GetCiphertext() []byte

func (*DecryptRequest) GetName Uses

func (m *DecryptRequest) GetName() string

func (*DecryptRequest) ProtoMessage Uses

func (*DecryptRequest) ProtoMessage()

func (*DecryptRequest) Reset Uses

func (m *DecryptRequest) Reset()

func (*DecryptRequest) String Uses

func (m *DecryptRequest) String() string

func (*DecryptRequest) XXX_DiscardUnknown Uses

func (m *DecryptRequest) XXX_DiscardUnknown()

func (*DecryptRequest) XXX_Marshal Uses

func (m *DecryptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DecryptRequest) XXX_Merge Uses

func (m *DecryptRequest) XXX_Merge(src proto.Message)

func (*DecryptRequest) XXX_Size Uses

func (m *DecryptRequest) XXX_Size() int

func (*DecryptRequest) XXX_Unmarshal Uses

func (m *DecryptRequest) XXX_Unmarshal(b []byte) error

type DecryptResponse Uses

type DecryptResponse struct {
    // The decrypted data originally supplied in [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
    Plaintext            []byte   `protobuf:"bytes,1,opt,name=plaintext,proto3" json:"plaintext,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Response message for [KeyManagementService.Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].

func (*DecryptResponse) Descriptor Uses

func (*DecryptResponse) Descriptor() ([]byte, []int)

func (*DecryptResponse) GetPlaintext Uses

func (m *DecryptResponse) GetPlaintext() []byte

func (*DecryptResponse) ProtoMessage Uses

func (*DecryptResponse) ProtoMessage()

func (*DecryptResponse) Reset Uses

func (m *DecryptResponse) Reset()

func (*DecryptResponse) String Uses

func (m *DecryptResponse) String() string

func (*DecryptResponse) XXX_DiscardUnknown Uses

func (m *DecryptResponse) XXX_DiscardUnknown()

func (*DecryptResponse) XXX_Marshal Uses

func (m *DecryptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DecryptResponse) XXX_Merge Uses

func (m *DecryptResponse) XXX_Merge(src proto.Message)

func (*DecryptResponse) XXX_Size Uses

func (m *DecryptResponse) XXX_Size() int

func (*DecryptResponse) XXX_Unmarshal Uses

func (m *DecryptResponse) XXX_Unmarshal(b []byte) error

type DestroyCryptoKeyVersionRequest Uses

type DestroyCryptoKeyVersionRequest struct {
    // Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy.
    Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.DestroyCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion].

func (*DestroyCryptoKeyVersionRequest) Descriptor Uses

func (*DestroyCryptoKeyVersionRequest) Descriptor() ([]byte, []int)

func (*DestroyCryptoKeyVersionRequest) GetName Uses

func (m *DestroyCryptoKeyVersionRequest) GetName() string

func (*DestroyCryptoKeyVersionRequest) ProtoMessage Uses

func (*DestroyCryptoKeyVersionRequest) ProtoMessage()

func (*DestroyCryptoKeyVersionRequest) Reset Uses

func (m *DestroyCryptoKeyVersionRequest) Reset()

func (*DestroyCryptoKeyVersionRequest) String Uses

func (m *DestroyCryptoKeyVersionRequest) String() string

func (*DestroyCryptoKeyVersionRequest) XXX_DiscardUnknown Uses

func (m *DestroyCryptoKeyVersionRequest) XXX_DiscardUnknown()

func (*DestroyCryptoKeyVersionRequest) XXX_Marshal Uses

func (m *DestroyCryptoKeyVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DestroyCryptoKeyVersionRequest) XXX_Merge Uses

func (m *DestroyCryptoKeyVersionRequest) XXX_Merge(src proto.Message)

func (*DestroyCryptoKeyVersionRequest) XXX_Size Uses

func (m *DestroyCryptoKeyVersionRequest) XXX_Size() int

func (*DestroyCryptoKeyVersionRequest) XXX_Unmarshal Uses

func (m *DestroyCryptoKeyVersionRequest) XXX_Unmarshal(b []byte) error

type Digest Uses

type Digest struct {
    // Required. The message digest.
    //
    // Types that are valid to be assigned to Digest:
    //	*Digest_Sha256
    //	*Digest_Sha384
    //	*Digest_Sha512
    Digest               isDigest_Digest `protobuf_oneof:"digest"`
    XXX_NoUnkeyedLiteral struct{}        `json:"-"`
    XXX_unrecognized     []byte          `json:"-"`
    XXX_sizecache        int32           `json:"-"`
}

A [Digest][google.cloud.kms.v1.Digest] holds a cryptographic message digest.

func (*Digest) Descriptor Uses

func (*Digest) Descriptor() ([]byte, []int)

func (*Digest) GetDigest Uses

func (m *Digest) GetDigest() isDigest_Digest

func (*Digest) GetSha256 Uses

func (m *Digest) GetSha256() []byte

func (*Digest) GetSha384 Uses

func (m *Digest) GetSha384() []byte

func (*Digest) GetSha512 Uses

func (m *Digest) GetSha512() []byte

func (*Digest) ProtoMessage Uses

func (*Digest) ProtoMessage()

func (*Digest) Reset Uses

func (m *Digest) Reset()

func (*Digest) String Uses

func (m *Digest) String() string

func (*Digest) XXX_DiscardUnknown Uses

func (m *Digest) XXX_DiscardUnknown()

func (*Digest) XXX_Marshal Uses

func (m *Digest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Digest) XXX_Merge Uses

func (m *Digest) XXX_Merge(src proto.Message)

func (*Digest) XXX_OneofWrappers Uses

func (*Digest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Digest) XXX_Size Uses

func (m *Digest) XXX_Size() int

func (*Digest) XXX_Unmarshal Uses

func (m *Digest) XXX_Unmarshal(b []byte) error

type Digest_Sha256 Uses

type Digest_Sha256 struct {
    Sha256 []byte `protobuf:"bytes,1,opt,name=sha256,proto3,oneof"`
}

type Digest_Sha384 Uses

type Digest_Sha384 struct {
    Sha384 []byte `protobuf:"bytes,2,opt,name=sha384,proto3,oneof"`
}

type Digest_Sha512 Uses

type Digest_Sha512 struct {
    Sha512 []byte `protobuf:"bytes,3,opt,name=sha512,proto3,oneof"`
}

type EncryptRequest Uses

type EncryptRequest struct {
    // Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] or [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
    // to use for encryption.
    //
    // If a [CryptoKey][google.cloud.kms.v1.CryptoKey] is specified, the server will use its
    // [primary version][google.cloud.kms.v1.CryptoKey.primary].
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Required. The data to encrypt. Must be no larger than 64KiB.
    //
    // The maximum size depends on the key version's
    // [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For
    // [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the plaintext must be no larger
    // than 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the
    // plaintext and additional_authenticated_data fields must be no larger than
    // 8KiB.
    Plaintext []byte `protobuf:"bytes,2,opt,name=plaintext,proto3" json:"plaintext,omitempty"`
    // Optional. Optional data that, if specified, must also be provided during decryption
    // through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
    //
    // The maximum size depends on the key version's
    // [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For
    // [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the AAD must be no larger than
    // 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the
    // plaintext and additional_authenticated_data fields must be no larger than
    // 8KiB.
    AdditionalAuthenticatedData []byte   `protobuf:"bytes,3,opt,name=additional_authenticated_data,json=additionalAuthenticatedData,proto3" json:"additional_authenticated_data,omitempty"`
    XXX_NoUnkeyedLiteral        struct{} `json:"-"`
    XXX_unrecognized            []byte   `json:"-"`
    XXX_sizecache               int32    `json:"-"`
}

Request message for [KeyManagementService.Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].

func (*EncryptRequest) Descriptor Uses

func (*EncryptRequest) Descriptor() ([]byte, []int)

func (*EncryptRequest) GetAdditionalAuthenticatedData Uses

func (m *EncryptRequest) GetAdditionalAuthenticatedData() []byte

func (*EncryptRequest) GetName Uses

func (m *EncryptRequest) GetName() string

func (*EncryptRequest) GetPlaintext Uses

func (m *EncryptRequest) GetPlaintext() []byte

func (*EncryptRequest) ProtoMessage Uses

func (*EncryptRequest) ProtoMessage()

func (*EncryptRequest) Reset Uses

func (m *EncryptRequest) Reset()

func (*EncryptRequest) String Uses

func (m *EncryptRequest) String() string

func (*EncryptRequest) XXX_DiscardUnknown Uses

func (m *EncryptRequest) XXX_DiscardUnknown()

func (*EncryptRequest) XXX_Marshal Uses

func (m *EncryptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EncryptRequest) XXX_Merge Uses

func (m *EncryptRequest) XXX_Merge(src proto.Message)

func (*EncryptRequest) XXX_Size Uses

func (m *EncryptRequest) XXX_Size() int

func (*EncryptRequest) XXX_Unmarshal Uses

func (m *EncryptRequest) XXX_Unmarshal(b []byte) error

type EncryptResponse Uses

type EncryptResponse struct {
    // The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in encryption. Check
    // this field to verify that the intended resource was used for encryption.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The encrypted data.
    Ciphertext           []byte   `protobuf:"bytes,2,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Response message for [KeyManagementService.Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].

func (*EncryptResponse) Descriptor Uses

func (*EncryptResponse) Descriptor() ([]byte, []int)

func (*EncryptResponse) GetCiphertext Uses

func (m *EncryptResponse) GetCiphertext() []byte

func (*EncryptResponse) GetName Uses

func (m *EncryptResponse) GetName() string

func (*EncryptResponse) ProtoMessage Uses

func (*EncryptResponse) ProtoMessage()

func (*EncryptResponse) Reset Uses

func (m *EncryptResponse) Reset()

func (*EncryptResponse) String Uses

func (m *EncryptResponse) String() string

func (*EncryptResponse) XXX_DiscardUnknown Uses

func (m *EncryptResponse) XXX_DiscardUnknown()

func (*EncryptResponse) XXX_Marshal Uses

func (m *EncryptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EncryptResponse) XXX_Merge Uses

func (m *EncryptResponse) XXX_Merge(src proto.Message)

func (*EncryptResponse) XXX_Size Uses

func (m *EncryptResponse) XXX_Size() int

func (*EncryptResponse) XXX_Unmarshal Uses

func (m *EncryptResponse) XXX_Unmarshal(b []byte) error

type GetCryptoKeyRequest Uses

type GetCryptoKeyRequest struct {
    // Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to get.
    Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.GetCryptoKey][google.cloud.kms.v1.KeyManagementService.GetCryptoKey].

func (*GetCryptoKeyRequest) Descriptor Uses

func (*GetCryptoKeyRequest) Descriptor() ([]byte, []int)

func (*GetCryptoKeyRequest) GetName Uses

func (m *GetCryptoKeyRequest) GetName() string

func (*GetCryptoKeyRequest) ProtoMessage Uses

func (*GetCryptoKeyRequest) ProtoMessage()

func (*GetCryptoKeyRequest) Reset Uses

func (m *GetCryptoKeyRequest) Reset()

func (*GetCryptoKeyRequest) String Uses

func (m *GetCryptoKeyRequest) String() string

func (*GetCryptoKeyRequest) XXX_DiscardUnknown Uses

func (m *GetCryptoKeyRequest) XXX_DiscardUnknown()

func (*GetCryptoKeyRequest) XXX_Marshal Uses

func (m *GetCryptoKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetCryptoKeyRequest) XXX_Merge Uses

func (m *GetCryptoKeyRequest) XXX_Merge(src proto.Message)

func (*GetCryptoKeyRequest) XXX_Size Uses

func (m *GetCryptoKeyRequest) XXX_Size() int

func (*GetCryptoKeyRequest) XXX_Unmarshal Uses

func (m *GetCryptoKeyRequest) XXX_Unmarshal(b []byte) error

type GetCryptoKeyVersionRequest Uses

type GetCryptoKeyVersionRequest struct {
    // Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get.
    Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.GetCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.GetCryptoKeyVersion].

func (*GetCryptoKeyVersionRequest) Descriptor Uses

func (*GetCryptoKeyVersionRequest) Descriptor() ([]byte, []int)

func (*GetCryptoKeyVersionRequest) GetName Uses

func (m *GetCryptoKeyVersionRequest) GetName() string

func (*GetCryptoKeyVersionRequest) ProtoMessage Uses

func (*GetCryptoKeyVersionRequest) ProtoMessage()

func (*GetCryptoKeyVersionRequest) Reset Uses

func (m *GetCryptoKeyVersionRequest) Reset()

func (*GetCryptoKeyVersionRequest) String Uses

func (m *GetCryptoKeyVersionRequest) String() string

func (*GetCryptoKeyVersionRequest) XXX_DiscardUnknown Uses

func (m *GetCryptoKeyVersionRequest) XXX_DiscardUnknown()

func (*GetCryptoKeyVersionRequest) XXX_Marshal Uses

func (m *GetCryptoKeyVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetCryptoKeyVersionRequest) XXX_Merge Uses

func (m *GetCryptoKeyVersionRequest) XXX_Merge(src proto.Message)

func (*GetCryptoKeyVersionRequest) XXX_Size Uses

func (m *GetCryptoKeyVersionRequest) XXX_Size() int

func (*GetCryptoKeyVersionRequest) XXX_Unmarshal Uses

func (m *GetCryptoKeyVersionRequest) XXX_Unmarshal(b []byte) error

type GetImportJobRequest Uses

type GetImportJobRequest struct {
    // Required. The [name][google.cloud.kms.v1.ImportJob.name] of the [ImportJob][google.cloud.kms.v1.ImportJob] to get.
    Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob].

func (*GetImportJobRequest) Descriptor Uses

func (*GetImportJobRequest) Descriptor() ([]byte, []int)

func (*GetImportJobRequest) GetName Uses

func (m *GetImportJobRequest) GetName() string

func (*GetImportJobRequest) ProtoMessage Uses

func (*GetImportJobRequest) ProtoMessage()

func (*GetImportJobRequest) Reset Uses

func (m *GetImportJobRequest) Reset()

func (*GetImportJobRequest) String Uses

func (m *GetImportJobRequest) String() string

func (*GetImportJobRequest) XXX_DiscardUnknown Uses

func (m *GetImportJobRequest) XXX_DiscardUnknown()

func (*GetImportJobRequest) XXX_Marshal Uses

func (m *GetImportJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetImportJobRequest) XXX_Merge Uses

func (m *GetImportJobRequest) XXX_Merge(src proto.Message)

func (*GetImportJobRequest) XXX_Size Uses

func (m *GetImportJobRequest) XXX_Size() int

func (*GetImportJobRequest) XXX_Unmarshal Uses

func (m *GetImportJobRequest) XXX_Unmarshal(b []byte) error

type GetKeyRingRequest Uses

type GetKeyRingRequest struct {
    // Required. The [name][google.cloud.kms.v1.KeyRing.name] of the [KeyRing][google.cloud.kms.v1.KeyRing] to get.
    Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.GetKeyRing][google.cloud.kms.v1.KeyManagementService.GetKeyRing].

func (*GetKeyRingRequest) Descriptor Uses

func (*GetKeyRingRequest) Descriptor() ([]byte, []int)

func (*GetKeyRingRequest) GetName Uses

func (m *GetKeyRingRequest) GetName() string

func (*GetKeyRingRequest) ProtoMessage Uses

func (*GetKeyRingRequest) ProtoMessage()

func (*GetKeyRingRequest) Reset Uses

func (m *GetKeyRingRequest) Reset()

func (*GetKeyRingRequest) String Uses

func (m *GetKeyRingRequest) String() string

func (*GetKeyRingRequest) XXX_DiscardUnknown Uses

func (m *GetKeyRingRequest) XXX_DiscardUnknown()

func (*GetKeyRingRequest) XXX_Marshal Uses

func (m *GetKeyRingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetKeyRingRequest) XXX_Merge Uses

func (m *GetKeyRingRequest) XXX_Merge(src proto.Message)

func (*GetKeyRingRequest) XXX_Size Uses

func (m *GetKeyRingRequest) XXX_Size() int

func (*GetKeyRingRequest) XXX_Unmarshal Uses

func (m *GetKeyRingRequest) XXX_Unmarshal(b []byte) error

type GetPublicKeyRequest Uses

type GetPublicKeyRequest struct {
    // Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to
    // get.
    Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].

func (*GetPublicKeyRequest) Descriptor Uses

func (*GetPublicKeyRequest) Descriptor() ([]byte, []int)

func (*GetPublicKeyRequest) GetName Uses

func (m *GetPublicKeyRequest) GetName() string

func (*GetPublicKeyRequest) ProtoMessage Uses

func (*GetPublicKeyRequest) ProtoMessage()

func (*GetPublicKeyRequest) Reset Uses

func (m *GetPublicKeyRequest) Reset()

func (*GetPublicKeyRequest) String Uses

func (m *GetPublicKeyRequest) String() string

func (*GetPublicKeyRequest) XXX_DiscardUnknown Uses

func (m *GetPublicKeyRequest) XXX_DiscardUnknown()

func (*GetPublicKeyRequest) XXX_Marshal Uses

func (m *GetPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetPublicKeyRequest) XXX_Merge Uses

func (m *GetPublicKeyRequest) XXX_Merge(src proto.Message)

func (*GetPublicKeyRequest) XXX_Size Uses

func (m *GetPublicKeyRequest) XXX_Size() int

func (*GetPublicKeyRequest) XXX_Unmarshal Uses

func (m *GetPublicKeyRequest) XXX_Unmarshal(b []byte) error

type ImportCryptoKeyVersionRequest Uses

type ImportCryptoKeyVersionRequest struct {
    // Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to
    // be imported into.
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Required. The [algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] of
    // the key being imported. This does not need to match the
    // [version_template][google.cloud.kms.v1.CryptoKey.version_template] of the [CryptoKey][google.cloud.kms.v1.CryptoKey] this
    // version imports into.
    Algorithm CryptoKeyVersion_CryptoKeyVersionAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionAlgorithm" json:"algorithm,omitempty"`
    // Required. The [name][google.cloud.kms.v1.ImportJob.name] of the [ImportJob][google.cloud.kms.v1.ImportJob] that was used to
    // wrap this key material.
    ImportJob string `protobuf:"bytes,4,opt,name=import_job,json=importJob,proto3" json:"import_job,omitempty"`
    // Required. The incoming wrapped key material that is to be imported.
    //
    // Types that are valid to be assigned to WrappedKeyMaterial:
    //	*ImportCryptoKeyVersionRequest_RsaAesWrappedKey
    WrappedKeyMaterial   isImportCryptoKeyVersionRequest_WrappedKeyMaterial `protobuf_oneof:"wrapped_key_material"`
    XXX_NoUnkeyedLiteral struct{}                                           `json:"-"`
    XXX_unrecognized     []byte                                             `json:"-"`
    XXX_sizecache        int32                                              `json:"-"`
}

Request message for [KeyManagementService.ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion].

func (*ImportCryptoKeyVersionRequest) Descriptor Uses

func (*ImportCryptoKeyVersionRequest) Descriptor() ([]byte, []int)

func (*ImportCryptoKeyVersionRequest) GetAlgorithm Uses

func (m *ImportCryptoKeyVersionRequest) GetAlgorithm() CryptoKeyVersion_CryptoKeyVersionAlgorithm

func (*ImportCryptoKeyVersionRequest) GetImportJob Uses

func (m *ImportCryptoKeyVersionRequest) GetImportJob() string

func (*ImportCryptoKeyVersionRequest) GetParent Uses

func (m *ImportCryptoKeyVersionRequest) GetParent() string

func (*ImportCryptoKeyVersionRequest) GetRsaAesWrappedKey Uses

func (m *ImportCryptoKeyVersionRequest) GetRsaAesWrappedKey() []byte

func (*ImportCryptoKeyVersionRequest) GetWrappedKeyMaterial Uses

func (m *ImportCryptoKeyVersionRequest) GetWrappedKeyMaterial() isImportCryptoKeyVersionRequest_WrappedKeyMaterial

func (*ImportCryptoKeyVersionRequest) ProtoMessage Uses

func (*ImportCryptoKeyVersionRequest) ProtoMessage()

func (*ImportCryptoKeyVersionRequest) Reset Uses

func (m *ImportCryptoKeyVersionRequest) Reset()

func (*ImportCryptoKeyVersionRequest) String Uses

func (m *ImportCryptoKeyVersionRequest) String() string

func (*ImportCryptoKeyVersionRequest) XXX_DiscardUnknown Uses

func (m *ImportCryptoKeyVersionRequest) XXX_DiscardUnknown()

func (*ImportCryptoKeyVersionRequest) XXX_Marshal Uses

func (m *ImportCryptoKeyVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportCryptoKeyVersionRequest) XXX_Merge Uses

func (m *ImportCryptoKeyVersionRequest) XXX_Merge(src proto.Message)

func (*ImportCryptoKeyVersionRequest) XXX_OneofWrappers Uses

func (*ImportCryptoKeyVersionRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ImportCryptoKeyVersionRequest) XXX_Size Uses

func (m *ImportCryptoKeyVersionRequest) XXX_Size() int

func (*ImportCryptoKeyVersionRequest) XXX_Unmarshal Uses

func (m *ImportCryptoKeyVersionRequest) XXX_Unmarshal(b []byte) error

type ImportCryptoKeyVersionRequest_RsaAesWrappedKey Uses

type ImportCryptoKeyVersionRequest_RsaAesWrappedKey struct {
    RsaAesWrappedKey []byte `protobuf:"bytes,5,opt,name=rsa_aes_wrapped_key,json=rsaAesWrappedKey,proto3,oneof"`
}

type ImportJob Uses

type ImportJob struct {
    // Output only. The resource name for this [ImportJob][google.cloud.kms.v1.ImportJob] in the format
    // `projects/*/locations/*/keyRings/*/importJobs/*`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Required. Immutable. The wrapping method to be used for incoming key material.
    ImportMethod ImportJob_ImportMethod `protobuf:"varint,2,opt,name=import_method,json=importMethod,proto3,enum=google.cloud.kms.v1.ImportJob_ImportMethod" json:"import_method,omitempty"`
    // Required. Immutable. The protection level of the [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the
    // [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level] of the
    // [version_template][google.cloud.kms.v1.CryptoKey.version_template] on the [CryptoKey][google.cloud.kms.v1.CryptoKey] you
    // attempt to import into.
    ProtectionLevel ProtectionLevel `protobuf:"varint,9,opt,name=protection_level,json=protectionLevel,proto3,enum=google.cloud.kms.v1.ProtectionLevel" json:"protection_level,omitempty"`
    // Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] was created.
    CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
    // Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key material was generated.
    GenerateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=generate_time,json=generateTime,proto3" json:"generate_time,omitempty"`
    // Output only. The time at which this [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for
    // expiration and can no longer be used to import key material.
    ExpireTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
    // Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob] expired. Only present if
    // [state][google.cloud.kms.v1.ImportJob.state] is [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
    ExpireEventTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=expire_event_time,json=expireEventTime,proto3" json:"expire_event_time,omitempty"`
    // Output only. The current state of the [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can
    // be used.
    State ImportJob_ImportJobState `protobuf:"varint,6,opt,name=state,proto3,enum=google.cloud.kms.v1.ImportJob_ImportJobState" json:"state,omitempty"`
    // Output only. The public key with which to wrap key material prior to
    // import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
    // [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
    PublicKey *ImportJob_WrappingPublicKey `protobuf:"bytes,7,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
    // Output only. Statement that was generated and signed by the key creator
    // (for example, an HSM) at key creation time. Use this statement to verify
    // attributes of the key as stored on the HSM, independently of Google.
    // Only present if the chosen [ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod] is one with a protection
    // level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    Attestation          *KeyOperationAttestation `protobuf:"bytes,8,opt,name=attestation,proto3" json:"attestation,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
    XXX_unrecognized     []byte                   `json:"-"`
    XXX_sizecache        int32                    `json:"-"`
}

An [ImportJob][google.cloud.kms.v1.ImportJob] can be used to create [CryptoKeys][google.cloud.kms.v1.CryptoKey] and [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] using pre-existing key material, generated outside of Cloud KMS.

When an [ImportJob][google.cloud.kms.v1.ImportJob] is created, Cloud KMS will generate a "wrapping key", which is a public/private key pair. You use the wrapping key to encrypt (also known as wrap) the pre-existing key material to protect it during the import process. The nature of the wrapping key depends on the choice of [import_method][google.cloud.kms.v1.ImportJob.import_method]. When the wrapping key generation is complete, the [state][google.cloud.kms.v1.ImportJob.state] will be set to [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE] and the [public_key][google.cloud.kms.v1.ImportJob.public_key] can be fetched. The fetched public key can then be used to wrap your pre-existing key material.

Once the key material is wrapped, it can be imported into a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in an existing [CryptoKey][google.cloud.kms.v1.CryptoKey] by calling [ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion]. Multiple [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] can be imported with a single [ImportJob][google.cloud.kms.v1.ImportJob]. Cloud KMS uses the private key portion of the wrapping key to unwrap the key material. Only Cloud KMS has access to the private key.

An [ImportJob][google.cloud.kms.v1.ImportJob] expires 3 days after it is created. Once expired, Cloud KMS will no longer be able to import or unwrap any key material that was wrapped with the [ImportJob][google.cloud.kms.v1.ImportJob]'s public key.

For more information, see [Importing a key](https://cloud.google.com/kms/docs/importing-a-key).

func (*ImportJob) Descriptor Uses

func (*ImportJob) Descriptor() ([]byte, []int)

func (*ImportJob) GetAttestation Uses

func (m *ImportJob) GetAttestation() *KeyOperationAttestation

func (*ImportJob) GetCreateTime Uses

func (m *ImportJob) GetCreateTime() *timestamp.Timestamp

func (*ImportJob) GetExpireEventTime Uses

func (m *ImportJob) GetExpireEventTime() *timestamp.Timestamp

func (*ImportJob) GetExpireTime Uses

func (m *ImportJob) GetExpireTime() *timestamp.Timestamp

func (*ImportJob) GetGenerateTime Uses

func (m *ImportJob) GetGenerateTime() *timestamp.Timestamp

func (*ImportJob) GetImportMethod Uses

func (m *ImportJob) GetImportMethod() ImportJob_ImportMethod

func (*ImportJob) GetName Uses

func (m *ImportJob) GetName() string

func (*ImportJob) GetProtectionLevel Uses

func (m *ImportJob) GetProtectionLevel() ProtectionLevel

func (*ImportJob) GetPublicKey Uses

func (m *ImportJob) GetPublicKey() *ImportJob_WrappingPublicKey

func (*ImportJob) GetState Uses

func (m *ImportJob) GetState() ImportJob_ImportJobState

func (*ImportJob) ProtoMessage Uses

func (*ImportJob) ProtoMessage()

func (*ImportJob) Reset Uses

func (m *ImportJob) Reset()

func (*ImportJob) String Uses

func (m *ImportJob) String() string

func (*ImportJob) XXX_DiscardUnknown Uses

func (m *ImportJob) XXX_DiscardUnknown()

func (*ImportJob) XXX_Marshal Uses

func (m *ImportJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportJob) XXX_Merge Uses

func (m *ImportJob) XXX_Merge(src proto.Message)

func (*ImportJob) XXX_Size Uses

func (m *ImportJob) XXX_Size() int

func (*ImportJob) XXX_Unmarshal Uses

func (m *ImportJob) XXX_Unmarshal(b []byte) error

type ImportJob_ImportJobState Uses

type ImportJob_ImportJobState int32

The state of the [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.

const (
    // Not specified.
    ImportJob_IMPORT_JOB_STATE_UNSPECIFIED ImportJob_ImportJobState = 0
    // The wrapping key for this job is still being generated. It may not be
    // used. Cloud KMS will automatically mark this job as
    // [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE] as soon as the wrapping key is generated.
    ImportJob_PENDING_GENERATION ImportJob_ImportJobState = 1
    // This job may be used in
    // [CreateCryptoKey][google.cloud.kms.v1.KeyManagementService.CreateCryptoKey] and
    // [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion]
    // requests.
    ImportJob_ACTIVE ImportJob_ImportJobState = 2
    // This job can no longer be used and may not leave this state once entered.
    ImportJob_EXPIRED ImportJob_ImportJobState = 3
)

func (ImportJob_ImportJobState) EnumDescriptor Uses

func (ImportJob_ImportJobState) EnumDescriptor() ([]byte, []int)

func (ImportJob_ImportJobState) String Uses

func (x ImportJob_ImportJobState) String() string

type ImportJob_ImportMethod Uses

type ImportJob_ImportMethod int32

[ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod] describes the key wrapping method chosen for this [ImportJob][google.cloud.kms.v1.ImportJob].

const (
    // Not specified.
    ImportJob_IMPORT_METHOD_UNSPECIFIED ImportJob_ImportMethod = 0
    // This ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping
    // scheme defined in the PKCS #11 standard. In summary, this involves
    // wrapping the raw key with an ephemeral AES key, and wrapping the
    // ephemeral AES key with a 3072 bit RSA key. For more details, see
    // [RSA AES key wrap
    // mechanism](http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-curr-v2.40-cos01.html#_Toc408226908).
    ImportJob_RSA_OAEP_3072_SHA1_AES_256 ImportJob_ImportMethod = 1
    // This ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping
    // scheme defined in the PKCS #11 standard. In summary, this involves
    // wrapping the raw key with an ephemeral AES key, and wrapping the
    // ephemeral AES key with a 4096 bit RSA key. For more details, see
    // [RSA AES key wrap
    // mechanism](http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-curr-v2.40-cos01.html#_Toc408226908).
    ImportJob_RSA_OAEP_4096_SHA1_AES_256 ImportJob_ImportMethod = 2
)

func (ImportJob_ImportMethod) EnumDescriptor Uses

func (ImportJob_ImportMethod) EnumDescriptor() ([]byte, []int)

func (ImportJob_ImportMethod) String Uses

func (x ImportJob_ImportMethod) String() string

type ImportJob_WrappingPublicKey Uses

type ImportJob_WrappingPublicKey struct {
    // The public key, encoded in PEM format. For more information, see the [RFC
    // 7468](https://tools.ietf.org/html/rfc7468) sections for [General
    // Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
    // [Textual Encoding of Subject Public Key Info]
    // (https://tools.ietf.org/html/rfc7468#section-13).
    Pem                  string   `protobuf:"bytes,1,opt,name=pem,proto3" json:"pem,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

The public key component of the wrapping key. For details of the type of key this public key corresponds to, see the [ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod].

func (*ImportJob_WrappingPublicKey) Descriptor Uses

func (*ImportJob_WrappingPublicKey) Descriptor() ([]byte, []int)

func (*ImportJob_WrappingPublicKey) GetPem Uses

func (m *ImportJob_WrappingPublicKey) GetPem() string

func (*ImportJob_WrappingPublicKey) ProtoMessage Uses

func (*ImportJob_WrappingPublicKey) ProtoMessage()

func (*ImportJob_WrappingPublicKey) Reset Uses

func (m *ImportJob_WrappingPublicKey) Reset()

func (*ImportJob_WrappingPublicKey) String Uses

func (m *ImportJob_WrappingPublicKey) String() string

func (*ImportJob_WrappingPublicKey) XXX_DiscardUnknown Uses

func (m *ImportJob_WrappingPublicKey) XXX_DiscardUnknown()

func (*ImportJob_WrappingPublicKey) XXX_Marshal Uses

func (m *ImportJob_WrappingPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportJob_WrappingPublicKey) XXX_Merge Uses

func (m *ImportJob_WrappingPublicKey) XXX_Merge(src proto.Message)

func (*ImportJob_WrappingPublicKey) XXX_Size Uses

func (m *ImportJob_WrappingPublicKey) XXX_Size() int

func (*ImportJob_WrappingPublicKey) XXX_Unmarshal Uses

func (m *ImportJob_WrappingPublicKey) XXX_Unmarshal(b []byte) error

type KeyManagementServiceClient Uses

type KeyManagementServiceClient interface {
    // Lists [KeyRings][google.cloud.kms.v1.KeyRing].
    ListKeyRings(ctx context.Context, in *ListKeyRingsRequest, opts ...grpc.CallOption) (*ListKeyRingsResponse, error)
    // Lists [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    ListCryptoKeys(ctx context.Context, in *ListCryptoKeysRequest, opts ...grpc.CallOption) (*ListCryptoKeysResponse, error)
    // Lists [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    ListCryptoKeyVersions(ctx context.Context, in *ListCryptoKeyVersionsRequest, opts ...grpc.CallOption) (*ListCryptoKeyVersionsResponse, error)
    // Lists [ImportJobs][google.cloud.kms.v1.ImportJob].
    ListImportJobs(ctx context.Context, in *ListImportJobsRequest, opts ...grpc.CallOption) (*ListImportJobsResponse, error)
    // Returns metadata for a given [KeyRing][google.cloud.kms.v1.KeyRing].
    GetKeyRing(ctx context.Context, in *GetKeyRingRequest, opts ...grpc.CallOption) (*KeyRing, error)
    // Returns metadata for a given [CryptoKey][google.cloud.kms.v1.CryptoKey], as well as its
    // [primary][google.cloud.kms.v1.CryptoKey.primary] [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    GetCryptoKey(ctx context.Context, in *GetCryptoKeyRequest, opts ...grpc.CallOption) (*CryptoKey, error)
    // Returns metadata for a given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    GetCryptoKeyVersion(ctx context.Context, in *GetCryptoKeyVersionRequest, opts ...grpc.CallOption) (*CryptoKeyVersion, error)
    // Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The
    // [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be
    // [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN] or
    // [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].
    GetPublicKey(ctx context.Context, in *GetPublicKeyRequest, opts ...grpc.CallOption) (*PublicKey, error)
    // Returns metadata for a given [ImportJob][google.cloud.kms.v1.ImportJob].
    GetImportJob(ctx context.Context, in *GetImportJobRequest, opts ...grpc.CallOption) (*ImportJob, error)
    // Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location.
    CreateKeyRing(ctx context.Context, in *CreateKeyRingRequest, opts ...grpc.CallOption) (*KeyRing, error)
    // Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a [KeyRing][google.cloud.kms.v1.KeyRing].
    //
    // [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and
    // [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm]
    // are required.
    CreateCryptoKey(ctx context.Context, in *CreateCryptoKeyRequest, opts ...grpc.CallOption) (*CryptoKey, error)
    // Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a [CryptoKey][google.cloud.kms.v1.CryptoKey].
    //
    // The server will assign the next sequential id. If unset,
    // [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to
    // [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED].
    CreateCryptoKeyVersion(ctx context.Context, in *CreateCryptoKeyVersionRequest, opts ...grpc.CallOption) (*CryptoKeyVersion, error)
    // Imports a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] into an existing [CryptoKey][google.cloud.kms.v1.CryptoKey] using the
    // wrapped key material provided in the request.
    //
    // The version ID will be assigned the next sequential id within the
    // [CryptoKey][google.cloud.kms.v1.CryptoKey].
    ImportCryptoKeyVersion(ctx context.Context, in *ImportCryptoKeyVersionRequest, opts ...grpc.CallOption) (*CryptoKeyVersion, error)
    // Create a new [ImportJob][google.cloud.kms.v1.ImportJob] within a [KeyRing][google.cloud.kms.v1.KeyRing].
    //
    // [ImportJob.import_method][google.cloud.kms.v1.ImportJob.import_method] is required.
    CreateImportJob(ctx context.Context, in *CreateImportJobRequest, opts ...grpc.CallOption) (*ImportJob, error)
    // Update a [CryptoKey][google.cloud.kms.v1.CryptoKey].
    UpdateCryptoKey(ctx context.Context, in *UpdateCryptoKeyRequest, opts ...grpc.CallOption) (*CryptoKey, error)
    // Update a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s metadata.
    //
    // [state][google.cloud.kms.v1.CryptoKeyVersion.state] may be changed between
    // [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] and
    // [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED] using this
    // method. See [DestroyCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion] and [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] to
    // move between other states.
    UpdateCryptoKeyVersion(ctx context.Context, in *UpdateCryptoKeyVersionRequest, opts ...grpc.CallOption) (*CryptoKeyVersion, error)
    // Encrypts data, so that it can only be recovered by a call to [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
    // The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be
    // [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
    Encrypt(ctx context.Context, in *EncryptRequest, opts ...grpc.CallOption) (*EncryptResponse, error)
    // Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
    // must be [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
    Decrypt(ctx context.Context, in *DecryptRequest, opts ...grpc.CallOption) (*DecryptResponse, error)
    // Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
    // ASYMMETRIC_SIGN, producing a signature that can be verified with the public
    // key retrieved from [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
    AsymmetricSign(ctx context.Context, in *AsymmetricSignRequest, opts ...grpc.CallOption) (*AsymmetricSignResponse, error)
    // Decrypts data that was encrypted with a public key retrieved from
    // [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
    // [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_DECRYPT.
    AsymmetricDecrypt(ctx context.Context, in *AsymmetricDecryptRequest, opts ...grpc.CallOption) (*AsymmetricDecryptResponse, error)
    // Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
    //
    // Returns an error if called on an asymmetric key.
    UpdateCryptoKeyPrimaryVersion(ctx context.Context, in *UpdateCryptoKeyPrimaryVersionRequest, opts ...grpc.CallOption) (*CryptoKey, error)
    // Schedule a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] for destruction.
    //
    // Upon calling this method, [CryptoKeyVersion.state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to
    // [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
    // and [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] will be set to a time 24
    // hours in the future, at which point the [state][google.cloud.kms.v1.CryptoKeyVersion.state]
    // will be changed to
    // [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED], and the key
    // material will be irrevocably destroyed.
    //
    // Before the [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] is reached,
    // [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] may be called to reverse the process.
    DestroyCryptoKeyVersion(ctx context.Context, in *DestroyCryptoKeyVersionRequest, opts ...grpc.CallOption) (*CryptoKeyVersion, error)
    // Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the
    // [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
    // state.
    //
    // Upon restoration of the CryptoKeyVersion, [state][google.cloud.kms.v1.CryptoKeyVersion.state]
    // will be set to [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED],
    // and [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] will be cleared.
    RestoreCryptoKeyVersion(ctx context.Context, in *RestoreCryptoKeyVersionRequest, opts ...grpc.CallOption) (*CryptoKeyVersion, error)
}

KeyManagementServiceClient is the client API for KeyManagementService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewKeyManagementServiceClient Uses

func NewKeyManagementServiceClient(cc grpc.ClientConnInterface) KeyManagementServiceClient

type KeyManagementServiceServer Uses

type KeyManagementServiceServer interface {
    // Lists [KeyRings][google.cloud.kms.v1.KeyRing].
    ListKeyRings(context.Context, *ListKeyRingsRequest) (*ListKeyRingsResponse, error)
    // Lists [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    ListCryptoKeys(context.Context, *ListCryptoKeysRequest) (*ListCryptoKeysResponse, error)
    // Lists [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    ListCryptoKeyVersions(context.Context, *ListCryptoKeyVersionsRequest) (*ListCryptoKeyVersionsResponse, error)
    // Lists [ImportJobs][google.cloud.kms.v1.ImportJob].
    ListImportJobs(context.Context, *ListImportJobsRequest) (*ListImportJobsResponse, error)
    // Returns metadata for a given [KeyRing][google.cloud.kms.v1.KeyRing].
    GetKeyRing(context.Context, *GetKeyRingRequest) (*KeyRing, error)
    // Returns metadata for a given [CryptoKey][google.cloud.kms.v1.CryptoKey], as well as its
    // [primary][google.cloud.kms.v1.CryptoKey.primary] [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    GetCryptoKey(context.Context, *GetCryptoKeyRequest) (*CryptoKey, error)
    // Returns metadata for a given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    GetCryptoKeyVersion(context.Context, *GetCryptoKeyVersionRequest) (*CryptoKeyVersion, error)
    // Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The
    // [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be
    // [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN] or
    // [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].
    GetPublicKey(context.Context, *GetPublicKeyRequest) (*PublicKey, error)
    // Returns metadata for a given [ImportJob][google.cloud.kms.v1.ImportJob].
    GetImportJob(context.Context, *GetImportJobRequest) (*ImportJob, error)
    // Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location.
    CreateKeyRing(context.Context, *CreateKeyRingRequest) (*KeyRing, error)
    // Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a [KeyRing][google.cloud.kms.v1.KeyRing].
    //
    // [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and
    // [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm]
    // are required.
    CreateCryptoKey(context.Context, *CreateCryptoKeyRequest) (*CryptoKey, error)
    // Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a [CryptoKey][google.cloud.kms.v1.CryptoKey].
    //
    // The server will assign the next sequential id. If unset,
    // [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to
    // [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED].
    CreateCryptoKeyVersion(context.Context, *CreateCryptoKeyVersionRequest) (*CryptoKeyVersion, error)
    // Imports a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] into an existing [CryptoKey][google.cloud.kms.v1.CryptoKey] using the
    // wrapped key material provided in the request.
    //
    // The version ID will be assigned the next sequential id within the
    // [CryptoKey][google.cloud.kms.v1.CryptoKey].
    ImportCryptoKeyVersion(context.Context, *ImportCryptoKeyVersionRequest) (*CryptoKeyVersion, error)
    // Create a new [ImportJob][google.cloud.kms.v1.ImportJob] within a [KeyRing][google.cloud.kms.v1.KeyRing].
    //
    // [ImportJob.import_method][google.cloud.kms.v1.ImportJob.import_method] is required.
    CreateImportJob(context.Context, *CreateImportJobRequest) (*ImportJob, error)
    // Update a [CryptoKey][google.cloud.kms.v1.CryptoKey].
    UpdateCryptoKey(context.Context, *UpdateCryptoKeyRequest) (*CryptoKey, error)
    // Update a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s metadata.
    //
    // [state][google.cloud.kms.v1.CryptoKeyVersion.state] may be changed between
    // [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] and
    // [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED] using this
    // method. See [DestroyCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion] and [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] to
    // move between other states.
    UpdateCryptoKeyVersion(context.Context, *UpdateCryptoKeyVersionRequest) (*CryptoKeyVersion, error)
    // Encrypts data, so that it can only be recovered by a call to [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
    // The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be
    // [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
    Encrypt(context.Context, *EncryptRequest) (*EncryptResponse, error)
    // Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
    // must be [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
    Decrypt(context.Context, *DecryptRequest) (*DecryptResponse, error)
    // Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
    // ASYMMETRIC_SIGN, producing a signature that can be verified with the public
    // key retrieved from [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
    AsymmetricSign(context.Context, *AsymmetricSignRequest) (*AsymmetricSignResponse, error)
    // Decrypts data that was encrypted with a public key retrieved from
    // [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
    // [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_DECRYPT.
    AsymmetricDecrypt(context.Context, *AsymmetricDecryptRequest) (*AsymmetricDecryptResponse, error)
    // Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
    //
    // Returns an error if called on an asymmetric key.
    UpdateCryptoKeyPrimaryVersion(context.Context, *UpdateCryptoKeyPrimaryVersionRequest) (*CryptoKey, error)
    // Schedule a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] for destruction.
    //
    // Upon calling this method, [CryptoKeyVersion.state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to
    // [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
    // and [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] will be set to a time 24
    // hours in the future, at which point the [state][google.cloud.kms.v1.CryptoKeyVersion.state]
    // will be changed to
    // [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED], and the key
    // material will be irrevocably destroyed.
    //
    // Before the [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] is reached,
    // [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] may be called to reverse the process.
    DestroyCryptoKeyVersion(context.Context, *DestroyCryptoKeyVersionRequest) (*CryptoKeyVersion, error)
    // Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the
    // [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
    // state.
    //
    // Upon restoration of the CryptoKeyVersion, [state][google.cloud.kms.v1.CryptoKeyVersion.state]
    // will be set to [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED],
    // and [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] will be cleared.
    RestoreCryptoKeyVersion(context.Context, *RestoreCryptoKeyVersionRequest) (*CryptoKeyVersion, error)
}

KeyManagementServiceServer is the server API for KeyManagementService service.

type KeyOperationAttestation Uses

type KeyOperationAttestation struct {
    // Output only. The format of the attestation data.
    Format KeyOperationAttestation_AttestationFormat `protobuf:"varint,4,opt,name=format,proto3,enum=google.cloud.kms.v1.KeyOperationAttestation_AttestationFormat" json:"format,omitempty"`
    // Output only. The attestation data provided by the HSM when the key
    // operation was performed.
    Content              []byte   `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Contains an HSM-generated attestation about a key operation. For more information, see [Verifying attestations] (https://cloud.google.com/kms/docs/attest-key).

func (*KeyOperationAttestation) Descriptor Uses

func (*KeyOperationAttestation) Descriptor() ([]byte, []int)

func (*KeyOperationAttestation) GetContent Uses

func (m *KeyOperationAttestation) GetContent() []byte

func (*KeyOperationAttestation) GetFormat Uses

func (m *KeyOperationAttestation) GetFormat() KeyOperationAttestation_AttestationFormat

func (*KeyOperationAttestation) ProtoMessage Uses

func (*KeyOperationAttestation) ProtoMessage()

func (*KeyOperationAttestation) Reset Uses

func (m *KeyOperationAttestation) Reset()

func (*KeyOperationAttestation) String Uses

func (m *KeyOperationAttestation) String() string

func (*KeyOperationAttestation) XXX_DiscardUnknown Uses

func (m *KeyOperationAttestation) XXX_DiscardUnknown()

func (*KeyOperationAttestation) XXX_Marshal Uses

func (m *KeyOperationAttestation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyOperationAttestation) XXX_Merge Uses

func (m *KeyOperationAttestation) XXX_Merge(src proto.Message)

func (*KeyOperationAttestation) XXX_Size Uses

func (m *KeyOperationAttestation) XXX_Size() int

func (*KeyOperationAttestation) XXX_Unmarshal Uses

func (m *KeyOperationAttestation) XXX_Unmarshal(b []byte) error

type KeyOperationAttestation_AttestationFormat Uses

type KeyOperationAttestation_AttestationFormat int32

Attestation formats provided by the HSM.

const (
    // Not specified.
    KeyOperationAttestation_ATTESTATION_FORMAT_UNSPECIFIED KeyOperationAttestation_AttestationFormat = 0
    // Cavium HSM attestation compressed with gzip. Note that this format is
    // defined by Cavium and subject to change at any time.
    KeyOperationAttestation_CAVIUM_V1_COMPRESSED KeyOperationAttestation_AttestationFormat = 3
    // Cavium HSM attestation V2 compressed with gzip. This is a new format
    // introduced in Cavium's version 3.2-08.
    KeyOperationAttestation_CAVIUM_V2_COMPRESSED KeyOperationAttestation_AttestationFormat = 4
)

func (KeyOperationAttestation_AttestationFormat) EnumDescriptor Uses

func (KeyOperationAttestation_AttestationFormat) EnumDescriptor() ([]byte, []int)

func (KeyOperationAttestation_AttestationFormat) String Uses

func (x KeyOperationAttestation_AttestationFormat) String() string

type KeyRing Uses

type KeyRing struct {
    // Output only. The resource name for the [KeyRing][google.cloud.kms.v1.KeyRing] in the format
    // `projects/*/locations/*/keyRings/*`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing] was created.
    CreateTime           *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

A [KeyRing][google.cloud.kms.v1.KeyRing] is a toplevel logical grouping of [CryptoKeys][google.cloud.kms.v1.CryptoKey].

func (*KeyRing) Descriptor Uses

func (*KeyRing) Descriptor() ([]byte, []int)

func (*KeyRing) GetCreateTime Uses

func (m *KeyRing) GetCreateTime() *timestamp.Timestamp

func (*KeyRing) GetName Uses

func (m *KeyRing) GetName() string

func (*KeyRing) ProtoMessage Uses

func (*KeyRing) ProtoMessage()

func (*KeyRing) Reset Uses

func (m *KeyRing) Reset()

func (*KeyRing) String Uses

func (m *KeyRing) String() string

func (*KeyRing) XXX_DiscardUnknown Uses

func (m *KeyRing) XXX_DiscardUnknown()

func (*KeyRing) XXX_Marshal Uses

func (m *KeyRing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyRing) XXX_Merge Uses

func (m *KeyRing) XXX_Merge(src proto.Message)

func (*KeyRing) XXX_Size Uses

func (m *KeyRing) XXX_Size() int

func (*KeyRing) XXX_Unmarshal Uses

func (m *KeyRing) XXX_Unmarshal(b []byte) error

type ListCryptoKeyVersionsRequest Uses

type ListCryptoKeyVersionsRequest struct {
    // Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to list, in the format
    // `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Optional. Optional limit on the number of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] to
    // include in the response. Further [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] can
    // subsequently be obtained by including the
    // [ListCryptoKeyVersionsResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeyVersionsResponse.next_page_token] in a subsequent request.
    // If unspecified, the server will pick an appropriate default.
    PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // Optional. Optional pagination token, returned earlier via
    // [ListCryptoKeyVersionsResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeyVersionsResponse.next_page_token].
    PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // The fields to include in the response.
    View CryptoKeyVersion_CryptoKeyVersionView `protobuf:"varint,4,opt,name=view,proto3,enum=google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionView" json:"view,omitempty"`
    // Optional. Only include resources that match the filter in the response. For
    // more information, see
    // [Sorting and filtering list
    // results](https://cloud.google.com/kms/docs/sorting-and-filtering).
    Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
    // Optional. Specify how the results should be sorted. If not specified, the
    // results will be sorted in the default order. For more information, see
    // [Sorting and filtering list
    // results](https://cloud.google.com/kms/docs/sorting-and-filtering).
    OrderBy              string   `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.ListCryptoKeyVersions][google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions].

func (*ListCryptoKeyVersionsRequest) Descriptor Uses

func (*ListCryptoKeyVersionsRequest) Descriptor() ([]byte, []int)

func (*ListCryptoKeyVersionsRequest) GetFilter Uses

func (m *ListCryptoKeyVersionsRequest) GetFilter() string

func (*ListCryptoKeyVersionsRequest) GetOrderBy Uses

func (m *ListCryptoKeyVersionsRequest) GetOrderBy() string

func (*ListCryptoKeyVersionsRequest) GetPageSize Uses

func (m *ListCryptoKeyVersionsRequest) GetPageSize() int32

func (*ListCryptoKeyVersionsRequest) GetPageToken Uses

func (m *ListCryptoKeyVersionsRequest) GetPageToken() string

func (*ListCryptoKeyVersionsRequest) GetParent Uses

func (m *ListCryptoKeyVersionsRequest) GetParent() string

func (*ListCryptoKeyVersionsRequest) GetView Uses

func (m *ListCryptoKeyVersionsRequest) GetView() CryptoKeyVersion_CryptoKeyVersionView

func (*ListCryptoKeyVersionsRequest) ProtoMessage Uses

func (*ListCryptoKeyVersionsRequest) ProtoMessage()

func (*ListCryptoKeyVersionsRequest) Reset Uses

func (m *ListCryptoKeyVersionsRequest) Reset()

func (*ListCryptoKeyVersionsRequest) String Uses

func (m *ListCryptoKeyVersionsRequest) String() string

func (*ListCryptoKeyVersionsRequest) XXX_DiscardUnknown Uses

func (m *ListCryptoKeyVersionsRequest) XXX_DiscardUnknown()

func (*ListCryptoKeyVersionsRequest) XXX_Marshal Uses

func (m *ListCryptoKeyVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListCryptoKeyVersionsRequest) XXX_Merge Uses

func (m *ListCryptoKeyVersionsRequest) XXX_Merge(src proto.Message)

func (*ListCryptoKeyVersionsRequest) XXX_Size Uses

func (m *ListCryptoKeyVersionsRequest) XXX_Size() int

func (*ListCryptoKeyVersionsRequest) XXX_Unmarshal Uses

func (m *ListCryptoKeyVersionsRequest) XXX_Unmarshal(b []byte) error

type ListCryptoKeyVersionsResponse Uses

type ListCryptoKeyVersionsResponse struct {
    // The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    CryptoKeyVersions []*CryptoKeyVersion `protobuf:"bytes,1,rep,name=crypto_key_versions,json=cryptoKeyVersions,proto3" json:"crypto_key_versions,omitempty"`
    // A token to retrieve next page of results. Pass this value in
    // [ListCryptoKeyVersionsRequest.page_token][google.cloud.kms.v1.ListCryptoKeyVersionsRequest.page_token] to retrieve the next page of
    // results.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // The total number of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] that matched the
    // query.
    TotalSize            int32    `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Response message for [KeyManagementService.ListCryptoKeyVersions][google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions].

func (*ListCryptoKeyVersionsResponse) Descriptor Uses

func (*ListCryptoKeyVersionsResponse) Descriptor() ([]byte, []int)

func (*ListCryptoKeyVersionsResponse) GetCryptoKeyVersions Uses

func (m *ListCryptoKeyVersionsResponse) GetCryptoKeyVersions() []*CryptoKeyVersion

func (*ListCryptoKeyVersionsResponse) GetNextPageToken Uses

func (m *ListCryptoKeyVersionsResponse) GetNextPageToken() string

func (*ListCryptoKeyVersionsResponse) GetTotalSize Uses

func (m *ListCryptoKeyVersionsResponse) GetTotalSize() int32

func (*ListCryptoKeyVersionsResponse) ProtoMessage Uses

func (*ListCryptoKeyVersionsResponse) ProtoMessage()

func (*ListCryptoKeyVersionsResponse) Reset Uses

func (m *ListCryptoKeyVersionsResponse) Reset()

func (*ListCryptoKeyVersionsResponse) String Uses

func (m *ListCryptoKeyVersionsResponse) String() string

func (*ListCryptoKeyVersionsResponse) XXX_DiscardUnknown Uses

func (m *ListCryptoKeyVersionsResponse) XXX_DiscardUnknown()

func (*ListCryptoKeyVersionsResponse) XXX_Marshal Uses

func (m *ListCryptoKeyVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListCryptoKeyVersionsResponse) XXX_Merge Uses

func (m *ListCryptoKeyVersionsResponse) XXX_Merge(src proto.Message)

func (*ListCryptoKeyVersionsResponse) XXX_Size Uses

func (m *ListCryptoKeyVersionsResponse) XXX_Size() int

func (*ListCryptoKeyVersionsResponse) XXX_Unmarshal Uses

func (m *ListCryptoKeyVersionsResponse) XXX_Unmarshal(b []byte) error

type ListCryptoKeysRequest Uses

type ListCryptoKeysRequest struct {
    // Required. The resource name of the [KeyRing][google.cloud.kms.v1.KeyRing] to list, in the format
    // `projects/*/locations/*/keyRings/*`.
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Optional. Optional limit on the number of [CryptoKeys][google.cloud.kms.v1.CryptoKey] to include in the
    // response.  Further [CryptoKeys][google.cloud.kms.v1.CryptoKey] can subsequently be obtained by
    // including the [ListCryptoKeysResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeysResponse.next_page_token] in a subsequent
    // request.  If unspecified, the server will pick an appropriate default.
    PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // Optional. Optional pagination token, returned earlier via
    // [ListCryptoKeysResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeysResponse.next_page_token].
    PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // The fields of the primary version to include in the response.
    VersionView CryptoKeyVersion_CryptoKeyVersionView `protobuf:"varint,4,opt,name=version_view,json=versionView,proto3,enum=google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionView" json:"version_view,omitempty"`
    // Optional. Only include resources that match the filter in the response. For
    // more information, see
    // [Sorting and filtering list
    // results](https://cloud.google.com/kms/docs/sorting-and-filtering).
    Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
    // Optional. Specify how the results should be sorted. If not specified, the
    // results will be sorted in the default order. For more information, see
    // [Sorting and filtering list
    // results](https://cloud.google.com/kms/docs/sorting-and-filtering).
    OrderBy              string   `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.ListCryptoKeys][google.cloud.kms.v1.KeyManagementService.ListCryptoKeys].

func (*ListCryptoKeysRequest) Descriptor Uses

func (*ListCryptoKeysRequest) Descriptor() ([]byte, []int)

func (*ListCryptoKeysRequest) GetFilter Uses

func (m *ListCryptoKeysRequest) GetFilter() string

func (*ListCryptoKeysRequest) GetOrderBy Uses

func (m *ListCryptoKeysRequest) GetOrderBy() string

func (*ListCryptoKeysRequest) GetPageSize Uses

func (m *ListCryptoKeysRequest) GetPageSize() int32

func (*ListCryptoKeysRequest) GetPageToken Uses

func (m *ListCryptoKeysRequest) GetPageToken() string

func (*ListCryptoKeysRequest) GetParent Uses

func (m *ListCryptoKeysRequest) GetParent() string

func (*ListCryptoKeysRequest) GetVersionView Uses

func (m *ListCryptoKeysRequest) GetVersionView() CryptoKeyVersion_CryptoKeyVersionView

func (*ListCryptoKeysRequest) ProtoMessage Uses

func (*ListCryptoKeysRequest) ProtoMessage()

func (*ListCryptoKeysRequest) Reset Uses

func (m *ListCryptoKeysRequest) Reset()

func (*ListCryptoKeysRequest) String Uses

func (m *ListCryptoKeysRequest) String() string

func (*ListCryptoKeysRequest) XXX_DiscardUnknown Uses

func (m *ListCryptoKeysRequest) XXX_DiscardUnknown()

func (*ListCryptoKeysRequest) XXX_Marshal Uses

func (m *ListCryptoKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListCryptoKeysRequest) XXX_Merge Uses

func (m *ListCryptoKeysRequest) XXX_Merge(src proto.Message)

func (*ListCryptoKeysRequest) XXX_Size Uses

func (m *ListCryptoKeysRequest) XXX_Size() int

func (*ListCryptoKeysRequest) XXX_Unmarshal Uses

func (m *ListCryptoKeysRequest) XXX_Unmarshal(b []byte) error

type ListCryptoKeysResponse Uses

type ListCryptoKeysResponse struct {
    // The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    CryptoKeys []*CryptoKey `protobuf:"bytes,1,rep,name=crypto_keys,json=cryptoKeys,proto3" json:"crypto_keys,omitempty"`
    // A token to retrieve next page of results. Pass this value in
    // [ListCryptoKeysRequest.page_token][google.cloud.kms.v1.ListCryptoKeysRequest.page_token] to retrieve the next page of results.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // The total number of [CryptoKeys][google.cloud.kms.v1.CryptoKey] that matched the query.
    TotalSize            int32    `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Response message for [KeyManagementService.ListCryptoKeys][google.cloud.kms.v1.KeyManagementService.ListCryptoKeys].

func (*ListCryptoKeysResponse) Descriptor Uses

func (*ListCryptoKeysResponse) Descriptor() ([]byte, []int)

func (*ListCryptoKeysResponse) GetCryptoKeys Uses

func (m *ListCryptoKeysResponse) GetCryptoKeys() []*CryptoKey

func (*ListCryptoKeysResponse) GetNextPageToken Uses

func (m *ListCryptoKeysResponse) GetNextPageToken() string

func (*ListCryptoKeysResponse) GetTotalSize Uses

func (m *ListCryptoKeysResponse) GetTotalSize() int32

func (*ListCryptoKeysResponse) ProtoMessage Uses

func (*ListCryptoKeysResponse) ProtoMessage()

func (*ListCryptoKeysResponse) Reset Uses

func (m *ListCryptoKeysResponse) Reset()

func (*ListCryptoKeysResponse) String Uses

func (m *ListCryptoKeysResponse) String() string

func (*ListCryptoKeysResponse) XXX_DiscardUnknown Uses

func (m *ListCryptoKeysResponse) XXX_DiscardUnknown()

func (*ListCryptoKeysResponse) XXX_Marshal Uses

func (m *ListCryptoKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListCryptoKeysResponse) XXX_Merge Uses

func (m *ListCryptoKeysResponse) XXX_Merge(src proto.Message)

func (*ListCryptoKeysResponse) XXX_Size Uses

func (m *ListCryptoKeysResponse) XXX_Size() int

func (*ListCryptoKeysResponse) XXX_Unmarshal Uses

func (m *ListCryptoKeysResponse) XXX_Unmarshal(b []byte) error

type ListImportJobsRequest Uses

type ListImportJobsRequest struct {
    // Required. The resource name of the [KeyRing][google.cloud.kms.v1.KeyRing] to list, in the format
    // `projects/*/locations/*/keyRings/*`.
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Optional. Optional limit on the number of [ImportJobs][google.cloud.kms.v1.ImportJob] to include in the
    // response. Further [ImportJobs][google.cloud.kms.v1.ImportJob] can subsequently be obtained by
    // including the [ListImportJobsResponse.next_page_token][google.cloud.kms.v1.ListImportJobsResponse.next_page_token] in a subsequent
    // request. If unspecified, the server will pick an appropriate default.
    PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // Optional. Optional pagination token, returned earlier via
    // [ListImportJobsResponse.next_page_token][google.cloud.kms.v1.ListImportJobsResponse.next_page_token].
    PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // Optional. Only include resources that match the filter in the response. For
    // more information, see
    // [Sorting and filtering list
    // results](https://cloud.google.com/kms/docs/sorting-and-filtering).
    Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
    // Optional. Specify how the results should be sorted. If not specified, the
    // results will be sorted in the default order. For more information, see
    // [Sorting and filtering list
    // results](https://cloud.google.com/kms/docs/sorting-and-filtering).
    OrderBy              string   `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.ListImportJobs][google.cloud.kms.v1.KeyManagementService.ListImportJobs].

func (*ListImportJobsRequest) Descriptor Uses

func (*ListImportJobsRequest) Descriptor() ([]byte, []int)

func (*ListImportJobsRequest) GetFilter Uses

func (m *ListImportJobsRequest) GetFilter() string

func (*ListImportJobsRequest) GetOrderBy Uses

func (m *ListImportJobsRequest) GetOrderBy() string

func (*ListImportJobsRequest) GetPageSize Uses

func (m *ListImportJobsRequest) GetPageSize() int32

func (*ListImportJobsRequest) GetPageToken Uses

func (m *ListImportJobsRequest) GetPageToken() string

func (*ListImportJobsRequest) GetParent Uses

func (m *ListImportJobsRequest) GetParent() string

func (*ListImportJobsRequest) ProtoMessage Uses

func (*ListImportJobsRequest) ProtoMessage()

func (*ListImportJobsRequest) Reset Uses

func (m *ListImportJobsRequest) Reset()

func (*ListImportJobsRequest) String Uses

func (m *ListImportJobsRequest) String() string

func (*ListImportJobsRequest) XXX_DiscardUnknown Uses

func (m *ListImportJobsRequest) XXX_DiscardUnknown()

func (*ListImportJobsRequest) XXX_Marshal Uses

func (m *ListImportJobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListImportJobsRequest) XXX_Merge Uses

func (m *ListImportJobsRequest) XXX_Merge(src proto.Message)

func (*ListImportJobsRequest) XXX_Size Uses

func (m *ListImportJobsRequest) XXX_Size() int

func (*ListImportJobsRequest) XXX_Unmarshal Uses

func (m *ListImportJobsRequest) XXX_Unmarshal(b []byte) error

type ListImportJobsResponse Uses

type ListImportJobsResponse struct {
    // The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
    ImportJobs []*ImportJob `protobuf:"bytes,1,rep,name=import_jobs,json=importJobs,proto3" json:"import_jobs,omitempty"`
    // A token to retrieve next page of results. Pass this value in
    // [ListImportJobsRequest.page_token][google.cloud.kms.v1.ListImportJobsRequest.page_token] to retrieve the next page of results.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // The total number of [ImportJobs][google.cloud.kms.v1.ImportJob] that matched the query.
    TotalSize            int32    `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Response message for [KeyManagementService.ListImportJobs][google.cloud.kms.v1.KeyManagementService.ListImportJobs].

func (*ListImportJobsResponse) Descriptor Uses

func (*ListImportJobsResponse) Descriptor() ([]byte, []int)

func (*ListImportJobsResponse) GetImportJobs Uses

func (m *ListImportJobsResponse) GetImportJobs() []*ImportJob

func (*ListImportJobsResponse) GetNextPageToken Uses

func (m *ListImportJobsResponse) GetNextPageToken() string

func (*ListImportJobsResponse) GetTotalSize Uses

func (m *ListImportJobsResponse) GetTotalSize() int32

func (*ListImportJobsResponse) ProtoMessage Uses

func (*ListImportJobsResponse) ProtoMessage()

func (*ListImportJobsResponse) Reset Uses

func (m *ListImportJobsResponse) Reset()

func (*ListImportJobsResponse) String Uses

func (m *ListImportJobsResponse) String() string

func (*ListImportJobsResponse) XXX_DiscardUnknown Uses

func (m *ListImportJobsResponse) XXX_DiscardUnknown()

func (*ListImportJobsResponse) XXX_Marshal Uses

func (m *ListImportJobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListImportJobsResponse) XXX_Merge Uses

func (m *ListImportJobsResponse) XXX_Merge(src proto.Message)

func (*ListImportJobsResponse) XXX_Size Uses

func (m *ListImportJobsResponse) XXX_Size() int

func (*ListImportJobsResponse) XXX_Unmarshal Uses

func (m *ListImportJobsResponse) XXX_Unmarshal(b []byte) error

type ListKeyRingsRequest Uses

type ListKeyRingsRequest struct {
    // Required. The resource name of the location associated with the
    // [KeyRings][google.cloud.kms.v1.KeyRing], in the format `projects/*/locations/*`.
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Optional. Optional limit on the number of [KeyRings][google.cloud.kms.v1.KeyRing] to include in the
    // response.  Further [KeyRings][google.cloud.kms.v1.KeyRing] can subsequently be obtained by
    // including the [ListKeyRingsResponse.next_page_token][google.cloud.kms.v1.ListKeyRingsResponse.next_page_token] in a subsequent
    // request.  If unspecified, the server will pick an appropriate default.
    PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // Optional. Optional pagination token, returned earlier via
    // [ListKeyRingsResponse.next_page_token][google.cloud.kms.v1.ListKeyRingsResponse.next_page_token].
    PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // Optional. Only include resources that match the filter in the response. For
    // more information, see
    // [Sorting and filtering list
    // results](https://cloud.google.com/kms/docs/sorting-and-filtering).
    Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
    // Optional. Specify how the results should be sorted. If not specified, the
    // results will be sorted in the default order.  For more information, see
    // [Sorting and filtering list
    // results](https://cloud.google.com/kms/docs/sorting-and-filtering).
    OrderBy              string   `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.ListKeyRings][google.cloud.kms.v1.KeyManagementService.ListKeyRings].

func (*ListKeyRingsRequest) Descriptor Uses

func (*ListKeyRingsRequest) Descriptor() ([]byte, []int)

func (*ListKeyRingsRequest) GetFilter Uses

func (m *ListKeyRingsRequest) GetFilter() string

func (*ListKeyRingsRequest) GetOrderBy Uses

func (m *ListKeyRingsRequest) GetOrderBy() string

func (*ListKeyRingsRequest) GetPageSize Uses

func (m *ListKeyRingsRequest) GetPageSize() int32

func (*ListKeyRingsRequest) GetPageToken Uses

func (m *ListKeyRingsRequest) GetPageToken() string

func (*ListKeyRingsRequest) GetParent Uses

func (m *ListKeyRingsRequest) GetParent() string

func (*ListKeyRingsRequest) ProtoMessage Uses

func (*ListKeyRingsRequest) ProtoMessage()

func (*ListKeyRingsRequest) Reset Uses

func (m *ListKeyRingsRequest) Reset()

func (*ListKeyRingsRequest) String Uses

func (m *ListKeyRingsRequest) String() string

func (*ListKeyRingsRequest) XXX_DiscardUnknown Uses

func (m *ListKeyRingsRequest) XXX_DiscardUnknown()

func (*ListKeyRingsRequest) XXX_Marshal Uses

func (m *ListKeyRingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListKeyRingsRequest) XXX_Merge Uses

func (m *ListKeyRingsRequest) XXX_Merge(src proto.Message)

func (*ListKeyRingsRequest) XXX_Size Uses

func (m *ListKeyRingsRequest) XXX_Size() int

func (*ListKeyRingsRequest) XXX_Unmarshal Uses

func (m *ListKeyRingsRequest) XXX_Unmarshal(b []byte) error

type ListKeyRingsResponse Uses

type ListKeyRingsResponse struct {
    // The list of [KeyRings][google.cloud.kms.v1.KeyRing].
    KeyRings []*KeyRing `protobuf:"bytes,1,rep,name=key_rings,json=keyRings,proto3" json:"key_rings,omitempty"`
    // A token to retrieve next page of results. Pass this value in
    // [ListKeyRingsRequest.page_token][google.cloud.kms.v1.ListKeyRingsRequest.page_token] to retrieve the next page of results.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // The total number of [KeyRings][google.cloud.kms.v1.KeyRing] that matched the query.
    TotalSize            int32    `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Response message for [KeyManagementService.ListKeyRings][google.cloud.kms.v1.KeyManagementService.ListKeyRings].

func (*ListKeyRingsResponse) Descriptor Uses

func (*ListKeyRingsResponse) Descriptor() ([]byte, []int)

func (*ListKeyRingsResponse) GetKeyRings Uses

func (m *ListKeyRingsResponse) GetKeyRings() []*KeyRing

func (*ListKeyRingsResponse) GetNextPageToken Uses

func (m *ListKeyRingsResponse) GetNextPageToken() string

func (*ListKeyRingsResponse) GetTotalSize Uses

func (m *ListKeyRingsResponse) GetTotalSize() int32

func (*ListKeyRingsResponse) ProtoMessage Uses

func (*ListKeyRingsResponse) ProtoMessage()

func (*ListKeyRingsResponse) Reset Uses

func (m *ListKeyRingsResponse) Reset()

func (*ListKeyRingsResponse) String Uses

func (m *ListKeyRingsResponse) String() string

func (*ListKeyRingsResponse) XXX_DiscardUnknown Uses

func (m *ListKeyRingsResponse) XXX_DiscardUnknown()

func (*ListKeyRingsResponse) XXX_Marshal Uses

func (m *ListKeyRingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListKeyRingsResponse) XXX_Merge Uses

func (m *ListKeyRingsResponse) XXX_Merge(src proto.Message)

func (*ListKeyRingsResponse) XXX_Size Uses

func (m *ListKeyRingsResponse) XXX_Size() int

func (*ListKeyRingsResponse) XXX_Unmarshal Uses

func (m *ListKeyRingsResponse) XXX_Unmarshal(b []byte) error

type LocationMetadata Uses

type LocationMetadata struct {
    // Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
    // [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
    // [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] can be created in this location.
    HsmAvailable         bool     `protobuf:"varint,1,opt,name=hsm_available,json=hsmAvailable,proto3" json:"hsm_available,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Cloud KMS metadata for the given [google.cloud.location.Location][google.cloud.location.Location].

func (*LocationMetadata) Descriptor Uses

func (*LocationMetadata) Descriptor() ([]byte, []int)

func (*LocationMetadata) GetHsmAvailable Uses

func (m *LocationMetadata) GetHsmAvailable() bool

func (*LocationMetadata) ProtoMessage Uses

func (*LocationMetadata) ProtoMessage()

func (*LocationMetadata) Reset Uses

func (m *LocationMetadata) Reset()

func (*LocationMetadata) String Uses

func (m *LocationMetadata) String() string

func (*LocationMetadata) XXX_DiscardUnknown Uses

func (m *LocationMetadata) XXX_DiscardUnknown()

func (*LocationMetadata) XXX_Marshal Uses

func (m *LocationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocationMetadata) XXX_Merge Uses

func (m *LocationMetadata) XXX_Merge(src proto.Message)

func (*LocationMetadata) XXX_Size Uses

func (m *LocationMetadata) XXX_Size() int

func (*LocationMetadata) XXX_Unmarshal Uses

func (m *LocationMetadata) XXX_Unmarshal(b []byte) error

type ProtectionLevel Uses

type ProtectionLevel int32

[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] specifies how cryptographic operations are performed. For more information, see [Protection levels] (https://cloud.google.com/kms/docs/algorithms#protection_levels).

const (
    // Not specified.
    ProtectionLevel_PROTECTION_LEVEL_UNSPECIFIED ProtectionLevel = 0
    // Crypto operations are performed in software.
    ProtectionLevel_SOFTWARE ProtectionLevel = 1
    // Crypto operations are performed in a Hardware Security Module.
    ProtectionLevel_HSM ProtectionLevel = 2
    // Crypto operations are performed by an external key manager.
    ProtectionLevel_EXTERNAL ProtectionLevel = 3
)

func (ProtectionLevel) EnumDescriptor Uses

func (ProtectionLevel) EnumDescriptor() ([]byte, []int)

func (ProtectionLevel) String Uses

func (x ProtectionLevel) String() string

type PublicKey Uses

type PublicKey struct {
    // The public key, encoded in PEM format. For more information, see the
    // [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
    // [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
    // [Textual Encoding of Subject Public Key Info]
    // (https://tools.ietf.org/html/rfc7468#section-13).
    Pem string `protobuf:"bytes,1,opt,name=pem,proto3" json:"pem,omitempty"`
    // The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated
    // with this key.
    Algorithm            CryptoKeyVersion_CryptoKeyVersionAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionAlgorithm" json:"algorithm,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                                   `json:"-"`
    XXX_unrecognized     []byte                                     `json:"-"`
    XXX_sizecache        int32                                      `json:"-"`
}

The public key for a given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Obtained via [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].

func (*PublicKey) Descriptor Uses

func (*PublicKey) Descriptor() ([]byte, []int)

func (*PublicKey) GetAlgorithm Uses

func (m *PublicKey) GetAlgorithm() CryptoKeyVersion_CryptoKeyVersionAlgorithm

func (*PublicKey) GetPem Uses

func (m *PublicKey) GetPem() string

func (*PublicKey) ProtoMessage Uses

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset Uses

func (m *PublicKey) Reset()

func (*PublicKey) String Uses

func (m *PublicKey) String() string

func (*PublicKey) XXX_DiscardUnknown Uses

func (m *PublicKey) XXX_DiscardUnknown()

func (*PublicKey) XXX_Marshal Uses

func (m *PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PublicKey) XXX_Merge Uses

func (m *PublicKey) XXX_Merge(src proto.Message)

func (*PublicKey) XXX_Size Uses

func (m *PublicKey) XXX_Size() int

func (*PublicKey) XXX_Unmarshal Uses

func (m *PublicKey) XXX_Unmarshal(b []byte) error

type RestoreCryptoKeyVersionRequest Uses

type RestoreCryptoKeyVersionRequest struct {
    // Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore.
    Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion].

func (*RestoreCryptoKeyVersionRequest) Descriptor Uses

func (*RestoreCryptoKeyVersionRequest) Descriptor() ([]byte, []int)

func (*RestoreCryptoKeyVersionRequest) GetName Uses

func (m *RestoreCryptoKeyVersionRequest) GetName() string

func (*RestoreCryptoKeyVersionRequest) ProtoMessage Uses

func (*RestoreCryptoKeyVersionRequest) ProtoMessage()

func (*RestoreCryptoKeyVersionRequest) Reset Uses

func (m *RestoreCryptoKeyVersionRequest) Reset()

func (*RestoreCryptoKeyVersionRequest) String Uses

func (m *RestoreCryptoKeyVersionRequest) String() string

func (*RestoreCryptoKeyVersionRequest) XXX_DiscardUnknown Uses

func (m *RestoreCryptoKeyVersionRequest) XXX_DiscardUnknown()

func (*RestoreCryptoKeyVersionRequest) XXX_Marshal Uses

func (m *RestoreCryptoKeyVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreCryptoKeyVersionRequest) XXX_Merge Uses

func (m *RestoreCryptoKeyVersionRequest) XXX_Merge(src proto.Message)

func (*RestoreCryptoKeyVersionRequest) XXX_Size Uses

func (m *RestoreCryptoKeyVersionRequest) XXX_Size() int

func (*RestoreCryptoKeyVersionRequest) XXX_Unmarshal Uses

func (m *RestoreCryptoKeyVersionRequest) XXX_Unmarshal(b []byte) error

type UnimplementedKeyManagementServiceServer Uses

type UnimplementedKeyManagementServiceServer struct {
}

UnimplementedKeyManagementServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedKeyManagementServiceServer) AsymmetricDecrypt Uses

func (*UnimplementedKeyManagementServiceServer) AsymmetricDecrypt(ctx context.Context, req *AsymmetricDecryptRequest) (*AsymmetricDecryptResponse, error)

func (*UnimplementedKeyManagementServiceServer) AsymmetricSign Uses

func (*UnimplementedKeyManagementServiceServer) AsymmetricSign(ctx context.Context, req *AsymmetricSignRequest) (*AsymmetricSignResponse, error)

func (*UnimplementedKeyManagementServiceServer) CreateCryptoKey Uses

func (*UnimplementedKeyManagementServiceServer) CreateCryptoKey(ctx context.Context, req *CreateCryptoKeyRequest) (*CryptoKey, error)

func (*UnimplementedKeyManagementServiceServer) CreateCryptoKeyVersion Uses

func (*UnimplementedKeyManagementServiceServer) CreateCryptoKeyVersion(ctx context.Context, req *CreateCryptoKeyVersionRequest) (*CryptoKeyVersion, error)

func (*UnimplementedKeyManagementServiceServer) CreateImportJob Uses

func (*UnimplementedKeyManagementServiceServer) CreateImportJob(ctx context.Context, req *CreateImportJobRequest) (*ImportJob, error)

func (*UnimplementedKeyManagementServiceServer) CreateKeyRing Uses

func (*UnimplementedKeyManagementServiceServer) CreateKeyRing(ctx context.Context, req *CreateKeyRingRequest) (*KeyRing, error)

func (*UnimplementedKeyManagementServiceServer) Decrypt Uses

func (*UnimplementedKeyManagementServiceServer) Decrypt(ctx context.Context, req *DecryptRequest) (*DecryptResponse, error)

func (*UnimplementedKeyManagementServiceServer) DestroyCryptoKeyVersion Uses

func (*UnimplementedKeyManagementServiceServer) DestroyCryptoKeyVersion(ctx context.Context, req *DestroyCryptoKeyVersionRequest) (*CryptoKeyVersion, error)

func (*UnimplementedKeyManagementServiceServer) Encrypt Uses

func (*UnimplementedKeyManagementServiceServer) Encrypt(ctx context.Context, req *EncryptRequest) (*EncryptResponse, error)

func (*UnimplementedKeyManagementServiceServer) GetCryptoKey Uses

func (*UnimplementedKeyManagementServiceServer) GetCryptoKey(ctx context.Context, req *GetCryptoKeyRequest) (*CryptoKey, error)

func (*UnimplementedKeyManagementServiceServer) GetCryptoKeyVersion Uses

func (*UnimplementedKeyManagementServiceServer) GetCryptoKeyVersion(ctx context.Context, req *GetCryptoKeyVersionRequest) (*CryptoKeyVersion, error)

func (*UnimplementedKeyManagementServiceServer) GetImportJob Uses

func (*UnimplementedKeyManagementServiceServer) GetImportJob(ctx context.Context, req *GetImportJobRequest) (*ImportJob, error)

func (*UnimplementedKeyManagementServiceServer) GetKeyRing Uses

func (*UnimplementedKeyManagementServiceServer) GetKeyRing(ctx context.Context, req *GetKeyRingRequest) (*KeyRing, error)

func (*UnimplementedKeyManagementServiceServer) GetPublicKey Uses

func (*UnimplementedKeyManagementServiceServer) GetPublicKey(ctx context.Context, req *GetPublicKeyRequest) (*PublicKey, error)

func (*UnimplementedKeyManagementServiceServer) ImportCryptoKeyVersion Uses

func (*UnimplementedKeyManagementServiceServer) ImportCryptoKeyVersion(ctx context.Context, req *ImportCryptoKeyVersionRequest) (*CryptoKeyVersion, error)

func (*UnimplementedKeyManagementServiceServer) ListCryptoKeyVersions Uses

func (*UnimplementedKeyManagementServiceServer) ListCryptoKeyVersions(ctx context.Context, req *ListCryptoKeyVersionsRequest) (*ListCryptoKeyVersionsResponse, error)

func (*UnimplementedKeyManagementServiceServer) ListCryptoKeys Uses

func (*UnimplementedKeyManagementServiceServer) ListCryptoKeys(ctx context.Context, req *ListCryptoKeysRequest) (*ListCryptoKeysResponse, error)

func (*UnimplementedKeyManagementServiceServer) ListImportJobs Uses

func (*UnimplementedKeyManagementServiceServer) ListImportJobs(ctx context.Context, req *ListImportJobsRequest) (*ListImportJobsResponse, error)

func (*UnimplementedKeyManagementServiceServer) ListKeyRings Uses

func (*UnimplementedKeyManagementServiceServer) ListKeyRings(ctx context.Context, req *ListKeyRingsRequest) (*ListKeyRingsResponse, error)

func (*UnimplementedKeyManagementServiceServer) RestoreCryptoKeyVersion Uses

func (*UnimplementedKeyManagementServiceServer) RestoreCryptoKeyVersion(ctx context.Context, req *RestoreCryptoKeyVersionRequest) (*CryptoKeyVersion, error)

func (*UnimplementedKeyManagementServiceServer) UpdateCryptoKey Uses

func (*UnimplementedKeyManagementServiceServer) UpdateCryptoKey(ctx context.Context, req *UpdateCryptoKeyRequest) (*CryptoKey, error)

func (*UnimplementedKeyManagementServiceServer) UpdateCryptoKeyPrimaryVersion Uses

func (*UnimplementedKeyManagementServiceServer) UpdateCryptoKeyPrimaryVersion(ctx context.Context, req *UpdateCryptoKeyPrimaryVersionRequest) (*CryptoKey, error)

func (*UnimplementedKeyManagementServiceServer) UpdateCryptoKeyVersion Uses

func (*UnimplementedKeyManagementServiceServer) UpdateCryptoKeyVersion(ctx context.Context, req *UpdateCryptoKeyVersionRequest) (*CryptoKeyVersion, error)

type UpdateCryptoKeyPrimaryVersionRequest Uses

type UpdateCryptoKeyPrimaryVersionRequest struct {
    // Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to update.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Required. The id of the child [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use as primary.
    CryptoKeyVersionId   string   `protobuf:"bytes,2,opt,name=crypto_key_version_id,json=cryptoKeyVersionId,proto3" json:"crypto_key_version_id,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Request message for [KeyManagementService.UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion].

func (*UpdateCryptoKeyPrimaryVersionRequest) Descriptor Uses

func (*UpdateCryptoKeyPrimaryVersionRequest) Descriptor() ([]byte, []int)

func (*UpdateCryptoKeyPrimaryVersionRequest) GetCryptoKeyVersionId Uses

func (m *UpdateCryptoKeyPrimaryVersionRequest) GetCryptoKeyVersionId() string

func (*UpdateCryptoKeyPrimaryVersionRequest) GetName Uses

func (m *UpdateCryptoKeyPrimaryVersionRequest) GetName() string

func (*UpdateCryptoKeyPrimaryVersionRequest) ProtoMessage Uses

func (*UpdateCryptoKeyPrimaryVersionRequest) ProtoMessage()

func (*UpdateCryptoKeyPrimaryVersionRequest) Reset Uses

func (m *UpdateCryptoKeyPrimaryVersionRequest) Reset()

func (*UpdateCryptoKeyPrimaryVersionRequest) String Uses

func (m *UpdateCryptoKeyPrimaryVersionRequest) String() string

func (*UpdateCryptoKeyPrimaryVersionRequest) XXX_DiscardUnknown Uses

func (m *UpdateCryptoKeyPrimaryVersionRequest) XXX_DiscardUnknown()

func (*UpdateCryptoKeyPrimaryVersionRequest) XXX_Marshal Uses

func (m *UpdateCryptoKeyPrimaryVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateCryptoKeyPrimaryVersionRequest) XXX_Merge Uses

func (m *UpdateCryptoKeyPrimaryVersionRequest) XXX_Merge(src proto.Message)

func (*UpdateCryptoKeyPrimaryVersionRequest) XXX_Size Uses

func (m *UpdateCryptoKeyPrimaryVersionRequest) XXX_Size() int

func (*UpdateCryptoKeyPrimaryVersionRequest) XXX_Unmarshal Uses

func (m *UpdateCryptoKeyPrimaryVersionRequest) XXX_Unmarshal(b []byte) error

type UpdateCryptoKeyRequest Uses

type UpdateCryptoKeyRequest struct {
    // Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
    CryptoKey *CryptoKey `protobuf:"bytes,1,opt,name=crypto_key,json=cryptoKey,proto3" json:"crypto_key,omitempty"`
    // Required. List of fields to be updated in this request.
    UpdateMask           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
    XXX_NoUnkeyedLiteral struct{}              `json:"-"`
    XXX_unrecognized     []byte                `json:"-"`
    XXX_sizecache        int32                 `json:"-"`
}

Request message for [KeyManagementService.UpdateCryptoKey][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKey].

func (*UpdateCryptoKeyRequest) Descriptor Uses

func (*UpdateCryptoKeyRequest) Descriptor() ([]byte, []int)

func (*UpdateCryptoKeyRequest) GetCryptoKey Uses

func (m *UpdateCryptoKeyRequest) GetCryptoKey() *CryptoKey

func (*UpdateCryptoKeyRequest) GetUpdateMask Uses

func (m *UpdateCryptoKeyRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateCryptoKeyRequest) ProtoMessage Uses

func (*UpdateCryptoKeyRequest) ProtoMessage()

func (*UpdateCryptoKeyRequest) Reset Uses

func (m *UpdateCryptoKeyRequest) Reset()

func (*UpdateCryptoKeyRequest) String Uses

func (m *UpdateCryptoKeyRequest) String() string

func (*UpdateCryptoKeyRequest) XXX_DiscardUnknown Uses

func (m *UpdateCryptoKeyRequest) XXX_DiscardUnknown()

func (*UpdateCryptoKeyRequest) XXX_Marshal Uses

func (m *UpdateCryptoKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateCryptoKeyRequest) XXX_Merge Uses

func (m *UpdateCryptoKeyRequest) XXX_Merge(src proto.Message)

func (*UpdateCryptoKeyRequest) XXX_Size Uses

func (m *UpdateCryptoKeyRequest) XXX_Size() int

func (*UpdateCryptoKeyRequest) XXX_Unmarshal Uses

func (m *UpdateCryptoKeyRequest) XXX_Unmarshal(b []byte) error

type UpdateCryptoKeyVersionRequest Uses

type UpdateCryptoKeyVersionRequest struct {
    // Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with updated values.
    CryptoKeyVersion *CryptoKeyVersion `protobuf:"bytes,1,opt,name=crypto_key_version,json=cryptoKeyVersion,proto3" json:"crypto_key_version,omitempty"`
    // Required. List of fields to be updated in this request.
    UpdateMask           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
    XXX_NoUnkeyedLiteral struct{}              `json:"-"`
    XXX_unrecognized     []byte                `json:"-"`
    XXX_sizecache        int32                 `json:"-"`
}

Request message for [KeyManagementService.UpdateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyVersion].

func (*UpdateCryptoKeyVersionRequest) Descriptor Uses

func (*UpdateCryptoKeyVersionRequest) Descriptor() ([]byte, []int)

func (*UpdateCryptoKeyVersionRequest) GetCryptoKeyVersion Uses

func (m *UpdateCryptoKeyVersionRequest) GetCryptoKeyVersion() *CryptoKeyVersion

func (*UpdateCryptoKeyVersionRequest) GetUpdateMask Uses

func (m *UpdateCryptoKeyVersionRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateCryptoKeyVersionRequest) ProtoMessage Uses

func (*UpdateCryptoKeyVersionRequest) ProtoMessage()

func (*UpdateCryptoKeyVersionRequest) Reset Uses

func (m *UpdateCryptoKeyVersionRequest) Reset()

func (*UpdateCryptoKeyVersionRequest) String Uses

func (m *UpdateCryptoKeyVersionRequest) String() string

func (*UpdateCryptoKeyVersionRequest) XXX_DiscardUnknown Uses

func (m *UpdateCryptoKeyVersionRequest) XXX_DiscardUnknown()

func (*UpdateCryptoKeyVersionRequest) XXX_Marshal Uses

func (m *UpdateCryptoKeyVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateCryptoKeyVersionRequest) XXX_Merge Uses

func (m *UpdateCryptoKeyVersionRequest) XXX_Merge(src proto.Message)

func (*UpdateCryptoKeyVersionRequest) XXX_Size Uses

func (m *UpdateCryptoKeyVersionRequest) XXX_Size() int

func (*UpdateCryptoKeyVersionRequest) XXX_Unmarshal Uses

func (m *UpdateCryptoKeyVersionRequest) XXX_Unmarshal(b []byte) error

Package kms imports 11 packages (graph) and is imported by 22 packages. Updated 2020-02-12. Refresh now. Tools for package owners.