class Build::AddonWithAttachments

Included Modules

Defined in:

build-client/models/addon_with_attachments.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(id : String, addon_service : AddonService, plan : AddonPlan, app : AddonApp, state : String, name : String | Nil, human_name : String | Nil, description : String | Nil, config_vars : Array(String) | Nil, billed_price : AddonBilledPrice | Nil, web_url : String | Nil, attachments : Array(AddonInfoAttachment) | Nil, created_at : String | Nil, updated_at : String | Nil) #

Initializes the object @param [Hash] attributes Model attributes in the form of hash


[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.build_from_hash(attributes) #

Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself


[View source]

Instance Method Detail

def ==(other) #

Checks equality by comparing each attribute. @param [Object] Object to be compared


[View source]
def _deserialize(type, value) #

Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data


[View source]
def _to_hash(value) #

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash


[View source]
def addon_service : AddonService #

[View source]
def addon_service=(addon_service : AddonService) #

[View source]
def app : AddonApp #

[View source]
def app=(app : AddonApp) #

[View source]
def attachments : Array(AddonInfoAttachment) | Nil #

[View source]
def attachments=(attachments : Array(AddonInfoAttachment) | Nil) #

[View source]
def billed_price : AddonBilledPrice | Nil #

[View source]
def billed_price=(billed_price : AddonBilledPrice | Nil) #

[View source]
def build_from_hash(attributes) #

Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself


[View source]
def config_vars : Array(String) | Nil #

[View source]
def config_vars=(config_vars : Array(String) | Nil) #

[View source]
def created_at : String | Nil #

[View source]
def created_at=(created_at : String | Nil) #

[View source]
def description : String | Nil #

User-provided description of the addon


[View source]
def description=(description : String | Nil) #

User-provided description of the addon


[View source]
def eql?(other) #

@see the #== method @param [Object] Object to be compared


[View source]
def hash #

Calculates hash code according to all attributes. @return [Integer] Hash code


[View source]
def human_name : String | Nil #

User-provided display name for the addon


[View source]
def human_name=(human_name : String | Nil) #

User-provided display name for the addon


[View source]
def id : String #

Required properties


[View source]
def id=(id : String) #

Required properties


[View source]
def list_invalid_properties #

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons


[View source]
def name : String | Nil #

Optional properties Globally unique addon name


[View source]
def name=(name : String | Nil) #

Optional properties Globally unique addon name


[View source]
def plan : AddonPlan #

[View source]
def plan=(plan : AddonPlan) #

[View source]
def state : String #

[View source]
def state=(state : String) #

[View source]
def state=(state : String) #

Custom attribute writer method checking allowed values (enum). @param [Object] state Object to be assigned


[View source]
def to_body #

to_body is an alias to to_hash (backward compatibility) @return [Hash] Returns the object in the form of hash


[View source]
def to_hash #

Returns the object in the form of hash @return [Hash] Returns the object in the form of hash


[View source]
def to_s #

Returns the string representation of the object @return [String] String presentation of the object


[View source]
def updated_at : String | Nil #

[View source]
def updated_at=(updated_at : String | Nil) #

[View source]
def valid? #

Check to see if the all the properties in the model are valid @return true if the model is valid


[View source]
def web_url : String | Nil #

[View source]
def web_url=(web_url : String | Nil) #

[View source]