DBFILEPROPERTIESUpdateTemplateArg

@interface DBFILEPROPERTIESUpdateTemplateArg
    : NSObject <DBSerializable, NSCopying>

The UpdateTemplateArg struct.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

  • An identifier for template added by See templatesAddForUser or templatesAddForTeam.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull templateId;

    Swift

    var templateId: String { get }
  • A display name for the template. template names can be up to 256 bytes.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *name;

    Swift

    var name: String? { get }
  • Description for the new template. Template descriptions can be up to 1024 bytes.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *description_;

    Swift

    var description_: String? { get }
  • Property field templates to be added to the group template. There can be up to 32 properties in a single template.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable)
        NSArray<DBFILEPROPERTIESPropertyFieldTemplate *> *addFields;

    Swift

    var addFields: [DBFILEPROPERTIESPropertyFieldTemplate]? { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithTemplateId:(nonnull NSString *)templateId
                  name:(nullable NSString *)name
          description_:(nullable NSString *)description_
             addFields:(nullable NSArray<DBFILEPROPERTIESPropertyFieldTemplate *> *)
                           addFields;

    Swift

    init(templateId: String, name: String?, description_: String?, addFields: [DBFILEPROPERTIESPropertyFieldTemplate]?)

    Parameters

    templateId

    An identifier for template added by See templatesAddForUser or templatesAddForTeam.

    name

    A display name for the template. template names can be up to 256 bytes.

    description_

    Description for the new template. Template descriptions can be up to 1024 bytes.

    addFields

    Property field templates to be added to the group template. There can be up to 32 properties in a single template.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTemplateId:(nonnull NSString *)templateId;

    Swift

    init(templateId: String)

    Parameters

    templateId

    An identifier for template added by See templatesAddForUser or templatesAddForTeam.

    Return Value

    An initialized instance.