mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-06 15:59:59 +08:00
139 lines
7.4 KiB
JSON
139 lines
7.4 KiB
JSON
|
|
{
|
|||
|
|
"sections": [
|
|||
|
|
"title",
|
|||
|
|
"description",
|
|||
|
|
"fields",
|
|||
|
|
"usage",
|
|||
|
|
"wsdl_segment",
|
|||
|
|
"field_reference"
|
|||
|
|
],
|
|||
|
|
"title": "ApexClass - Data API",
|
|||
|
|
"description": "Represents an Apex class.",
|
|||
|
|
"fields_columns": [
|
|||
|
|
"type",
|
|||
|
|
"properties",
|
|||
|
|
"description"
|
|||
|
|
],
|
|||
|
|
"fields": {
|
|||
|
|
"ApiVersion": {
|
|||
|
|
"type": "double",
|
|||
|
|
"properties": "Create, Filter, Sort, Update",
|
|||
|
|
"description": "The API version for this class. Every class has an API version specified at creation."
|
|||
|
|
},
|
|||
|
|
"Body": {
|
|||
|
|
"type": "textarea",
|
|||
|
|
"properties": "Create, Nillable, Update",
|
|||
|
|
"description": "The Apex class definition. Limit: 1 million characters."
|
|||
|
|
},
|
|||
|
|
"BodyCrc": {
|
|||
|
|
"type": "double",
|
|||
|
|
"properties": "Create, Defaulted on create, Filter, Nillable, Sort, Update",
|
|||
|
|
"description": "The CRC (cyclic redundancy check) of the class or trigger file."
|
|||
|
|
},
|
|||
|
|
"IsValid": {
|
|||
|
|
"type": "boolean",
|
|||
|
|
"properties": "Create, Defaulted on create, Filter, Group, Sort, Update",
|
|||
|
|
"description": "Indicates whether any dependent metadata has changed since the class was last compiled (true) or not (false). The default value is false."
|
|||
|
|
},
|
|||
|
|
"LengthWithoutComments": {
|
|||
|
|
"type": "int",
|
|||
|
|
"properties": "Create, Filter, Group, Sort, Update",
|
|||
|
|
"description": "Length of the class without comments."
|
|||
|
|
},
|
|||
|
|
"Name": {
|
|||
|
|
"type": "string",
|
|||
|
|
"properties": "Create, Filter, Group, idLookup, Sort, Update",
|
|||
|
|
"description": "Name of the class. Limit: 255 characters"
|
|||
|
|
},
|
|||
|
|
"NamespacePrefix": {
|
|||
|
|
"type": "string",
|
|||
|
|
"properties": "Filter, Group, Nillable, Sort",
|
|||
|
|
"description": "The namespace prefix that is associated with this object. Each Developer Edition org that creates a managed package has a unique namespace prefix. Limit: 15 characters. You can refer to a component in a managed package by using the namespacePrefix__componentName notation. The namespace prefix can have one of the following values. In Developer Edition orgs, NamespacePrefix is set to the namespace prefix of the org for all objects that support it, unless an object is in an installed managed package. In that case, the object has the namespace prefix of the installed managed package. This field’s value is the namespace prefix of the Developer Edition org of the package developer. In orgs that are not Developer Edition orgs, NamespacePrefix is set only for objects that are part of an installed managed package. All other objects have no namespace prefix."
|
|||
|
|
},
|
|||
|
|
"Status": {
|
|||
|
|
"type": "picklist",
|
|||
|
|
"properties": "Create, Filter, Group, Restricted picklist, Sort, Update",
|
|||
|
|
"description": "The current status of the Apex class. The following string values are valid: Active—The class is active. Deleted—The class is marked for deletion. This is useful for managed packages, because it allows a class to be deleted when a managed package is updated. Inactive—This option is unused and is only supported for ApexTrigger. For more information, see the Metadata API Developer Guide."
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"usage": "Although Apex classes and triggers have the Create and Update field properties, a runtime exception occurs if you try to create, update, or delete them using the API. Instead, use the Salesforce Extensions for Visual Studio Code or the Ant Migration Tool to create or update Apex classes or triggers. Apex classes and triggers can’t be created, edited, or deleted in a production org. See Deploying Apex.",
|
|||
|
|
"wsdl_segment": "```xml\n<complexType name=\"ApexClass\">\n <complexContent>\n <extension base=\"ens:sObject\">\n <sequence>\n <element name=\"ApiVersion\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\n <element name=\"Body\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"BodyCrc\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\n <element name=\"CreatedBy\" nillable=\"true\" minOccurs=\"0\" type=\"ens:User\"/>\n <element name=\"CreatedById\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"CreatedDate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:dateTime\"/>\n <element name=\"IsValid\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n <element name=\"LastModifiedBy\" nillable=\"true\" minOccurs=\"0\" type=\"ens:User\"/>\n <element name=\"LastModifiedById\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"LastModifiedDate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:dateTime\"/>\n <element name=\"LengthWithoutComments\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:int\"/>\n <element name=\"Name\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"NamespacePrefix\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"SetupEntityAccessItems\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"Status\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"SystemModstamp\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:dateTime\"/>\n </sequence>\n </extension>\n </complexContent>\n</complexType>\n<simpleType name=\"ID\">\n <restriction base=\"xsd:string\">\n <length value=\"18\"/>\n <pattern value=\"[a-zA-Z0-9]{18}\"/>\n </restriction>\n</simpleType>\n<simpleType name=\"QueryLocator\">\n <restriction base=\"xsd:string\"/>\n</simpleType>\n<complexType name=\"QueryResult\">\n <sequence>\n <element name=\"done\" type=\"xsd:boolean\"/>\n <element name=\"queryLocator\" type=\"tns:QueryLocator\" nillable=\"true\"/>\n <element name=\"records\" type=\"ens:sObject\" nillable=\"true\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\n <element name=\"size\" type=\"xsd:int\"/>\n </sequence>\n</complexType>\n```",
|
|||
|
|
"field_reference": {
|
|||
|
|
"ApiVersion": {
|
|||
|
|
"field_label": "Api Version",
|
|||
|
|
"type": "double",
|
|||
|
|
"precision": "18",
|
|||
|
|
"scale": "1"
|
|||
|
|
},
|
|||
|
|
"Body": {
|
|||
|
|
"field_label": "Body",
|
|||
|
|
"type": "textarea",
|
|||
|
|
"length": "1000000"
|
|||
|
|
},
|
|||
|
|
"BodyCrc": {
|
|||
|
|
"field_label": "Body CRC",
|
|||
|
|
"type": "double",
|
|||
|
|
"precision": "18",
|
|||
|
|
"scale": "0"
|
|||
|
|
},
|
|||
|
|
"CreatedById": {
|
|||
|
|
"field_label": "Created By ID",
|
|||
|
|
"type": "reference",
|
|||
|
|
"length": "18"
|
|||
|
|
},
|
|||
|
|
"CreatedDate": {
|
|||
|
|
"field_label": "Created Date",
|
|||
|
|
"type": "datetime"
|
|||
|
|
},
|
|||
|
|
"Id": {
|
|||
|
|
"field_label": "Class ID",
|
|||
|
|
"type": "id",
|
|||
|
|
"length": "18"
|
|||
|
|
},
|
|||
|
|
"IsValid": {
|
|||
|
|
"field_label": "Is Valid",
|
|||
|
|
"type": "boolean"
|
|||
|
|
},
|
|||
|
|
"LastModifiedById": {
|
|||
|
|
"field_label": "Last Modified By ID",
|
|||
|
|
"type": "reference",
|
|||
|
|
"length": "18"
|
|||
|
|
},
|
|||
|
|
"LastModifiedDate": {
|
|||
|
|
"field_label": "Last Modified Date",
|
|||
|
|
"type": "datetime"
|
|||
|
|
},
|
|||
|
|
"LengthWithoutComments": {
|
|||
|
|
"field_label": "Size Without Comments",
|
|||
|
|
"type": "int",
|
|||
|
|
"digits": "9"
|
|||
|
|
},
|
|||
|
|
"Name": {
|
|||
|
|
"field_label": "Name",
|
|||
|
|
"type": "string",
|
|||
|
|
"length": "255"
|
|||
|
|
},
|
|||
|
|
"NamespacePrefix": {
|
|||
|
|
"field_label": "Namespace Prefix",
|
|||
|
|
"type": "string",
|
|||
|
|
"length": "15"
|
|||
|
|
},
|
|||
|
|
"Status": {
|
|||
|
|
"field_label": "Status",
|
|||
|
|
"type": "picklist",
|
|||
|
|
"length": "40"
|
|||
|
|
},
|
|||
|
|
"SystemModstamp": {
|
|||
|
|
"field_label": "System Modstamp",
|
|||
|
|
"type": "datetime"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"field_reference_columns": [
|
|||
|
|
"field_label",
|
|||
|
|
"type",
|
|||
|
|
"precision",
|
|||
|
|
"scale",
|
|||
|
|
"length",
|
|||
|
|
"digits"
|
|||
|
|
]
|
|||
|
|
}
|