Class: Google::Apis::EventarcV1::OrganizationSubscription

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/eventarc_v1/classes.rb,
lib/google/apis/eventarc_v1/representations.rb,
lib/google/apis/eventarc_v1/representations.rb

Overview

Config to enabled subscribing to events from other projects in the org.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrganizationSubscription

Returns a new instance of OrganizationSubscription.



2149
2150
2151
# File 'lib/google/apis/eventarc_v1/classes.rb', line 2149

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Required. Enable org level subscription. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


2146
2147
2148
# File 'lib/google/apis/eventarc_v1/classes.rb', line 2146

def enabled
  @enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2154
2155
2156
# File 'lib/google/apis/eventarc_v1/classes.rb', line 2154

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
end