public sealed class SpecContents : IMessage<SpecContents>, IEquatable<SpecContents>, IDeepCloneable<SpecContents>, IBufferMessage, IMessageReference documentation and code samples for the API hub v1 API class SpecContents.
The spec contents.
Implements
IMessageSpecContents, IEquatableSpecContents, IDeepCloneableSpecContents, IBufferMessage, IMessageNamespace
Google.Cloud.ApiHub.V1Assembly
Google.Cloud.ApiHub.V1.dll
Constructors
SpecContents()
public SpecContents()SpecContents(SpecContents)
public SpecContents(SpecContents other)| Parameter | |
|---|---|
| Name | Description |
other |
SpecContents |
Properties
Contents
public ByteString Contents { get; set; }Required. The contents of the spec. The contents should be base64 encoded when calling methods such as CreateSpec, UpdateSpec and CollectApiData.
| Property Value | |
|---|---|
| Type | Description |
ByteString |
|
MimeType
public string MimeType { get; set; }Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
| Property Value | |
|---|---|
| Type | Description |
string |
|