From 5b12faf14add554c6a7b4a36eb0aeb3333907f5e Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 8 Sep 2020 17:57:13 +0000 Subject: [PATCH] feat(instance): fix volume template project oneof --- api/instance/v1/instance_sdk.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/instance/v1/instance_sdk.go b/api/instance/v1/instance_sdk.go index bc57eb01e..3a727b146 100644 --- a/api/instance/v1/instance_sdk.go +++ b/api/instance/v1/instance_sdk.go @@ -1316,9 +1316,11 @@ type VolumeTemplate struct { // Default value: l_ssd VolumeType VolumeVolumeType `json:"volume_type,omitempty"` // Organization: organization ID of the volume - Organization string `json:"organization,omitempty"` + // Precisely one of Organization, Project must be set. + Organization *string `json:"organization,omitempty"` // Project: project ID of the volume - Project string `json:"project,omitempty"` + // Precisely one of Organization, Project must be set. + Project *string `json:"project,omitempty"` } type VolumeType struct {