Skip to content

Latest commit

 

History

History
202 lines (109 loc) · 5.6 KB

ServiceTemplateRequest.md

File metadata and controls

202 lines (109 loc) · 5.6 KB

ServiceTemplateRequest

Properties

Name Type Description Notes
Name string
Ports []int32
Protocol Pointer to string * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP [optional]
Description Pointer to string [optional]
Comments Pointer to string [optional]
Tags Pointer to []NestedTagRequest [optional]
CustomFields Pointer to map[string]interface{} [optional]

Methods

NewServiceTemplateRequest

func NewServiceTemplateRequest(name string, ports []int32, ) *ServiceTemplateRequest

NewServiceTemplateRequest instantiates a new ServiceTemplateRequest 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

NewServiceTemplateRequestWithDefaults

func NewServiceTemplateRequestWithDefaults() *ServiceTemplateRequest

NewServiceTemplateRequestWithDefaults instantiates a new ServiceTemplateRequest 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

GetName

func (o *ServiceTemplateRequest) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *ServiceTemplateRequest) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *ServiceTemplateRequest) SetName(v string)

SetName sets Name field to given value.

GetPorts

func (o *ServiceTemplateRequest) GetPorts() []int32

GetPorts returns the Ports field if non-nil, zero value otherwise.

GetPortsOk

func (o *ServiceTemplateRequest) GetPortsOk() (*[]int32, bool)

GetPortsOk returns a tuple with the Ports field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPorts

func (o *ServiceTemplateRequest) SetPorts(v []int32)

SetPorts sets Ports field to given value.

GetProtocol

func (o *ServiceTemplateRequest) GetProtocol() string

GetProtocol returns the Protocol field if non-nil, zero value otherwise.

GetProtocolOk

func (o *ServiceTemplateRequest) GetProtocolOk() (*string, bool)

GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetProtocol

func (o *ServiceTemplateRequest) SetProtocol(v string)

SetProtocol sets Protocol field to given value.

HasProtocol

func (o *ServiceTemplateRequest) HasProtocol() bool

HasProtocol returns a boolean if a field has been set.

GetDescription

func (o *ServiceTemplateRequest) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

func (o *ServiceTemplateRequest) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDescription

func (o *ServiceTemplateRequest) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *ServiceTemplateRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetComments

func (o *ServiceTemplateRequest) GetComments() string

GetComments returns the Comments field if non-nil, zero value otherwise.

GetCommentsOk

func (o *ServiceTemplateRequest) GetCommentsOk() (*string, bool)

GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetComments

func (o *ServiceTemplateRequest) SetComments(v string)

SetComments sets Comments field to given value.

HasComments

func (o *ServiceTemplateRequest) HasComments() bool

HasComments returns a boolean if a field has been set.

GetTags

func (o *ServiceTemplateRequest) GetTags() []NestedTagRequest

GetTags returns the Tags field if non-nil, zero value otherwise.

GetTagsOk

func (o *ServiceTemplateRequest) GetTagsOk() (*[]NestedTagRequest, bool)

GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTags

func (o *ServiceTemplateRequest) SetTags(v []NestedTagRequest)

SetTags sets Tags field to given value.

HasTags

func (o *ServiceTemplateRequest) HasTags() bool

HasTags returns a boolean if a field has been set.

GetCustomFields

func (o *ServiceTemplateRequest) GetCustomFields() map[string]interface{}

GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.

GetCustomFieldsOk

func (o *ServiceTemplateRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)

GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCustomFields

func (o *ServiceTemplateRequest) SetCustomFields(v map[string]interface{})

SetCustomFields sets CustomFields field to given value.

HasCustomFields

func (o *ServiceTemplateRequest) HasCustomFields() bool

HasCustomFields returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]