@@ -1181,37 +1181,41 @@ type SetPlacementGroupServersResponse struct {
11811181 Servers []* PlacementGroupServer `json:"servers"`
11821182}
11831183
1184+ // Snapshot: snapshot
11841185type Snapshot struct {
1186+ // ID: the snapshot ID
11851187 ID string `json:"id"`
1186-
1188+ // Name: the snapshot name
11871189 Name string `json:"name"`
1188-
1190+ // Organization: the snapshot organization ID
11891191 Organization string `json:"organization"`
1190- // VolumeType:
1192+ // Project: the snapshot project ID
1193+ Project string `json:"project"`
1194+ // VolumeType: the snapshot volume type
11911195 //
11921196 // Default value: l_ssd
11931197 VolumeType VolumeVolumeType `json:"volume_type"`
1194-
1198+ // Size: the snapshot size
11951199 Size scw.Size `json:"size"`
1196- // State:
1200+ // State: the snapshot state
11971201 //
11981202 // Default value: available
11991203 State SnapshotState `json:"state"`
1200-
1204+ // BaseVolume: the volume on which the snapshot is based on
12011205 BaseVolume * SnapshotBaseVolume `json:"base_volume"`
1202-
1206+ // CreationDate: the snapshot creation date
12031207 CreationDate * time.Time `json:"creation_date"`
1204-
1208+ // ModificationDate: the snapshot modification date
12051209 ModificationDate * time.Time `json:"modification_date"`
1206-
1207- Project string `json:"project"`
1208-
1210+ // Zone: the snapshot zone
12091211 Zone scw.Zone `json:"zone"`
12101212}
12111213
1214+ // SnapshotBaseVolume: snapshot. base volume
12121215type SnapshotBaseVolume struct {
1216+ // ID: the volume ID on which the snapshot is based on
12131217 ID string `json:"id"`
1214-
1218+ // Name: the volume name on which the snapshot is based on
12151219 Name string `json:"name"`
12161220}
12171221
@@ -1261,29 +1265,29 @@ type UpdateVolumeResponse struct {
12611265
12621266// Volume: volume
12631267type Volume struct {
1264- // ID: the volumes unique ID
1268+ // ID: the volume unique ID
12651269 ID string `json:"id"`
1266- // Name: the volumes names
1270+ // Name: the volume name
12671271 Name string `json:"name"`
1268- // ExportURI: show the volumes NBD export URI
1272+ // ExportURI: show the volume NBD export URI
12691273 ExportURI string `json:"export_uri"`
1270- // Size: the volumes disk size
1274+ // Size: the volume disk size
12711275 Size scw.Size `json:"size"`
1272- // VolumeType: the volumes type
1276+ // VolumeType: the volume type
12731277 //
12741278 // Default value: l_ssd
12751279 VolumeType VolumeVolumeType `json:"volume_type"`
1276- // CreationDate: the volumes creation date
1280+ // CreationDate: the volume creation date
12771281 CreationDate * time.Time `json:"creation_date"`
1278- // ModificationDate: the volumes modification date
1282+ // ModificationDate: the volume modification date
12791283 ModificationDate * time.Time `json:"modification_date"`
1280- // Organization: the volumes organization ID
1284+ // Organization: the volume organization ID
12811285 Organization string `json:"organization"`
1282- // Project: the volumes project ID
1286+ // Project: the volume project ID
12831287 Project string `json:"project"`
12841288 // Server: the server attached to the volume
12851289 Server * ServerSummary `json:"server"`
1286- // State: the volumes state
1290+ // State: the volume state
12871291 //
12881292 // Default value: available
12891293 State VolumeState `json:"state"`
@@ -2522,10 +2526,10 @@ type CreateSnapshotRequest struct {
25222526 Name string `json:"name,omitempty"`
25232527 // VolumeID: UUID of the volume
25242528 VolumeID string `json:"volume_id,omitempty"`
2525-
2529+ // Organization: organization ID of the snapshot
25262530 // Precisely one of Organization, Project must be set.
25272531 Organization * string `json:"organization,omitempty"`
2528-
2532+ // Project: project ID of the snapshot
25292533 // Precisely one of Organization, Project must be set.
25302534 Project * string `json:"project,omitempty"`
25312535}
@@ -2815,27 +2819,27 @@ func (r *ListVolumesResponse) UnsafeAppend(res interface{}) (uint32, error) {
28152819
28162820type CreateVolumeRequest struct {
28172821 Zone scw.Zone `json:"-"`
2818-
2822+ // Name: the volume name
28192823 Name string `json:"name,omitempty"`
2820-
2824+ // Organization: the volume organization ID
28212825 // Precisely one of Organization, Project must be set.
28222826 Organization * string `json:"organization,omitempty"`
2823- // VolumeType:
2827+ // Project: the volume project ID
2828+ // Precisely one of Organization, Project must be set.
2829+ Project * string `json:"project,omitempty"`
2830+ // VolumeType: the volume type
28242831 //
28252832 // Default value: l_ssd
28262833 VolumeType VolumeVolumeType `json:"volume_type"`
2827-
2834+ // Size: the volume disk size
28282835 // Precisely one of BaseSnapshot, BaseVolume, Size must be set.
28292836 Size * scw.Size `json:"size,omitempty"`
2830-
2837+ // BaseVolume: the ID of the volume on which this volume will be based
28312838 // Precisely one of BaseSnapshot, BaseVolume, Size must be set.
28322839 BaseVolume * string `json:"base_volume,omitempty"`
2833-
2840+ // BaseSnapshot: the ID of the snapshot on which this volume will be based
28342841 // Precisely one of BaseSnapshot, BaseVolume, Size must be set.
28352842 BaseSnapshot * string `json:"base_snapshot,omitempty"`
2836-
2837- // Precisely one of Organization, Project must be set.
2838- Project * string `json:"project,omitempty"`
28392843}
28402844
28412845// CreateVolume: create a volume
@@ -3247,38 +3251,38 @@ func (s *API) DeleteSecurityGroup(req *DeleteSecurityGroupRequest, opts ...scw.R
32473251
32483252type setSecurityGroupRequest struct {
32493253 Zone scw.Zone `json:"-"`
3250-
3254+ // ID: the ID of the security group (will be ignored)
32513255 ID string `json:"-"`
3252-
3256+ // Name: the name of the security group
32533257 Name string `json:"name"`
3254-
3258+ // CreationDate: the creation date of the security group (will be ignored)
32553259 CreationDate * time.Time `json:"creation_date"`
3256-
3260+ // ModificationDate: the modification date of the security group (will be ignored)
32573261 ModificationDate * time.Time `json:"modification_date"`
3258-
3262+ // Description: the description of the security group
32593263 Description string `json:"description"`
3260-
3264+ // EnableDefaultSecurity: true to block SMTP on IPv4 and IPv6
32613265 EnableDefaultSecurity bool `json:"enable_default_security"`
3262- // InboundDefaultPolicy:
3266+ // InboundDefaultPolicy: the default inbound policy
32633267 //
32643268 // Default value: accept
32653269 InboundDefaultPolicy SecurityGroupPolicy `json:"inbound_default_policy"`
3266-
3267- Organization string `json:"organization"`
3268-
3269- OrganizationDefault bool `json:"organization_default"`
3270- // OutboundDefaultPolicy:
3270+ // OutboundDefaultPolicy: the default outbound policy
32713271 //
32723272 // Default value: accept
32733273 OutboundDefaultPolicy SecurityGroupPolicy `json:"outbound_default_policy"`
3274-
3275- Servers []* ServerSummary `json:"servers"`
3276-
3277- Stateful bool `json:"stateful"`
3278-
3274+ // Organization: the security groups organization ID
3275+ Organization string `json:"organization"`
3276+ // Project: the security group project ID
32793277 Project string `json:"project"`
3280-
3278+ // OrganizationDefault: please use project_default instead
3279+ OrganizationDefault bool `json:"organization_default"`
3280+ // ProjectDefault: true use this security group for future instances created in this project
32813281 ProjectDefault bool `json:"project_default"`
3282+ // Servers: the servers attached to this security group
3283+ Servers []* ServerSummary `json:"servers"`
3284+ // Stateful: true to set the security group as stateful
3285+ Stateful bool `json:"stateful"`
32823286}
32833287
32843288// setSecurityGroup: update a security group
@@ -3713,17 +3717,17 @@ type CreatePlacementGroupRequest struct {
37133717 Zone scw.Zone `json:"-"`
37143718 // Name: name of the placement group
37153719 Name string `json:"name,omitempty"`
3716-
3720+ // Organization: organization ID of the placement group
37173721 // Precisely one of Organization, Project must be set.
37183722 Organization * string `json:"organization,omitempty"`
3719-
3723+ // Project: project ID of the placement group
37203724 // Precisely one of Organization, Project must be set.
37213725 Project * string `json:"project,omitempty"`
3722- // PolicyMode:
3726+ // PolicyMode: the operating mode of the placement group
37233727 //
37243728 // Default value: optional
37253729 PolicyMode PlacementGroupPolicyMode `json:"policy_mode"`
3726- // PolicyType:
3730+ // PolicyType: the policy type of the placement group
37273731 //
37283732 // Default value: max_availability
37293733 PolicyType PlacementGroupPolicyType `json:"policy_type"`
0 commit comments