Class: Google::Apis::ApihubV1::GoogleCloudApihubV1SpecContents

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 spec contents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApihubV1SpecContents

Returns a new instance of GoogleCloudApihubV1SpecContents.



4897
4898
4899
# File 'lib/google/apis/apihub_v1/classes.rb', line 4897

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

Instance Attribute Details

#contentsString

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

Returns:

  • (String)


4889
4890
4891
# File 'lib/google/apis/apihub_v1/classes.rb', line 4889

def contents
  @contents
end

#mime_typeString

Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc. Corresponds to the JSON property mimeType

Returns:

  • (String)


4895
4896
4897
# File 'lib/google/apis/apihub_v1/classes.rb', line 4895

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4902
4903
4904
4905
# File 'lib/google/apis/apihub_v1/classes.rb', line 4902

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