Reference documentation and code samples for the Google Cloud Api Hub V1 Client class SpecContents.
The spec contents.
Generated from protobuf message google.cloud.apihub.v1.SpecContents
Namespace
Google \ Cloud \ ApiHub \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ contents |
string
Required. The contents of the spec. |
↳ mime_type |
string
Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc. |
getContents
Required. The contents of the spec.
Returns | |
---|---|
Type | Description |
string |
setContents
Required. The contents of the spec.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getMimeType
Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
Returns | |
---|---|
Type | Description |
string |
setMimeType
Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |