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

Overview

Observation source configuration types

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ObservationSource

Returns a new instance of ObservationSource.



862
863
864
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 862

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)


840
841
842
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 840

def create_time
  @create_time
end

#gclb_observation_sourceGoogle::Apis::ApimV1alpha::GclbObservationSource

The GCLB observation source. Corresponds to the JSON property gclbObservationSource



845
846
847
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 845

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)


850
851
852
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 850

def name
  @name
end

#stateString

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

Returns:

  • (String)


855
856
857
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 855

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


860
861
862
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 860

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



867
868
869
870
871
872
873
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 867

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