Class: Google::Apis::ApihubV1::GoogleCloudApihubV1StyleGuideContents
- Inherits:
-
Object
- Object
- Google::Apis::ApihubV1::GoogleCloudApihubV1StyleGuideContents
- 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
The style guide contents.
Instance Attribute Summary collapse
-
#contents ⇒ String
Required.
-
#mime_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApihubV1StyleGuideContents
constructor
A new instance of GoogleCloudApihubV1StyleGuideContents.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApihubV1StyleGuideContents
Returns a new instance of GoogleCloudApihubV1StyleGuideContents.
4823 4824 4825 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4823 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contents ⇒ String
Required. The contents of the style guide.
Corresponds to the JSON property contents
NOTE: Values are automatically base64 encoded/decoded in the client library.
4816 4817 4818 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4816 def contents @contents end |
#mime_type ⇒ String
Required. The mime type of the content.
Corresponds to the JSON property mimeType
4821 4822 4823 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4821 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4828 4829 4830 4831 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4828 def update!(**args) @contents = args[:contents] if args.key?(:contents) @mime_type = args[:mime_type] if args.key?(:mime_type) end |