Class: Google::Apis::ApimV1alpha::ObservationJob

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

Message describing ObservationJob object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ObservationJob

Returns a new instance of ObservationJob.



763
764
765
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 763

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)


740
741
742
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 740

def create_time
  @create_time
end

#nameString

Identifier. name of resource Format: projects/project/locations/location/ observationJobs/observation_job Corresponds to the JSON property name

Returns:

  • (String)


746
747
748
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 746

def name
  @name
end

#sourcesArray<String>

Optional. These should be of the same kind of source. Corresponds to the JSON property sources

Returns:

  • (Array<String>)


751
752
753
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 751

def sources
  @sources
end

#stateString

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

Returns:

  • (String)


756
757
758
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 756

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


761
762
763
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 761

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



768
769
770
771
772
773
774
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 768

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