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.



4796
4797
4798
# File 'lib/google/apis/apihub_v1/classes.rb', line 4796

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

Instance Attribute Details

#contentsGoogle::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

#linterString

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

Returns:

  • (String)


4788
4789
4790
# File 'lib/google/apis/apihub_v1/classes.rb', line 4788

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)


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