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.
5014 5015 5016 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 5014 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contents ⇒ Google::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 |
#linter ⇒ String
Required. Target linter for the style guide.
Corresponds to the JSON property linter
5006 5007 5008 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 5006 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
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 |