Class: Google::Cloud::Build::V1::PubsubConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb

Overview

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

Defined Under Namespace

Modules: State

Instance Attribute Summary collapse

Instance Attribute Details

#service_account_email::String

Returns Service account that will make the push request.

Returns:

  • (::String)

    Service account that will make the push request.



1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1845

class PubsubConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Enumerates potential issues with the underlying Pub/Sub subscription
  # configuration.
  module State
    # The subscription configuration has not been checked.
    STATE_UNSPECIFIED = 0

    # The Pub/Sub subscription is properly configured.
    OK = 1

    # The subscription has been deleted.
    SUBSCRIPTION_DELETED = 2

    # The topic has been deleted.
    TOPIC_DELETED = 3

    # Some of the subscription's field are misconfigured.
    SUBSCRIPTION_MISCONFIGURED = 4
  end
end

#state::Google::Cloud::Build::V1::PubsubConfig::State

Returns Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.

Returns:



1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1845

class PubsubConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Enumerates potential issues with the underlying Pub/Sub subscription
  # configuration.
  module State
    # The subscription configuration has not been checked.
    STATE_UNSPECIFIED = 0

    # The Pub/Sub subscription is properly configured.
    OK = 1

    # The subscription has been deleted.
    SUBSCRIPTION_DELETED = 2

    # The topic has been deleted.
    TOPIC_DELETED = 3

    # Some of the subscription's field are misconfigured.
    SUBSCRIPTION_MISCONFIGURED = 4
  end
end

#subscription::String (readonly)

Returns Output only. Name of the subscription. Format is projects/{project}/subscriptions/{subscription}.

Returns:

  • (::String)

    Output only. Name of the subscription. Format is projects/{project}/subscriptions/{subscription}.



1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1845

class PubsubConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Enumerates potential issues with the underlying Pub/Sub subscription
  # configuration.
  module State
    # The subscription configuration has not been checked.
    STATE_UNSPECIFIED = 0

    # The Pub/Sub subscription is properly configured.
    OK = 1

    # The subscription has been deleted.
    SUBSCRIPTION_DELETED = 2

    # The topic has been deleted.
    TOPIC_DELETED = 3

    # Some of the subscription's field are misconfigured.
    SUBSCRIPTION_MISCONFIGURED = 4
  end
end

#topic::String

Returns Optional. The name of the topic from which this subscription is receiving messages. Format is projects/{project}/topics/{topic}.

Returns:

  • (::String)

    Optional. The name of the topic from which this subscription is receiving messages. Format is projects/{project}/topics/{topic}.



1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1845

class PubsubConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Enumerates potential issues with the underlying Pub/Sub subscription
  # configuration.
  module State
    # The subscription configuration has not been checked.
    STATE_UNSPECIFIED = 0

    # The Pub/Sub subscription is properly configured.
    OK = 1

    # The subscription has been deleted.
    SUBSCRIPTION_DELETED = 2

    # The topic has been deleted.
    TOPIC_DELETED = 3

    # Some of the subscription's field are misconfigured.
    SUBSCRIPTION_MISCONFIGURED = 4
  end
end