# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/kms/v1/resources.proto require 'google/protobuf' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' require 'google/api/annotations_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/cloud/kms/v1/resources.proto", :syntax => :proto3) do add_message "google.cloud.kms.v1.KeyRing" do optional :name, :string, 1 optional :create_time, :message, 2, "google.protobuf.Timestamp" end add_message "google.cloud.kms.v1.CryptoKey" do optional :name, :string, 1 optional :primary, :message, 2, "google.cloud.kms.v1.CryptoKeyVersion" optional :purpose, :enum, 3, "google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose" optional :create_time, :message, 5, "google.protobuf.Timestamp" optional :next_rotation_time, :message, 7, "google.protobuf.Timestamp" optional :version_template, :message, 11, "google.cloud.kms.v1.CryptoKeyVersionTemplate" map :labels, :string, :string, 10 oneof :rotation_schedule do optional :rotation_period, :message, 8, "google.protobuf.Duration" end end add_enum "google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose" do value :CRYPTO_KEY_PURPOSE_UNSPECIFIED, 0 value :ENCRYPT_DECRYPT, 1 value :ASYMMETRIC_SIGN, 5 value :ASYMMETRIC_DECRYPT, 6 end add_message "google.cloud.kms.v1.CryptoKeyVersionTemplate" do optional :protection_level, :enum, 1, "google.cloud.kms.v1.ProtectionLevel" optional :algorithm, :enum, 3, "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm" end add_message "google.cloud.kms.v1.KeyOperationAttestation" do optional :format, :enum, 4, "google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat" optional :content, :bytes, 5 end add_enum "google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat" do value :ATTESTATION_FORMAT_UNSPECIFIED, 0 value :CAVIUM_V1_COMPRESSED, 3 value :CAVIUM_V2_COMPRESSED, 4 end add_message "google.cloud.kms.v1.CryptoKeyVersion" do optional :name, :string, 1 optional :state, :enum, 3, "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState" optional :protection_level, :enum, 7, "google.cloud.kms.v1.ProtectionLevel" optional :algorithm, :enum, 10, "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm" optional :attestation, :message, 8, "google.cloud.kms.v1.KeyOperationAttestation" optional :create_time, :message, 4, "google.protobuf.Timestamp" optional :generate_time, :message, 11, "google.protobuf.Timestamp" optional :destroy_time, :message, 5, "google.protobuf.Timestamp" optional :destroy_event_time, :message, 6, "google.protobuf.Timestamp" optional :import_job, :string, 14 optional :import_time, :message, 15, "google.protobuf.Timestamp" optional :import_failure_reason, :string, 16 optional :external_protection_level_options, :message, 17, "google.cloud.kms.v1.ExternalProtectionLevelOptions" end add_enum "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm" do value :CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED, 0 value :GOOGLE_SYMMETRIC_ENCRYPTION, 1 value :RSA_SIGN_PSS_2048_SHA256, 2 value :RSA_SIGN_PSS_3072_SHA256, 3 value :RSA_SIGN_PSS_4096_SHA256, 4 value :RSA_SIGN_PSS_4096_SHA512, 15 value :RSA_SIGN_PKCS1_2048_SHA256, 5 value :RSA_SIGN_PKCS1_3072_SHA256, 6 value :RSA_SIGN_PKCS1_4096_SHA256, 7 value :RSA_SIGN_PKCS1_4096_SHA512, 16 value :RSA_DECRYPT_OAEP_2048_SHA256, 8 value :RSA_DECRYPT_OAEP_3072_SHA256, 9 value :RSA_DECRYPT_OAEP_4096_SHA256, 10 value :RSA_DECRYPT_OAEP_4096_SHA512, 17 value :EC_SIGN_P256_SHA256, 12 value :EC_SIGN_P384_SHA384, 13 value :EXTERNAL_SYMMETRIC_ENCRYPTION, 18 end add_enum "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState" do value :CRYPTO_KEY_VERSION_STATE_UNSPECIFIED, 0 value :PENDING_GENERATION, 5 value :ENABLED, 1 value :DISABLED, 2 value :DESTROYED, 3 value :DESTROY_SCHEDULED, 4 value :PENDING_IMPORT, 6 value :IMPORT_FAILED, 7 end add_enum "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView" do value :CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED, 0 value :FULL, 1 end add_message "google.cloud.kms.v1.PublicKey" do optional :pem, :string, 1 optional :algorithm, :enum, 2, "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm" end add_message "google.cloud.kms.v1.ImportJob" do optional :name, :string, 1 optional :import_method, :enum, 2, "google.cloud.kms.v1.ImportJob.ImportMethod" optional :protection_level, :enum, 9, "google.cloud.kms.v1.ProtectionLevel" optional :create_time, :message, 3, "google.protobuf.Timestamp" optional :generate_time, :message, 4, "google.protobuf.Timestamp" optional :expire_time, :message, 5, "google.protobuf.Timestamp" optional :expire_event_time, :message, 10, "google.protobuf.Timestamp" optional :state, :enum, 6, "google.cloud.kms.v1.ImportJob.ImportJobState" optional :public_key, :message, 7, "google.cloud.kms.v1.ImportJob.WrappingPublicKey" optional :attestation, :message, 8, "google.cloud.kms.v1.KeyOperationAttestation" end add_message "google.cloud.kms.v1.ImportJob.WrappingPublicKey" do optional :pem, :string, 1 end add_enum "google.cloud.kms.v1.ImportJob.ImportMethod" do value :IMPORT_METHOD_UNSPECIFIED, 0 value :RSA_OAEP_3072_SHA1_AES_256, 1 value :RSA_OAEP_4096_SHA1_AES_256, 2 end add_enum "google.cloud.kms.v1.ImportJob.ImportJobState" do value :IMPORT_JOB_STATE_UNSPECIFIED, 0 value :PENDING_GENERATION, 1 value :ACTIVE, 2 value :EXPIRED, 3 end add_message "google.cloud.kms.v1.ExternalProtectionLevelOptions" do optional :external_key_uri, :string, 1 end add_enum "google.cloud.kms.v1.ProtectionLevel" do value :PROTECTION_LEVEL_UNSPECIFIED, 0 value :SOFTWARE, 1 value :HSM, 2 value :EXTERNAL, 3 end end end module Google module Cloud module Kms module V1 KeyRing = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.KeyRing").msgclass CryptoKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CryptoKey").msgclass CryptoKey::CryptoKeyPurpose = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose").enummodule CryptoKeyVersionTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CryptoKeyVersionTemplate").msgclass KeyOperationAttestation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.KeyOperationAttestation").msgclass KeyOperationAttestation::AttestationFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat").enummodule CryptoKeyVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CryptoKeyVersion").msgclass CryptoKeyVersion::CryptoKeyVersionAlgorithm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm").enummodule CryptoKeyVersion::CryptoKeyVersionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState").enummodule CryptoKeyVersion::CryptoKeyVersionView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView").enummodule PublicKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.PublicKey").msgclass ImportJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ImportJob").msgclass ImportJob::WrappingPublicKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ImportJob.WrappingPublicKey").msgclass ImportJob::ImportMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ImportJob.ImportMethod").enummodule ImportJob::ImportJobState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ImportJob.ImportJobState").enummodule ExternalProtectionLevelOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ExternalProtectionLevelOptions").msgclass ProtectionLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ProtectionLevel").enummodule end end end end