File: DatacenterPropertiesPut.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 (262 lines) | stat: -rw-r--r-- 9,165 bytes parent folder | download
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
# DatacenterPropertiesPut

## Properties

|Name | Type | Description | Notes|
|------------ | ------------- | ------------- | -------------|
|**Name** | Pointer to **string** | The name of the  resource. | [optional] |
|**Description** | Pointer to **string** | A description for the datacenter, such as staging, production. | [optional] |
|**Location** | Pointer to **string** | The physical location where the datacenter will be created. This will be where all of your servers live. Property cannot be modified after datacenter creation (disallowed in update requests). | [optional] |
|**Version** | Pointer to **int32** | The version of the data center; incremented with every change. | [optional] [readonly] |
|**Features** | Pointer to **[]string** | List of features supported by the location where this data center is provisioned. | [optional] [readonly] |
|**SecAuthProtection** | Pointer to **bool** | Boolean value representing if the data center requires extra protection, such as two-step verification. | [optional] |
|**CpuArchitecture** | Pointer to [**[]CpuArchitectureProperties**](CpuArchitectureProperties.md) | Array of features and CPU families available in a location | [optional] [readonly] |
|**DefaultSecurityGroupId** | Pointer to **string** | This will become the default security group for the datacenter, replacing the old one if already exists.  This security group must already exists prior to this request. Provide this field only if the `createDefaultSecurityGroup` field is missing. You cannot provide both of them | [optional] |
|**CreateDefaultSecurityGroup** | Pointer to **bool** | If this field is set on true and this datacenter has no default security group then a default security group, with predefined rules, will be created for this datacenter. Default value is false.  Provide this field only if the `defaultSecurityGroupId` field is missing. You cannot provide both of them | [optional] |

## Methods

### NewDatacenterPropertiesPut

`func NewDatacenterPropertiesPut() *DatacenterPropertiesPut`

NewDatacenterPropertiesPut instantiates a new DatacenterPropertiesPut 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

### NewDatacenterPropertiesPutWithDefaults

`func NewDatacenterPropertiesPutWithDefaults() *DatacenterPropertiesPut`

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

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

### GetNameOk

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

SetName sets Name field to given value.

### HasName

`func (o *DatacenterPropertiesPut) HasName() bool`

HasName returns a boolean if a field has been set.

### GetDescription

`func (o *DatacenterPropertiesPut) GetDescription() string`

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

### GetDescriptionOk

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

SetDescription sets Description field to given value.

### HasDescription

`func (o *DatacenterPropertiesPut) HasDescription() bool`

HasDescription returns a boolean if a field has been set.

### GetLocation

`func (o *DatacenterPropertiesPut) GetLocation() string`

GetLocation returns the Location field if non-nil, zero value otherwise.

### GetLocationOk

`func (o *DatacenterPropertiesPut) GetLocationOk() (*string, bool)`

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

### SetLocation

`func (o *DatacenterPropertiesPut) SetLocation(v string)`

SetLocation sets Location field to given value.

### HasLocation

`func (o *DatacenterPropertiesPut) HasLocation() bool`

HasLocation returns a boolean if a field has been set.

### GetVersion

`func (o *DatacenterPropertiesPut) GetVersion() int32`

GetVersion returns the Version field if non-nil, zero value otherwise.

### GetVersionOk

`func (o *DatacenterPropertiesPut) GetVersionOk() (*int32, bool)`

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

### SetVersion

`func (o *DatacenterPropertiesPut) SetVersion(v int32)`

SetVersion sets Version field to given value.

### HasVersion

`func (o *DatacenterPropertiesPut) HasVersion() bool`

HasVersion returns a boolean if a field has been set.

### GetFeatures

`func (o *DatacenterPropertiesPut) GetFeatures() []string`

GetFeatures returns the Features field if non-nil, zero value otherwise.

### GetFeaturesOk

`func (o *DatacenterPropertiesPut) GetFeaturesOk() (*[]string, bool)`

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

### SetFeatures

`func (o *DatacenterPropertiesPut) SetFeatures(v []string)`

SetFeatures sets Features field to given value.

### HasFeatures

`func (o *DatacenterPropertiesPut) HasFeatures() bool`

HasFeatures returns a boolean if a field has been set.

### GetSecAuthProtection

`func (o *DatacenterPropertiesPut) GetSecAuthProtection() bool`

GetSecAuthProtection returns the SecAuthProtection field if non-nil, zero value otherwise.

### GetSecAuthProtectionOk

`func (o *DatacenterPropertiesPut) GetSecAuthProtectionOk() (*bool, bool)`

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

### SetSecAuthProtection

`func (o *DatacenterPropertiesPut) SetSecAuthProtection(v bool)`

SetSecAuthProtection sets SecAuthProtection field to given value.

### HasSecAuthProtection

`func (o *DatacenterPropertiesPut) HasSecAuthProtection() bool`

HasSecAuthProtection returns a boolean if a field has been set.

### GetCpuArchitecture

`func (o *DatacenterPropertiesPut) GetCpuArchitecture() []CpuArchitectureProperties`

GetCpuArchitecture returns the CpuArchitecture field if non-nil, zero value otherwise.

### GetCpuArchitectureOk

`func (o *DatacenterPropertiesPut) GetCpuArchitectureOk() (*[]CpuArchitectureProperties, bool)`

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

### SetCpuArchitecture

`func (o *DatacenterPropertiesPut) SetCpuArchitecture(v []CpuArchitectureProperties)`

SetCpuArchitecture sets CpuArchitecture field to given value.

### HasCpuArchitecture

`func (o *DatacenterPropertiesPut) HasCpuArchitecture() bool`

HasCpuArchitecture returns a boolean if a field has been set.

### GetDefaultSecurityGroupId

`func (o *DatacenterPropertiesPut) GetDefaultSecurityGroupId() string`

GetDefaultSecurityGroupId returns the DefaultSecurityGroupId field if non-nil, zero value otherwise.

### GetDefaultSecurityGroupIdOk

`func (o *DatacenterPropertiesPut) GetDefaultSecurityGroupIdOk() (*string, bool)`

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

### SetDefaultSecurityGroupId

`func (o *DatacenterPropertiesPut) SetDefaultSecurityGroupId(v string)`

SetDefaultSecurityGroupId sets DefaultSecurityGroupId field to given value.

### HasDefaultSecurityGroupId

`func (o *DatacenterPropertiesPut) HasDefaultSecurityGroupId() bool`

HasDefaultSecurityGroupId returns a boolean if a field has been set.

### GetCreateDefaultSecurityGroup

`func (o *DatacenterPropertiesPut) GetCreateDefaultSecurityGroup() bool`

GetCreateDefaultSecurityGroup returns the CreateDefaultSecurityGroup field if non-nil, zero value otherwise.

### GetCreateDefaultSecurityGroupOk

`func (o *DatacenterPropertiesPut) GetCreateDefaultSecurityGroupOk() (*bool, bool)`

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

### SetCreateDefaultSecurityGroup

`func (o *DatacenterPropertiesPut) SetCreateDefaultSecurityGroup(v bool)`

SetCreateDefaultSecurityGroup sets CreateDefaultSecurityGroup field to given value.

### HasCreateDefaultSecurityGroup

`func (o *DatacenterPropertiesPut) HasCreateDefaultSecurityGroup() bool`

HasCreateDefaultSecurityGroup returns a boolean if a field has been set.