Class PubsubConfig (3.20.1)

PubsubConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.

Attributes

NameDescription
subscription str
Output only. Name of the subscription. Format is projects/{project}/subscriptions/{subscription}.
topic str
The name of the topic from which this subscription is receiving messages. Format is projects/{project}/topics/{topic}.
service_account_email str
Service account that will make the push request.
state google.cloud.devtools.cloudbuild_v1.types.PubsubConfig.State
Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.

Classes

State

State(value)

Enumerates potential issues with the underlying Pub/Sub subscription configuration.

Values: STATE_UNSPECIFIED (0): The subscription configuration has not been checked. OK (1): The Pub/Sub subscription is properly configured. SUBSCRIPTION_DELETED (2): The subscription has been deleted. TOPIC_DELETED (3): The topic has been deleted. SUBSCRIPTION_MISCONFIGURED (4): Some of the subscription's field are misconfigured.