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.



2943
2944
2945
# File 'lib/google/apis/apihub_v1/classes.rb', line 2943

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)


2916
2917
2918
# File 'lib/google/apis/apihub_v1/classes.rb', line 2916

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



2921
2922
2923
# File 'lib/google/apis/apihub_v1/classes.rb', line 2921

def issues
  @issues
end

#linterString

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

Returns:

  • (String)


2926
2927
2928
# File 'lib/google/apis/apihub_v1/classes.rb', line 2926

def linter
  @linter
end

#sourceString

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

Returns:

  • (String)


2931
2932
2933
# File 'lib/google/apis/apihub_v1/classes.rb', line 2931

def source
  @source
end

#stateString

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

Returns:

  • (String)


2936
2937
2938
# File 'lib/google/apis/apihub_v1/classes.rb', line 2936

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



2941
2942
2943
# File 'lib/google/apis/apihub_v1/classes.rb', line 2941

def summary
  @summary
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2948
2949
2950
2951
2952
2953
2954
2955
# File 'lib/google/apis/apihub_v1/classes.rb', line 2948

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