Class: Google::Apis::ComposerV1beta1::Line

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

Overview

Contains information about a single line from logs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Line

Returns a new instance of Line.



699
700
701
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 699

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

Instance Attribute Details

#contentString

Text content of the log line. Corresponds to the JSON property content

Returns:

  • (String)


692
693
694
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 692

def content
  @content
end

#line_numberFixnum

Number of the line. Corresponds to the JSON property lineNumber

Returns:

  • (Fixnum)


697
698
699
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 697

def line_number
  @line_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



704
705
706
707
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 704

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @line_number = args[:line_number] if args.key?(:line_number)
end