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.



806
807
808
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 806

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)


784
785
786
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 784

def create_time
  @create_time
end

#gclb_observation_sourceGoogle::Apis::ApimV1alpha::GclbObservationSource

The GCLB observation source. Corresponds to the JSON property gclbObservationSource



789
790
791
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 789

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)


794
795
796
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 794

def name
  @name
end

#stateString

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

Returns:

  • (String)


799
800
801
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 799

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


804
805
806
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 804

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



811
812
813
814
815
816
817
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 811

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