Skip to content

Latest commit

 

History

History
295 lines (160 loc) · 7.44 KB

Service.md

File metadata and controls

295 lines (160 loc) · 7.44 KB

Service

Properties

Name Type Description Notes
CreatedAt Pointer to time.Time [optional] [readonly]
CreatedBy Pointer to string [optional] [readonly]
CreatedByUrl Pointer to string [optional] [readonly]
Description Pointer to string The description of the service [optional]
Key Pointer to string The API key of the service [optional] [readonly]
KeyExpiresAt Pointer to NullableTime The time at which the API key will expire. This will only be populated if the Organization has an active API Key Policy. [optional] [readonly]
Name string The name of the service
Role Pointer to string The role of the service. [optional] [default to "Member"]
Slug Pointer to string The slug of the service [optional] [readonly]
Teams Pointer to []ServiceTeams [optional]

Methods

NewService

func NewService(name string, ) *Service

NewService instantiates a new Service 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

NewServiceWithDefaults

func NewServiceWithDefaults() *Service

NewServiceWithDefaults instantiates a new Service 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

GetCreatedAt

func (o *Service) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

func (o *Service) GetCreatedAtOk() (*time.Time, bool)

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

SetCreatedAt

func (o *Service) SetCreatedAt(v time.Time)

SetCreatedAt sets CreatedAt field to given value.

HasCreatedAt

func (o *Service) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

GetCreatedBy

func (o *Service) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise.

GetCreatedByOk

func (o *Service) GetCreatedByOk() (*string, bool)

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

SetCreatedBy

func (o *Service) SetCreatedBy(v string)

SetCreatedBy sets CreatedBy field to given value.

HasCreatedBy

func (o *Service) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

GetCreatedByUrl

func (o *Service) GetCreatedByUrl() string

GetCreatedByUrl returns the CreatedByUrl field if non-nil, zero value otherwise.

GetCreatedByUrlOk

func (o *Service) GetCreatedByUrlOk() (*string, bool)

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

SetCreatedByUrl

func (o *Service) SetCreatedByUrl(v string)

SetCreatedByUrl sets CreatedByUrl field to given value.

HasCreatedByUrl

func (o *Service) HasCreatedByUrl() bool

HasCreatedByUrl returns a boolean if a field has been set.

GetDescription

func (o *Service) GetDescription() string

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

GetDescriptionOk

func (o *Service) 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 *Service) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *Service) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetKey

func (o *Service) GetKey() string

GetKey returns the Key field if non-nil, zero value otherwise.

GetKeyOk

func (o *Service) GetKeyOk() (*string, bool)

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

SetKey

func (o *Service) SetKey(v string)

SetKey sets Key field to given value.

HasKey

func (o *Service) HasKey() bool

HasKey returns a boolean if a field has been set.

GetKeyExpiresAt

func (o *Service) GetKeyExpiresAt() time.Time

GetKeyExpiresAt returns the KeyExpiresAt field if non-nil, zero value otherwise.

GetKeyExpiresAtOk

func (o *Service) GetKeyExpiresAtOk() (*time.Time, bool)

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

SetKeyExpiresAt

func (o *Service) SetKeyExpiresAt(v time.Time)

SetKeyExpiresAt sets KeyExpiresAt field to given value.

HasKeyExpiresAt

func (o *Service) HasKeyExpiresAt() bool

HasKeyExpiresAt returns a boolean if a field has been set.

SetKeyExpiresAtNil

func (o *Service) SetKeyExpiresAtNil(b bool)

SetKeyExpiresAtNil sets the value for KeyExpiresAt to be an explicit nil

UnsetKeyExpiresAt

func (o *Service) UnsetKeyExpiresAt()

UnsetKeyExpiresAt ensures that no value is present for KeyExpiresAt, not even an explicit nil

GetName

func (o *Service) GetName() string

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

GetNameOk

func (o *Service) 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 *Service) SetName(v string)

SetName sets Name field to given value.

GetRole

func (o *Service) GetRole() string

GetRole returns the Role field if non-nil, zero value otherwise.

GetRoleOk

func (o *Service) GetRoleOk() (*string, bool)

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

SetRole

func (o *Service) SetRole(v string)

SetRole sets Role field to given value.

HasRole

func (o *Service) HasRole() bool

HasRole returns a boolean if a field has been set.

GetSlug

func (o *Service) GetSlug() string

GetSlug returns the Slug field if non-nil, zero value otherwise.

GetSlugOk

func (o *Service) GetSlugOk() (*string, bool)

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

SetSlug

func (o *Service) SetSlug(v string)

SetSlug sets Slug field to given value.

HasSlug

func (o *Service) HasSlug() bool

HasSlug returns a boolean if a field has been set.

GetTeams

func (o *Service) GetTeams() []ServiceTeams

GetTeams returns the Teams field if non-nil, zero value otherwise.

GetTeamsOk

func (o *Service) GetTeamsOk() (*[]ServiceTeams, bool)

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

SetTeams

func (o *Service) SetTeams(v []ServiceTeams)

SetTeams sets Teams field to given value.

HasTeams

func (o *Service) HasTeams() bool

HasTeams returns a boolean if a field has been set.

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