Class: Google::Apis::EventarcV1::GoogleApiSource

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

A GoogleApiSource represents a subscription of 1P events from a MessageBus.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleApiSource

Returns a new instance of GoogleApiSource.



832
833
834
# File 'lib/google/apis/eventarc_v1/classes.rb', line 832

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

Instance Attribute Details

#annotationsHash<String,String>

Optional. Resource annotations. Corresponds to the JSON property annotations

Returns:

  • (Hash<String,String>)


770
771
772
# File 'lib/google/apis/eventarc_v1/classes.rb', line 770

def annotations
  @annotations
end

#create_timeString

Output only. The creation time. Corresponds to the JSON property createTime

Returns:

  • (String)


775
776
777
# File 'lib/google/apis/eventarc_v1/classes.rb', line 775

def create_time
  @create_time
end

#crypto_key_nameString

Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern projects/*/ locations/*/keyRings/*/cryptoKeys/*. Corresponds to the JSON property cryptoKeyName

Returns:

  • (String)


782
783
784
# File 'lib/google/apis/eventarc_v1/classes.rb', line 782

def crypto_key_name
  @crypto_key_name
end

#destinationString

Required. Destination is the message bus that the GoogleApiSource is delivering to. It must be point to the full resource name of a MessageBus. Format: "projects/PROJECT_ID/locations/region/messagesBuses/ MESSAGE_BUS_ID) Corresponds to the JSON propertydestination`

Returns:

  • (String)


790
791
792
# File 'lib/google/apis/eventarc_v1/classes.rb', line 790

def destination
  @destination
end

#display_nameString

Optional. Resource display name. Corresponds to the JSON property displayName

Returns:

  • (String)


795
796
797
# File 'lib/google/apis/eventarc_v1/classes.rb', line 795

def display_name
  @display_name
end

#etagString

Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding. Corresponds to the JSON property etag

Returns:

  • (String)


802
803
804
# File 'lib/google/apis/eventarc_v1/classes.rb', line 802

def etag
  @etag
end

#labelsHash<String,String>

Optional. Resource labels. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


807
808
809
# File 'lib/google/apis/eventarc_v1/classes.rb', line 807

def labels
  @labels
end

#logging_configGoogle::Apis::EventarcV1::LoggingConfig

The configuration for Platform Telemetry logging for Eventarc Avdvanced resources. Corresponds to the JSON property loggingConfig



813
814
815
# File 'lib/google/apis/eventarc_v1/classes.rb', line 813

def logging_config
  @logging_config
end

#nameString

Identifier. Resource name of the form projects/project/locations/location/ googleApiSources/google_api_source Corresponds to the JSON property name

Returns:

  • (String)


819
820
821
# File 'lib/google/apis/eventarc_v1/classes.rb', line 819

def name
  @name
end

#uidString

Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. Corresponds to the JSON property uid

Returns:

  • (String)


825
826
827
# File 'lib/google/apis/eventarc_v1/classes.rb', line 825

def uid
  @uid
end

#update_timeString

Output only. The last-modified time. Corresponds to the JSON property updateTime

Returns:

  • (String)


830
831
832
# File 'lib/google/apis/eventarc_v1/classes.rb', line 830

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



837
838
839
840
841
842
843
844
845
846
847
848
849
# File 'lib/google/apis/eventarc_v1/classes.rb', line 837

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @create_time = args[:create_time] if args.key?(:create_time)
  @crypto_key_name = args[:crypto_key_name] if args.key?(:crypto_key_name)
  @destination = args[:destination] if args.key?(:destination)
  @display_name = args[:display_name] if args.key?(:display_name)
  @etag = args[:etag] if args.key?(:etag)
  @labels = args[:labels] if args.key?(:labels)
  @logging_config = args[:logging_config] if args.key?(:logging_config)
  @name = args[:name] if args.key?(:name)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end