Class: Google::Apis::ApihubV1::GoogleCloudApihubV1LintResponse
- Inherits:
-
Object
- Object
- Google::Apis::ApihubV1::GoogleCloudApihubV1LintResponse
- 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
-
#create_time ⇒ String
Required.
-
#issues ⇒ Array<Google::Apis::ApihubV1::GoogleCloudApihubV1Issue>
Optional.
-
#linter ⇒ String
Required.
-
#source ⇒ String
Required.
-
#state ⇒ String
Required.
-
#summary ⇒ Array<Google::Apis::ApihubV1::GoogleCloudApihubV1SummaryEntry>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApihubV1LintResponse
constructor
A new instance of GoogleCloudApihubV1LintResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_time ⇒ String
Required. Timestamp when the linting response was generated.
Corresponds to the JSON property createTime
2814 2815 2816 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2814 def create_time @create_time end |
#issues ⇒ Array<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 |
#linter ⇒ String
Required. Name of the linter used.
Corresponds to the JSON property linter
2824 2825 2826 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2824 def linter @linter end |
#source ⇒ String
Required. Name of the linting application.
Corresponds to the JSON property source
2829 2830 2831 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2829 def source @source end |
#state ⇒ String
Required. Lint state represents success or failure for linting.
Corresponds to the JSON property state
2834 2835 2836 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2834 def state @state end |
#summary ⇒ Array<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 |