afv-library/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/StaticResource.json

49 lines
3.2 KiB
JSON

{
"sections": [
"title",
"description",
"supported_soap_calls",
"supported_rest_api_http_methods",
"fields",
"wsdl_segment"
],
"title": "StaticResource - Tooling API",
"description": "Represents the working copy of a static resource file for editing or saving. Static resources allow you to upload content that you can reference in a Visualforce page, including images, stylesheets, JavaScript, and other files. Available in Tooling API version 29.0 and later.",
"supported_soap_calls": "`create()`, `delete()`, `describeSObjects()`, `query()`, `retrieve()`, `update()`, `upsert()`",
"supported_rest_api_http_methods": "`Query`, `GET`, `POST`, `PATCH`, `DELETE`",
"fields_columns": [
"type",
"properties",
"description"
],
"fields": {
"Body": {
"type": "string",
"properties": "Create, Update",
"description": "The data for the static resource file."
},
"ContentType": {
"type": "string",
"properties": "Create, Update",
"description": "The content type of the file, for example text/plain.",
"required": true
},
"CacheControl": {
"type": "string",
"properties": "Create, Update",
"description": "Indicates whether the static resource is marked with a public caching tag so that a third-party delivery client can cache the content. The valid values are: Private Public",
"required": true
},
"ManageableState": {
"type": "ManageableState enumerated list",
"properties": "Filter, Group, Nillable, Restricted picklist, Sort",
"description": "Indicates the manageable state of the specified component that is contained in a package: beta deleted deprecated deprecatedEditable installed installedEditable released unmanaged"
},
"Name": {
"type": "string",
"properties": "Create, Update",
"description": "The static resource name. The name can only contain characters, letters, and the underscore (_) character, must start with a letter, and cannot end with an underscore or contain two consecutive underscore characters"
}
},
"wsdl_segment": "```xml\n<xsd:complexType name=\"StaticResource\">\n <xsd:complexContent>\n <xsd:extension base=\"ens:sObject\">\n <xsd:sequence>\n <xsd:element name=\"FullName\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n <xsd:element name=\"Metadata\" minOccurs=\"0\" type=\"mns:StaticResource\" nillable=\"true\"/>\n </xsd:sequence>\n </xsd:extension>\n </xsd:complexContent>\n</xsd:complexType>\n\n\n<xsd:complexType name=\"StaticResource\">\n <xsd:complexContent>\n <xsd:extension base=\"mns:Metadata\">\n <xsd:sequence>\n <xsd:element name=\"cacheControl\" type=\"tns:StaticResourceCacheControl\"/>\n <xsd:element name=\"contentType\" type=\"xsd:string\"/>\n <xsd:element name=\"description\" minOccurs=\"0\" type=\"xsd:string\"/>\n </xsd:sequence>\n </xsd:extension>\n </xsd:complexContent>\n</xsd:complexType>\n<xsd:simpleType name=\"StaticResourceCacheControl\">\n <xsd:restriction base=\"xsd:string\">\n <xsd:enumeration value=\"Private\"/>\n <xsd:enumeration value=\"Public\"/>\n </xsd:restriction>\n</xsd:simpleType>\n```"
}