As of January 1, 2020 this library no longer supports Python 2 on the latest released version.
Library versions released prior to that date will continue to be available. For more information please
visit Python 2 support on Google Cloud.
Resource¶
Monitored Resource for the Google Logging API V2.
- class google.cloud.logging_v2.resource.Resource(type, labels)[source]¶
Bases:
google.cloud.logging_v2.resource.Resource
A monitored resource identified by specifying values for all labels.
- labels¶
A mapping from label names to values for all labels enumerated in the associated
ResourceDescriptor
.- Type
Create new instance of Resource(type, labels)