google.cloud.forseti.common.gcp_type.key_ring module

A KeyRing object.

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

class KeyRing(key_ring_name=None, key_ring_full_name=None, key_ring_parent_type_name=None, key_ring_type=None, create_time=None, name=None, data=None)[source]

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

KeyRing resource.

_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 208
_abc_registry = <_weakrefset.WeakSet object>
classmethod from_json(key_ring_name, key_ring_full_name, key_ring_parent_type_name, key_ring_type, json_string)[source]

Create a KeyRing from a JSON object.

Parameters:
  • key_ring_name (str) – The unique KeyRing id.
  • key_ring_full_name (str) – The KeyRing full name.
  • key_ring_parent_type_name (str) – The KeyRing parent type name.
  • key_ring_type (str) – The KeyRing type name.
  • json_string (str) – JSON string of a KeyRing GCP API response.
Returns:

A new KeyRing object.

Return type:

KeyRing