Class: Google::Apis::ApihubV1::GoogleCloudApihubV1StyleGuide

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

Represents a singleton style guide resource to be used for linting Open API specs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApihubV1StyleGuide

Returns a new instance of GoogleCloudApihubV1StyleGuide.



5014
5015
5016
# File 'lib/google/apis/apihub_v1/classes.rb', line 5014

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

Instance Attribute Details

#contentsGoogle::Apis::ApihubV1::GoogleCloudApihubV1StyleGuideContents

The style guide contents. Corresponds to the JSON property contents



5001
5002
5003
# File 'lib/google/apis/apihub_v1/classes.rb', line 5001

def contents
  @contents
end

#linterString

Required. Target linter for the style guide. Corresponds to the JSON property linter

Returns:

  • (String)


5006
5007
5008
# File 'lib/google/apis/apihub_v1/classes.rb', line 5006

def linter
  @linter
end

#nameString

Identifier. The name of the style guide. Format: projects/project/locations/ location/plugins/plugin/styleGuide Corresponds to the JSON property name

Returns:

  • (String)


5012
5013
5014
# File 'lib/google/apis/apihub_v1/classes.rb', line 5012

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5019
5020
5021
5022
5023
# File 'lib/google/apis/apihub_v1/classes.rb', line 5019

def update!(**args)
  @contents = args[:contents] if args.key?(:contents)
  @linter = args[:linter] if args.key?(:linter)
  @name = args[:name] if args.key?(:name)
end