google.cloud.forseti.common.gcp_type.log_sink module

Stackdriver Log Sink/Export Resource.

See https://cloud.google.com/logging/docs/reference/v2/rest/v2/sinks

class LogSink(sink_id, destination, sink_filter, include_children, writer_identity, parent, raw_json)[source]

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

Log Sink Resource.

_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 199
_abc_registry = <_weakrefset.WeakSet object>
classmethod from_dict(parent, sink_dict)[source]

Returns a new LogSink object from dict.

Parameters:
  • parent (Resource) – The parent resource of this sink.
  • sink_dict (dict) – Log Sink dictionary.
Returns:

A new LogSink object.

Return type:

LogSink

static from_json(parent, sink_json)[source]

Returns a new LogSink object from a JSON encoding.

Parameters:
  • parent (Resource) – The parent resource of this sink.
  • sink_json (str) – The JSON encoding of the log sink.
Returns:

A new LogSink object.

Return type:

LogSink