File: TemplateProperties.md

package info (click to toggle)
golang-github-ionos-cloud-sdk-go 6.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,360 kB
  • sloc: sh: 35; makefile: 3
file content (133 lines) | stat: -rw-r--r-- 3,557 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# TemplateProperties

## Properties

|Name | Type | Description | Notes|
|------------ | ------------- | ------------- | -------------|
|**Name** | **string** | The resource name. | |
|**Cores** | **float32** | The CPU cores count. | |
|**Ram** | **float32** | The RAM size in MB. | |
|**StorageSize** | **float32** | The storage size in GB. | |
|**Category** | **string** | The description of the template. | |

## Methods

### NewTemplateProperties

`func NewTemplateProperties(name string, cores float32, ram float32, storageSize float32, category string, ) *TemplateProperties`

NewTemplateProperties instantiates a new TemplateProperties 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

### NewTemplatePropertiesWithDefaults

`func NewTemplatePropertiesWithDefaults() *TemplateProperties`

NewTemplatePropertiesWithDefaults instantiates a new TemplateProperties 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 *TemplateProperties) GetName() string`

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

### GetNameOk

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

SetName sets Name field to given value.


### GetCores

`func (o *TemplateProperties) GetCores() float32`

GetCores returns the Cores field if non-nil, zero value otherwise.

### GetCoresOk

`func (o *TemplateProperties) GetCoresOk() (*float32, bool)`

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

### SetCores

`func (o *TemplateProperties) SetCores(v float32)`

SetCores sets Cores field to given value.


### GetRam

`func (o *TemplateProperties) GetRam() float32`

GetRam returns the Ram field if non-nil, zero value otherwise.

### GetRamOk

`func (o *TemplateProperties) GetRamOk() (*float32, bool)`

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

### SetRam

`func (o *TemplateProperties) SetRam(v float32)`

SetRam sets Ram field to given value.


### GetStorageSize

`func (o *TemplateProperties) GetStorageSize() float32`

GetStorageSize returns the StorageSize field if non-nil, zero value otherwise.

### GetStorageSizeOk

`func (o *TemplateProperties) GetStorageSizeOk() (*float32, bool)`

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

### SetStorageSize

`func (o *TemplateProperties) SetStorageSize(v float32)`

SetStorageSize sets StorageSize field to given value.


### GetCategory

`func (o *TemplateProperties) GetCategory() string`

GetCategory returns the Category field if non-nil, zero value otherwise.

### GetCategoryOk

`func (o *TemplateProperties) GetCategoryOk() (*string, bool)`

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

### SetCategory

`func (o *TemplateProperties) SetCategory(v string)`

SetCategory sets Category field to given value.