google.cloud.forseti.common.gcp_type.crypto_key module

A CryptoKey object.

See: https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey

class CryptoKey(crypto_key_name=None, crypto_key_full_name=None, crypto_key_parent_type_name=None, crypto_key_type=None, primary_version=None, purpose=None, create_time=None, next_rotation_time=None, version_template=None, labels=None, rotation_period=None, data=None)[source]

Bases: google.cloud.forseti.common.gcp_type.resource.Resource

Represents the CryptoKey resource.

_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 195
_abc_registry = <_weakrefset.WeakSet object>
classmethod from_json(crypto_key_name, crypto_key_full_name, crypto_key_parent_type_name, crypto_key_type, json_string)[source]

Returns a new CryptoKey object from a JSON object.

Parameters:
  • crypto_key_name (str) – The unique Cryptokey id.
  • crypto_key_full_name (str) – The Cryptokey full name.
  • crypto_key_parent_type_name (str) – The Cryptokey parent type name.
  • crypto_key_type (str) – The Cryptokey type name.
  • json_string (str) – JSON string of a Cryptokey GCP API response.
Returns:

A new CryptoKey object.

Return type:

CryptoKey