Class: Google::Apis::ObservabilityV1::View

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

Overview

A view corresponds to a read-only representation of a subset of the data in a dataset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ View

Returns a new instance of View.



805
806
807
# File 'lib/google/apis/observability_v1/classes.rb', line 805

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

Instance Attribute Details

#create_timeString

Output only. Create timestamp. Corresponds to the JSON property createTime

Returns:

  • (String)


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

def create_time
  @create_time
end

#descriptionString

Optional. Description of the view. Corresponds to the JSON property description

Returns:

  • (String)


787
788
789
# File 'lib/google/apis/observability_v1/classes.rb', line 787

def description
  @description
end

#display_nameString

Optional. User friendly display name. Corresponds to the JSON property displayName

Returns:

  • (String)


792
793
794
# File 'lib/google/apis/observability_v1/classes.rb', line 792

def display_name
  @display_name
end

#nameString

Identifier. Name of the view. The format is: projects/[PROJECT_ID]/locations/[ LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/views/[VIEW_ID] Corresponds to the JSON property name

Returns:

  • (String)


798
799
800
# File 'lib/google/apis/observability_v1/classes.rb', line 798

def name
  @name
end

#update_timeString

Output only. Update timestamp. Corresponds to the JSON property updateTime

Returns:

  • (String)


803
804
805
# File 'lib/google/apis/observability_v1/classes.rb', line 803

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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