Class: Google::Apis::ApihubV1::GoogleCloudApihubV1StyleGuide
- Inherits:
-
Object
- Object
- Google::Apis::ApihubV1::GoogleCloudApihubV1StyleGuide
- 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
-
#contents ⇒ Google::Apis::ApihubV1::GoogleCloudApihubV1StyleGuideContents
The style guide contents.
-
#linter ⇒ String
Required.
-
#name ⇒ String
Identifier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApihubV1StyleGuide
constructor
A new instance of GoogleCloudApihubV1StyleGuide.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApihubV1StyleGuide
Returns a new instance of GoogleCloudApihubV1StyleGuide.
4796 4797 4798 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4796 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contents ⇒ Google::Apis::ApihubV1::GoogleCloudApihubV1StyleGuideContents
The style guide contents.
Corresponds to the JSON property contents
4783 4784 4785 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4783 def contents @contents end |
#linter ⇒ String
Required. Target linter for the style guide.
Corresponds to the JSON property linter
4788 4789 4790 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4788 def linter @linter end |
#name ⇒ String
Identifier. The name of the style guide. Format: projects/project/locations/
location/plugins/plugin/styleGuide
Corresponds to the JSON property name
4794 4795 4796 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4794 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4801 4802 4803 4804 4805 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4801 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 |