Reference documentation and code samples for the API hub V1 API class Google::Cloud::ApiHub::V1::StyleGuide.
Represents a singleton style guide resource to be used for linting Open API specs.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#contents
def contents() -> ::Google::Cloud::ApiHub::V1::StyleGuideContents
- (::Google::Cloud::ApiHub::V1::StyleGuideContents) — Required. Input only. The contents of the uploaded style guide.
#contents=
def contents=(value) -> ::Google::Cloud::ApiHub::V1::StyleGuideContents
- value (::Google::Cloud::ApiHub::V1::StyleGuideContents) — Required. Input only. The contents of the uploaded style guide.
- (::Google::Cloud::ApiHub::V1::StyleGuideContents) — Required. Input only. The contents of the uploaded style guide.
#linter
def linter() -> ::Google::Cloud::ApiHub::V1::Linter
- (::Google::Cloud::ApiHub::V1::Linter) — Required. Target linter for the style guide.
#linter=
def linter=(value) -> ::Google::Cloud::ApiHub::V1::Linter
- value (::Google::Cloud::ApiHub::V1::Linter) — Required. Target linter for the style guide.
- (::Google::Cloud::ApiHub::V1::Linter) — Required. Target linter for the style guide.
#name
def name() -> ::String
-
(::String) — Identifier. The name of the style guide.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/styleGuide
#name=
def name=(value) -> ::String
-
value (::String) — Identifier. The name of the style guide.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/styleGuide
-
(::String) — Identifier. The name of the style guide.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/styleGuide