Class: Google::Apis::ApimV1alpha::ObservationSource

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

Overview

Observation source configuration types

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ObservationSource

Returns a new instance of ObservationSource.

[View source]

715
716
717
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 715

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

Instance Attribute Details

#create_timeString

Output only. [Output only] Create time stamp Corresponds to the JSON property createTime

Returns:

  • (String)

693
694
695
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 693

def create_time
  @create_time
end

#gclb_observation_sourceGoogle::Apis::ApimV1alpha::GclbObservationSource

The GCLB observation source. Corresponds to the JSON property gclbObservationSource


698
699
700
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 698

def gclb_observation_source
  @gclb_observation_source
end

#nameString

Identifier. name of resource For MVP, each region can only have 1 source. Corresponds to the JSON property name

Returns:

  • (String)

703
704
705
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 703

def name
  @name
end

#stateString

Output only. The observation source state Corresponds to the JSON property state

Returns:

  • (String)

708
709
710
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 708

def state
  @state
end

#update_timeString

Output only. [Output only] Update time stamp Corresponds to the JSON property updateTime

Returns:

  • (String)

713
714
715
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 713

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

720
721
722
723
724
725
726
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 720

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @gclb_observation_source = args[:gclb_observation_source] if args.key?(:gclb_observation_source)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end