Resource
Properties
Type
Id
string
The unique ID of the resource.
Href
string
Absolute URL of the resource.
Methods
NewResource
func NewResource(type_ ResourceType, id string, href string, ) *Resource
NewResource instantiates a new Resource 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
NewResourceWithDefaults
func NewResourceWithDefaults() *Resource
NewResourceWithDefaults instantiates a new Resource 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
GetType
func (o *Resource) GetType() ResourceType
GetType returns the Type field if non-nil, zero value otherwise.
GetTypeOk
func (o *Resource) GetTypeOk() (*ResourceType, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetType
func (o *Resource) SetType(v ResourceType)
SetType sets Type field to given value.
GetId
func (o *Resource) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
GetIdOk
func (o *Resource) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetId
func (o *Resource) SetId(v string)
SetId sets Id field to given value.
GetHref
func (o *Resource) GetHref() string
GetHref returns the Href field if non-nil, zero value otherwise.
GetHrefOk
func (o *Resource) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetHref
func (o *Resource) SetHref(v string)
SetHref sets Href field to given value.
Last updated