0.22.0 (latest) 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.2 0.15.1 0.14.1 0.13.0 0.12.2 0.11.3 0.10.0 0.9.1 0.8.3 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the KMS Inventory V1 API class Google::Cloud::Kms::V1::ImportJob::WrappingPublicKey.

The public key component of the wrapping key. For details of the type of
key this public key corresponds to, see the
[ImportMethod](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-V1-ImportJob-ImportMethod "Google::Cloud::Kms::V1::ImportJob::ImportMethod (module)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #data

    def data() -> ::String

**Returns**

- (::String) --- Output only. Contains the public key, formatted according to the [PublicKey.PublicKeyFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat "Google::Cloud::Kms::V1::PublicKey::PublicKeyFormat (module)") specified in the \[KeyManagementService.GetImportJob\]\[google.cloud.kms.v1.KeyManagementService.GetImportJob\] request.

### #pem

    def pem() -> ::String

**Returns**

- (::String) --- 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). This field gets populated by default for RSA-based import methods, if no public_key_format is specified in the request. If you want to retrieve the wrapping key of an [ImportJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-V1-ImportJob "Google::Cloud::Kms::V1::ImportJob (class)") in some other format, use \[KeyManagementService.GetImportJob\]\[google.cloud.kms.v1.KeyManagementService.GetImportJob\] and set the public_key_format to the desired public key format.

### #pem=

    def pem=(value) -> ::String

**Parameter**

- **value** (::String) --- 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). This field gets populated by default for RSA-based import methods, if no public_key_format is specified in the request. If you want to retrieve the wrapping key of an [ImportJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-V1-ImportJob "Google::Cloud::Kms::V1::ImportJob (class)") in some other format, use \[KeyManagementService.GetImportJob\]\[google.cloud.kms.v1.KeyManagementService.GetImportJob\] and set the public_key_format to the desired public key format.
**Returns**

- (::String) --- 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). This field gets populated by default for RSA-based import methods, if no public_key_format is specified in the request. If you want to retrieve the wrapping key of an [ImportJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-V1-ImportJob "Google::Cloud::Kms::V1::ImportJob (class)") in some other format, use \[KeyManagementService.GetImportJob\]\[google.cloud.kms.v1.KeyManagementService.GetImportJob\] and set the public_key_format to the desired public key format.