Class: Google::Apis::ApihubV1::GoogleCloudApihubV1StyleGuideContents

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

The style guide contents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApihubV1StyleGuideContents

Returns a new instance of GoogleCloudApihubV1StyleGuideContents.



5041
5042
5043
# File 'lib/google/apis/apihub_v1/classes.rb', line 5041

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

Instance Attribute Details

#contentsString

Required. The contents of the style guide. Corresponds to the JSON property contents NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


5034
5035
5036
# File 'lib/google/apis/apihub_v1/classes.rb', line 5034

def contents
  @contents
end

#mime_typeString

Required. The mime type of the content. Corresponds to the JSON property mimeType

Returns:

  • (String)


5039
5040
5041
# File 'lib/google/apis/apihub_v1/classes.rb', line 5039

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5046
5047
5048
5049
# File 'lib/google/apis/apihub_v1/classes.rb', line 5046

def update!(**args)
  @contents = args[:contents] if args.key?(:contents)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end