mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
193 lines
5.3 KiB
Go
193 lines
5.3 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the HelpHelpTicketFiled type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &HelpHelpTicketFiled{}
|
|
|
|
// HelpHelpTicketFiled struct for HelpHelpTicketFiled
|
|
type HelpHelpTicketFiled struct {
|
|
// Status is the lifecycle state the ticket was filed in — always \"Open\".
|
|
Status *string `json:"status,omitempty"`
|
|
// Ticket is the opaque, random customer-facing reference (\"tkt_\" + 24 hex characters). It is NOT the ticket's internal name: that name is sequential, and handing it out would disclose the center's ticket volume.
|
|
Ticket *string `json:"ticket,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _HelpHelpTicketFiled HelpHelpTicketFiled
|
|
|
|
// NewHelpHelpTicketFiled instantiates a new HelpHelpTicketFiled object
|
|
// This constructor will assign default values to properties that have it defined,
|
|
// and makes sure properties required by API are set, but the set of arguments
|
|
// will change when the set of required properties is changed
|
|
func NewHelpHelpTicketFiled() *HelpHelpTicketFiled {
|
|
this := HelpHelpTicketFiled{}
|
|
return &this
|
|
}
|
|
|
|
// NewHelpHelpTicketFiledWithDefaults instantiates a new HelpHelpTicketFiled object
|
|
// This constructor will only assign default values to properties that have it defined,
|
|
// but it doesn't guarantee that properties required by API are set
|
|
func NewHelpHelpTicketFiledWithDefaults() *HelpHelpTicketFiled {
|
|
this := HelpHelpTicketFiled{}
|
|
return &this
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *HelpHelpTicketFiled) GetStatus() string {
|
|
if o == nil || IsNil(o.Status) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Status
|
|
}
|
|
|
|
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *HelpHelpTicketFiled) GetStatusOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Status) {
|
|
return nil, false
|
|
}
|
|
return o.Status, true
|
|
}
|
|
|
|
// HasStatus returns a boolean if a field has been set.
|
|
func (o *HelpHelpTicketFiled) HasStatus() bool {
|
|
if o != nil && !IsNil(o.Status) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStatus gets a reference to the given string and assigns it to the Status field.
|
|
func (o *HelpHelpTicketFiled) SetStatus(v string) {
|
|
o.Status = &v
|
|
}
|
|
|
|
// GetTicket returns the Ticket field value if set, zero value otherwise.
|
|
func (o *HelpHelpTicketFiled) GetTicket() string {
|
|
if o == nil || IsNil(o.Ticket) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Ticket
|
|
}
|
|
|
|
// GetTicketOk returns a tuple with the Ticket field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *HelpHelpTicketFiled) GetTicketOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Ticket) {
|
|
return nil, false
|
|
}
|
|
return o.Ticket, true
|
|
}
|
|
|
|
// HasTicket returns a boolean if a field has been set.
|
|
func (o *HelpHelpTicketFiled) HasTicket() bool {
|
|
if o != nil && !IsNil(o.Ticket) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTicket gets a reference to the given string and assigns it to the Ticket field.
|
|
func (o *HelpHelpTicketFiled) SetTicket(v string) {
|
|
o.Ticket = &v
|
|
}
|
|
|
|
func (o HelpHelpTicketFiled) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o HelpHelpTicketFiled) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Status) {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
if !IsNil(o.Ticket) {
|
|
toSerialize["ticket"] = o.Ticket
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *HelpHelpTicketFiled) UnmarshalJSON(data []byte) (err error) {
|
|
varHelpHelpTicketFiled := _HelpHelpTicketFiled{}
|
|
|
|
err = json.Unmarshal(data, &varHelpHelpTicketFiled)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = HelpHelpTicketFiled(varHelpHelpTicketFiled)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "status")
|
|
delete(additionalProperties, "ticket")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableHelpHelpTicketFiled struct {
|
|
value *HelpHelpTicketFiled
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableHelpHelpTicketFiled) Get() *HelpHelpTicketFiled {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableHelpHelpTicketFiled) Set(val *HelpHelpTicketFiled) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableHelpHelpTicketFiled) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableHelpHelpTicketFiled) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableHelpHelpTicketFiled(val *HelpHelpTicketFiled) *NullableHelpHelpTicketFiled {
|
|
return &NullableHelpHelpTicketFiled{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableHelpHelpTicketFiled) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableHelpHelpTicketFiled) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|