Class: Google::Apis::ApihubV1::GoogleCloudApihubV1LintResponse

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

Overview

LintResponse contains the response from the linter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApihubV1LintResponse

Returns a new instance of GoogleCloudApihubV1LintResponse.



2841
2842
2843
# File 'lib/google/apis/apihub_v1/classes.rb', line 2841

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

Instance Attribute Details

#create_timeString

Required. Timestamp when the linting response was generated. Corresponds to the JSON property createTime

Returns:

  • (String)


2814
2815
2816
# File 'lib/google/apis/apihub_v1/classes.rb', line 2814

def create_time
  @create_time
end

#issuesArray<Google::Apis::ApihubV1::GoogleCloudApihubV1Issue>

Optional. Array of issues found in the analyzed document. Corresponds to the JSON property issues



2819
2820
2821
# File 'lib/google/apis/apihub_v1/classes.rb', line 2819

def issues
  @issues
end

#linterString

Required. Name of the linter used. Corresponds to the JSON property linter

Returns:

  • (String)


2824
2825
2826
# File 'lib/google/apis/apihub_v1/classes.rb', line 2824

def linter
  @linter
end

#sourceString

Required. Name of the linting application. Corresponds to the JSON property source

Returns:

  • (String)


2829
2830
2831
# File 'lib/google/apis/apihub_v1/classes.rb', line 2829

def source
  @source
end

#stateString

Required. Lint state represents success or failure for linting. Corresponds to the JSON property state

Returns:

  • (String)


2834
2835
2836
# File 'lib/google/apis/apihub_v1/classes.rb', line 2834

def state
  @state
end

#summaryArray<Google::Apis::ApihubV1::GoogleCloudApihubV1SummaryEntry>

Optional. Summary of all issue types and counts for each severity level. Corresponds to the JSON property summary



2839
2840
2841
# File 'lib/google/apis/apihub_v1/classes.rb', line 2839

def summary
  @summary
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2846
2847
2848
2849
2850
2851
2852
2853
# File 'lib/google/apis/apihub_v1/classes.rb', line 2846

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @issues = args[:issues] if args.key?(:issues)
  @linter = args[:linter] if args.key?(:linter)
  @source = args[:source] if args.key?(:source)
  @state = args[:state] if args.key?(:state)
  @summary = args[:summary] if args.key?(:summary)
end