diff --git a/services/dns/api_default.go b/services/dns/api_default.go
index b0806f77b..f0e649654 100644
--- a/services/dns/api_default.go
+++ b/services/dns/api_default.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -23,6 +24,7 @@ import (
"github.com/stackitcloud/stackit-sdk-go/core/oapierror"
)
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DefaultApi interface {
/*
CloneZone Clone an existing zone with all record sets to a new zone with a different name
@@ -32,6 +34,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiCloneZoneRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
CloneZone(ctx context.Context, projectId string, zoneId string) ApiCloneZoneRequest
/*
@@ -42,6 +46,7 @@ type DefaultApi interface {
@param zoneId zone id
@return ZoneResponse
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
CloneZoneExecute(ctx context.Context, projectId string, zoneId string) (*ZoneResponse, error)
/*
@@ -52,6 +57,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiCreateLabelRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
CreateLabel(ctx context.Context, projectId string, zoneId string) ApiCreateLabelRequest
/*
@@ -62,6 +69,7 @@ type DefaultApi interface {
@param zoneId zone id
@return CreateLabelResponse
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
CreateLabelExecute(ctx context.Context, projectId string, zoneId string) (*CreateLabelResponse, error)
/*
@@ -72,6 +80,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiCreateMoveCodeRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
CreateMoveCode(ctx context.Context, projectId string, zoneId string) ApiCreateMoveCodeRequest
/*
@@ -82,6 +92,7 @@ type DefaultApi interface {
@param zoneId zone id
@return MoveCodeResponse
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
CreateMoveCodeExecute(ctx context.Context, projectId string, zoneId string) (*MoveCodeResponse, error)
/*
@@ -92,6 +103,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiCreateRecordSetRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
CreateRecordSet(ctx context.Context, projectId string, zoneId string) ApiCreateRecordSetRequest
/*
@@ -102,6 +115,7 @@ type DefaultApi interface {
@param zoneId zone id
@return RecordSetResponse
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
CreateRecordSetExecute(ctx context.Context, projectId string, zoneId string) (*RecordSetResponse, error)
/*
@@ -111,6 +125,8 @@ type DefaultApi interface {
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@return ApiCreateZoneRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
CreateZone(ctx context.Context, projectId string) ApiCreateZoneRequest
/*
@@ -120,6 +136,7 @@ type DefaultApi interface {
@param projectId project id
@return ZoneResponse
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
CreateZoneExecute(ctx context.Context, projectId string) (*ZoneResponse, error)
/*
@@ -131,6 +148,8 @@ type DefaultApi interface {
@param zoneId zone id
@param key key of the label
@return ApiDeleteLabelRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
DeleteLabel(ctx context.Context, projectId string, zoneId string, key string) ApiDeleteLabelRequest
/*
@@ -142,6 +161,7 @@ type DefaultApi interface {
@param key key of the label
@return DeleteLabelResponse
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
DeleteLabelExecute(ctx context.Context, projectId string, zoneId string, key string) (*DeleteLabelResponse, error)
/*
@@ -152,6 +172,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiDeleteMoveCodeRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
DeleteMoveCode(ctx context.Context, projectId string, zoneId string) ApiDeleteMoveCodeRequest
/*
@@ -162,6 +184,7 @@ type DefaultApi interface {
@param zoneId zone id
@return Message
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
DeleteMoveCodeExecute(ctx context.Context, projectId string, zoneId string) (*Message, error)
/*
@@ -173,6 +196,8 @@ type DefaultApi interface {
@param zoneId zone id
@param rrSetId record set id
@return ApiDeleteRecordSetRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
DeleteRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiDeleteRecordSetRequest
/*
@@ -184,6 +209,7 @@ type DefaultApi interface {
@param rrSetId record set id
@return Message
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
DeleteRecordSetExecute(ctx context.Context, projectId string, zoneId string, rrSetId string) (*Message, error)
/*
@@ -194,6 +220,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiDeleteZoneRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
DeleteZone(ctx context.Context, projectId string, zoneId string) ApiDeleteZoneRequest
/*
@@ -204,6 +232,7 @@ type DefaultApi interface {
@param zoneId zone id
@return Message
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
DeleteZoneExecute(ctx context.Context, projectId string, zoneId string) (*Message, error)
/*
@@ -214,6 +243,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiExportRecordSetsRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
ExportRecordSets(ctx context.Context, projectId string, zoneId string) ApiExportRecordSetsRequest
/*
@@ -224,6 +255,7 @@ type DefaultApi interface {
@param zoneId zone id
@return ZoneDataExchange
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
ExportRecordSetsExecute(ctx context.Context, projectId string, zoneId string) (*ZoneDataExchange, error)
/*
@@ -235,6 +267,8 @@ type DefaultApi interface {
@param zoneId zone id
@param rrSetId record set id
@return ApiGetRecordSetRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
GetRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiGetRecordSetRequest
/*
@@ -246,6 +280,7 @@ type DefaultApi interface {
@param rrSetId record set id
@return RecordSetResponse
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
GetRecordSetExecute(ctx context.Context, projectId string, zoneId string, rrSetId string) (*RecordSetResponse, error)
/*
@@ -256,6 +291,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiGetZoneRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
GetZone(ctx context.Context, projectId string, zoneId string) ApiGetZoneRequest
/*
@@ -266,6 +303,7 @@ type DefaultApi interface {
@param zoneId zone id
@return ZoneResponse
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
GetZoneExecute(ctx context.Context, projectId string, zoneId string) (*ZoneResponse, error)
/*
@@ -276,6 +314,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiImportRecordSetsRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
ImportRecordSets(ctx context.Context, projectId string, zoneId string) ApiImportRecordSetsRequest
/*
@@ -286,6 +326,7 @@ type DefaultApi interface {
@param zoneId zone id
@return ImportRecordSetsResponse
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
ImportRecordSetsExecute(ctx context.Context, projectId string, zoneId string) (*ImportRecordSetsResponse, error)
/*
@@ -296,6 +337,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiListLabelsRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
ListLabels(ctx context.Context, projectId string, zoneId string) ApiListLabelsRequest
/*
@@ -306,6 +349,7 @@ type DefaultApi interface {
@param zoneId zone id
@return ListLabelsResponse
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
ListLabelsExecute(ctx context.Context, projectId string, zoneId string) (*ListLabelsResponse, error)
/*
@@ -316,6 +360,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiListRecordSetsRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
ListRecordSets(ctx context.Context, projectId string, zoneId string) ApiListRecordSetsRequest
/*
@@ -326,6 +372,7 @@ type DefaultApi interface {
@param zoneId zone id
@return ListRecordSetsResponse
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
ListRecordSetsExecute(ctx context.Context, projectId string, zoneId string) (*ListRecordSetsResponse, error)
/*
@@ -335,6 +382,8 @@ type DefaultApi interface {
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@return ApiListZonesRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
ListZones(ctx context.Context, projectId string) ApiListZonesRequest
/*
@@ -344,6 +393,7 @@ type DefaultApi interface {
@param projectId project id
@return ListZonesResponse
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
ListZonesExecute(ctx context.Context, projectId string) (*ListZonesResponse, error)
/*
@@ -353,6 +403,8 @@ type DefaultApi interface {
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@return ApiMoveZoneRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
MoveZone(ctx context.Context, projectId string) ApiMoveZoneRequest
/*
@@ -362,6 +414,7 @@ type DefaultApi interface {
@param projectId project id
@return Message
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
MoveZoneExecute(ctx context.Context, projectId string) (*Message, error)
/*
@@ -373,6 +426,8 @@ type DefaultApi interface {
@param zoneId zone id
@param rrSetId record set id
@return ApiPartialUpdateRecordRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
PartialUpdateRecord(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiPartialUpdateRecordRequest
/*
@@ -384,6 +439,7 @@ type DefaultApi interface {
@param rrSetId record set id
@return Message
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
PartialUpdateRecordExecute(ctx context.Context, projectId string, zoneId string, rrSetId string) (*Message, error)
/*
@@ -395,6 +451,8 @@ type DefaultApi interface {
@param zoneId zone id
@param rrSetId record set id
@return ApiPartialUpdateRecordSetRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
PartialUpdateRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiPartialUpdateRecordSetRequest
/*
@@ -406,6 +464,7 @@ type DefaultApi interface {
@param rrSetId record set id
@return Message
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
PartialUpdateRecordSetExecute(ctx context.Context, projectId string, zoneId string, rrSetId string) (*Message, error)
/*
@@ -416,6 +475,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiPartialUpdateZoneRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
PartialUpdateZone(ctx context.Context, projectId string, zoneId string) ApiPartialUpdateZoneRequest
/*
@@ -426,6 +487,7 @@ type DefaultApi interface {
@param zoneId zone id
@return ZoneResponse
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
PartialUpdateZoneExecute(ctx context.Context, projectId string, zoneId string) (*ZoneResponse, error)
/*
@@ -437,6 +499,8 @@ type DefaultApi interface {
@param zoneId zone id
@param rrSetId record set id
@return ApiRestoreRecordSetRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
RestoreRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiRestoreRecordSetRequest
/*
@@ -448,6 +512,7 @@ type DefaultApi interface {
@param rrSetId record set id
@return Message
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
RestoreRecordSetExecute(ctx context.Context, projectId string, zoneId string, rrSetId string) (*Message, error)
/*
@@ -458,6 +523,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiRestoreZoneRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
RestoreZone(ctx context.Context, projectId string, zoneId string) ApiRestoreZoneRequest
/*
@@ -468,6 +535,7 @@ type DefaultApi interface {
@param zoneId zone id
@return Message
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
RestoreZoneExecute(ctx context.Context, projectId string, zoneId string) (*Message, error)
/*
@@ -478,6 +546,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiRetrieveZoneRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
RetrieveZone(ctx context.Context, projectId string, zoneId string) ApiRetrieveZoneRequest
/*
@@ -488,6 +558,7 @@ type DefaultApi interface {
@param zoneId zone id
@return Message
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
RetrieveZoneExecute(ctx context.Context, projectId string, zoneId string) (*Message, error)
/*
@@ -498,6 +569,8 @@ type DefaultApi interface {
@param projectId project id
@param zoneId zone id
@return ApiValidateMoveCodeRequest
+
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
ValidateMoveCode(ctx context.Context, projectId string, zoneId string) ApiValidateMoveCodeRequest
/*
@@ -508,287 +581,427 @@ type DefaultApi interface {
@param zoneId zone id
@return Message
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
*/
ValidateMoveCodeExecute(ctx context.Context, projectId string, zoneId string) (*Message, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiCloneZoneRequest interface {
// zone to clone
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CloneZonePayload(cloneZonePayload CloneZonePayload) ApiCloneZoneRequest
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*ZoneResponse, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiCreateLabelRequest interface {
// record set to create
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreateLabelPayload(createLabelPayload CreateLabelPayload) ApiCreateLabelRequest
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*CreateLabelResponse, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiCreateMoveCodeRequest interface {
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*MoveCodeResponse, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiCreateRecordSetRequest interface {
// record set to create
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreateRecordSetPayload(createRecordSetPayload CreateRecordSetPayload) ApiCreateRecordSetRequest
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*RecordSetResponse, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiCreateZoneRequest interface {
// zone to create
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreateZonePayload(createZonePayload CreateZonePayload) ApiCreateZoneRequest
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*ZoneResponse, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiDeleteLabelRequest interface {
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*DeleteLabelResponse, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiDeleteMoveCodeRequest interface {
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*Message, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiDeleteRecordSetRequest interface {
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*Message, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiDeleteZoneRequest interface {
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*Message, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiExportRecordSetsRequest interface {
// export configuration
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
ExportRecordSetsPayload(exportRecordSetsPayload ExportRecordSetsPayload) ApiExportRecordSetsRequest
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*ZoneDataExchange, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiGetRecordSetRequest interface {
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*RecordSetResponse, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiGetZoneRequest interface {
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*ZoneResponse, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiImportRecordSetsRequest interface {
// accepts all response bodies for the export endpoint
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
ImportRecordSetsPayload(importRecordSetsPayload ImportRecordSetsPayload) ApiImportRecordSetsRequest
// format of the data to import
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Format(format string) ApiImportRecordSetsRequest
// type of the zone import
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
ImportType(importType string) ApiImportRecordSetsRequest
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*ImportRecordSetsResponse, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiListLabelsRequest interface {
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*ListLabelsResponse, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiListRecordSetsRequest interface {
// page
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Page(page int32) ApiListRecordSetsRequest
// page size
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
PageSize(pageSize int32) ApiListRecordSetsRequest
// filter name equal
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
NameEq(nameEq string) ApiListRecordSetsRequest
// filter name like
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
NameLike(nameLike string) ApiListRecordSetsRequest
// filter type
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
TypeEq(typeEq string) ApiListRecordSetsRequest
// filter state
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
StateEq(stateEq string) ApiListRecordSetsRequest
// filter state
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
StateNeq(stateNeq string) ApiListRecordSetsRequest
// filter active equal
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
ActiveEq(activeEq bool) ApiListRecordSetsRequest
// filter creation started greater with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationStartedGt(creationStartedGt string) ApiListRecordSetsRequest
// filter creation started lesser with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationStartedLt(creationStartedLt string) ApiListRecordSetsRequest
// filter creation started greater equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationStartedGte(creationStartedGte string) ApiListRecordSetsRequest
// filter creation started lesser equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationStartedLte(creationStartedLte string) ApiListRecordSetsRequest
// filter creation finished greater with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationFinishedGt(creationFinishedGt string) ApiListRecordSetsRequest
// filter creation finished lesser with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationFinishedLt(creationFinishedLt string) ApiListRecordSetsRequest
// filter creation finished greater equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationFinishedGte(creationFinishedGte string) ApiListRecordSetsRequest
// filter creation finished lesser equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationFinishedLte(creationFinishedLte string) ApiListRecordSetsRequest
// filter update started greater with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateStartedGt(updateStartedGt string) ApiListRecordSetsRequest
// filter update started lesser with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateStartedLt(updateStartedLt string) ApiListRecordSetsRequest
// filter update started greater equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateStartedGte(updateStartedGte string) ApiListRecordSetsRequest
// filter update started lesser equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateStartedLte(updateStartedLte string) ApiListRecordSetsRequest
// filter update finished greater with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateFinishedGt(updateFinishedGt string) ApiListRecordSetsRequest
// filter update finished lesser with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateFinishedLt(updateFinishedLt string) ApiListRecordSetsRequest
// filter update finished greater equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateFinishedGte(updateFinishedGte string) ApiListRecordSetsRequest
// filter update finished lesser equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateFinishedLte(updateFinishedLte string) ApiListRecordSetsRequest
// order by name
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByName(orderByName string) ApiListRecordSetsRequest
// order by creationStarted
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByCreationStarted(orderByCreationStarted string) ApiListRecordSetsRequest
// order by creationFinished
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByCreationFinished(orderByCreationFinished string) ApiListRecordSetsRequest
// order by updateStarted
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByUpdateStarted(orderByUpdateStarted string) ApiListRecordSetsRequest
// order by updateFinished
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByUpdateFinished(orderByUpdateFinished string) ApiListRecordSetsRequest
// order by type
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByType(orderByType string) ApiListRecordSetsRequest
// order by state
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByState(orderByState string) ApiListRecordSetsRequest
// order by record count
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByRecordCount(orderByRecordCount string) ApiListRecordSetsRequest
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*ListRecordSetsResponse, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiListZonesRequest interface {
// page
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Page(page int32) ApiListZonesRequest
// page size
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
PageSize(pageSize int32) ApiListZonesRequest
// filter dns name equal
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
DnsNameEq(dnsNameEq string) ApiListZonesRequest
// filter dns name like
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
DnsNameLike(dnsNameLike string) ApiListZonesRequest
// filter type
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
TypeEq(typeEq string) ApiListZonesRequest
// filter name equal
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
NameEq(nameEq string) ApiListZonesRequest
// filter name not equal
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
NameNeq(nameNeq string) ApiListZonesRequest
// filter name like
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
NameLike(nameLike string) ApiListZonesRequest
// filter description equal
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
DescriptionEq(descriptionEq string) ApiListZonesRequest
// filter description not equal
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
DescriptionNeq(descriptionNeq string) ApiListZonesRequest
// filter description like
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
DescriptionLike(descriptionLike string) ApiListZonesRequest
// filter state
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
StateEq(stateEq string) ApiListZonesRequest
// filter state
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
StateNeq(stateNeq string) ApiListZonesRequest
// filter primary name server equal
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
PrimaryNameServerEq(primaryNameServerEq string) ApiListZonesRequest
// filter primary name server like
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
PrimaryNameServerLike(primaryNameServerLike string) ApiListZonesRequest
// filter reverse zone equal
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
IsReverseZoneEq(isReverseZoneEq bool) ApiListZonesRequest
// filter active equal
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
ActiveEq(activeEq bool) ApiListZonesRequest
// filter creation started greater with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationStartedGt(creationStartedGt string) ApiListZonesRequest
// filter creation started lesser with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationStartedLt(creationStartedLt string) ApiListZonesRequest
// filter creation started greater equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationStartedGte(creationStartedGte string) ApiListZonesRequest
// filter creation started lesser equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationStartedLte(creationStartedLte string) ApiListZonesRequest
// filter creation finished greater with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationFinishedGt(creationFinishedGt string) ApiListZonesRequest
// filter creation finished lesser with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationFinishedLt(creationFinishedLt string) ApiListZonesRequest
// filter creation finished greater equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationFinishedGte(creationFinishedGte string) ApiListZonesRequest
// filter creation finished lesser equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CreationFinishedLte(creationFinishedLte string) ApiListZonesRequest
// filter update started greater with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateStartedGt(updateStartedGt string) ApiListZonesRequest
// filter update started lesser with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateStartedLt(updateStartedLt string) ApiListZonesRequest
// filter update started greater equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateStartedGte(updateStartedGte string) ApiListZonesRequest
// filter update started lesser equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateStartedLte(updateStartedLte string) ApiListZonesRequest
// filter update finished greater with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateFinishedGt(updateFinishedGt string) ApiListZonesRequest
// filter update finished lesser with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateFinishedLt(updateFinishedLt string) ApiListZonesRequest
// filter update finished greater equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateFinishedGte(updateFinishedGte string) ApiListZonesRequest
// filter update finished lesser equal with utc timestamp
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
UpdateFinishedLte(updateFinishedLte string) ApiListZonesRequest
// filter zones according to the zone label keys.
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
LabelKeyEq(labelKeyEq []string) ApiListZonesRequest
// filter zones according to the zone label values.
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
LabelValueEq(labelValueEq []string) ApiListZonesRequest
// order by dns name
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByDnsName(orderByDnsName string) ApiListZonesRequest
// order by name
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByName(orderByName string) ApiListZonesRequest
// order by record count
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByRecordCount(orderByRecordCount string) ApiListZonesRequest
// order by type
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByType(orderByType string) ApiListZonesRequest
// order by description
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByDescription(orderByDescription string) ApiListZonesRequest
// order by creationStarted
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByCreationStarted(orderByCreationStarted string) ApiListZonesRequest
// order by creationFinished
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByCreationFinished(orderByCreationFinished string) ApiListZonesRequest
// order by updateStarted
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByUpdateStarted(orderByUpdateStarted string) ApiListZonesRequest
// order by updateFinished
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
OrderByUpdateFinished(orderByUpdateFinished string) ApiListZonesRequest
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*ListZonesResponse, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiMoveZoneRequest interface {
// information about the move
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
MoveZonePayload(moveZonePayload MoveZonePayload) ApiMoveZoneRequest
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*Message, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiPartialUpdateRecordRequest interface {
// rrset to update
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
PartialUpdateRecordPayload(partialUpdateRecordPayload PartialUpdateRecordPayload) ApiPartialUpdateRecordRequest
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*Message, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiPartialUpdateRecordSetRequest interface {
// record set to patch
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
PartialUpdateRecordSetPayload(partialUpdateRecordSetPayload PartialUpdateRecordSetPayload) ApiPartialUpdateRecordSetRequest
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*Message, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiPartialUpdateZoneRequest interface {
// zone to update
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
PartialUpdateZonePayload(partialUpdateZonePayload PartialUpdateZonePayload) ApiPartialUpdateZoneRequest
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*ZoneResponse, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiRestoreRecordSetRequest interface {
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*Message, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiRestoreZoneRequest interface {
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*Message, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiRetrieveZoneRequest interface {
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*Message, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ApiValidateMoveCodeRequest interface {
// information about the move
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
ValidateMoveCodePayload(validateMoveCodePayload ValidateMoveCodePayload) ApiValidateMoveCodeRequest
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
Execute() (*Message, error)
}
// DefaultApiService DefaultApi service
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DefaultApiService service
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZoneRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -798,12 +1011,13 @@ type CloneZoneRequest struct {
}
// zone to clone
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r CloneZoneRequest) CloneZonePayload(cloneZonePayload CloneZonePayload) ApiCloneZoneRequest {
r.cloneZonePayload = &cloneZonePayload
return r
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r CloneZoneRequest) Execute() (*ZoneResponse, error) {
var (
localVarHTTPMethod = http.MethodPost
@@ -956,7 +1170,7 @@ func (r CloneZoneRequest) Execute() (*ZoneResponse, error) {
/*
CloneZone: Clone an existing zone with all record sets to a new zone with a different name
-Clone an existing zone with all record sets to a new zone with a different name
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -972,6 +1186,7 @@ func (a *APIClient) CloneZone(ctx context.Context, projectId string, zoneId stri
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) CloneZoneExecute(ctx context.Context, projectId string, zoneId string) (*ZoneResponse, error) {
r := CloneZoneRequest{
apiService: a.defaultApi,
@@ -982,6 +1197,7 @@ func (a *APIClient) CloneZoneExecute(ctx context.Context, projectId string, zone
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -991,12 +1207,13 @@ type CreateLabelRequest struct {
}
// record set to create
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r CreateLabelRequest) CreateLabelPayload(createLabelPayload CreateLabelPayload) ApiCreateLabelRequest {
r.createLabelPayload = &createLabelPayload
return r
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r CreateLabelRequest) Execute() (*CreateLabelResponse, error) {
var (
localVarHTTPMethod = http.MethodPut
@@ -1138,7 +1355,7 @@ func (r CreateLabelRequest) Execute() (*CreateLabelResponse, error) {
/*
CreateLabel: Create or update label
-Create or update label
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -1154,6 +1371,7 @@ func (a *APIClient) CreateLabel(ctx context.Context, projectId string, zoneId st
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) CreateLabelExecute(ctx context.Context, projectId string, zoneId string) (*CreateLabelResponse, error) {
r := CreateLabelRequest{
apiService: a.defaultApi,
@@ -1164,6 +1382,7 @@ func (a *APIClient) CreateLabelExecute(ctx context.Context, projectId string, zo
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateMoveCodeRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -1171,6 +1390,7 @@ type CreateMoveCodeRequest struct {
zoneId string
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r CreateMoveCodeRequest) Execute() (*MoveCodeResponse, error) {
var (
localVarHTTPMethod = http.MethodPost
@@ -1307,7 +1527,7 @@ func (r CreateMoveCodeRequest) Execute() (*MoveCodeResponse, error) {
/*
CreateMoveCode: request a move code to move zone to another project
-move zone from one project to another
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -1323,6 +1543,7 @@ func (a *APIClient) CreateMoveCode(ctx context.Context, projectId string, zoneId
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) CreateMoveCodeExecute(ctx context.Context, projectId string, zoneId string) (*MoveCodeResponse, error) {
r := CreateMoveCodeRequest{
apiService: a.defaultApi,
@@ -1333,6 +1554,7 @@ func (a *APIClient) CreateMoveCodeExecute(ctx context.Context, projectId string,
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -1342,12 +1564,13 @@ type CreateRecordSetRequest struct {
}
// record set to create
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r CreateRecordSetRequest) CreateRecordSetPayload(createRecordSetPayload CreateRecordSetPayload) ApiCreateRecordSetRequest {
r.createRecordSetPayload = &createRecordSetPayload
return r
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r CreateRecordSetRequest) Execute() (*RecordSetResponse, error) {
var (
localVarHTTPMethod = http.MethodPost
@@ -1500,7 +1723,7 @@ func (r CreateRecordSetRequest) Execute() (*RecordSetResponse, error) {
/*
CreateRecordSet: Post record set
-Post record set
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -1516,6 +1739,7 @@ func (a *APIClient) CreateRecordSet(ctx context.Context, projectId string, zoneI
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) CreateRecordSetExecute(ctx context.Context, projectId string, zoneId string) (*RecordSetResponse, error) {
r := CreateRecordSetRequest{
apiService: a.defaultApi,
@@ -1526,6 +1750,7 @@ func (a *APIClient) CreateRecordSetExecute(ctx context.Context, projectId string
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZoneRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -1534,12 +1759,13 @@ type CreateZoneRequest struct {
}
// zone to create
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r CreateZoneRequest) CreateZonePayload(createZonePayload CreateZonePayload) ApiCreateZoneRequest {
r.createZonePayload = &createZonePayload
return r
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r CreateZoneRequest) Execute() (*ZoneResponse, error) {
var (
localVarHTTPMethod = http.MethodPost
@@ -1691,7 +1917,7 @@ func (r CreateZoneRequest) Execute() (*ZoneResponse, error) {
/*
CreateZone: Post create a new zone
-Post zone create a new zone
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -1705,6 +1931,7 @@ func (a *APIClient) CreateZone(ctx context.Context, projectId string) ApiCreateZ
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) CreateZoneExecute(ctx context.Context, projectId string) (*ZoneResponse, error) {
r := CreateZoneRequest{
apiService: a.defaultApi,
@@ -1714,6 +1941,7 @@ func (a *APIClient) CreateZoneExecute(ctx context.Context, projectId string) (*Z
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DeleteLabelRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -1722,6 +1950,7 @@ type DeleteLabelRequest struct {
key string
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r DeleteLabelRequest) Execute() (*DeleteLabelResponse, error) {
var (
localVarHTTPMethod = http.MethodDelete
@@ -1870,7 +2099,7 @@ func (r DeleteLabelRequest) Execute() (*DeleteLabelResponse, error) {
/*
DeleteLabel: Delete a label
-Delete a label
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -1888,6 +2117,7 @@ func (a *APIClient) DeleteLabel(ctx context.Context, projectId string, zoneId st
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) DeleteLabelExecute(ctx context.Context, projectId string, zoneId string, key string) (*DeleteLabelResponse, error) {
r := DeleteLabelRequest{
apiService: a.defaultApi,
@@ -1899,6 +2129,7 @@ func (a *APIClient) DeleteLabelExecute(ctx context.Context, projectId string, zo
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DeleteMoveCodeRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -1906,6 +2137,7 @@ type DeleteMoveCodeRequest struct {
zoneId string
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r DeleteMoveCodeRequest) Execute() (*Message, error) {
var (
localVarHTTPMethod = http.MethodDelete
@@ -2042,7 +2274,7 @@ func (r DeleteMoveCodeRequest) Execute() (*Message, error) {
/*
DeleteMoveCode: delete/invalidate a move code
-delete/invalidate a move code
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -2058,6 +2290,7 @@ func (a *APIClient) DeleteMoveCode(ctx context.Context, projectId string, zoneId
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) DeleteMoveCodeExecute(ctx context.Context, projectId string, zoneId string) (*Message, error) {
r := DeleteMoveCodeRequest{
apiService: a.defaultApi,
@@ -2068,6 +2301,7 @@ func (a *APIClient) DeleteMoveCodeExecute(ctx context.Context, projectId string,
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DeleteRecordSetRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -2076,6 +2310,7 @@ type DeleteRecordSetRequest struct {
rrSetId string
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r DeleteRecordSetRequest) Execute() (*Message, error) {
var (
localVarHTTPMethod = http.MethodDelete
@@ -2213,7 +2448,7 @@ func (r DeleteRecordSetRequest) Execute() (*Message, error) {
/*
DeleteRecordSet: Delete a record set
-Delete a record set
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -2231,6 +2466,7 @@ func (a *APIClient) DeleteRecordSet(ctx context.Context, projectId string, zoneI
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) DeleteRecordSetExecute(ctx context.Context, projectId string, zoneId string, rrSetId string) (*Message, error) {
r := DeleteRecordSetRequest{
apiService: a.defaultApi,
@@ -2242,6 +2478,7 @@ func (a *APIClient) DeleteRecordSetExecute(ctx context.Context, projectId string
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DeleteZoneRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -2249,6 +2486,7 @@ type DeleteZoneRequest struct {
zoneId string
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r DeleteZoneRequest) Execute() (*Message, error) {
var (
localVarHTTPMethod = http.MethodDelete
@@ -2385,7 +2623,7 @@ func (r DeleteZoneRequest) Execute() (*Message, error) {
/*
DeleteZone: Delete a zone
-Delete a zone
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -2401,6 +2639,7 @@ func (a *APIClient) DeleteZone(ctx context.Context, projectId string, zoneId str
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) DeleteZoneExecute(ctx context.Context, projectId string, zoneId string) (*Message, error) {
r := DeleteZoneRequest{
apiService: a.defaultApi,
@@ -2411,6 +2650,7 @@ func (a *APIClient) DeleteZoneExecute(ctx context.Context, projectId string, zon
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ExportRecordSetsRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -2420,12 +2660,13 @@ type ExportRecordSetsRequest struct {
}
// export configuration
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ExportRecordSetsRequest) ExportRecordSetsPayload(exportRecordSetsPayload ExportRecordSetsPayload) ApiExportRecordSetsRequest {
r.exportRecordSetsPayload = &exportRecordSetsPayload
return r
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ExportRecordSetsRequest) Execute() (*ZoneDataExchange, error) {
var (
localVarHTTPMethod = http.MethodPost
@@ -2556,7 +2797,7 @@ func (r ExportRecordSetsRequest) Execute() (*ZoneDataExchange, error) {
/*
ExportRecordSets: Export all records in a single zone
-Export Zone
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -2572,6 +2813,7 @@ func (a *APIClient) ExportRecordSets(ctx context.Context, projectId string, zone
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) ExportRecordSetsExecute(ctx context.Context, projectId string, zoneId string) (*ZoneDataExchange, error) {
r := ExportRecordSetsRequest{
apiService: a.defaultApi,
@@ -2582,6 +2824,7 @@ func (a *APIClient) ExportRecordSetsExecute(ctx context.Context, projectId strin
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type GetRecordSetRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -2590,6 +2833,7 @@ type GetRecordSetRequest struct {
rrSetId string
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r GetRecordSetRequest) Execute() (*RecordSetResponse, error) {
var (
localVarHTTPMethod = http.MethodGet
@@ -2727,7 +2971,7 @@ func (r GetRecordSetRequest) Execute() (*RecordSetResponse, error) {
/*
GetRecordSet: Get a single rrset
-Get rrset
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -2745,6 +2989,7 @@ func (a *APIClient) GetRecordSet(ctx context.Context, projectId string, zoneId s
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) GetRecordSetExecute(ctx context.Context, projectId string, zoneId string, rrSetId string) (*RecordSetResponse, error) {
r := GetRecordSetRequest{
apiService: a.defaultApi,
@@ -2756,6 +3001,7 @@ func (a *APIClient) GetRecordSetExecute(ctx context.Context, projectId string, z
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type GetZoneRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -2763,6 +3009,7 @@ type GetZoneRequest struct {
zoneId string
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r GetZoneRequest) Execute() (*ZoneResponse, error) {
var (
localVarHTTPMethod = http.MethodGet
@@ -2899,7 +3146,7 @@ func (r GetZoneRequest) Execute() (*ZoneResponse, error) {
/*
GetZone: Get a single zone
-Get zone
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -2915,6 +3162,7 @@ func (a *APIClient) GetZone(ctx context.Context, projectId string, zoneId string
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) GetZoneExecute(ctx context.Context, projectId string, zoneId string) (*ZoneResponse, error) {
r := GetZoneRequest{
apiService: a.defaultApi,
@@ -2925,6 +3173,7 @@ func (a *APIClient) GetZoneExecute(ctx context.Context, projectId string, zoneId
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportRecordSetsRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -2936,26 +3185,27 @@ type ImportRecordSetsRequest struct {
}
// accepts all response bodies for the export endpoint
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ImportRecordSetsRequest) ImportRecordSetsPayload(importRecordSetsPayload ImportRecordSetsPayload) ApiImportRecordSetsRequest {
r.importRecordSetsPayload = &importRecordSetsPayload
return r
}
// format of the data to import
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ImportRecordSetsRequest) Format(format string) ApiImportRecordSetsRequest {
r.format = &format
return r
}
// type of the zone import
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ImportRecordSetsRequest) ImportType(importType string) ApiImportRecordSetsRequest {
r.importType = &importType
return r
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ImportRecordSetsRequest) Execute() (*ImportRecordSetsResponse, error) {
var (
localVarHTTPMethod = http.MethodPost
@@ -3103,7 +3353,7 @@ func (r ImportRecordSetsRequest) Execute() (*ImportRecordSetsResponse, error) {
/*
ImportRecordSets: Imports a zone
-Imports a zone and overwrites/deletes/inserts all desired records
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -3119,6 +3369,7 @@ func (a *APIClient) ImportRecordSets(ctx context.Context, projectId string, zone
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) ImportRecordSetsExecute(ctx context.Context, projectId string, zoneId string) (*ImportRecordSetsResponse, error) {
r := ImportRecordSetsRequest{
apiService: a.defaultApi,
@@ -3129,6 +3380,7 @@ func (a *APIClient) ImportRecordSetsExecute(ctx context.Context, projectId strin
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListLabelsRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -3136,6 +3388,7 @@ type ListLabelsRequest struct {
zoneId string
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListLabelsRequest) Execute() (*ListLabelsResponse, error) {
var (
localVarHTTPMethod = http.MethodGet
@@ -3283,7 +3536,7 @@ func (r ListLabelsRequest) Execute() (*ListLabelsResponse, error) {
/*
ListLabels: Get all labels
-All Labels
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -3299,6 +3552,7 @@ func (a *APIClient) ListLabels(ctx context.Context, projectId string, zoneId str
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) ListLabelsExecute(ctx context.Context, projectId string, zoneId string) (*ListLabelsResponse, error) {
r := ListLabelsRequest{
apiService: a.defaultApi,
@@ -3309,6 +3563,7 @@ func (a *APIClient) ListLabelsExecute(ctx context.Context, projectId string, zon
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -3349,229 +3604,230 @@ type ListRecordSetsRequest struct {
}
// page
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) Page(page int32) ApiListRecordSetsRequest {
r.page = &page
return r
}
// page size
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) PageSize(pageSize int32) ApiListRecordSetsRequest {
r.pageSize = &pageSize
return r
}
// filter name equal
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) NameEq(nameEq string) ApiListRecordSetsRequest {
r.nameEq = &nameEq
return r
}
// filter name like
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) NameLike(nameLike string) ApiListRecordSetsRequest {
r.nameLike = &nameLike
return r
}
// filter type
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) TypeEq(typeEq string) ApiListRecordSetsRequest {
r.typeEq = &typeEq
return r
}
// filter state
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) StateEq(stateEq string) ApiListRecordSetsRequest {
r.stateEq = &stateEq
return r
}
// filter state
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) StateNeq(stateNeq string) ApiListRecordSetsRequest {
r.stateNeq = &stateNeq
return r
}
// filter active equal
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) ActiveEq(activeEq bool) ApiListRecordSetsRequest {
r.activeEq = &activeEq
return r
}
// filter creation started greater with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) CreationStartedGt(creationStartedGt string) ApiListRecordSetsRequest {
r.creationStartedGt = &creationStartedGt
return r
}
// filter creation started lesser with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) CreationStartedLt(creationStartedLt string) ApiListRecordSetsRequest {
r.creationStartedLt = &creationStartedLt
return r
}
// filter creation started greater equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) CreationStartedGte(creationStartedGte string) ApiListRecordSetsRequest {
r.creationStartedGte = &creationStartedGte
return r
}
// filter creation started lesser equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) CreationStartedLte(creationStartedLte string) ApiListRecordSetsRequest {
r.creationStartedLte = &creationStartedLte
return r
}
// filter creation finished greater with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) CreationFinishedGt(creationFinishedGt string) ApiListRecordSetsRequest {
r.creationFinishedGt = &creationFinishedGt
return r
}
// filter creation finished lesser with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) CreationFinishedLt(creationFinishedLt string) ApiListRecordSetsRequest {
r.creationFinishedLt = &creationFinishedLt
return r
}
// filter creation finished greater equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) CreationFinishedGte(creationFinishedGte string) ApiListRecordSetsRequest {
r.creationFinishedGte = &creationFinishedGte
return r
}
// filter creation finished lesser equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) CreationFinishedLte(creationFinishedLte string) ApiListRecordSetsRequest {
r.creationFinishedLte = &creationFinishedLte
return r
}
// filter update started greater with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) UpdateStartedGt(updateStartedGt string) ApiListRecordSetsRequest {
r.updateStartedGt = &updateStartedGt
return r
}
// filter update started lesser with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) UpdateStartedLt(updateStartedLt string) ApiListRecordSetsRequest {
r.updateStartedLt = &updateStartedLt
return r
}
// filter update started greater equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) UpdateStartedGte(updateStartedGte string) ApiListRecordSetsRequest {
r.updateStartedGte = &updateStartedGte
return r
}
// filter update started lesser equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) UpdateStartedLte(updateStartedLte string) ApiListRecordSetsRequest {
r.updateStartedLte = &updateStartedLte
return r
}
// filter update finished greater with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) UpdateFinishedGt(updateFinishedGt string) ApiListRecordSetsRequest {
r.updateFinishedGt = &updateFinishedGt
return r
}
// filter update finished lesser with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) UpdateFinishedLt(updateFinishedLt string) ApiListRecordSetsRequest {
r.updateFinishedLt = &updateFinishedLt
return r
}
// filter update finished greater equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) UpdateFinishedGte(updateFinishedGte string) ApiListRecordSetsRequest {
r.updateFinishedGte = &updateFinishedGte
return r
}
// filter update finished lesser equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) UpdateFinishedLte(updateFinishedLte string) ApiListRecordSetsRequest {
r.updateFinishedLte = &updateFinishedLte
return r
}
// order by name
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) OrderByName(orderByName string) ApiListRecordSetsRequest {
r.orderByName = &orderByName
return r
}
// order by creationStarted
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) OrderByCreationStarted(orderByCreationStarted string) ApiListRecordSetsRequest {
r.orderByCreationStarted = &orderByCreationStarted
return r
}
// order by creationFinished
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) OrderByCreationFinished(orderByCreationFinished string) ApiListRecordSetsRequest {
r.orderByCreationFinished = &orderByCreationFinished
return r
}
// order by updateStarted
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) OrderByUpdateStarted(orderByUpdateStarted string) ApiListRecordSetsRequest {
r.orderByUpdateStarted = &orderByUpdateStarted
return r
}
// order by updateFinished
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) OrderByUpdateFinished(orderByUpdateFinished string) ApiListRecordSetsRequest {
r.orderByUpdateFinished = &orderByUpdateFinished
return r
}
// order by type
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) OrderByType(orderByType string) ApiListRecordSetsRequest {
r.orderByType = &orderByType
return r
}
// order by state
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) OrderByState(orderByState string) ApiListRecordSetsRequest {
r.orderByState = &orderByState
return r
}
// order by record count
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) OrderByRecordCount(orderByRecordCount string) ApiListRecordSetsRequest {
r.orderByRecordCount = &orderByRecordCount
return r
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListRecordSetsRequest) Execute() (*ListRecordSetsResponse, error) {
var (
localVarHTTPMethod = http.MethodGet
@@ -3804,7 +4060,7 @@ func (r ListRecordSetsRequest) Execute() (*ListRecordSetsResponse, error) {
/*
ListRecordSets: All get selected RRSets
-All RRSet
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -3820,6 +4076,7 @@ func (a *APIClient) ListRecordSets(ctx context.Context, projectId string, zoneId
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) ListRecordSetsExecute(ctx context.Context, projectId string, zoneId string) (*ListRecordSetsResponse, error) {
r := ListRecordSetsRequest{
apiService: a.defaultApi,
@@ -3830,6 +4087,7 @@ func (a *APIClient) ListRecordSetsExecute(ctx context.Context, projectId string,
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -3881,313 +4139,314 @@ type ListZonesRequest struct {
}
// page
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) Page(page int32) ApiListZonesRequest {
r.page = &page
return r
}
// page size
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) PageSize(pageSize int32) ApiListZonesRequest {
r.pageSize = &pageSize
return r
}
// filter dns name equal
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) DnsNameEq(dnsNameEq string) ApiListZonesRequest {
r.dnsNameEq = &dnsNameEq
return r
}
// filter dns name like
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) DnsNameLike(dnsNameLike string) ApiListZonesRequest {
r.dnsNameLike = &dnsNameLike
return r
}
// filter type
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) TypeEq(typeEq string) ApiListZonesRequest {
r.typeEq = &typeEq
return r
}
// filter name equal
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) NameEq(nameEq string) ApiListZonesRequest {
r.nameEq = &nameEq
return r
}
// filter name not equal
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) NameNeq(nameNeq string) ApiListZonesRequest {
r.nameNeq = &nameNeq
return r
}
// filter name like
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) NameLike(nameLike string) ApiListZonesRequest {
r.nameLike = &nameLike
return r
}
// filter description equal
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) DescriptionEq(descriptionEq string) ApiListZonesRequest {
r.descriptionEq = &descriptionEq
return r
}
// filter description not equal
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) DescriptionNeq(descriptionNeq string) ApiListZonesRequest {
r.descriptionNeq = &descriptionNeq
return r
}
// filter description like
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) DescriptionLike(descriptionLike string) ApiListZonesRequest {
r.descriptionLike = &descriptionLike
return r
}
// filter state
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) StateEq(stateEq string) ApiListZonesRequest {
r.stateEq = &stateEq
return r
}
// filter state
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) StateNeq(stateNeq string) ApiListZonesRequest {
r.stateNeq = &stateNeq
return r
}
// filter primary name server equal
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) PrimaryNameServerEq(primaryNameServerEq string) ApiListZonesRequest {
r.primaryNameServerEq = &primaryNameServerEq
return r
}
// filter primary name server like
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) PrimaryNameServerLike(primaryNameServerLike string) ApiListZonesRequest {
r.primaryNameServerLike = &primaryNameServerLike
return r
}
// filter reverse zone equal
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) IsReverseZoneEq(isReverseZoneEq bool) ApiListZonesRequest {
r.isReverseZoneEq = &isReverseZoneEq
return r
}
// filter active equal
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) ActiveEq(activeEq bool) ApiListZonesRequest {
r.activeEq = &activeEq
return r
}
// filter creation started greater with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) CreationStartedGt(creationStartedGt string) ApiListZonesRequest {
r.creationStartedGt = &creationStartedGt
return r
}
// filter creation started lesser with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) CreationStartedLt(creationStartedLt string) ApiListZonesRequest {
r.creationStartedLt = &creationStartedLt
return r
}
// filter creation started greater equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) CreationStartedGte(creationStartedGte string) ApiListZonesRequest {
r.creationStartedGte = &creationStartedGte
return r
}
// filter creation started lesser equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) CreationStartedLte(creationStartedLte string) ApiListZonesRequest {
r.creationStartedLte = &creationStartedLte
return r
}
// filter creation finished greater with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) CreationFinishedGt(creationFinishedGt string) ApiListZonesRequest {
r.creationFinishedGt = &creationFinishedGt
return r
}
// filter creation finished lesser with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) CreationFinishedLt(creationFinishedLt string) ApiListZonesRequest {
r.creationFinishedLt = &creationFinishedLt
return r
}
// filter creation finished greater equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) CreationFinishedGte(creationFinishedGte string) ApiListZonesRequest {
r.creationFinishedGte = &creationFinishedGte
return r
}
// filter creation finished lesser equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) CreationFinishedLte(creationFinishedLte string) ApiListZonesRequest {
r.creationFinishedLte = &creationFinishedLte
return r
}
// filter update started greater with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) UpdateStartedGt(updateStartedGt string) ApiListZonesRequest {
r.updateStartedGt = &updateStartedGt
return r
}
// filter update started lesser with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) UpdateStartedLt(updateStartedLt string) ApiListZonesRequest {
r.updateStartedLt = &updateStartedLt
return r
}
// filter update started greater equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) UpdateStartedGte(updateStartedGte string) ApiListZonesRequest {
r.updateStartedGte = &updateStartedGte
return r
}
// filter update started lesser equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) UpdateStartedLte(updateStartedLte string) ApiListZonesRequest {
r.updateStartedLte = &updateStartedLte
return r
}
// filter update finished greater with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) UpdateFinishedGt(updateFinishedGt string) ApiListZonesRequest {
r.updateFinishedGt = &updateFinishedGt
return r
}
// filter update finished lesser with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) UpdateFinishedLt(updateFinishedLt string) ApiListZonesRequest {
r.updateFinishedLt = &updateFinishedLt
return r
}
// filter update finished greater equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) UpdateFinishedGte(updateFinishedGte string) ApiListZonesRequest {
r.updateFinishedGte = &updateFinishedGte
return r
}
// filter update finished lesser equal with utc timestamp
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) UpdateFinishedLte(updateFinishedLte string) ApiListZonesRequest {
r.updateFinishedLte = &updateFinishedLte
return r
}
// filter zones according to the zone label keys.
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) LabelKeyEq(labelKeyEq []string) ApiListZonesRequest {
r.labelKeyEq = &labelKeyEq
return r
}
// filter zones according to the zone label values.
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) LabelValueEq(labelValueEq []string) ApiListZonesRequest {
r.labelValueEq = &labelValueEq
return r
}
// order by dns name
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) OrderByDnsName(orderByDnsName string) ApiListZonesRequest {
r.orderByDnsName = &orderByDnsName
return r
}
// order by name
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) OrderByName(orderByName string) ApiListZonesRequest {
r.orderByName = &orderByName
return r
}
// order by record count
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) OrderByRecordCount(orderByRecordCount string) ApiListZonesRequest {
r.orderByRecordCount = &orderByRecordCount
return r
}
// order by type
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) OrderByType(orderByType string) ApiListZonesRequest {
r.orderByType = &orderByType
return r
}
// order by description
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) OrderByDescription(orderByDescription string) ApiListZonesRequest {
r.orderByDescription = &orderByDescription
return r
}
// order by creationStarted
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) OrderByCreationStarted(orderByCreationStarted string) ApiListZonesRequest {
r.orderByCreationStarted = &orderByCreationStarted
return r
}
// order by creationFinished
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) OrderByCreationFinished(orderByCreationFinished string) ApiListZonesRequest {
r.orderByCreationFinished = &orderByCreationFinished
return r
}
// order by updateStarted
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) OrderByUpdateStarted(orderByUpdateStarted string) ApiListZonesRequest {
r.orderByUpdateStarted = &orderByUpdateStarted
return r
}
// order by updateFinished
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) OrderByUpdateFinished(orderByUpdateFinished string) ApiListZonesRequest {
r.orderByUpdateFinished = &orderByUpdateFinished
return r
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ListZonesRequest) Execute() (*ListZonesResponse, error) {
var (
localVarHTTPMethod = http.MethodGet
@@ -4455,7 +4714,7 @@ func (r ListZonesRequest) Execute() (*ListZonesResponse, error) {
/*
ListZones: All get selected zones
-All zone
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -4469,6 +4728,7 @@ func (a *APIClient) ListZones(ctx context.Context, projectId string) ApiListZone
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) ListZonesExecute(ctx context.Context, projectId string) (*ListZonesResponse, error) {
r := ListZonesRequest{
apiService: a.defaultApi,
@@ -4478,6 +4738,7 @@ func (a *APIClient) ListZonesExecute(ctx context.Context, projectId string) (*Li
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveZoneRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -4486,12 +4747,13 @@ type MoveZoneRequest struct {
}
// information about the move
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r MoveZoneRequest) MoveZonePayload(moveZonePayload MoveZonePayload) ApiMoveZoneRequest {
r.moveZonePayload = &moveZonePayload
return r
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r MoveZoneRequest) Execute() (*Message, error) {
var (
localVarHTTPMethod = http.MethodPost
@@ -4632,7 +4894,7 @@ func (r MoveZoneRequest) Execute() (*Message, error) {
/*
MoveZone: move zone from one project to another
-move zone from one project to another
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -4646,6 +4908,7 @@ func (a *APIClient) MoveZone(ctx context.Context, projectId string) ApiMoveZoneR
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) MoveZoneExecute(ctx context.Context, projectId string) (*Message, error) {
r := MoveZoneRequest{
apiService: a.defaultApi,
@@ -4655,6 +4918,7 @@ func (a *APIClient) MoveZoneExecute(ctx context.Context, projectId string) (*Mes
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -4665,12 +4929,13 @@ type PartialUpdateRecordRequest struct {
}
// rrset to update
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r PartialUpdateRecordRequest) PartialUpdateRecordPayload(partialUpdateRecordPayload PartialUpdateRecordPayload) ApiPartialUpdateRecordRequest {
r.partialUpdateRecordPayload = &partialUpdateRecordPayload
return r
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r PartialUpdateRecordRequest) Execute() (*Message, error) {
var (
localVarHTTPMethod = http.MethodPatch
@@ -4813,7 +5078,7 @@ func (r PartialUpdateRecordRequest) Execute() (*Message, error) {
/*
PartialUpdateRecord: PatchRecords updates a record in a rrset
-PatchRecords rrset updates a record in a rrset
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -4831,6 +5096,7 @@ func (a *APIClient) PartialUpdateRecord(ctx context.Context, projectId string, z
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) PartialUpdateRecordExecute(ctx context.Context, projectId string, zoneId string, rrSetId string) (*Message, error) {
r := PartialUpdateRecordRequest{
apiService: a.defaultApi,
@@ -4842,6 +5108,7 @@ func (a *APIClient) PartialUpdateRecordExecute(ctx context.Context, projectId st
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordSetRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -4852,12 +5119,13 @@ type PartialUpdateRecordSetRequest struct {
}
// record set to patch
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r PartialUpdateRecordSetRequest) PartialUpdateRecordSetPayload(partialUpdateRecordSetPayload PartialUpdateRecordSetPayload) ApiPartialUpdateRecordSetRequest {
r.partialUpdateRecordSetPayload = &partialUpdateRecordSetPayload
return r
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r PartialUpdateRecordSetRequest) Execute() (*Message, error) {
var (
localVarHTTPMethod = http.MethodPatch
@@ -5000,7 +5268,7 @@ func (r PartialUpdateRecordSetRequest) Execute() (*Message, error) {
/*
PartialUpdateRecordSet: Patch updates a record set
-Patch record set
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -5018,6 +5286,7 @@ func (a *APIClient) PartialUpdateRecordSet(ctx context.Context, projectId string
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) PartialUpdateRecordSetExecute(ctx context.Context, projectId string, zoneId string, rrSetId string) (*Message, error) {
r := PartialUpdateRecordSetRequest{
apiService: a.defaultApi,
@@ -5029,6 +5298,7 @@ func (a *APIClient) PartialUpdateRecordSetExecute(ctx context.Context, projectId
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZoneRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -5038,12 +5308,13 @@ type PartialUpdateZoneRequest struct {
}
// zone to update
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r PartialUpdateZoneRequest) PartialUpdateZonePayload(partialUpdateZonePayload PartialUpdateZonePayload) ApiPartialUpdateZoneRequest {
r.partialUpdateZonePayload = &partialUpdateZonePayload
return r
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r PartialUpdateZoneRequest) Execute() (*ZoneResponse, error) {
var (
localVarHTTPMethod = http.MethodPatch
@@ -5185,7 +5456,7 @@ func (r PartialUpdateZoneRequest) Execute() (*ZoneResponse, error) {
/*
PartialUpdateZone: Patch update an existing zone
-Patch update an existing zone
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -5201,6 +5472,7 @@ func (a *APIClient) PartialUpdateZone(ctx context.Context, projectId string, zon
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) PartialUpdateZoneExecute(ctx context.Context, projectId string, zoneId string) (*ZoneResponse, error) {
r := PartialUpdateZoneRequest{
apiService: a.defaultApi,
@@ -5211,6 +5483,7 @@ func (a *APIClient) PartialUpdateZoneExecute(ctx context.Context, projectId stri
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RestoreRecordSetRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -5219,6 +5492,7 @@ type RestoreRecordSetRequest struct {
rrSetId string
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r RestoreRecordSetRequest) Execute() (*Message, error) {
var (
localVarHTTPMethod = http.MethodPost
@@ -5356,7 +5630,7 @@ func (r RestoreRecordSetRequest) Execute() (*Message, error) {
/*
RestoreRecordSet: Restore record set
-Restore record set
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -5374,6 +5648,7 @@ func (a *APIClient) RestoreRecordSet(ctx context.Context, projectId string, zone
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) RestoreRecordSetExecute(ctx context.Context, projectId string, zoneId string, rrSetId string) (*Message, error) {
r := RestoreRecordSetRequest{
apiService: a.defaultApi,
@@ -5385,6 +5660,7 @@ func (a *APIClient) RestoreRecordSetExecute(ctx context.Context, projectId strin
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RestoreZoneRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -5392,6 +5668,7 @@ type RestoreZoneRequest struct {
zoneId string
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r RestoreZoneRequest) Execute() (*Message, error) {
var (
localVarHTTPMethod = http.MethodPost
@@ -5517,7 +5794,7 @@ func (r RestoreZoneRequest) Execute() (*Message, error) {
/*
RestoreZone: Restore an inactive zone
-Restore an inactive zone
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -5533,6 +5810,7 @@ func (a *APIClient) RestoreZone(ctx context.Context, projectId string, zoneId st
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) RestoreZoneExecute(ctx context.Context, projectId string, zoneId string) (*Message, error) {
r := RestoreZoneRequest{
apiService: a.defaultApi,
@@ -5543,6 +5821,7 @@ func (a *APIClient) RestoreZoneExecute(ctx context.Context, projectId string, zo
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RetrieveZoneRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -5550,6 +5829,7 @@ type RetrieveZoneRequest struct {
zoneId string
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r RetrieveZoneRequest) Execute() (*Message, error) {
var (
localVarHTTPMethod = http.MethodPost
@@ -5675,7 +5955,7 @@ func (r RetrieveZoneRequest) Execute() (*Message, error) {
/*
RetrieveZone: Queue secondary zone for a zone transfer request.
-The zone transfer will usually be performed within a few seconds, and will be tried only once by randomly choosing one of the configured primary name servers. If that single attempt fails, no further attempt will be performed. The zone will be transferred to our inbound name server regardless of its serial, but the internal zone distribution is only reliable if the zone's serial on the customer's primary name server is higher than on the STACKIT name server.
NOTE: As said above, this endpoint is not a reliable way to decrease a zone's serial. To guarantee consistent zones over all STACKIT location, the zone's serial MUST always be increased on zone changes.
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -5691,6 +5971,7 @@ func (a *APIClient) RetrieveZone(ctx context.Context, projectId string, zoneId s
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) RetrieveZoneExecute(ctx context.Context, projectId string, zoneId string) (*Message, error) {
r := RetrieveZoneRequest{
apiService: a.defaultApi,
@@ -5701,6 +5982,7 @@ func (a *APIClient) RetrieveZoneExecute(ctx context.Context, projectId string, z
return r.Execute()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ValidateMoveCodeRequest struct {
ctx context.Context
apiService *DefaultApiService
@@ -5710,12 +5992,13 @@ type ValidateMoveCodeRequest struct {
}
// information about the move
-
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ValidateMoveCodeRequest) ValidateMoveCodePayload(validateMoveCodePayload ValidateMoveCodePayload) ApiValidateMoveCodeRequest {
r.validateMoveCodePayload = &validateMoveCodePayload
return r
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (r ValidateMoveCodeRequest) Execute() (*Message, error) {
var (
localVarHTTPMethod = http.MethodPost
@@ -5846,7 +6129,7 @@ func (r ValidateMoveCodeRequest) Execute() (*Message, error) {
/*
ValidateMoveCode: validate the move code is still valid for the zone
-validate the move code is still valid for the zone
+Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@@ -5862,6 +6145,7 @@ func (a *APIClient) ValidateMoveCode(ctx context.Context, projectId string, zone
}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (a *APIClient) ValidateMoveCodeExecute(ctx context.Context, projectId string, zoneId string) (*Message, error) {
r := ValidateMoveCodeRequest{
apiService: a.defaultApi,
diff --git a/services/dns/client.go b/services/dns/client.go
index 589191ffe..5ba052e52 100644
--- a/services/dns/client.go
+++ b/services/dns/client.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -44,18 +45,21 @@ var (
// APIClient manages communication with the STACKIT DNS API API v1.0
// In most cases there should be only one, shared, APIClient.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type APIClient struct {
cfg *config.Configuration
common service // Reuse a single struct instead of allocating one for each service on the heap.
defaultApi *DefaultApiService
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type service struct {
client DefaultApi
}
// NewAPIClient creates a new API client.
// Optionally receives configuration options
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) {
cfg := NewConfiguration()
@@ -147,6 +151,7 @@ func typeCheckParameter(obj interface{}, expected string, name string) error {
return nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func ParameterValueToString(obj interface{}, key string) string {
if reflect.TypeOf(obj).Kind() != reflect.Ptr {
return fmt.Sprintf("%v", obj)
@@ -285,6 +290,7 @@ func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
// Allow modification of underlying config for alternate implementations and testing
// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (c *APIClient) GetConfig() *config.Configuration {
return c.cfg
}
@@ -595,6 +601,7 @@ func parseCacheControl(headers http.Header) cacheControl {
}
// CacheExpires helper function to determine remaining time before repeating a request.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func CacheExpires(r *http.Response) time.Time {
// Figure out when the cache expires.
var expires time.Time
diff --git a/services/dns/configuration.go b/services/dns/configuration.go
index 38d21e14e..9aa4b8331 100644
--- a/services/dns/configuration.go
+++ b/services/dns/configuration.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -15,6 +16,7 @@ import (
)
// NewConfiguration returns a new Configuration object
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewConfiguration() *config.Configuration {
cfg := &config.Configuration{
DefaultHeader: make(map[string]string),
diff --git a/services/dns/go.mod b/services/dns/go.mod
index 86c6e206d..0d02ee263 100644
--- a/services/dns/go.mod
+++ b/services/dns/go.mod
@@ -4,7 +4,7 @@ go 1.21
require (
github.com/google/go-cmp v0.7.0
- github.com/stackitcloud/stackit-sdk-go/core v0.21.1
+ github.com/stackitcloud/stackit-sdk-go/core v0.22.0
)
require (
diff --git a/services/dns/go.sum b/services/dns/go.sum
index ca103c909..195011dd5 100644
--- a/services/dns/go.sum
+++ b/services/dns/go.sum
@@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
-github.com/stackitcloud/stackit-sdk-go/core v0.21.1 h1:Y/PcAgM7DPYMNqum0MLv4n1mF9ieuevzcCIZYQfm3Ts=
-github.com/stackitcloud/stackit-sdk-go/core v0.21.1/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI=
+github.com/stackitcloud/stackit-sdk-go/core v0.22.0 h1:6rViz7GnNwXSh51Lur5xuDzO8EWSZfN9J0HvEkBKq6c=
+github.com/stackitcloud/stackit-sdk-go/core v0.22.0/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI=
diff --git a/services/dns/model_clone_zone_payload.go b/services/dns/model_clone_zone_payload.go
index 5af0b98c8..827829694 100644
--- a/services/dns/model_clone_zone_payload.go
+++ b/services/dns/model_clone_zone_payload.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,10 +23,16 @@ var _ MappedNullable = &CloneZonePayload{}
*/
// isBoolean
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadgetAdjustRecordsAttributeType = *bool
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadgetAdjustRecordsArgType = bool
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadgetAdjustRecordsRetType = bool
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCloneZonePayloadgetAdjustRecordsAttributeTypeOk(arg CloneZonePayloadgetAdjustRecordsAttributeType) (ret CloneZonePayloadgetAdjustRecordsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -33,6 +40,7 @@ func getCloneZonePayloadgetAdjustRecordsAttributeTypeOk(arg CloneZonePayloadgetA
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCloneZonePayloadgetAdjustRecordsAttributeType(arg *CloneZonePayloadgetAdjustRecordsAttributeType, val CloneZonePayloadgetAdjustRecordsRetType) {
*arg = &val
}
@@ -42,8 +50,10 @@ func setCloneZonePayloadgetAdjustRecordsAttributeType(arg *CloneZonePayloadgetAd
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetDescriptionAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCloneZonePayloadGetDescriptionAttributeTypeOk(arg CloneZonePayloadGetDescriptionAttributeType) (ret CloneZonePayloadGetDescriptionRetType, ok bool) {
if arg == nil {
return ret, false
@@ -51,11 +61,15 @@ func getCloneZonePayloadGetDescriptionAttributeTypeOk(arg CloneZonePayloadGetDes
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCloneZonePayloadGetDescriptionAttributeType(arg *CloneZonePayloadGetDescriptionAttributeType, val CloneZonePayloadGetDescriptionRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetDescriptionArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetDescriptionRetType = string
/*
@@ -63,8 +77,10 @@ type CloneZonePayloadGetDescriptionRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetDnsNameAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCloneZonePayloadGetDnsNameAttributeTypeOk(arg CloneZonePayloadGetDnsNameAttributeType) (ret CloneZonePayloadGetDnsNameRetType, ok bool) {
if arg == nil {
return ret, false
@@ -72,11 +88,15 @@ func getCloneZonePayloadGetDnsNameAttributeTypeOk(arg CloneZonePayloadGetDnsName
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCloneZonePayloadGetDnsNameAttributeType(arg *CloneZonePayloadGetDnsNameAttributeType, val CloneZonePayloadGetDnsNameRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetDnsNameArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetDnsNameRetType = string
/*
@@ -84,8 +104,10 @@ type CloneZonePayloadGetDnsNameRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetNameAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCloneZonePayloadGetNameAttributeTypeOk(arg CloneZonePayloadGetNameAttributeType) (ret CloneZonePayloadGetNameRetType, ok bool) {
if arg == nil {
return ret, false
@@ -93,14 +115,19 @@ func getCloneZonePayloadGetNameAttributeTypeOk(arg CloneZonePayloadGetNameAttrib
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCloneZonePayloadGetNameAttributeType(arg *CloneZonePayloadGetNameAttributeType, val CloneZonePayloadGetNameRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetNameArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetNameRetType = string
// CloneZonePayload metadata to clone a zone.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayload struct {
// Adjust record set content and replace the dns name of the original zone with the new dns name of the cloned zone
AdjustRecords CloneZonePayloadgetAdjustRecordsAttributeType `json:"adjustRecords,omitempty"`
@@ -113,12 +140,14 @@ type CloneZonePayload struct {
Name CloneZonePayloadGetNameAttributeType `json:"name,omitempty"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _CloneZonePayload CloneZonePayload
// NewCloneZonePayload instantiates a new CloneZonePayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCloneZonePayload(dnsName CloneZonePayloadGetDnsNameArgType) *CloneZonePayload {
this := CloneZonePayload{}
setCloneZonePayloadGetDnsNameAttributeType(&this.DnsName, dnsName)
@@ -128,12 +157,14 @@ func NewCloneZonePayload(dnsName CloneZonePayloadGetDnsNameArgType) *CloneZonePa
// NewCloneZonePayloadWithDefaults instantiates a new CloneZonePayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCloneZonePayloadWithDefaults() *CloneZonePayload {
this := CloneZonePayload{}
return &this
}
// GetAdjustRecords returns the AdjustRecords field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetAdjustRecords() (res CloneZonePayloadgetAdjustRecordsRetType) {
res, _ = o.GetAdjustRecordsOk()
return
@@ -141,22 +172,26 @@ func (o *CloneZonePayload) GetAdjustRecords() (res CloneZonePayloadgetAdjustReco
// GetAdjustRecordsOk returns a tuple with the AdjustRecords field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetAdjustRecordsOk() (ret CloneZonePayloadgetAdjustRecordsRetType, ok bool) {
return getCloneZonePayloadgetAdjustRecordsAttributeTypeOk(o.AdjustRecords)
}
// HasAdjustRecords returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) HasAdjustRecords() bool {
_, ok := o.GetAdjustRecordsOk()
return ok
}
// SetAdjustRecords gets a reference to the given bool and assigns it to the AdjustRecords field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) SetAdjustRecords(v CloneZonePayloadgetAdjustRecordsRetType) {
setCloneZonePayloadgetAdjustRecordsAttributeType(&o.AdjustRecords, v)
}
// GetDescription returns the Description field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetDescription() (res CloneZonePayloadGetDescriptionRetType) {
res, _ = o.GetDescriptionOk()
return
@@ -164,22 +199,26 @@ func (o *CloneZonePayload) GetDescription() (res CloneZonePayloadGetDescriptionR
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetDescriptionOk() (ret CloneZonePayloadGetDescriptionRetType, ok bool) {
return getCloneZonePayloadGetDescriptionAttributeTypeOk(o.Description)
}
// HasDescription returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) HasDescription() bool {
_, ok := o.GetDescriptionOk()
return ok
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) SetDescription(v CloneZonePayloadGetDescriptionRetType) {
setCloneZonePayloadGetDescriptionAttributeType(&o.Description, v)
}
// GetDnsName returns the DnsName field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetDnsName() (ret CloneZonePayloadGetDnsNameRetType) {
ret, _ = o.GetDnsNameOk()
return ret
@@ -187,16 +226,19 @@ func (o *CloneZonePayload) GetDnsName() (ret CloneZonePayloadGetDnsNameRetType)
// GetDnsNameOk returns a tuple with the DnsName field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetDnsNameOk() (ret CloneZonePayloadGetDnsNameRetType, ok bool) {
return getCloneZonePayloadGetDnsNameAttributeTypeOk(o.DnsName)
}
// SetDnsName sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) SetDnsName(v CloneZonePayloadGetDnsNameRetType) {
setCloneZonePayloadGetDnsNameAttributeType(&o.DnsName, v)
}
// GetName returns the Name field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetName() (res CloneZonePayloadGetNameRetType) {
res, _ = o.GetNameOk()
return
@@ -204,21 +246,25 @@ func (o *CloneZonePayload) GetName() (res CloneZonePayloadGetNameRetType) {
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetNameOk() (ret CloneZonePayloadGetNameRetType, ok bool) {
return getCloneZonePayloadGetNameAttributeTypeOk(o.Name)
}
// HasName returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) HasName() bool {
_, ok := o.GetNameOk()
return ok
}
// SetName gets a reference to the given string and assigns it to the Name field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) SetName(v CloneZonePayloadGetNameRetType) {
setCloneZonePayloadGetNameAttributeType(&o.Name, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o CloneZonePayload) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getCloneZonePayloadgetAdjustRecordsAttributeTypeOk(o.AdjustRecords); ok {
@@ -236,37 +282,45 @@ func (o CloneZonePayload) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableCloneZonePayload struct {
value *CloneZonePayload
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCloneZonePayload) Get() *CloneZonePayload {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCloneZonePayload) Set(val *CloneZonePayload) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCloneZonePayload) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCloneZonePayload) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableCloneZonePayload(val *CloneZonePayload) *NullableCloneZonePayload {
return &NullableCloneZonePayload{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCloneZonePayload) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCloneZonePayload) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_create_label_payload.go b/services/dns/model_create_label_payload.go
index 5737d2ad6..35a9b9af5 100644
--- a/services/dns/model_create_label_payload.go
+++ b/services/dns/model_create_label_payload.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &CreateLabelPayload{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelPayloadGetKeyAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateLabelPayloadGetKeyAttributeTypeOk(arg CreateLabelPayloadGetKeyAttributeType) (ret CreateLabelPayloadGetKeyRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getCreateLabelPayloadGetKeyAttributeTypeOk(arg CreateLabelPayloadGetKeyAttr
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateLabelPayloadGetKeyAttributeType(arg *CreateLabelPayloadGetKeyAttributeType, val CreateLabelPayloadGetKeyRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelPayloadGetKeyArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelPayloadGetKeyRetType = string
/*
@@ -43,8 +50,10 @@ type CreateLabelPayloadGetKeyRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelPayloadGetValueAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateLabelPayloadGetValueAttributeTypeOk(arg CreateLabelPayloadGetValueAttributeType) (ret CreateLabelPayloadGetValueRetType, ok bool) {
if arg == nil {
return ret, false
@@ -52,14 +61,19 @@ func getCreateLabelPayloadGetValueAttributeTypeOk(arg CreateLabelPayloadGetValue
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateLabelPayloadGetValueAttributeType(arg *CreateLabelPayloadGetValueAttributeType, val CreateLabelPayloadGetValueRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelPayloadGetValueArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelPayloadGetValueRetType = string
// CreateLabelPayload struct for CreateLabelPayload
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelPayload struct {
// REQUIRED
Key CreateLabelPayloadGetKeyAttributeType `json:"key" required:"true"`
@@ -67,12 +81,14 @@ type CreateLabelPayload struct {
Value CreateLabelPayloadGetValueAttributeType `json:"value" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _CreateLabelPayload CreateLabelPayload
// NewCreateLabelPayload instantiates a new CreateLabelPayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCreateLabelPayload(key CreateLabelPayloadGetKeyArgType, value CreateLabelPayloadGetValueArgType) *CreateLabelPayload {
this := CreateLabelPayload{}
setCreateLabelPayloadGetKeyAttributeType(&this.Key, key)
@@ -83,12 +99,14 @@ func NewCreateLabelPayload(key CreateLabelPayloadGetKeyArgType, value CreateLabe
// NewCreateLabelPayloadWithDefaults instantiates a new CreateLabelPayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCreateLabelPayloadWithDefaults() *CreateLabelPayload {
this := CreateLabelPayload{}
return &this
}
// GetKey returns the Key field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateLabelPayload) GetKey() (ret CreateLabelPayloadGetKeyRetType) {
ret, _ = o.GetKeyOk()
return ret
@@ -96,16 +114,19 @@ func (o *CreateLabelPayload) GetKey() (ret CreateLabelPayloadGetKeyRetType) {
// GetKeyOk returns a tuple with the Key field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateLabelPayload) GetKeyOk() (ret CreateLabelPayloadGetKeyRetType, ok bool) {
return getCreateLabelPayloadGetKeyAttributeTypeOk(o.Key)
}
// SetKey sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateLabelPayload) SetKey(v CreateLabelPayloadGetKeyRetType) {
setCreateLabelPayloadGetKeyAttributeType(&o.Key, v)
}
// GetValue returns the Value field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateLabelPayload) GetValue() (ret CreateLabelPayloadGetValueRetType) {
ret, _ = o.GetValueOk()
return ret
@@ -113,15 +134,18 @@ func (o *CreateLabelPayload) GetValue() (ret CreateLabelPayloadGetValueRetType)
// GetValueOk returns a tuple with the Value field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateLabelPayload) GetValueOk() (ret CreateLabelPayloadGetValueRetType, ok bool) {
return getCreateLabelPayloadGetValueAttributeTypeOk(o.Value)
}
// SetValue sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateLabelPayload) SetValue(v CreateLabelPayloadGetValueRetType) {
setCreateLabelPayloadGetValueAttributeType(&o.Value, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o CreateLabelPayload) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getCreateLabelPayloadGetKeyAttributeTypeOk(o.Key); ok {
@@ -133,37 +157,45 @@ func (o CreateLabelPayload) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableCreateLabelPayload struct {
value *CreateLabelPayload
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateLabelPayload) Get() *CreateLabelPayload {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateLabelPayload) Set(val *CreateLabelPayload) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateLabelPayload) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateLabelPayload) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableCreateLabelPayload(val *CreateLabelPayload) *NullableCreateLabelPayload {
return &NullableCreateLabelPayload{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateLabelPayload) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateLabelPayload) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_create_label_response.go b/services/dns/model_create_label_response.go
index e1f57a30f..53ba7812c 100644
--- a/services/dns/model_create_label_response.go
+++ b/services/dns/model_create_label_response.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,10 +23,16 @@ var _ MappedNullable = &CreateLabelResponse{}
*/
// isModel
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelResponseGetLabelAttributeType = *Label
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelResponseGetLabelArgType = Label
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelResponseGetLabelRetType = Label
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateLabelResponseGetLabelAttributeTypeOk(arg CreateLabelResponseGetLabelAttributeType) (ret CreateLabelResponseGetLabelRetType, ok bool) {
if arg == nil {
return ret, false
@@ -33,6 +40,7 @@ func getCreateLabelResponseGetLabelAttributeTypeOk(arg CreateLabelResponseGetLab
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateLabelResponseGetLabelAttributeType(arg *CreateLabelResponseGetLabelAttributeType, val CreateLabelResponseGetLabelRetType) {
*arg = &val
}
@@ -42,8 +50,10 @@ func setCreateLabelResponseGetLabelAttributeType(arg *CreateLabelResponseGetLabe
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelResponseGetMessageAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateLabelResponseGetMessageAttributeTypeOk(arg CreateLabelResponseGetMessageAttributeType) (ret CreateLabelResponseGetMessageRetType, ok bool) {
if arg == nil {
return ret, false
@@ -51,14 +61,19 @@ func getCreateLabelResponseGetMessageAttributeTypeOk(arg CreateLabelResponseGetM
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateLabelResponseGetMessageAttributeType(arg *CreateLabelResponseGetMessageAttributeType, val CreateLabelResponseGetMessageRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelResponseGetMessageArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelResponseGetMessageRetType = string
// CreateLabelResponse ResponseUpsertLabel.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateLabelResponse struct {
Label CreateLabelResponseGetLabelAttributeType `json:"label,omitempty"`
Message CreateLabelResponseGetMessageAttributeType `json:"message,omitempty"`
@@ -68,6 +83,7 @@ type CreateLabelResponse struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCreateLabelResponse() *CreateLabelResponse {
this := CreateLabelResponse{}
return &this
@@ -76,12 +92,14 @@ func NewCreateLabelResponse() *CreateLabelResponse {
// NewCreateLabelResponseWithDefaults instantiates a new CreateLabelResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCreateLabelResponseWithDefaults() *CreateLabelResponse {
this := CreateLabelResponse{}
return &this
}
// GetLabel returns the Label field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateLabelResponse) GetLabel() (res CreateLabelResponseGetLabelRetType) {
res, _ = o.GetLabelOk()
return
@@ -89,22 +107,26 @@ func (o *CreateLabelResponse) GetLabel() (res CreateLabelResponseGetLabelRetType
// GetLabelOk returns a tuple with the Label field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateLabelResponse) GetLabelOk() (ret CreateLabelResponseGetLabelRetType, ok bool) {
return getCreateLabelResponseGetLabelAttributeTypeOk(o.Label)
}
// HasLabel returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateLabelResponse) HasLabel() bool {
_, ok := o.GetLabelOk()
return ok
}
// SetLabel gets a reference to the given Label and assigns it to the Label field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateLabelResponse) SetLabel(v CreateLabelResponseGetLabelRetType) {
setCreateLabelResponseGetLabelAttributeType(&o.Label, v)
}
// GetMessage returns the Message field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateLabelResponse) GetMessage() (res CreateLabelResponseGetMessageRetType) {
res, _ = o.GetMessageOk()
return
@@ -112,21 +134,25 @@ func (o *CreateLabelResponse) GetMessage() (res CreateLabelResponseGetMessageRet
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateLabelResponse) GetMessageOk() (ret CreateLabelResponseGetMessageRetType, ok bool) {
return getCreateLabelResponseGetMessageAttributeTypeOk(o.Message)
}
// HasMessage returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateLabelResponse) HasMessage() bool {
_, ok := o.GetMessageOk()
return ok
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateLabelResponse) SetMessage(v CreateLabelResponseGetMessageRetType) {
setCreateLabelResponseGetMessageAttributeType(&o.Message, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o CreateLabelResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getCreateLabelResponseGetLabelAttributeTypeOk(o.Label); ok {
@@ -138,37 +164,45 @@ func (o CreateLabelResponse) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableCreateLabelResponse struct {
value *CreateLabelResponse
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateLabelResponse) Get() *CreateLabelResponse {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateLabelResponse) Set(val *CreateLabelResponse) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateLabelResponse) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateLabelResponse) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableCreateLabelResponse(val *CreateLabelResponse) *NullableCreateLabelResponse {
return &NullableCreateLabelResponse{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateLabelResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateLabelResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_create_record_set_payload.go b/services/dns/model_create_record_set_payload.go
index 66908aff4..1b6e22405 100644
--- a/services/dns/model_create_record_set_payload.go
+++ b/services/dns/model_create_record_set_payload.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -23,8 +24,10 @@ var _ MappedNullable = &CreateRecordSetPayload{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetCommentAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateRecordSetPayloadGetCommentAttributeTypeOk(arg CreateRecordSetPayloadGetCommentAttributeType) (ret CreateRecordSetPayloadGetCommentRetType, ok bool) {
if arg == nil {
return ret, false
@@ -32,11 +35,15 @@ func getCreateRecordSetPayloadGetCommentAttributeTypeOk(arg CreateRecordSetPaylo
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateRecordSetPayloadGetCommentAttributeType(arg *CreateRecordSetPayloadGetCommentAttributeType, val CreateRecordSetPayloadGetCommentRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetCommentArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetCommentRetType = string
/*
@@ -44,8 +51,10 @@ type CreateRecordSetPayloadGetCommentRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetNameAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateRecordSetPayloadGetNameAttributeTypeOk(arg CreateRecordSetPayloadGetNameAttributeType) (ret CreateRecordSetPayloadGetNameRetType, ok bool) {
if arg == nil {
return ret, false
@@ -53,11 +62,15 @@ func getCreateRecordSetPayloadGetNameAttributeTypeOk(arg CreateRecordSetPayloadG
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateRecordSetPayloadGetNameAttributeType(arg *CreateRecordSetPayloadGetNameAttributeType, val CreateRecordSetPayloadGetNameRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetNameArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetNameRetType = string
/*
@@ -65,10 +78,16 @@ type CreateRecordSetPayloadGetNameRetType = string
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetRecordsAttributeType = *[]RecordPayload
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetRecordsArgType = []RecordPayload
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetRecordsRetType = []RecordPayload
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateRecordSetPayloadGetRecordsAttributeTypeOk(arg CreateRecordSetPayloadGetRecordsAttributeType) (ret CreateRecordSetPayloadGetRecordsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -76,6 +95,7 @@ func getCreateRecordSetPayloadGetRecordsAttributeTypeOk(arg CreateRecordSetPaylo
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateRecordSetPayloadGetRecordsAttributeType(arg *CreateRecordSetPayloadGetRecordsAttributeType, val CreateRecordSetPayloadGetRecordsRetType) {
*arg = &val
}
@@ -85,10 +105,16 @@ func setCreateRecordSetPayloadGetRecordsAttributeType(arg *CreateRecordSetPayloa
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetTtlAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetTtlArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetTtlRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateRecordSetPayloadGetTtlAttributeTypeOk(arg CreateRecordSetPayloadGetTtlAttributeType) (ret CreateRecordSetPayloadGetTtlRetType, ok bool) {
if arg == nil {
return ret, false
@@ -96,6 +122,7 @@ func getCreateRecordSetPayloadGetTtlAttributeTypeOk(arg CreateRecordSetPayloadGe
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateRecordSetPayloadGetTtlAttributeType(arg *CreateRecordSetPayloadGetTtlAttributeType, val CreateRecordSetPayloadGetTtlRetType) {
*arg = &val
}
@@ -108,38 +135,65 @@ func setCreateRecordSetPayloadGetTtlAttributeType(arg *CreateRecordSetPayloadGet
// CreateRecordSetPayloadTypes record set type
// value type for enums
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadTypes string
// List of Type
const (
- CREATERECORDSETPAYLOADTYPE_A CreateRecordSetPayloadTypes = "A"
- CREATERECORDSETPAYLOADTYPE_AAAA CreateRecordSetPayloadTypes = "AAAA"
- CREATERECORDSETPAYLOADTYPE_SOA CreateRecordSetPayloadTypes = "SOA"
- CREATERECORDSETPAYLOADTYPE_CNAME CreateRecordSetPayloadTypes = "CNAME"
- CREATERECORDSETPAYLOADTYPE_NS CreateRecordSetPayloadTypes = "NS"
- CREATERECORDSETPAYLOADTYPE_MX CreateRecordSetPayloadTypes = "MX"
- CREATERECORDSETPAYLOADTYPE_TXT CreateRecordSetPayloadTypes = "TXT"
- CREATERECORDSETPAYLOADTYPE_SRV CreateRecordSetPayloadTypes = "SRV"
- CREATERECORDSETPAYLOADTYPE_PTR CreateRecordSetPayloadTypes = "PTR"
- CREATERECORDSETPAYLOADTYPE_ALIAS CreateRecordSetPayloadTypes = "ALIAS"
- CREATERECORDSETPAYLOADTYPE_DNAME CreateRecordSetPayloadTypes = "DNAME"
- CREATERECORDSETPAYLOADTYPE_CAA CreateRecordSetPayloadTypes = "CAA"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_A CreateRecordSetPayloadTypes = "A"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_AAAA CreateRecordSetPayloadTypes = "AAAA"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_SOA CreateRecordSetPayloadTypes = "SOA"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_CNAME CreateRecordSetPayloadTypes = "CNAME"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_NS CreateRecordSetPayloadTypes = "NS"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_MX CreateRecordSetPayloadTypes = "MX"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_TXT CreateRecordSetPayloadTypes = "TXT"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_SRV CreateRecordSetPayloadTypes = "SRV"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_PTR CreateRecordSetPayloadTypes = "PTR"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_ALIAS CreateRecordSetPayloadTypes = "ALIAS"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_DNAME CreateRecordSetPayloadTypes = "DNAME"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_CAA CreateRecordSetPayloadTypes = "CAA"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CREATERECORDSETPAYLOADTYPE_DNSKEY CreateRecordSetPayloadTypes = "DNSKEY"
- CREATERECORDSETPAYLOADTYPE_DS CreateRecordSetPayloadTypes = "DS"
- CREATERECORDSETPAYLOADTYPE_LOC CreateRecordSetPayloadTypes = "LOC"
- CREATERECORDSETPAYLOADTYPE_NAPTR CreateRecordSetPayloadTypes = "NAPTR"
- CREATERECORDSETPAYLOADTYPE_SSHFP CreateRecordSetPayloadTypes = "SSHFP"
- CREATERECORDSETPAYLOADTYPE_TLSA CreateRecordSetPayloadTypes = "TLSA"
- CREATERECORDSETPAYLOADTYPE_URI CreateRecordSetPayloadTypes = "URI"
- CREATERECORDSETPAYLOADTYPE_CERT CreateRecordSetPayloadTypes = "CERT"
- CREATERECORDSETPAYLOADTYPE_SVCB CreateRecordSetPayloadTypes = "SVCB"
- CREATERECORDSETPAYLOADTYPE_TYPE CreateRecordSetPayloadTypes = "TYPE"
- CREATERECORDSETPAYLOADTYPE_CSYNC CreateRecordSetPayloadTypes = "CSYNC"
- CREATERECORDSETPAYLOADTYPE_HINFO CreateRecordSetPayloadTypes = "HINFO"
- CREATERECORDSETPAYLOADTYPE_HTTPS CreateRecordSetPayloadTypes = "HTTPS"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_DS CreateRecordSetPayloadTypes = "DS"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_LOC CreateRecordSetPayloadTypes = "LOC"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_NAPTR CreateRecordSetPayloadTypes = "NAPTR"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_SSHFP CreateRecordSetPayloadTypes = "SSHFP"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_TLSA CreateRecordSetPayloadTypes = "TLSA"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_URI CreateRecordSetPayloadTypes = "URI"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_CERT CreateRecordSetPayloadTypes = "CERT"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_SVCB CreateRecordSetPayloadTypes = "SVCB"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_TYPE CreateRecordSetPayloadTypes = "TYPE"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_CSYNC CreateRecordSetPayloadTypes = "CSYNC"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_HINFO CreateRecordSetPayloadTypes = "HINFO"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATERECORDSETPAYLOADTYPE_HTTPS CreateRecordSetPayloadTypes = "HTTPS"
)
// All allowed values of CreateRecordSetPayload enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
var AllowedCreateRecordSetPayloadTypesEnumValues = []CreateRecordSetPayloadTypes{
"A",
"AAAA",
@@ -168,6 +222,7 @@ var AllowedCreateRecordSetPayloadTypesEnumValues = []CreateRecordSetPayloadTypes
"HTTPS",
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *CreateRecordSetPayloadTypes) UnmarshalJSON(src []byte) error {
// use a type alias to prevent infinite recursion during unmarshal,
// see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers
@@ -195,6 +250,7 @@ func (v *CreateRecordSetPayloadTypes) UnmarshalJSON(src []byte) error {
// NewCreateRecordSetPayloadTypesFromValue returns a pointer to a valid CreateRecordSetPayloadTypes
// for the value passed as argument, or an error if the value passed is not allowed by the enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCreateRecordSetPayloadTypesFromValue(v CreateRecordSetPayloadTypes) (*CreateRecordSetPayloadTypes, error) {
ev := CreateRecordSetPayloadTypes(v)
if ev.IsValid() {
@@ -205,6 +261,7 @@ func NewCreateRecordSetPayloadTypesFromValue(v CreateRecordSetPayloadTypes) (*Cr
}
// IsValid return true if the value is valid for the enum, false otherwise
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v CreateRecordSetPayloadTypes) IsValid() bool {
for _, existing := range AllowedCreateRecordSetPayloadTypesEnumValues {
if existing == v {
@@ -215,50 +272,65 @@ func (v CreateRecordSetPayloadTypes) IsValid() bool {
}
// Ptr returns reference to TypeTypes value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v CreateRecordSetPayloadTypes) Ptr() *CreateRecordSetPayloadTypes {
return &v
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableCreateRecordSetPayloadTypes struct {
value *CreateRecordSetPayloadTypes
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateRecordSetPayloadTypes) Get() *CreateRecordSetPayloadTypes {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateRecordSetPayloadTypes) Set(val *CreateRecordSetPayloadTypes) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateRecordSetPayloadTypes) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateRecordSetPayloadTypes) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableCreateRecordSetPayloadTypes(val *CreateRecordSetPayloadTypes) *NullableCreateRecordSetPayloadTypes {
return &NullableCreateRecordSetPayloadTypes{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateRecordSetPayloadTypes) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateRecordSetPayloadTypes) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetTypeAttributeType = *CreateRecordSetPayloadTypes
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetTypeArgType = CreateRecordSetPayloadTypes
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayloadGetTypeRetType = CreateRecordSetPayloadTypes
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateRecordSetPayloadGetTypeAttributeTypeOk(arg CreateRecordSetPayloadGetTypeAttributeType) (ret CreateRecordSetPayloadGetTypeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -266,11 +338,13 @@ func getCreateRecordSetPayloadGetTypeAttributeTypeOk(arg CreateRecordSetPayloadG
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateRecordSetPayloadGetTypeAttributeType(arg *CreateRecordSetPayloadGetTypeAttributeType, val CreateRecordSetPayloadGetTypeRetType) {
*arg = &val
}
// CreateRecordSetPayload RRSetPost for rr set info.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateRecordSetPayload struct {
// user comment
Comment CreateRecordSetPayloadGetCommentAttributeType `json:"comment,omitempty"`
@@ -288,12 +362,14 @@ type CreateRecordSetPayload struct {
Type CreateRecordSetPayloadGetTypeAttributeType `json:"type" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _CreateRecordSetPayload CreateRecordSetPayload
// NewCreateRecordSetPayload instantiates a new CreateRecordSetPayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCreateRecordSetPayload(name CreateRecordSetPayloadGetNameArgType, records CreateRecordSetPayloadGetRecordsArgType, types CreateRecordSetPayloadGetTypeArgType) *CreateRecordSetPayload {
this := CreateRecordSetPayload{}
setCreateRecordSetPayloadGetNameAttributeType(&this.Name, name)
@@ -305,12 +381,14 @@ func NewCreateRecordSetPayload(name CreateRecordSetPayloadGetNameArgType, record
// NewCreateRecordSetPayloadWithDefaults instantiates a new CreateRecordSetPayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCreateRecordSetPayloadWithDefaults() *CreateRecordSetPayload {
this := CreateRecordSetPayload{}
return &this
}
// GetComment returns the Comment field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) GetComment() (res CreateRecordSetPayloadGetCommentRetType) {
res, _ = o.GetCommentOk()
return
@@ -318,22 +396,26 @@ func (o *CreateRecordSetPayload) GetComment() (res CreateRecordSetPayloadGetComm
// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) GetCommentOk() (ret CreateRecordSetPayloadGetCommentRetType, ok bool) {
return getCreateRecordSetPayloadGetCommentAttributeTypeOk(o.Comment)
}
// HasComment returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) HasComment() bool {
_, ok := o.GetCommentOk()
return ok
}
// SetComment gets a reference to the given string and assigns it to the Comment field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) SetComment(v CreateRecordSetPayloadGetCommentRetType) {
setCreateRecordSetPayloadGetCommentAttributeType(&o.Comment, v)
}
// GetName returns the Name field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) GetName() (ret CreateRecordSetPayloadGetNameRetType) {
ret, _ = o.GetNameOk()
return ret
@@ -341,16 +423,19 @@ func (o *CreateRecordSetPayload) GetName() (ret CreateRecordSetPayloadGetNameRet
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) GetNameOk() (ret CreateRecordSetPayloadGetNameRetType, ok bool) {
return getCreateRecordSetPayloadGetNameAttributeTypeOk(o.Name)
}
// SetName sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) SetName(v CreateRecordSetPayloadGetNameRetType) {
setCreateRecordSetPayloadGetNameAttributeType(&o.Name, v)
}
// GetRecords returns the Records field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) GetRecords() (ret CreateRecordSetPayloadGetRecordsRetType) {
ret, _ = o.GetRecordsOk()
return ret
@@ -358,16 +443,19 @@ func (o *CreateRecordSetPayload) GetRecords() (ret CreateRecordSetPayloadGetReco
// GetRecordsOk returns a tuple with the Records field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) GetRecordsOk() (ret CreateRecordSetPayloadGetRecordsRetType, ok bool) {
return getCreateRecordSetPayloadGetRecordsAttributeTypeOk(o.Records)
}
// SetRecords sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) SetRecords(v CreateRecordSetPayloadGetRecordsRetType) {
setCreateRecordSetPayloadGetRecordsAttributeType(&o.Records, v)
}
// GetTtl returns the Ttl field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) GetTtl() (res CreateRecordSetPayloadGetTtlRetType) {
res, _ = o.GetTtlOk()
return
@@ -375,22 +463,26 @@ func (o *CreateRecordSetPayload) GetTtl() (res CreateRecordSetPayloadGetTtlRetTy
// GetTtlOk returns a tuple with the Ttl field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) GetTtlOk() (ret CreateRecordSetPayloadGetTtlRetType, ok bool) {
return getCreateRecordSetPayloadGetTtlAttributeTypeOk(o.Ttl)
}
// HasTtl returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) HasTtl() bool {
_, ok := o.GetTtlOk()
return ok
}
// SetTtl gets a reference to the given int64 and assigns it to the Ttl field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) SetTtl(v CreateRecordSetPayloadGetTtlRetType) {
setCreateRecordSetPayloadGetTtlAttributeType(&o.Ttl, v)
}
// GetType returns the Type field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) GetType() (ret CreateRecordSetPayloadGetTypeRetType) {
ret, _ = o.GetTypeOk()
return ret
@@ -398,15 +490,18 @@ func (o *CreateRecordSetPayload) GetType() (ret CreateRecordSetPayloadGetTypeRet
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) GetTypeOk() (ret CreateRecordSetPayloadGetTypeRetType, ok bool) {
return getCreateRecordSetPayloadGetTypeAttributeTypeOk(o.Type)
}
// SetType sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateRecordSetPayload) SetType(v CreateRecordSetPayloadGetTypeRetType) {
setCreateRecordSetPayloadGetTypeAttributeType(&o.Type, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o CreateRecordSetPayload) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getCreateRecordSetPayloadGetCommentAttributeTypeOk(o.Comment); ok {
@@ -427,37 +522,45 @@ func (o CreateRecordSetPayload) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableCreateRecordSetPayload struct {
value *CreateRecordSetPayload
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateRecordSetPayload) Get() *CreateRecordSetPayload {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateRecordSetPayload) Set(val *CreateRecordSetPayload) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateRecordSetPayload) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateRecordSetPayload) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableCreateRecordSetPayload(val *CreateRecordSetPayload) *NullableCreateRecordSetPayload {
return &NullableCreateRecordSetPayload{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateRecordSetPayload) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateRecordSetPayload) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_create_zone_payload.go b/services/dns/model_create_zone_payload.go
index 3f4e137eb..e85bd42ef 100644
--- a/services/dns/model_create_zone_payload.go
+++ b/services/dns/model_create_zone_payload.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -23,8 +24,10 @@ var _ MappedNullable = &CreateZonePayload{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetAclAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadGetAclAttributeTypeOk(arg CreateZonePayloadGetAclAttributeType) (ret CreateZonePayloadGetAclRetType, ok bool) {
if arg == nil {
return ret, false
@@ -32,11 +35,15 @@ func getCreateZonePayloadGetAclAttributeTypeOk(arg CreateZonePayloadGetAclAttrib
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadGetAclAttributeType(arg *CreateZonePayloadGetAclAttributeType, val CreateZonePayloadGetAclRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetAclArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetAclRetType = string
/*
@@ -44,8 +51,10 @@ type CreateZonePayloadGetAclRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetContactEmailAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadGetContactEmailAttributeTypeOk(arg CreateZonePayloadGetContactEmailAttributeType) (ret CreateZonePayloadGetContactEmailRetType, ok bool) {
if arg == nil {
return ret, false
@@ -53,11 +62,15 @@ func getCreateZonePayloadGetContactEmailAttributeTypeOk(arg CreateZonePayloadGet
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadGetContactEmailAttributeType(arg *CreateZonePayloadGetContactEmailAttributeType, val CreateZonePayloadGetContactEmailRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetContactEmailArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetContactEmailRetType = string
/*
@@ -65,10 +78,16 @@ type CreateZonePayloadGetContactEmailRetType = string
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetDefaultTTLAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetDefaultTTLArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetDefaultTTLRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadGetDefaultTTLAttributeTypeOk(arg CreateZonePayloadGetDefaultTTLAttributeType) (ret CreateZonePayloadGetDefaultTTLRetType, ok bool) {
if arg == nil {
return ret, false
@@ -76,6 +95,7 @@ func getCreateZonePayloadGetDefaultTTLAttributeTypeOk(arg CreateZonePayloadGetDe
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadGetDefaultTTLAttributeType(arg *CreateZonePayloadGetDefaultTTLAttributeType, val CreateZonePayloadGetDefaultTTLRetType) {
*arg = &val
}
@@ -85,8 +105,10 @@ func setCreateZonePayloadGetDefaultTTLAttributeType(arg *CreateZonePayloadGetDef
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetDescriptionAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadGetDescriptionAttributeTypeOk(arg CreateZonePayloadGetDescriptionAttributeType) (ret CreateZonePayloadGetDescriptionRetType, ok bool) {
if arg == nil {
return ret, false
@@ -94,11 +116,15 @@ func getCreateZonePayloadGetDescriptionAttributeTypeOk(arg CreateZonePayloadGetD
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadGetDescriptionAttributeType(arg *CreateZonePayloadGetDescriptionAttributeType, val CreateZonePayloadGetDescriptionRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetDescriptionArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetDescriptionRetType = string
/*
@@ -106,8 +132,10 @@ type CreateZonePayloadGetDescriptionRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetDnsNameAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadGetDnsNameAttributeTypeOk(arg CreateZonePayloadGetDnsNameAttributeType) (ret CreateZonePayloadGetDnsNameRetType, ok bool) {
if arg == nil {
return ret, false
@@ -115,11 +143,15 @@ func getCreateZonePayloadGetDnsNameAttributeTypeOk(arg CreateZonePayloadGetDnsNa
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadGetDnsNameAttributeType(arg *CreateZonePayloadGetDnsNameAttributeType, val CreateZonePayloadGetDnsNameRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetDnsNameArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetDnsNameRetType = string
/*
@@ -127,10 +159,16 @@ type CreateZonePayloadGetDnsNameRetType = string
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetExpireTimeAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetExpireTimeArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetExpireTimeRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadGetExpireTimeAttributeTypeOk(arg CreateZonePayloadGetExpireTimeAttributeType) (ret CreateZonePayloadGetExpireTimeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -138,6 +176,7 @@ func getCreateZonePayloadGetExpireTimeAttributeTypeOk(arg CreateZonePayloadGetEx
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadGetExpireTimeAttributeType(arg *CreateZonePayloadGetExpireTimeAttributeType, val CreateZonePayloadGetExpireTimeRetType) {
*arg = &val
}
@@ -147,10 +186,16 @@ func setCreateZonePayloadGetExpireTimeAttributeType(arg *CreateZonePayloadGetExp
*/
// isModel
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetExtensionsAttributeType = *CreateZonePayloadExtensions
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetExtensionsArgType = CreateZonePayloadExtensions
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetExtensionsRetType = CreateZonePayloadExtensions
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadGetExtensionsAttributeTypeOk(arg CreateZonePayloadGetExtensionsAttributeType) (ret CreateZonePayloadGetExtensionsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -158,6 +203,7 @@ func getCreateZonePayloadGetExtensionsAttributeTypeOk(arg CreateZonePayloadGetEx
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadGetExtensionsAttributeType(arg *CreateZonePayloadGetExtensionsAttributeType, val CreateZonePayloadGetExtensionsRetType) {
*arg = &val
}
@@ -167,10 +213,16 @@ func setCreateZonePayloadGetExtensionsAttributeType(arg *CreateZonePayloadGetExt
*/
// isBoolean
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadgetIsReverseZoneAttributeType = *bool
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadgetIsReverseZoneArgType = bool
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadgetIsReverseZoneRetType = bool
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadgetIsReverseZoneAttributeTypeOk(arg CreateZonePayloadgetIsReverseZoneAttributeType) (ret CreateZonePayloadgetIsReverseZoneRetType, ok bool) {
if arg == nil {
return ret, false
@@ -178,6 +230,7 @@ func getCreateZonePayloadgetIsReverseZoneAttributeTypeOk(arg CreateZonePayloadge
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadgetIsReverseZoneAttributeType(arg *CreateZonePayloadgetIsReverseZoneAttributeType, val CreateZonePayloadgetIsReverseZoneRetType) {
*arg = &val
}
@@ -187,8 +240,10 @@ func setCreateZonePayloadgetIsReverseZoneAttributeType(arg *CreateZonePayloadget
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetNameAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadGetNameAttributeTypeOk(arg CreateZonePayloadGetNameAttributeType) (ret CreateZonePayloadGetNameRetType, ok bool) {
if arg == nil {
return ret, false
@@ -196,11 +251,15 @@ func getCreateZonePayloadGetNameAttributeTypeOk(arg CreateZonePayloadGetNameAttr
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadGetNameAttributeType(arg *CreateZonePayloadGetNameAttributeType, val CreateZonePayloadGetNameRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetNameArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetNameRetType = string
/*
@@ -208,10 +267,16 @@ type CreateZonePayloadGetNameRetType = string
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetNegativeCacheAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetNegativeCacheArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetNegativeCacheRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadGetNegativeCacheAttributeTypeOk(arg CreateZonePayloadGetNegativeCacheAttributeType) (ret CreateZonePayloadGetNegativeCacheRetType, ok bool) {
if arg == nil {
return ret, false
@@ -219,6 +284,7 @@ func getCreateZonePayloadGetNegativeCacheAttributeTypeOk(arg CreateZonePayloadGe
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadGetNegativeCacheAttributeType(arg *CreateZonePayloadGetNegativeCacheAttributeType, val CreateZonePayloadGetNegativeCacheRetType) {
*arg = &val
}
@@ -228,10 +294,16 @@ func setCreateZonePayloadGetNegativeCacheAttributeType(arg *CreateZonePayloadGet
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetPrimariesAttributeType = *[]string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetPrimariesArgType = []string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetPrimariesRetType = []string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadGetPrimariesAttributeTypeOk(arg CreateZonePayloadGetPrimariesAttributeType) (ret CreateZonePayloadGetPrimariesRetType, ok bool) {
if arg == nil {
return ret, false
@@ -239,6 +311,7 @@ func getCreateZonePayloadGetPrimariesAttributeTypeOk(arg CreateZonePayloadGetPri
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadGetPrimariesAttributeType(arg *CreateZonePayloadGetPrimariesAttributeType, val CreateZonePayloadGetPrimariesRetType) {
*arg = &val
}
@@ -248,10 +321,16 @@ func setCreateZonePayloadGetPrimariesAttributeType(arg *CreateZonePayloadGetPrim
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetRefreshTimeAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetRefreshTimeArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetRefreshTimeRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadGetRefreshTimeAttributeTypeOk(arg CreateZonePayloadGetRefreshTimeAttributeType) (ret CreateZonePayloadGetRefreshTimeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -259,6 +338,7 @@ func getCreateZonePayloadGetRefreshTimeAttributeTypeOk(arg CreateZonePayloadGetR
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadGetRefreshTimeAttributeType(arg *CreateZonePayloadGetRefreshTimeAttributeType, val CreateZonePayloadGetRefreshTimeRetType) {
*arg = &val
}
@@ -268,10 +348,16 @@ func setCreateZonePayloadGetRefreshTimeAttributeType(arg *CreateZonePayloadGetRe
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetRetryTimeAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetRetryTimeArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetRetryTimeRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadGetRetryTimeAttributeTypeOk(arg CreateZonePayloadGetRetryTimeAttributeType) (ret CreateZonePayloadGetRetryTimeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -279,6 +365,7 @@ func getCreateZonePayloadGetRetryTimeAttributeTypeOk(arg CreateZonePayloadGetRet
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadGetRetryTimeAttributeType(arg *CreateZonePayloadGetRetryTimeAttributeType, val CreateZonePayloadGetRetryTimeRetType) {
*arg = &val
}
@@ -291,20 +378,25 @@ func setCreateZonePayloadGetRetryTimeAttributeType(arg *CreateZonePayloadGetRetr
// CreateZonePayloadTypes zone type
// value type for enums
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadTypes string
// List of Type
const (
- CREATEZONEPAYLOADTYPE_PRIMARY CreateZonePayloadTypes = "primary"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ CREATEZONEPAYLOADTYPE_PRIMARY CreateZonePayloadTypes = "primary"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
CREATEZONEPAYLOADTYPE_SECONDARY CreateZonePayloadTypes = "secondary"
)
// All allowed values of CreateZonePayload enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
var AllowedCreateZonePayloadTypesEnumValues = []CreateZonePayloadTypes{
"primary",
"secondary",
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *CreateZonePayloadTypes) UnmarshalJSON(src []byte) error {
// use a type alias to prevent infinite recursion during unmarshal,
// see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers
@@ -332,6 +424,7 @@ func (v *CreateZonePayloadTypes) UnmarshalJSON(src []byte) error {
// NewCreateZonePayloadTypesFromValue returns a pointer to a valid CreateZonePayloadTypes
// for the value passed as argument, or an error if the value passed is not allowed by the enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCreateZonePayloadTypesFromValue(v CreateZonePayloadTypes) (*CreateZonePayloadTypes, error) {
ev := CreateZonePayloadTypes(v)
if ev.IsValid() {
@@ -342,6 +435,7 @@ func NewCreateZonePayloadTypesFromValue(v CreateZonePayloadTypes) (*CreateZonePa
}
// IsValid return true if the value is valid for the enum, false otherwise
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v CreateZonePayloadTypes) IsValid() bool {
for _, existing := range AllowedCreateZonePayloadTypesEnumValues {
if existing == v {
@@ -352,50 +446,65 @@ func (v CreateZonePayloadTypes) IsValid() bool {
}
// Ptr returns reference to TypeTypes value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v CreateZonePayloadTypes) Ptr() *CreateZonePayloadTypes {
return &v
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableCreateZonePayloadTypes struct {
value *CreateZonePayloadTypes
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateZonePayloadTypes) Get() *CreateZonePayloadTypes {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateZonePayloadTypes) Set(val *CreateZonePayloadTypes) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateZonePayloadTypes) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateZonePayloadTypes) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableCreateZonePayloadTypes(val *CreateZonePayloadTypes) *NullableCreateZonePayloadTypes {
return &NullableCreateZonePayloadTypes{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateZonePayloadTypes) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateZonePayloadTypes) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetTypeAttributeType = *CreateZonePayloadTypes
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetTypeArgType = CreateZonePayloadTypes
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadGetTypeRetType = CreateZonePayloadTypes
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadGetTypeAttributeTypeOk(arg CreateZonePayloadGetTypeAttributeType) (ret CreateZonePayloadGetTypeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -403,11 +512,13 @@ func getCreateZonePayloadGetTypeAttributeTypeOk(arg CreateZonePayloadGetTypeAttr
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadGetTypeAttributeType(arg *CreateZonePayloadGetTypeAttributeType, val CreateZonePayloadGetTypeRetType) {
*arg = &val
}
// CreateZonePayload Zone to create.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayload struct {
// access control list
Acl CreateZonePayloadGetAclAttributeType `json:"acl,omitempty"`
@@ -445,12 +556,14 @@ type CreateZonePayload struct {
Type CreateZonePayloadGetTypeAttributeType `json:"type,omitempty"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _CreateZonePayload CreateZonePayload
// NewCreateZonePayload instantiates a new CreateZonePayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCreateZonePayload(dnsName CreateZonePayloadGetDnsNameArgType, name CreateZonePayloadGetNameArgType) *CreateZonePayload {
this := CreateZonePayload{}
setCreateZonePayloadGetDnsNameAttributeType(&this.DnsName, dnsName)
@@ -461,6 +574,7 @@ func NewCreateZonePayload(dnsName CreateZonePayloadGetDnsNameArgType, name Creat
// NewCreateZonePayloadWithDefaults instantiates a new CreateZonePayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCreateZonePayloadWithDefaults() *CreateZonePayload {
this := CreateZonePayload{}
var acl string = "0.0.0.0/0,::/0"
@@ -483,6 +597,7 @@ func NewCreateZonePayloadWithDefaults() *CreateZonePayload {
}
// GetAcl returns the Acl field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetAcl() (res CreateZonePayloadGetAclRetType) {
res, _ = o.GetAclOk()
return
@@ -490,22 +605,26 @@ func (o *CreateZonePayload) GetAcl() (res CreateZonePayloadGetAclRetType) {
// GetAclOk returns a tuple with the Acl field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetAclOk() (ret CreateZonePayloadGetAclRetType, ok bool) {
return getCreateZonePayloadGetAclAttributeTypeOk(o.Acl)
}
// HasAcl returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) HasAcl() bool {
_, ok := o.GetAclOk()
return ok
}
// SetAcl gets a reference to the given string and assigns it to the Acl field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) SetAcl(v CreateZonePayloadGetAclRetType) {
setCreateZonePayloadGetAclAttributeType(&o.Acl, v)
}
// GetContactEmail returns the ContactEmail field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetContactEmail() (res CreateZonePayloadGetContactEmailRetType) {
res, _ = o.GetContactEmailOk()
return
@@ -513,22 +632,26 @@ func (o *CreateZonePayload) GetContactEmail() (res CreateZonePayloadGetContactEm
// GetContactEmailOk returns a tuple with the ContactEmail field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetContactEmailOk() (ret CreateZonePayloadGetContactEmailRetType, ok bool) {
return getCreateZonePayloadGetContactEmailAttributeTypeOk(o.ContactEmail)
}
// HasContactEmail returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) HasContactEmail() bool {
_, ok := o.GetContactEmailOk()
return ok
}
// SetContactEmail gets a reference to the given string and assigns it to the ContactEmail field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) SetContactEmail(v CreateZonePayloadGetContactEmailRetType) {
setCreateZonePayloadGetContactEmailAttributeType(&o.ContactEmail, v)
}
// GetDefaultTTL returns the DefaultTTL field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetDefaultTTL() (res CreateZonePayloadGetDefaultTTLRetType) {
res, _ = o.GetDefaultTTLOk()
return
@@ -536,22 +659,26 @@ func (o *CreateZonePayload) GetDefaultTTL() (res CreateZonePayloadGetDefaultTTLR
// GetDefaultTTLOk returns a tuple with the DefaultTTL field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetDefaultTTLOk() (ret CreateZonePayloadGetDefaultTTLRetType, ok bool) {
return getCreateZonePayloadGetDefaultTTLAttributeTypeOk(o.DefaultTTL)
}
// HasDefaultTTL returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) HasDefaultTTL() bool {
_, ok := o.GetDefaultTTLOk()
return ok
}
// SetDefaultTTL gets a reference to the given int64 and assigns it to the DefaultTTL field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) SetDefaultTTL(v CreateZonePayloadGetDefaultTTLRetType) {
setCreateZonePayloadGetDefaultTTLAttributeType(&o.DefaultTTL, v)
}
// GetDescription returns the Description field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetDescription() (res CreateZonePayloadGetDescriptionRetType) {
res, _ = o.GetDescriptionOk()
return
@@ -559,22 +686,26 @@ func (o *CreateZonePayload) GetDescription() (res CreateZonePayloadGetDescriptio
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetDescriptionOk() (ret CreateZonePayloadGetDescriptionRetType, ok bool) {
return getCreateZonePayloadGetDescriptionAttributeTypeOk(o.Description)
}
// HasDescription returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) HasDescription() bool {
_, ok := o.GetDescriptionOk()
return ok
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) SetDescription(v CreateZonePayloadGetDescriptionRetType) {
setCreateZonePayloadGetDescriptionAttributeType(&o.Description, v)
}
// GetDnsName returns the DnsName field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetDnsName() (ret CreateZonePayloadGetDnsNameRetType) {
ret, _ = o.GetDnsNameOk()
return ret
@@ -582,16 +713,19 @@ func (o *CreateZonePayload) GetDnsName() (ret CreateZonePayloadGetDnsNameRetType
// GetDnsNameOk returns a tuple with the DnsName field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetDnsNameOk() (ret CreateZonePayloadGetDnsNameRetType, ok bool) {
return getCreateZonePayloadGetDnsNameAttributeTypeOk(o.DnsName)
}
// SetDnsName sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) SetDnsName(v CreateZonePayloadGetDnsNameRetType) {
setCreateZonePayloadGetDnsNameAttributeType(&o.DnsName, v)
}
// GetExpireTime returns the ExpireTime field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetExpireTime() (res CreateZonePayloadGetExpireTimeRetType) {
res, _ = o.GetExpireTimeOk()
return
@@ -599,22 +733,26 @@ func (o *CreateZonePayload) GetExpireTime() (res CreateZonePayloadGetExpireTimeR
// GetExpireTimeOk returns a tuple with the ExpireTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetExpireTimeOk() (ret CreateZonePayloadGetExpireTimeRetType, ok bool) {
return getCreateZonePayloadGetExpireTimeAttributeTypeOk(o.ExpireTime)
}
// HasExpireTime returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) HasExpireTime() bool {
_, ok := o.GetExpireTimeOk()
return ok
}
// SetExpireTime gets a reference to the given int64 and assigns it to the ExpireTime field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) SetExpireTime(v CreateZonePayloadGetExpireTimeRetType) {
setCreateZonePayloadGetExpireTimeAttributeType(&o.ExpireTime, v)
}
// GetExtensions returns the Extensions field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetExtensions() (res CreateZonePayloadGetExtensionsRetType) {
res, _ = o.GetExtensionsOk()
return
@@ -622,22 +760,26 @@ func (o *CreateZonePayload) GetExtensions() (res CreateZonePayloadGetExtensionsR
// GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetExtensionsOk() (ret CreateZonePayloadGetExtensionsRetType, ok bool) {
return getCreateZonePayloadGetExtensionsAttributeTypeOk(o.Extensions)
}
// HasExtensions returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) HasExtensions() bool {
_, ok := o.GetExtensionsOk()
return ok
}
// SetExtensions gets a reference to the given CreateZonePayloadExtensions and assigns it to the Extensions field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) SetExtensions(v CreateZonePayloadGetExtensionsRetType) {
setCreateZonePayloadGetExtensionsAttributeType(&o.Extensions, v)
}
// GetIsReverseZone returns the IsReverseZone field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetIsReverseZone() (res CreateZonePayloadgetIsReverseZoneRetType) {
res, _ = o.GetIsReverseZoneOk()
return
@@ -645,22 +787,26 @@ func (o *CreateZonePayload) GetIsReverseZone() (res CreateZonePayloadgetIsRevers
// GetIsReverseZoneOk returns a tuple with the IsReverseZone field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetIsReverseZoneOk() (ret CreateZonePayloadgetIsReverseZoneRetType, ok bool) {
return getCreateZonePayloadgetIsReverseZoneAttributeTypeOk(o.IsReverseZone)
}
// HasIsReverseZone returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) HasIsReverseZone() bool {
_, ok := o.GetIsReverseZoneOk()
return ok
}
// SetIsReverseZone gets a reference to the given bool and assigns it to the IsReverseZone field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) SetIsReverseZone(v CreateZonePayloadgetIsReverseZoneRetType) {
setCreateZonePayloadgetIsReverseZoneAttributeType(&o.IsReverseZone, v)
}
// GetName returns the Name field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetName() (ret CreateZonePayloadGetNameRetType) {
ret, _ = o.GetNameOk()
return ret
@@ -668,16 +814,19 @@ func (o *CreateZonePayload) GetName() (ret CreateZonePayloadGetNameRetType) {
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetNameOk() (ret CreateZonePayloadGetNameRetType, ok bool) {
return getCreateZonePayloadGetNameAttributeTypeOk(o.Name)
}
// SetName sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) SetName(v CreateZonePayloadGetNameRetType) {
setCreateZonePayloadGetNameAttributeType(&o.Name, v)
}
// GetNegativeCache returns the NegativeCache field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetNegativeCache() (res CreateZonePayloadGetNegativeCacheRetType) {
res, _ = o.GetNegativeCacheOk()
return
@@ -685,22 +834,26 @@ func (o *CreateZonePayload) GetNegativeCache() (res CreateZonePayloadGetNegative
// GetNegativeCacheOk returns a tuple with the NegativeCache field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetNegativeCacheOk() (ret CreateZonePayloadGetNegativeCacheRetType, ok bool) {
return getCreateZonePayloadGetNegativeCacheAttributeTypeOk(o.NegativeCache)
}
// HasNegativeCache returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) HasNegativeCache() bool {
_, ok := o.GetNegativeCacheOk()
return ok
}
// SetNegativeCache gets a reference to the given int64 and assigns it to the NegativeCache field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) SetNegativeCache(v CreateZonePayloadGetNegativeCacheRetType) {
setCreateZonePayloadGetNegativeCacheAttributeType(&o.NegativeCache, v)
}
// GetPrimaries returns the Primaries field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetPrimaries() (res CreateZonePayloadGetPrimariesRetType) {
res, _ = o.GetPrimariesOk()
return
@@ -708,22 +861,26 @@ func (o *CreateZonePayload) GetPrimaries() (res CreateZonePayloadGetPrimariesRet
// GetPrimariesOk returns a tuple with the Primaries field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetPrimariesOk() (ret CreateZonePayloadGetPrimariesRetType, ok bool) {
return getCreateZonePayloadGetPrimariesAttributeTypeOk(o.Primaries)
}
// HasPrimaries returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) HasPrimaries() bool {
_, ok := o.GetPrimariesOk()
return ok
}
// SetPrimaries gets a reference to the given []string and assigns it to the Primaries field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) SetPrimaries(v CreateZonePayloadGetPrimariesRetType) {
setCreateZonePayloadGetPrimariesAttributeType(&o.Primaries, v)
}
// GetRefreshTime returns the RefreshTime field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetRefreshTime() (res CreateZonePayloadGetRefreshTimeRetType) {
res, _ = o.GetRefreshTimeOk()
return
@@ -731,22 +888,26 @@ func (o *CreateZonePayload) GetRefreshTime() (res CreateZonePayloadGetRefreshTim
// GetRefreshTimeOk returns a tuple with the RefreshTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetRefreshTimeOk() (ret CreateZonePayloadGetRefreshTimeRetType, ok bool) {
return getCreateZonePayloadGetRefreshTimeAttributeTypeOk(o.RefreshTime)
}
// HasRefreshTime returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) HasRefreshTime() bool {
_, ok := o.GetRefreshTimeOk()
return ok
}
// SetRefreshTime gets a reference to the given int64 and assigns it to the RefreshTime field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) SetRefreshTime(v CreateZonePayloadGetRefreshTimeRetType) {
setCreateZonePayloadGetRefreshTimeAttributeType(&o.RefreshTime, v)
}
// GetRetryTime returns the RetryTime field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetRetryTime() (res CreateZonePayloadGetRetryTimeRetType) {
res, _ = o.GetRetryTimeOk()
return
@@ -754,22 +915,26 @@ func (o *CreateZonePayload) GetRetryTime() (res CreateZonePayloadGetRetryTimeRet
// GetRetryTimeOk returns a tuple with the RetryTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetRetryTimeOk() (ret CreateZonePayloadGetRetryTimeRetType, ok bool) {
return getCreateZonePayloadGetRetryTimeAttributeTypeOk(o.RetryTime)
}
// HasRetryTime returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) HasRetryTime() bool {
_, ok := o.GetRetryTimeOk()
return ok
}
// SetRetryTime gets a reference to the given int64 and assigns it to the RetryTime field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) SetRetryTime(v CreateZonePayloadGetRetryTimeRetType) {
setCreateZonePayloadGetRetryTimeAttributeType(&o.RetryTime, v)
}
// GetType returns the Type field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetType() (res CreateZonePayloadGetTypeRetType) {
res, _ = o.GetTypeOk()
return
@@ -777,21 +942,25 @@ func (o *CreateZonePayload) GetType() (res CreateZonePayloadGetTypeRetType) {
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) GetTypeOk() (ret CreateZonePayloadGetTypeRetType, ok bool) {
return getCreateZonePayloadGetTypeAttributeTypeOk(o.Type)
}
// HasType returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) HasType() bool {
_, ok := o.GetTypeOk()
return ok
}
// SetType gets a reference to the given string and assigns it to the Type field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayload) SetType(v CreateZonePayloadGetTypeRetType) {
setCreateZonePayloadGetTypeAttributeType(&o.Type, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o CreateZonePayload) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getCreateZonePayloadGetAclAttributeTypeOk(o.Acl); ok {
@@ -839,37 +1008,45 @@ func (o CreateZonePayload) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableCreateZonePayload struct {
value *CreateZonePayload
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateZonePayload) Get() *CreateZonePayload {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateZonePayload) Set(val *CreateZonePayload) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateZonePayload) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateZonePayload) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableCreateZonePayload(val *CreateZonePayload) *NullableCreateZonePayload {
return &NullableCreateZonePayload{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateZonePayload) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateZonePayload) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_create_zone_payload_extensions.go b/services/dns/model_create_zone_payload_extensions.go
index 7d09c75ef..bf17c0175 100644
--- a/services/dns/model_create_zone_payload_extensions.go
+++ b/services/dns/model_create_zone_payload_extensions.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,10 +23,16 @@ var _ MappedNullable = &CreateZonePayloadExtensions{}
*/
// isModel
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadExtensionsGetObservabilityExtensionAttributeType = *ZoneObservabilityExtension
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadExtensionsGetObservabilityExtensionArgType = ZoneObservabilityExtension
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadExtensionsGetObservabilityExtensionRetType = ZoneObservabilityExtension
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateZonePayloadExtensionsGetObservabilityExtensionAttributeTypeOk(arg CreateZonePayloadExtensionsGetObservabilityExtensionAttributeType) (ret CreateZonePayloadExtensionsGetObservabilityExtensionRetType, ok bool) {
if arg == nil {
return ret, false
@@ -33,11 +40,13 @@ func getCreateZonePayloadExtensionsGetObservabilityExtensionAttributeTypeOk(arg
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCreateZonePayloadExtensionsGetObservabilityExtensionAttributeType(arg *CreateZonePayloadExtensionsGetObservabilityExtensionAttributeType, val CreateZonePayloadExtensionsGetObservabilityExtensionRetType) {
*arg = &val
}
// CreateZonePayloadExtensions optional extensions
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateZonePayloadExtensions struct {
ObservabilityExtension CreateZonePayloadExtensionsGetObservabilityExtensionAttributeType `json:"observabilityExtension,omitempty"`
}
@@ -46,6 +55,7 @@ type CreateZonePayloadExtensions struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCreateZonePayloadExtensions() *CreateZonePayloadExtensions {
this := CreateZonePayloadExtensions{}
return &this
@@ -54,12 +64,14 @@ func NewCreateZonePayloadExtensions() *CreateZonePayloadExtensions {
// NewCreateZonePayloadExtensionsWithDefaults instantiates a new CreateZonePayloadExtensions 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCreateZonePayloadExtensionsWithDefaults() *CreateZonePayloadExtensions {
this := CreateZonePayloadExtensions{}
return &this
}
// GetObservabilityExtension returns the ObservabilityExtension field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayloadExtensions) GetObservabilityExtension() (res CreateZonePayloadExtensionsGetObservabilityExtensionRetType) {
res, _ = o.GetObservabilityExtensionOk()
return
@@ -67,21 +79,25 @@ func (o *CreateZonePayloadExtensions) GetObservabilityExtension() (res CreateZon
// GetObservabilityExtensionOk returns a tuple with the ObservabilityExtension field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayloadExtensions) GetObservabilityExtensionOk() (ret CreateZonePayloadExtensionsGetObservabilityExtensionRetType, ok bool) {
return getCreateZonePayloadExtensionsGetObservabilityExtensionAttributeTypeOk(o.ObservabilityExtension)
}
// HasObservabilityExtension returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayloadExtensions) HasObservabilityExtension() bool {
_, ok := o.GetObservabilityExtensionOk()
return ok
}
// SetObservabilityExtension gets a reference to the given ZoneObservabilityExtension and assigns it to the ObservabilityExtension field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateZonePayloadExtensions) SetObservabilityExtension(v CreateZonePayloadExtensionsGetObservabilityExtensionRetType) {
setCreateZonePayloadExtensionsGetObservabilityExtensionAttributeType(&o.ObservabilityExtension, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o CreateZonePayloadExtensions) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getCreateZonePayloadExtensionsGetObservabilityExtensionAttributeTypeOk(o.ObservabilityExtension); ok {
@@ -90,37 +106,45 @@ func (o CreateZonePayloadExtensions) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableCreateZonePayloadExtensions struct {
value *CreateZonePayloadExtensions
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateZonePayloadExtensions) Get() *CreateZonePayloadExtensions {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateZonePayloadExtensions) Set(val *CreateZonePayloadExtensions) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateZonePayloadExtensions) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateZonePayloadExtensions) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableCreateZonePayloadExtensions(val *CreateZonePayloadExtensions) *NullableCreateZonePayloadExtensions {
return &NullableCreateZonePayloadExtensions{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateZonePayloadExtensions) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateZonePayloadExtensions) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_delete_label_response.go b/services/dns/model_delete_label_response.go
index ac57785af..10548e6c0 100644
--- a/services/dns/model_delete_label_response.go
+++ b/services/dns/model_delete_label_response.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,10 +23,16 @@ var _ MappedNullable = &DeleteLabelResponse{}
*/
// isModel
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DeleteLabelResponseGetLabelAttributeType = *Label
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DeleteLabelResponseGetLabelArgType = Label
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DeleteLabelResponseGetLabelRetType = Label
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getDeleteLabelResponseGetLabelAttributeTypeOk(arg DeleteLabelResponseGetLabelAttributeType) (ret DeleteLabelResponseGetLabelRetType, ok bool) {
if arg == nil {
return ret, false
@@ -33,6 +40,7 @@ func getDeleteLabelResponseGetLabelAttributeTypeOk(arg DeleteLabelResponseGetLab
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setDeleteLabelResponseGetLabelAttributeType(arg *DeleteLabelResponseGetLabelAttributeType, val DeleteLabelResponseGetLabelRetType) {
*arg = &val
}
@@ -42,8 +50,10 @@ func setDeleteLabelResponseGetLabelAttributeType(arg *DeleteLabelResponseGetLabe
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DeleteLabelResponseGetMessageAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getDeleteLabelResponseGetMessageAttributeTypeOk(arg DeleteLabelResponseGetMessageAttributeType) (ret DeleteLabelResponseGetMessageRetType, ok bool) {
if arg == nil {
return ret, false
@@ -51,14 +61,19 @@ func getDeleteLabelResponseGetMessageAttributeTypeOk(arg DeleteLabelResponseGetM
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setDeleteLabelResponseGetMessageAttributeType(arg *DeleteLabelResponseGetMessageAttributeType, val DeleteLabelResponseGetMessageRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DeleteLabelResponseGetMessageArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DeleteLabelResponseGetMessageRetType = string
// DeleteLabelResponse ResponseDeleteLabel.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DeleteLabelResponse struct {
Label DeleteLabelResponseGetLabelAttributeType `json:"label,omitempty"`
Message DeleteLabelResponseGetMessageAttributeType `json:"message,omitempty"`
@@ -68,6 +83,7 @@ type DeleteLabelResponse struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewDeleteLabelResponse() *DeleteLabelResponse {
this := DeleteLabelResponse{}
return &this
@@ -76,12 +92,14 @@ func NewDeleteLabelResponse() *DeleteLabelResponse {
// NewDeleteLabelResponseWithDefaults instantiates a new DeleteLabelResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewDeleteLabelResponseWithDefaults() *DeleteLabelResponse {
this := DeleteLabelResponse{}
return &this
}
// GetLabel returns the Label field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DeleteLabelResponse) GetLabel() (res DeleteLabelResponseGetLabelRetType) {
res, _ = o.GetLabelOk()
return
@@ -89,22 +107,26 @@ func (o *DeleteLabelResponse) GetLabel() (res DeleteLabelResponseGetLabelRetType
// GetLabelOk returns a tuple with the Label field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DeleteLabelResponse) GetLabelOk() (ret DeleteLabelResponseGetLabelRetType, ok bool) {
return getDeleteLabelResponseGetLabelAttributeTypeOk(o.Label)
}
// HasLabel returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DeleteLabelResponse) HasLabel() bool {
_, ok := o.GetLabelOk()
return ok
}
// SetLabel gets a reference to the given Label and assigns it to the Label field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DeleteLabelResponse) SetLabel(v DeleteLabelResponseGetLabelRetType) {
setDeleteLabelResponseGetLabelAttributeType(&o.Label, v)
}
// GetMessage returns the Message field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DeleteLabelResponse) GetMessage() (res DeleteLabelResponseGetMessageRetType) {
res, _ = o.GetMessageOk()
return
@@ -112,21 +134,25 @@ func (o *DeleteLabelResponse) GetMessage() (res DeleteLabelResponseGetMessageRet
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DeleteLabelResponse) GetMessageOk() (ret DeleteLabelResponseGetMessageRetType, ok bool) {
return getDeleteLabelResponseGetMessageAttributeTypeOk(o.Message)
}
// HasMessage returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DeleteLabelResponse) HasMessage() bool {
_, ok := o.GetMessageOk()
return ok
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DeleteLabelResponse) SetMessage(v DeleteLabelResponseGetMessageRetType) {
setDeleteLabelResponseGetMessageAttributeType(&o.Message, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o DeleteLabelResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getDeleteLabelResponseGetLabelAttributeTypeOk(o.Label); ok {
@@ -138,37 +164,45 @@ func (o DeleteLabelResponse) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableDeleteLabelResponse struct {
value *DeleteLabelResponse
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableDeleteLabelResponse) Get() *DeleteLabelResponse {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableDeleteLabelResponse) Set(val *DeleteLabelResponse) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableDeleteLabelResponse) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableDeleteLabelResponse) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableDeleteLabelResponse(val *DeleteLabelResponse) *NullableDeleteLabelResponse {
return &NullableDeleteLabelResponse{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableDeleteLabelResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableDeleteLabelResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_domain_extensions.go b/services/dns/model_domain_extensions.go
index a5eec2952..25d39c958 100644
--- a/services/dns/model_domain_extensions.go
+++ b/services/dns/model_domain_extensions.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,10 +23,16 @@ var _ MappedNullable = &DomainExtensions{}
*/
// isModel
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DomainExtensionsGetObservabilityExtensionAttributeType = *DomainObservabilityExtension
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DomainExtensionsGetObservabilityExtensionArgType = DomainObservabilityExtension
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DomainExtensionsGetObservabilityExtensionRetType = DomainObservabilityExtension
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getDomainExtensionsGetObservabilityExtensionAttributeTypeOk(arg DomainExtensionsGetObservabilityExtensionAttributeType) (ret DomainExtensionsGetObservabilityExtensionRetType, ok bool) {
if arg == nil {
return ret, false
@@ -33,11 +40,13 @@ func getDomainExtensionsGetObservabilityExtensionAttributeTypeOk(arg DomainExten
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setDomainExtensionsGetObservabilityExtensionAttributeType(arg *DomainExtensionsGetObservabilityExtensionAttributeType, val DomainExtensionsGetObservabilityExtensionRetType) {
*arg = &val
}
// DomainExtensions struct for DomainExtensions
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DomainExtensions struct {
ObservabilityExtension DomainExtensionsGetObservabilityExtensionAttributeType `json:"observabilityExtension,omitempty"`
}
@@ -46,6 +55,7 @@ type DomainExtensions struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewDomainExtensions() *DomainExtensions {
this := DomainExtensions{}
return &this
@@ -54,12 +64,14 @@ func NewDomainExtensions() *DomainExtensions {
// NewDomainExtensionsWithDefaults instantiates a new DomainExtensions 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewDomainExtensionsWithDefaults() *DomainExtensions {
this := DomainExtensions{}
return &this
}
// GetObservabilityExtension returns the ObservabilityExtension field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DomainExtensions) GetObservabilityExtension() (res DomainExtensionsGetObservabilityExtensionRetType) {
res, _ = o.GetObservabilityExtensionOk()
return
@@ -67,21 +79,25 @@ func (o *DomainExtensions) GetObservabilityExtension() (res DomainExtensionsGetO
// GetObservabilityExtensionOk returns a tuple with the ObservabilityExtension field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DomainExtensions) GetObservabilityExtensionOk() (ret DomainExtensionsGetObservabilityExtensionRetType, ok bool) {
return getDomainExtensionsGetObservabilityExtensionAttributeTypeOk(o.ObservabilityExtension)
}
// HasObservabilityExtension returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DomainExtensions) HasObservabilityExtension() bool {
_, ok := o.GetObservabilityExtensionOk()
return ok
}
// SetObservabilityExtension gets a reference to the given DomainObservabilityExtension and assigns it to the ObservabilityExtension field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DomainExtensions) SetObservabilityExtension(v DomainExtensionsGetObservabilityExtensionRetType) {
setDomainExtensionsGetObservabilityExtensionAttributeType(&o.ObservabilityExtension, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o DomainExtensions) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getDomainExtensionsGetObservabilityExtensionAttributeTypeOk(o.ObservabilityExtension); ok {
@@ -90,37 +106,45 @@ func (o DomainExtensions) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableDomainExtensions struct {
value *DomainExtensions
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableDomainExtensions) Get() *DomainExtensions {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableDomainExtensions) Set(val *DomainExtensions) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableDomainExtensions) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableDomainExtensions) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableDomainExtensions(val *DomainExtensions) *NullableDomainExtensions {
return &NullableDomainExtensions{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableDomainExtensions) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableDomainExtensions) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_domain_observability_extension.go b/services/dns/model_domain_observability_extension.go
index a7f3ff84a..bd6054533 100644
--- a/services/dns/model_domain_observability_extension.go
+++ b/services/dns/model_domain_observability_extension.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &DomainObservabilityExtension{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DomainObservabilityExtensionGetObservabilityInstanceIdAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getDomainObservabilityExtensionGetObservabilityInstanceIdAttributeTypeOk(arg DomainObservabilityExtensionGetObservabilityInstanceIdAttributeType) (ret DomainObservabilityExtensionGetObservabilityInstanceIdRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getDomainObservabilityExtensionGetObservabilityInstanceIdAttributeTypeOk(ar
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setDomainObservabilityExtensionGetObservabilityInstanceIdAttributeType(arg *DomainObservabilityExtensionGetObservabilityInstanceIdAttributeType, val DomainObservabilityExtensionGetObservabilityInstanceIdRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DomainObservabilityExtensionGetObservabilityInstanceIdArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DomainObservabilityExtensionGetObservabilityInstanceIdRetType = string
/*
@@ -43,8 +50,10 @@ type DomainObservabilityExtensionGetObservabilityInstanceIdRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DomainObservabilityExtensionGetStateAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getDomainObservabilityExtensionGetStateAttributeTypeOk(arg DomainObservabilityExtensionGetStateAttributeType) (ret DomainObservabilityExtensionGetStateRetType, ok bool) {
if arg == nil {
return ret, false
@@ -52,26 +61,33 @@ func getDomainObservabilityExtensionGetStateAttributeTypeOk(arg DomainObservabil
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setDomainObservabilityExtensionGetStateAttributeType(arg *DomainObservabilityExtensionGetStateAttributeType, val DomainObservabilityExtensionGetStateRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DomainObservabilityExtensionGetStateArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DomainObservabilityExtensionGetStateRetType = string
// DomainObservabilityExtension struct for DomainObservabilityExtension
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DomainObservabilityExtension struct {
// REQUIRED
ObservabilityInstanceId DomainObservabilityExtensionGetObservabilityInstanceIdAttributeType `json:"observabilityInstanceId" required:"true"`
State DomainObservabilityExtensionGetStateAttributeType `json:"state,omitempty"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _DomainObservabilityExtension DomainObservabilityExtension
// NewDomainObservabilityExtension instantiates a new DomainObservabilityExtension 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewDomainObservabilityExtension(observabilityInstanceId DomainObservabilityExtensionGetObservabilityInstanceIdArgType) *DomainObservabilityExtension {
this := DomainObservabilityExtension{}
setDomainObservabilityExtensionGetObservabilityInstanceIdAttributeType(&this.ObservabilityInstanceId, observabilityInstanceId)
@@ -81,12 +97,14 @@ func NewDomainObservabilityExtension(observabilityInstanceId DomainObservability
// NewDomainObservabilityExtensionWithDefaults instantiates a new DomainObservabilityExtension 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewDomainObservabilityExtensionWithDefaults() *DomainObservabilityExtension {
this := DomainObservabilityExtension{}
return &this
}
// GetObservabilityInstanceId returns the ObservabilityInstanceId field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DomainObservabilityExtension) GetObservabilityInstanceId() (ret DomainObservabilityExtensionGetObservabilityInstanceIdRetType) {
ret, _ = o.GetObservabilityInstanceIdOk()
return ret
@@ -94,16 +112,19 @@ func (o *DomainObservabilityExtension) GetObservabilityInstanceId() (ret DomainO
// GetObservabilityInstanceIdOk returns a tuple with the ObservabilityInstanceId field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DomainObservabilityExtension) GetObservabilityInstanceIdOk() (ret DomainObservabilityExtensionGetObservabilityInstanceIdRetType, ok bool) {
return getDomainObservabilityExtensionGetObservabilityInstanceIdAttributeTypeOk(o.ObservabilityInstanceId)
}
// SetObservabilityInstanceId sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DomainObservabilityExtension) SetObservabilityInstanceId(v DomainObservabilityExtensionGetObservabilityInstanceIdRetType) {
setDomainObservabilityExtensionGetObservabilityInstanceIdAttributeType(&o.ObservabilityInstanceId, v)
}
// GetState returns the State field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DomainObservabilityExtension) GetState() (res DomainObservabilityExtensionGetStateRetType) {
res, _ = o.GetStateOk()
return
@@ -111,21 +132,25 @@ func (o *DomainObservabilityExtension) GetState() (res DomainObservabilityExtens
// GetStateOk returns a tuple with the State field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DomainObservabilityExtension) GetStateOk() (ret DomainObservabilityExtensionGetStateRetType, ok bool) {
return getDomainObservabilityExtensionGetStateAttributeTypeOk(o.State)
}
// HasState returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DomainObservabilityExtension) HasState() bool {
_, ok := o.GetStateOk()
return ok
}
// SetState gets a reference to the given string and assigns it to the State field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DomainObservabilityExtension) SetState(v DomainObservabilityExtensionGetStateRetType) {
setDomainObservabilityExtensionGetStateAttributeType(&o.State, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o DomainObservabilityExtension) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getDomainObservabilityExtensionGetObservabilityInstanceIdAttributeTypeOk(o.ObservabilityInstanceId); ok {
@@ -137,37 +162,45 @@ func (o DomainObservabilityExtension) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableDomainObservabilityExtension struct {
value *DomainObservabilityExtension
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableDomainObservabilityExtension) Get() *DomainObservabilityExtension {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableDomainObservabilityExtension) Set(val *DomainObservabilityExtension) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableDomainObservabilityExtension) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableDomainObservabilityExtension) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableDomainObservabilityExtension(val *DomainObservabilityExtension) *NullableDomainObservabilityExtension {
return &NullableDomainObservabilityExtension{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableDomainObservabilityExtension) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableDomainObservabilityExtension) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_error_message.go b/services/dns/model_error_message.go
index f5d78332f..ef588979b 100644
--- a/services/dns/model_error_message.go
+++ b/services/dns/model_error_message.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &ErrorMessage{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ErrorMessageGetErrorAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getErrorMessageGetErrorAttributeTypeOk(arg ErrorMessageGetErrorAttributeType) (ret ErrorMessageGetErrorRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getErrorMessageGetErrorAttributeTypeOk(arg ErrorMessageGetErrorAttributeTyp
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setErrorMessageGetErrorAttributeType(arg *ErrorMessageGetErrorAttributeType, val ErrorMessageGetErrorRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ErrorMessageGetErrorArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ErrorMessageGetErrorRetType = string
/*
@@ -43,8 +50,10 @@ type ErrorMessageGetErrorRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ErrorMessageGetMessageAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getErrorMessageGetMessageAttributeTypeOk(arg ErrorMessageGetMessageAttributeType) (ret ErrorMessageGetMessageRetType, ok bool) {
if arg == nil {
return ret, false
@@ -52,14 +61,19 @@ func getErrorMessageGetMessageAttributeTypeOk(arg ErrorMessageGetMessageAttribut
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setErrorMessageGetMessageAttributeType(arg *ErrorMessageGetMessageAttributeType, val ErrorMessageGetMessageRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ErrorMessageGetMessageArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ErrorMessageGetMessageRetType = string
// ErrorMessage struct for ErrorMessage
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ErrorMessage struct {
Error ErrorMessageGetErrorAttributeType `json:"error,omitempty"`
Message ErrorMessageGetMessageAttributeType `json:"message,omitempty"`
@@ -69,6 +83,7 @@ type ErrorMessage struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewErrorMessage() *ErrorMessage {
this := ErrorMessage{}
return &this
@@ -77,12 +92,14 @@ func NewErrorMessage() *ErrorMessage {
// NewErrorMessageWithDefaults instantiates a new ErrorMessage 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewErrorMessageWithDefaults() *ErrorMessage {
this := ErrorMessage{}
return &this
}
// GetError returns the Error field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ErrorMessage) GetError() (res ErrorMessageGetErrorRetType) {
res, _ = o.GetErrorOk()
return
@@ -90,22 +107,26 @@ func (o *ErrorMessage) GetError() (res ErrorMessageGetErrorRetType) {
// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ErrorMessage) GetErrorOk() (ret ErrorMessageGetErrorRetType, ok bool) {
return getErrorMessageGetErrorAttributeTypeOk(o.Error)
}
// HasError returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ErrorMessage) HasError() bool {
_, ok := o.GetErrorOk()
return ok
}
// SetError gets a reference to the given string and assigns it to the Error field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ErrorMessage) SetError(v ErrorMessageGetErrorRetType) {
setErrorMessageGetErrorAttributeType(&o.Error, v)
}
// GetMessage returns the Message field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ErrorMessage) GetMessage() (res ErrorMessageGetMessageRetType) {
res, _ = o.GetMessageOk()
return
@@ -113,21 +134,25 @@ func (o *ErrorMessage) GetMessage() (res ErrorMessageGetMessageRetType) {
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ErrorMessage) GetMessageOk() (ret ErrorMessageGetMessageRetType, ok bool) {
return getErrorMessageGetMessageAttributeTypeOk(o.Message)
}
// HasMessage returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ErrorMessage) HasMessage() bool {
_, ok := o.GetMessageOk()
return ok
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ErrorMessage) SetMessage(v ErrorMessageGetMessageRetType) {
setErrorMessageGetMessageAttributeType(&o.Message, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ErrorMessage) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getErrorMessageGetErrorAttributeTypeOk(o.Error); ok {
@@ -139,37 +164,45 @@ func (o ErrorMessage) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableErrorMessage struct {
value *ErrorMessage
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableErrorMessage) Get() *ErrorMessage {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableErrorMessage) Set(val *ErrorMessage) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableErrorMessage) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableErrorMessage) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableErrorMessage(val *ErrorMessage) *NullableErrorMessage {
return &NullableErrorMessage{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableErrorMessage) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableErrorMessage) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_export_record_sets_payload.go b/services/dns/model_export_record_sets_payload.go
index 0729e05e6..17a314067 100644
--- a/services/dns/model_export_record_sets_payload.go
+++ b/services/dns/model_export_record_sets_payload.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -23,10 +24,16 @@ var _ MappedNullable = &ExportRecordSetsPayload{}
*/
// isBoolean
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ExportRecordSetsPayloadgetExportAsFQDNAttributeType = *bool
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ExportRecordSetsPayloadgetExportAsFQDNArgType = bool
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ExportRecordSetsPayloadgetExportAsFQDNRetType = bool
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getExportRecordSetsPayloadgetExportAsFQDNAttributeTypeOk(arg ExportRecordSetsPayloadgetExportAsFQDNAttributeType) (ret ExportRecordSetsPayloadgetExportAsFQDNRetType, ok bool) {
if arg == nil {
return ret, false
@@ -34,6 +41,7 @@ func getExportRecordSetsPayloadgetExportAsFQDNAttributeTypeOk(arg ExportRecordSe
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setExportRecordSetsPayloadgetExportAsFQDNAttributeType(arg *ExportRecordSetsPayloadgetExportAsFQDNAttributeType, val ExportRecordSetsPayloadgetExportAsFQDNRetType) {
*arg = &val
}
@@ -46,22 +54,28 @@ func setExportRecordSetsPayloadgetExportAsFQDNAttributeType(arg *ExportRecordSet
// ExportRecordSetsPayloadFormat the model 'ExportRecordSetsPayload'
// value type for enums
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ExportRecordSetsPayloadFormat string
// List of Format
const (
- EXPORTRECORDSETSPAYLOADFORMAT_CSV ExportRecordSetsPayloadFormat = "csv"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ EXPORTRECORDSETSPAYLOADFORMAT_CSV ExportRecordSetsPayloadFormat = "csv"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
EXPORTRECORDSETSPAYLOADFORMAT_JSON ExportRecordSetsPayloadFormat = "json"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
EXPORTRECORDSETSPAYLOADFORMAT_BIND ExportRecordSetsPayloadFormat = "bind"
)
// All allowed values of ExportRecordSetsPayload enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
var AllowedExportRecordSetsPayloadFormatEnumValues = []ExportRecordSetsPayloadFormat{
"csv",
"json",
"bind",
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *ExportRecordSetsPayloadFormat) UnmarshalJSON(src []byte) error {
// use a type alias to prevent infinite recursion during unmarshal,
// see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers
@@ -89,6 +103,7 @@ func (v *ExportRecordSetsPayloadFormat) UnmarshalJSON(src []byte) error {
// NewExportRecordSetsPayloadFormatFromValue returns a pointer to a valid ExportRecordSetsPayloadFormat
// for the value passed as argument, or an error if the value passed is not allowed by the enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewExportRecordSetsPayloadFormatFromValue(v ExportRecordSetsPayloadFormat) (*ExportRecordSetsPayloadFormat, error) {
ev := ExportRecordSetsPayloadFormat(v)
if ev.IsValid() {
@@ -99,6 +114,7 @@ func NewExportRecordSetsPayloadFormatFromValue(v ExportRecordSetsPayloadFormat)
}
// IsValid return true if the value is valid for the enum, false otherwise
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v ExportRecordSetsPayloadFormat) IsValid() bool {
for _, existing := range AllowedExportRecordSetsPayloadFormatEnumValues {
if existing == v {
@@ -109,50 +125,65 @@ func (v ExportRecordSetsPayloadFormat) IsValid() bool {
}
// Ptr returns reference to FormatFormat value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v ExportRecordSetsPayloadFormat) Ptr() *ExportRecordSetsPayloadFormat {
return &v
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableExportRecordSetsPayloadFormat struct {
value *ExportRecordSetsPayloadFormat
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableExportRecordSetsPayloadFormat) Get() *ExportRecordSetsPayloadFormat {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableExportRecordSetsPayloadFormat) Set(val *ExportRecordSetsPayloadFormat) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableExportRecordSetsPayloadFormat) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableExportRecordSetsPayloadFormat) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableExportRecordSetsPayloadFormat(val *ExportRecordSetsPayloadFormat) *NullableExportRecordSetsPayloadFormat {
return &NullableExportRecordSetsPayloadFormat{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableExportRecordSetsPayloadFormat) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableExportRecordSetsPayloadFormat) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ExportRecordSetsPayloadGetFormatAttributeType = *ExportRecordSetsPayloadFormat
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ExportRecordSetsPayloadGetFormatArgType = ExportRecordSetsPayloadFormat
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ExportRecordSetsPayloadGetFormatRetType = ExportRecordSetsPayloadFormat
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getExportRecordSetsPayloadGetFormatAttributeTypeOk(arg ExportRecordSetsPayloadGetFormatAttributeType) (ret ExportRecordSetsPayloadGetFormatRetType, ok bool) {
if arg == nil {
return ret, false
@@ -160,11 +191,13 @@ func getExportRecordSetsPayloadGetFormatAttributeTypeOk(arg ExportRecordSetsPayl
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setExportRecordSetsPayloadGetFormatAttributeType(arg *ExportRecordSetsPayloadGetFormatAttributeType, val ExportRecordSetsPayloadGetFormatRetType) {
*arg = &val
}
// ExportRecordSetsPayload struct for ExportRecordSetsPayload
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ExportRecordSetsPayload struct {
ExportAsFQDN ExportRecordSetsPayloadgetExportAsFQDNAttributeType `json:"exportAsFQDN,omitempty"`
Format ExportRecordSetsPayloadGetFormatAttributeType `json:"format,omitempty"`
@@ -174,6 +207,7 @@ type ExportRecordSetsPayload struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewExportRecordSetsPayload() *ExportRecordSetsPayload {
this := ExportRecordSetsPayload{}
return &this
@@ -182,6 +216,7 @@ func NewExportRecordSetsPayload() *ExportRecordSetsPayload {
// NewExportRecordSetsPayloadWithDefaults instantiates a new ExportRecordSetsPayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewExportRecordSetsPayloadWithDefaults() *ExportRecordSetsPayload {
this := ExportRecordSetsPayload{}
var exportAsFQDN bool = true
@@ -192,6 +227,7 @@ func NewExportRecordSetsPayloadWithDefaults() *ExportRecordSetsPayload {
}
// GetExportAsFQDN returns the ExportAsFQDN field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ExportRecordSetsPayload) GetExportAsFQDN() (res ExportRecordSetsPayloadgetExportAsFQDNRetType) {
res, _ = o.GetExportAsFQDNOk()
return
@@ -199,22 +235,26 @@ func (o *ExportRecordSetsPayload) GetExportAsFQDN() (res ExportRecordSetsPayload
// GetExportAsFQDNOk returns a tuple with the ExportAsFQDN field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ExportRecordSetsPayload) GetExportAsFQDNOk() (ret ExportRecordSetsPayloadgetExportAsFQDNRetType, ok bool) {
return getExportRecordSetsPayloadgetExportAsFQDNAttributeTypeOk(o.ExportAsFQDN)
}
// HasExportAsFQDN returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ExportRecordSetsPayload) HasExportAsFQDN() bool {
_, ok := o.GetExportAsFQDNOk()
return ok
}
// SetExportAsFQDN gets a reference to the given bool and assigns it to the ExportAsFQDN field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ExportRecordSetsPayload) SetExportAsFQDN(v ExportRecordSetsPayloadgetExportAsFQDNRetType) {
setExportRecordSetsPayloadgetExportAsFQDNAttributeType(&o.ExportAsFQDN, v)
}
// GetFormat returns the Format field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ExportRecordSetsPayload) GetFormat() (res ExportRecordSetsPayloadGetFormatRetType) {
res, _ = o.GetFormatOk()
return
@@ -222,21 +262,25 @@ func (o *ExportRecordSetsPayload) GetFormat() (res ExportRecordSetsPayloadGetFor
// GetFormatOk returns a tuple with the Format field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ExportRecordSetsPayload) GetFormatOk() (ret ExportRecordSetsPayloadGetFormatRetType, ok bool) {
return getExportRecordSetsPayloadGetFormatAttributeTypeOk(o.Format)
}
// HasFormat returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ExportRecordSetsPayload) HasFormat() bool {
_, ok := o.GetFormatOk()
return ok
}
// SetFormat gets a reference to the given string and assigns it to the Format field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ExportRecordSetsPayload) SetFormat(v ExportRecordSetsPayloadGetFormatRetType) {
setExportRecordSetsPayloadGetFormatAttributeType(&o.Format, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ExportRecordSetsPayload) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getExportRecordSetsPayloadgetExportAsFQDNAttributeTypeOk(o.ExportAsFQDN); ok {
@@ -248,37 +292,45 @@ func (o ExportRecordSetsPayload) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableExportRecordSetsPayload struct {
value *ExportRecordSetsPayload
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableExportRecordSetsPayload) Get() *ExportRecordSetsPayload {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableExportRecordSetsPayload) Set(val *ExportRecordSetsPayload) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableExportRecordSetsPayload) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableExportRecordSetsPayload) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableExportRecordSetsPayload(val *ExportRecordSetsPayload) *NullableExportRecordSetsPayload {
return &NullableExportRecordSetsPayload{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableExportRecordSetsPayload) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableExportRecordSetsPayload) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_import_record_sets_payload.go b/services/dns/model_import_record_sets_payload.go
index e47e7570d..98b233f85 100644
--- a/services/dns/model_import_record_sets_payload.go
+++ b/services/dns/model_import_record_sets_payload.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,10 +23,16 @@ var _ MappedNullable = &ImportRecordSetsPayload{}
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportRecordSetsPayloadGetRrSetsAttributeType = *[]ZoneModelsImportRecordModel
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportRecordSetsPayloadGetRrSetsArgType = []ZoneModelsImportRecordModel
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportRecordSetsPayloadGetRrSetsRetType = []ZoneModelsImportRecordModel
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getImportRecordSetsPayloadGetRrSetsAttributeTypeOk(arg ImportRecordSetsPayloadGetRrSetsAttributeType) (ret ImportRecordSetsPayloadGetRrSetsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -33,11 +40,13 @@ func getImportRecordSetsPayloadGetRrSetsAttributeTypeOk(arg ImportRecordSetsPayl
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setImportRecordSetsPayloadGetRrSetsAttributeType(arg *ImportRecordSetsPayloadGetRrSetsAttributeType, val ImportRecordSetsPayloadGetRrSetsRetType) {
*arg = &val
}
// ImportRecordSetsPayload struct for ImportRecordSetsPayload
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportRecordSetsPayload struct {
RrSets ImportRecordSetsPayloadGetRrSetsAttributeType `json:"rrSets,omitempty"`
}
@@ -46,6 +55,7 @@ type ImportRecordSetsPayload struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewImportRecordSetsPayload() *ImportRecordSetsPayload {
this := ImportRecordSetsPayload{}
return &this
@@ -54,12 +64,14 @@ func NewImportRecordSetsPayload() *ImportRecordSetsPayload {
// NewImportRecordSetsPayloadWithDefaults instantiates a new ImportRecordSetsPayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewImportRecordSetsPayloadWithDefaults() *ImportRecordSetsPayload {
this := ImportRecordSetsPayload{}
return &this
}
// GetRrSets returns the RrSets field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportRecordSetsPayload) GetRrSets() (res ImportRecordSetsPayloadGetRrSetsRetType) {
res, _ = o.GetRrSetsOk()
return
@@ -67,21 +79,25 @@ func (o *ImportRecordSetsPayload) GetRrSets() (res ImportRecordSetsPayloadGetRrS
// GetRrSetsOk returns a tuple with the RrSets field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportRecordSetsPayload) GetRrSetsOk() (ret ImportRecordSetsPayloadGetRrSetsRetType, ok bool) {
return getImportRecordSetsPayloadGetRrSetsAttributeTypeOk(o.RrSets)
}
// HasRrSets returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportRecordSetsPayload) HasRrSets() bool {
_, ok := o.GetRrSetsOk()
return ok
}
// SetRrSets gets a reference to the given []ZoneModelsImportRecordModel and assigns it to the RrSets field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportRecordSetsPayload) SetRrSets(v ImportRecordSetsPayloadGetRrSetsRetType) {
setImportRecordSetsPayloadGetRrSetsAttributeType(&o.RrSets, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ImportRecordSetsPayload) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getImportRecordSetsPayloadGetRrSetsAttributeTypeOk(o.RrSets); ok {
@@ -90,37 +106,45 @@ func (o ImportRecordSetsPayload) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableImportRecordSetsPayload struct {
value *ImportRecordSetsPayload
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableImportRecordSetsPayload) Get() *ImportRecordSetsPayload {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableImportRecordSetsPayload) Set(val *ImportRecordSetsPayload) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableImportRecordSetsPayload) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableImportRecordSetsPayload) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableImportRecordSetsPayload(val *ImportRecordSetsPayload) *NullableImportRecordSetsPayload {
return &NullableImportRecordSetsPayload{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableImportRecordSetsPayload) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableImportRecordSetsPayload) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_import_record_sets_response.go b/services/dns/model_import_record_sets_response.go
index 040f3a6c1..f4d43632f 100644
--- a/services/dns/model_import_record_sets_response.go
+++ b/services/dns/model_import_record_sets_response.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &ImportRecordSetsResponse{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportRecordSetsResponseGetMessageAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getImportRecordSetsResponseGetMessageAttributeTypeOk(arg ImportRecordSetsResponseGetMessageAttributeType) (ret ImportRecordSetsResponseGetMessageRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getImportRecordSetsResponseGetMessageAttributeTypeOk(arg ImportRecordSetsRe
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setImportRecordSetsResponseGetMessageAttributeType(arg *ImportRecordSetsResponseGetMessageAttributeType, val ImportRecordSetsResponseGetMessageRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportRecordSetsResponseGetMessageArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportRecordSetsResponseGetMessageRetType = string
/*
@@ -43,10 +50,16 @@ type ImportRecordSetsResponseGetMessageRetType = string
*/
// isModel
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportRecordSetsResponseGetSummaryAttributeType = *ImportSummary
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportRecordSetsResponseGetSummaryArgType = ImportSummary
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportRecordSetsResponseGetSummaryRetType = ImportSummary
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getImportRecordSetsResponseGetSummaryAttributeTypeOk(arg ImportRecordSetsResponseGetSummaryAttributeType) (ret ImportRecordSetsResponseGetSummaryRetType, ok bool) {
if arg == nil {
return ret, false
@@ -54,23 +67,27 @@ func getImportRecordSetsResponseGetSummaryAttributeTypeOk(arg ImportRecordSetsRe
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setImportRecordSetsResponseGetSummaryAttributeType(arg *ImportRecordSetsResponseGetSummaryAttributeType, val ImportRecordSetsResponseGetSummaryRetType) {
*arg = &val
}
// ImportRecordSetsResponse ImportSummaryResponse is the response of the import.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportRecordSetsResponse struct {
Message ImportRecordSetsResponseGetMessageAttributeType `json:"message,omitempty"`
// REQUIRED
Summary ImportRecordSetsResponseGetSummaryAttributeType `json:"summary" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _ImportRecordSetsResponse ImportRecordSetsResponse
// NewImportRecordSetsResponse instantiates a new ImportRecordSetsResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewImportRecordSetsResponse(summary ImportRecordSetsResponseGetSummaryArgType) *ImportRecordSetsResponse {
this := ImportRecordSetsResponse{}
setImportRecordSetsResponseGetSummaryAttributeType(&this.Summary, summary)
@@ -80,12 +97,14 @@ func NewImportRecordSetsResponse(summary ImportRecordSetsResponseGetSummaryArgTy
// NewImportRecordSetsResponseWithDefaults instantiates a new ImportRecordSetsResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewImportRecordSetsResponseWithDefaults() *ImportRecordSetsResponse {
this := ImportRecordSetsResponse{}
return &this
}
// GetMessage returns the Message field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportRecordSetsResponse) GetMessage() (res ImportRecordSetsResponseGetMessageRetType) {
res, _ = o.GetMessageOk()
return
@@ -93,22 +112,26 @@ func (o *ImportRecordSetsResponse) GetMessage() (res ImportRecordSetsResponseGet
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportRecordSetsResponse) GetMessageOk() (ret ImportRecordSetsResponseGetMessageRetType, ok bool) {
return getImportRecordSetsResponseGetMessageAttributeTypeOk(o.Message)
}
// HasMessage returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportRecordSetsResponse) HasMessage() bool {
_, ok := o.GetMessageOk()
return ok
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportRecordSetsResponse) SetMessage(v ImportRecordSetsResponseGetMessageRetType) {
setImportRecordSetsResponseGetMessageAttributeType(&o.Message, v)
}
// GetSummary returns the Summary field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportRecordSetsResponse) GetSummary() (ret ImportRecordSetsResponseGetSummaryRetType) {
ret, _ = o.GetSummaryOk()
return ret
@@ -116,15 +139,18 @@ func (o *ImportRecordSetsResponse) GetSummary() (ret ImportRecordSetsResponseGet
// GetSummaryOk returns a tuple with the Summary field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportRecordSetsResponse) GetSummaryOk() (ret ImportRecordSetsResponseGetSummaryRetType, ok bool) {
return getImportRecordSetsResponseGetSummaryAttributeTypeOk(o.Summary)
}
// SetSummary sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportRecordSetsResponse) SetSummary(v ImportRecordSetsResponseGetSummaryRetType) {
setImportRecordSetsResponseGetSummaryAttributeType(&o.Summary, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ImportRecordSetsResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getImportRecordSetsResponseGetMessageAttributeTypeOk(o.Message); ok {
@@ -136,37 +162,45 @@ func (o ImportRecordSetsResponse) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableImportRecordSetsResponse struct {
value *ImportRecordSetsResponse
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableImportRecordSetsResponse) Get() *ImportRecordSetsResponse {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableImportRecordSetsResponse) Set(val *ImportRecordSetsResponse) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableImportRecordSetsResponse) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableImportRecordSetsResponse) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableImportRecordSetsResponse(val *ImportRecordSetsResponse) *NullableImportRecordSetsResponse {
return &NullableImportRecordSetsResponse{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableImportRecordSetsResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableImportRecordSetsResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_import_summary.go b/services/dns/model_import_summary.go
index aa243c7cf..3d2b9c015 100644
--- a/services/dns/model_import_summary.go
+++ b/services/dns/model_import_summary.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,10 +23,16 @@ var _ MappedNullable = &ImportSummary{}
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetCreatedRRSetsAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetCreatedRRSetsArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetCreatedRRSetsRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getImportSummaryGetCreatedRRSetsAttributeTypeOk(arg ImportSummaryGetCreatedRRSetsAttributeType) (ret ImportSummaryGetCreatedRRSetsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -33,6 +40,7 @@ func getImportSummaryGetCreatedRRSetsAttributeTypeOk(arg ImportSummaryGetCreated
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setImportSummaryGetCreatedRRSetsAttributeType(arg *ImportSummaryGetCreatedRRSetsAttributeType, val ImportSummaryGetCreatedRRSetsRetType) {
*arg = &val
}
@@ -42,10 +50,16 @@ func setImportSummaryGetCreatedRRSetsAttributeType(arg *ImportSummaryGetCreatedR
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetCreatedRecordsAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetCreatedRecordsArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetCreatedRecordsRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getImportSummaryGetCreatedRecordsAttributeTypeOk(arg ImportSummaryGetCreatedRecordsAttributeType) (ret ImportSummaryGetCreatedRecordsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -53,6 +67,7 @@ func getImportSummaryGetCreatedRecordsAttributeTypeOk(arg ImportSummaryGetCreate
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setImportSummaryGetCreatedRecordsAttributeType(arg *ImportSummaryGetCreatedRecordsAttributeType, val ImportSummaryGetCreatedRecordsRetType) {
*arg = &val
}
@@ -62,10 +77,16 @@ func setImportSummaryGetCreatedRecordsAttributeType(arg *ImportSummaryGetCreated
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetDeletedRRSetsAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetDeletedRRSetsArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetDeletedRRSetsRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getImportSummaryGetDeletedRRSetsAttributeTypeOk(arg ImportSummaryGetDeletedRRSetsAttributeType) (ret ImportSummaryGetDeletedRRSetsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -73,6 +94,7 @@ func getImportSummaryGetDeletedRRSetsAttributeTypeOk(arg ImportSummaryGetDeleted
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setImportSummaryGetDeletedRRSetsAttributeType(arg *ImportSummaryGetDeletedRRSetsAttributeType, val ImportSummaryGetDeletedRRSetsRetType) {
*arg = &val
}
@@ -82,10 +104,16 @@ func setImportSummaryGetDeletedRRSetsAttributeType(arg *ImportSummaryGetDeletedR
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetDeletedRecordsAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetDeletedRecordsArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetDeletedRecordsRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getImportSummaryGetDeletedRecordsAttributeTypeOk(arg ImportSummaryGetDeletedRecordsAttributeType) (ret ImportSummaryGetDeletedRecordsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -93,6 +121,7 @@ func getImportSummaryGetDeletedRecordsAttributeTypeOk(arg ImportSummaryGetDelete
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setImportSummaryGetDeletedRecordsAttributeType(arg *ImportSummaryGetDeletedRecordsAttributeType, val ImportSummaryGetDeletedRecordsRetType) {
*arg = &val
}
@@ -102,10 +131,16 @@ func setImportSummaryGetDeletedRecordsAttributeType(arg *ImportSummaryGetDeleted
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetUpdatedRRSetsAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetUpdatedRRSetsArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetUpdatedRRSetsRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getImportSummaryGetUpdatedRRSetsAttributeTypeOk(arg ImportSummaryGetUpdatedRRSetsAttributeType) (ret ImportSummaryGetUpdatedRRSetsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -113,6 +148,7 @@ func getImportSummaryGetUpdatedRRSetsAttributeTypeOk(arg ImportSummaryGetUpdated
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setImportSummaryGetUpdatedRRSetsAttributeType(arg *ImportSummaryGetUpdatedRRSetsAttributeType, val ImportSummaryGetUpdatedRRSetsRetType) {
*arg = &val
}
@@ -122,10 +158,16 @@ func setImportSummaryGetUpdatedRRSetsAttributeType(arg *ImportSummaryGetUpdatedR
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetUpdatedRecordsAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetUpdatedRecordsArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummaryGetUpdatedRecordsRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getImportSummaryGetUpdatedRecordsAttributeTypeOk(arg ImportSummaryGetUpdatedRecordsAttributeType) (ret ImportSummaryGetUpdatedRecordsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -133,11 +175,13 @@ func getImportSummaryGetUpdatedRecordsAttributeTypeOk(arg ImportSummaryGetUpdate
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setImportSummaryGetUpdatedRecordsAttributeType(arg *ImportSummaryGetUpdatedRecordsAttributeType, val ImportSummaryGetUpdatedRecordsRetType) {
*arg = &val
}
// ImportSummary ImportSummary is the summary of the import.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ImportSummary struct {
// Can be cast to int32 without loss of precision.
CreatedRRSets ImportSummaryGetCreatedRRSetsAttributeType `json:"createdRRSets,omitempty"`
@@ -157,6 +201,7 @@ type ImportSummary struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewImportSummary() *ImportSummary {
this := ImportSummary{}
return &this
@@ -165,12 +210,14 @@ func NewImportSummary() *ImportSummary {
// NewImportSummaryWithDefaults instantiates a new ImportSummary 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewImportSummaryWithDefaults() *ImportSummary {
this := ImportSummary{}
return &this
}
// GetCreatedRRSets returns the CreatedRRSets field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) GetCreatedRRSets() (res ImportSummaryGetCreatedRRSetsRetType) {
res, _ = o.GetCreatedRRSetsOk()
return
@@ -178,22 +225,26 @@ func (o *ImportSummary) GetCreatedRRSets() (res ImportSummaryGetCreatedRRSetsRet
// GetCreatedRRSetsOk returns a tuple with the CreatedRRSets field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) GetCreatedRRSetsOk() (ret ImportSummaryGetCreatedRRSetsRetType, ok bool) {
return getImportSummaryGetCreatedRRSetsAttributeTypeOk(o.CreatedRRSets)
}
// HasCreatedRRSets returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) HasCreatedRRSets() bool {
_, ok := o.GetCreatedRRSetsOk()
return ok
}
// SetCreatedRRSets gets a reference to the given int64 and assigns it to the CreatedRRSets field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) SetCreatedRRSets(v ImportSummaryGetCreatedRRSetsRetType) {
setImportSummaryGetCreatedRRSetsAttributeType(&o.CreatedRRSets, v)
}
// GetCreatedRecords returns the CreatedRecords field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) GetCreatedRecords() (res ImportSummaryGetCreatedRecordsRetType) {
res, _ = o.GetCreatedRecordsOk()
return
@@ -201,22 +252,26 @@ func (o *ImportSummary) GetCreatedRecords() (res ImportSummaryGetCreatedRecordsR
// GetCreatedRecordsOk returns a tuple with the CreatedRecords field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) GetCreatedRecordsOk() (ret ImportSummaryGetCreatedRecordsRetType, ok bool) {
return getImportSummaryGetCreatedRecordsAttributeTypeOk(o.CreatedRecords)
}
// HasCreatedRecords returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) HasCreatedRecords() bool {
_, ok := o.GetCreatedRecordsOk()
return ok
}
// SetCreatedRecords gets a reference to the given int64 and assigns it to the CreatedRecords field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) SetCreatedRecords(v ImportSummaryGetCreatedRecordsRetType) {
setImportSummaryGetCreatedRecordsAttributeType(&o.CreatedRecords, v)
}
// GetDeletedRRSets returns the DeletedRRSets field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) GetDeletedRRSets() (res ImportSummaryGetDeletedRRSetsRetType) {
res, _ = o.GetDeletedRRSetsOk()
return
@@ -224,22 +279,26 @@ func (o *ImportSummary) GetDeletedRRSets() (res ImportSummaryGetDeletedRRSetsRet
// GetDeletedRRSetsOk returns a tuple with the DeletedRRSets field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) GetDeletedRRSetsOk() (ret ImportSummaryGetDeletedRRSetsRetType, ok bool) {
return getImportSummaryGetDeletedRRSetsAttributeTypeOk(o.DeletedRRSets)
}
// HasDeletedRRSets returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) HasDeletedRRSets() bool {
_, ok := o.GetDeletedRRSetsOk()
return ok
}
// SetDeletedRRSets gets a reference to the given int64 and assigns it to the DeletedRRSets field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) SetDeletedRRSets(v ImportSummaryGetDeletedRRSetsRetType) {
setImportSummaryGetDeletedRRSetsAttributeType(&o.DeletedRRSets, v)
}
// GetDeletedRecords returns the DeletedRecords field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) GetDeletedRecords() (res ImportSummaryGetDeletedRecordsRetType) {
res, _ = o.GetDeletedRecordsOk()
return
@@ -247,22 +306,26 @@ func (o *ImportSummary) GetDeletedRecords() (res ImportSummaryGetDeletedRecordsR
// GetDeletedRecordsOk returns a tuple with the DeletedRecords field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) GetDeletedRecordsOk() (ret ImportSummaryGetDeletedRecordsRetType, ok bool) {
return getImportSummaryGetDeletedRecordsAttributeTypeOk(o.DeletedRecords)
}
// HasDeletedRecords returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) HasDeletedRecords() bool {
_, ok := o.GetDeletedRecordsOk()
return ok
}
// SetDeletedRecords gets a reference to the given int64 and assigns it to the DeletedRecords field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) SetDeletedRecords(v ImportSummaryGetDeletedRecordsRetType) {
setImportSummaryGetDeletedRecordsAttributeType(&o.DeletedRecords, v)
}
// GetUpdatedRRSets returns the UpdatedRRSets field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) GetUpdatedRRSets() (res ImportSummaryGetUpdatedRRSetsRetType) {
res, _ = o.GetUpdatedRRSetsOk()
return
@@ -270,22 +333,26 @@ func (o *ImportSummary) GetUpdatedRRSets() (res ImportSummaryGetUpdatedRRSetsRet
// GetUpdatedRRSetsOk returns a tuple with the UpdatedRRSets field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) GetUpdatedRRSetsOk() (ret ImportSummaryGetUpdatedRRSetsRetType, ok bool) {
return getImportSummaryGetUpdatedRRSetsAttributeTypeOk(o.UpdatedRRSets)
}
// HasUpdatedRRSets returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) HasUpdatedRRSets() bool {
_, ok := o.GetUpdatedRRSetsOk()
return ok
}
// SetUpdatedRRSets gets a reference to the given int64 and assigns it to the UpdatedRRSets field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) SetUpdatedRRSets(v ImportSummaryGetUpdatedRRSetsRetType) {
setImportSummaryGetUpdatedRRSetsAttributeType(&o.UpdatedRRSets, v)
}
// GetUpdatedRecords returns the UpdatedRecords field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) GetUpdatedRecords() (res ImportSummaryGetUpdatedRecordsRetType) {
res, _ = o.GetUpdatedRecordsOk()
return
@@ -293,21 +360,25 @@ func (o *ImportSummary) GetUpdatedRecords() (res ImportSummaryGetUpdatedRecordsR
// GetUpdatedRecordsOk returns a tuple with the UpdatedRecords field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) GetUpdatedRecordsOk() (ret ImportSummaryGetUpdatedRecordsRetType, ok bool) {
return getImportSummaryGetUpdatedRecordsAttributeTypeOk(o.UpdatedRecords)
}
// HasUpdatedRecords returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) HasUpdatedRecords() bool {
_, ok := o.GetUpdatedRecordsOk()
return ok
}
// SetUpdatedRecords gets a reference to the given int64 and assigns it to the UpdatedRecords field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ImportSummary) SetUpdatedRecords(v ImportSummaryGetUpdatedRecordsRetType) {
setImportSummaryGetUpdatedRecordsAttributeType(&o.UpdatedRecords, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ImportSummary) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getImportSummaryGetCreatedRRSetsAttributeTypeOk(o.CreatedRRSets); ok {
@@ -331,37 +402,45 @@ func (o ImportSummary) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableImportSummary struct {
value *ImportSummary
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableImportSummary) Get() *ImportSummary {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableImportSummary) Set(val *ImportSummary) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableImportSummary) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableImportSummary) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableImportSummary(val *ImportSummary) *NullableImportSummary {
return &NullableImportSummary{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableImportSummary) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableImportSummary) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_label.go b/services/dns/model_label.go
index 078fcc666..1d7997227 100644
--- a/services/dns/model_label.go
+++ b/services/dns/model_label.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &Label{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type LabelGetKeyAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getLabelGetKeyAttributeTypeOk(arg LabelGetKeyAttributeType) (ret LabelGetKeyRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getLabelGetKeyAttributeTypeOk(arg LabelGetKeyAttributeType) (ret LabelGetKe
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setLabelGetKeyAttributeType(arg *LabelGetKeyAttributeType, val LabelGetKeyRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type LabelGetKeyArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type LabelGetKeyRetType = string
/*
@@ -43,8 +50,10 @@ type LabelGetKeyRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type LabelGetValueAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getLabelGetValueAttributeTypeOk(arg LabelGetValueAttributeType) (ret LabelGetValueRetType, ok bool) {
if arg == nil {
return ret, false
@@ -52,14 +61,19 @@ func getLabelGetValueAttributeTypeOk(arg LabelGetValueAttributeType) (ret LabelG
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setLabelGetValueAttributeType(arg *LabelGetValueAttributeType, val LabelGetValueRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type LabelGetValueArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type LabelGetValueRetType = string
// Label struct for Label
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type Label struct {
// REQUIRED
Key LabelGetKeyAttributeType `json:"key" required:"true"`
@@ -67,12 +81,14 @@ type Label struct {
Value LabelGetValueAttributeType `json:"value" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _Label Label
// NewLabel instantiates a new Label 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewLabel(key LabelGetKeyArgType, value LabelGetValueArgType) *Label {
this := Label{}
setLabelGetKeyAttributeType(&this.Key, key)
@@ -83,12 +99,14 @@ func NewLabel(key LabelGetKeyArgType, value LabelGetValueArgType) *Label {
// NewLabelWithDefaults instantiates a new Label 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewLabelWithDefaults() *Label {
this := Label{}
return &this
}
// GetKey returns the Key field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Label) GetKey() (ret LabelGetKeyRetType) {
ret, _ = o.GetKeyOk()
return ret
@@ -96,16 +114,19 @@ func (o *Label) GetKey() (ret LabelGetKeyRetType) {
// GetKeyOk returns a tuple with the Key field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Label) GetKeyOk() (ret LabelGetKeyRetType, ok bool) {
return getLabelGetKeyAttributeTypeOk(o.Key)
}
// SetKey sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Label) SetKey(v LabelGetKeyRetType) {
setLabelGetKeyAttributeType(&o.Key, v)
}
// GetValue returns the Value field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Label) GetValue() (ret LabelGetValueRetType) {
ret, _ = o.GetValueOk()
return ret
@@ -113,15 +134,18 @@ func (o *Label) GetValue() (ret LabelGetValueRetType) {
// GetValueOk returns a tuple with the Value field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Label) GetValueOk() (ret LabelGetValueRetType, ok bool) {
return getLabelGetValueAttributeTypeOk(o.Value)
}
// SetValue sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Label) SetValue(v LabelGetValueRetType) {
setLabelGetValueAttributeType(&o.Value, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o Label) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getLabelGetKeyAttributeTypeOk(o.Key); ok {
@@ -133,37 +157,45 @@ func (o Label) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableLabel struct {
value *Label
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableLabel) Get() *Label {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableLabel) Set(val *Label) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableLabel) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableLabel) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableLabel(val *Label) *NullableLabel {
return &NullableLabel{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableLabel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_list_labels_response.go b/services/dns/model_list_labels_response.go
index 64ebbdb22..17e2f5916 100644
--- a/services/dns/model_list_labels_response.go
+++ b/services/dns/model_list_labels_response.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,10 +23,16 @@ var _ MappedNullable = &ListLabelsResponse{}
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListLabelsResponseGetLabelsAttributeType = *[]Label
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListLabelsResponseGetLabelsArgType = []Label
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListLabelsResponseGetLabelsRetType = []Label
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getListLabelsResponseGetLabelsAttributeTypeOk(arg ListLabelsResponseGetLabelsAttributeType) (ret ListLabelsResponseGetLabelsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -33,6 +40,7 @@ func getListLabelsResponseGetLabelsAttributeTypeOk(arg ListLabelsResponseGetLabe
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setListLabelsResponseGetLabelsAttributeType(arg *ListLabelsResponseGetLabelsAttributeType, val ListLabelsResponseGetLabelsRetType) {
*arg = &val
}
@@ -42,8 +50,10 @@ func setListLabelsResponseGetLabelsAttributeType(arg *ListLabelsResponseGetLabel
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListLabelsResponseGetMessageAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getListLabelsResponseGetMessageAttributeTypeOk(arg ListLabelsResponseGetMessageAttributeType) (ret ListLabelsResponseGetMessageRetType, ok bool) {
if arg == nil {
return ret, false
@@ -51,14 +61,19 @@ func getListLabelsResponseGetMessageAttributeTypeOk(arg ListLabelsResponseGetMes
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setListLabelsResponseGetMessageAttributeType(arg *ListLabelsResponseGetMessageAttributeType, val ListLabelsResponseGetMessageRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListLabelsResponseGetMessageArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListLabelsResponseGetMessageRetType = string
// ListLabelsResponse ResponseAllLabels.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListLabelsResponse struct {
Labels ListLabelsResponseGetLabelsAttributeType `json:"labels,omitempty"`
Message ListLabelsResponseGetMessageAttributeType `json:"message,omitempty"`
@@ -68,6 +83,7 @@ type ListLabelsResponse struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewListLabelsResponse() *ListLabelsResponse {
this := ListLabelsResponse{}
return &this
@@ -76,12 +92,14 @@ func NewListLabelsResponse() *ListLabelsResponse {
// NewListLabelsResponseWithDefaults instantiates a new ListLabelsResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewListLabelsResponseWithDefaults() *ListLabelsResponse {
this := ListLabelsResponse{}
return &this
}
// GetLabels returns the Labels field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListLabelsResponse) GetLabels() (res ListLabelsResponseGetLabelsRetType) {
res, _ = o.GetLabelsOk()
return
@@ -89,22 +107,26 @@ func (o *ListLabelsResponse) GetLabels() (res ListLabelsResponseGetLabelsRetType
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListLabelsResponse) GetLabelsOk() (ret ListLabelsResponseGetLabelsRetType, ok bool) {
return getListLabelsResponseGetLabelsAttributeTypeOk(o.Labels)
}
// HasLabels returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListLabelsResponse) HasLabels() bool {
_, ok := o.GetLabelsOk()
return ok
}
// SetLabels gets a reference to the given []Label and assigns it to the Labels field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListLabelsResponse) SetLabels(v ListLabelsResponseGetLabelsRetType) {
setListLabelsResponseGetLabelsAttributeType(&o.Labels, v)
}
// GetMessage returns the Message field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListLabelsResponse) GetMessage() (res ListLabelsResponseGetMessageRetType) {
res, _ = o.GetMessageOk()
return
@@ -112,21 +134,25 @@ func (o *ListLabelsResponse) GetMessage() (res ListLabelsResponseGetMessageRetTy
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListLabelsResponse) GetMessageOk() (ret ListLabelsResponseGetMessageRetType, ok bool) {
return getListLabelsResponseGetMessageAttributeTypeOk(o.Message)
}
// HasMessage returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListLabelsResponse) HasMessage() bool {
_, ok := o.GetMessageOk()
return ok
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListLabelsResponse) SetMessage(v ListLabelsResponseGetMessageRetType) {
setListLabelsResponseGetMessageAttributeType(&o.Message, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ListLabelsResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getListLabelsResponseGetLabelsAttributeTypeOk(o.Labels); ok {
@@ -138,37 +164,45 @@ func (o ListLabelsResponse) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableListLabelsResponse struct {
value *ListLabelsResponse
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableListLabelsResponse) Get() *ListLabelsResponse {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableListLabelsResponse) Set(val *ListLabelsResponse) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableListLabelsResponse) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableListLabelsResponse) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableListLabelsResponse(val *ListLabelsResponse) *NullableListLabelsResponse {
return &NullableListLabelsResponse{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableListLabelsResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableListLabelsResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_list_record_sets_response.go b/services/dns/model_list_record_sets_response.go
index acf446ccb..ceb554581 100644
--- a/services/dns/model_list_record_sets_response.go
+++ b/services/dns/model_list_record_sets_response.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,10 +23,16 @@ var _ MappedNullable = &ListRecordSetsResponse{}
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetItemsPerPageAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetItemsPerPageArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetItemsPerPageRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getListRecordSetsResponseGetItemsPerPageAttributeTypeOk(arg ListRecordSetsResponseGetItemsPerPageAttributeType) (ret ListRecordSetsResponseGetItemsPerPageRetType, ok bool) {
if arg == nil {
return ret, false
@@ -33,6 +40,7 @@ func getListRecordSetsResponseGetItemsPerPageAttributeTypeOk(arg ListRecordSetsR
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setListRecordSetsResponseGetItemsPerPageAttributeType(arg *ListRecordSetsResponseGetItemsPerPageAttributeType, val ListRecordSetsResponseGetItemsPerPageRetType) {
*arg = &val
}
@@ -42,8 +50,10 @@ func setListRecordSetsResponseGetItemsPerPageAttributeType(arg *ListRecordSetsRe
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetMessageAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getListRecordSetsResponseGetMessageAttributeTypeOk(arg ListRecordSetsResponseGetMessageAttributeType) (ret ListRecordSetsResponseGetMessageRetType, ok bool) {
if arg == nil {
return ret, false
@@ -51,11 +61,15 @@ func getListRecordSetsResponseGetMessageAttributeTypeOk(arg ListRecordSetsRespon
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setListRecordSetsResponseGetMessageAttributeType(arg *ListRecordSetsResponseGetMessageAttributeType, val ListRecordSetsResponseGetMessageRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetMessageArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetMessageRetType = string
/*
@@ -63,10 +77,16 @@ type ListRecordSetsResponseGetMessageRetType = string
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetRrSetsAttributeType = *[]RecordSet
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetRrSetsArgType = []RecordSet
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetRrSetsRetType = []RecordSet
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getListRecordSetsResponseGetRrSetsAttributeTypeOk(arg ListRecordSetsResponseGetRrSetsAttributeType) (ret ListRecordSetsResponseGetRrSetsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -74,6 +94,7 @@ func getListRecordSetsResponseGetRrSetsAttributeTypeOk(arg ListRecordSetsRespons
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setListRecordSetsResponseGetRrSetsAttributeType(arg *ListRecordSetsResponseGetRrSetsAttributeType, val ListRecordSetsResponseGetRrSetsRetType) {
*arg = &val
}
@@ -83,10 +104,16 @@ func setListRecordSetsResponseGetRrSetsAttributeType(arg *ListRecordSetsResponse
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetTotalItemsAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetTotalItemsArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetTotalItemsRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getListRecordSetsResponseGetTotalItemsAttributeTypeOk(arg ListRecordSetsResponseGetTotalItemsAttributeType) (ret ListRecordSetsResponseGetTotalItemsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -94,6 +121,7 @@ func getListRecordSetsResponseGetTotalItemsAttributeTypeOk(arg ListRecordSetsRes
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setListRecordSetsResponseGetTotalItemsAttributeType(arg *ListRecordSetsResponseGetTotalItemsAttributeType, val ListRecordSetsResponseGetTotalItemsRetType) {
*arg = &val
}
@@ -103,10 +131,16 @@ func setListRecordSetsResponseGetTotalItemsAttributeType(arg *ListRecordSetsResp
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetTotalPagesAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetTotalPagesArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponseGetTotalPagesRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getListRecordSetsResponseGetTotalPagesAttributeTypeOk(arg ListRecordSetsResponseGetTotalPagesAttributeType) (ret ListRecordSetsResponseGetTotalPagesRetType, ok bool) {
if arg == nil {
return ret, false
@@ -114,11 +148,13 @@ func getListRecordSetsResponseGetTotalPagesAttributeTypeOk(arg ListRecordSetsRes
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setListRecordSetsResponseGetTotalPagesAttributeType(arg *ListRecordSetsResponseGetTotalPagesAttributeType, val ListRecordSetsResponseGetTotalPagesRetType) {
*arg = &val
}
// ListRecordSetsResponse ResponseRRSetAll.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListRecordSetsResponse struct {
// Can be cast to int32 without loss of precision.
// REQUIRED
@@ -134,12 +170,14 @@ type ListRecordSetsResponse struct {
TotalPages ListRecordSetsResponseGetTotalPagesAttributeType `json:"totalPages" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _ListRecordSetsResponse ListRecordSetsResponse
// NewListRecordSetsResponse instantiates a new ListRecordSetsResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewListRecordSetsResponse(itemsPerPage ListRecordSetsResponseGetItemsPerPageArgType, rrSets ListRecordSetsResponseGetRrSetsArgType, totalItems ListRecordSetsResponseGetTotalItemsArgType, totalPages ListRecordSetsResponseGetTotalPagesArgType) *ListRecordSetsResponse {
this := ListRecordSetsResponse{}
setListRecordSetsResponseGetItemsPerPageAttributeType(&this.ItemsPerPage, itemsPerPage)
@@ -152,12 +190,14 @@ func NewListRecordSetsResponse(itemsPerPage ListRecordSetsResponseGetItemsPerPag
// NewListRecordSetsResponseWithDefaults instantiates a new ListRecordSetsResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewListRecordSetsResponseWithDefaults() *ListRecordSetsResponse {
this := ListRecordSetsResponse{}
return &this
}
// GetItemsPerPage returns the ItemsPerPage field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) GetItemsPerPage() (ret ListRecordSetsResponseGetItemsPerPageRetType) {
ret, _ = o.GetItemsPerPageOk()
return ret
@@ -165,16 +205,19 @@ func (o *ListRecordSetsResponse) GetItemsPerPage() (ret ListRecordSetsResponseGe
// GetItemsPerPageOk returns a tuple with the ItemsPerPage field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) GetItemsPerPageOk() (ret ListRecordSetsResponseGetItemsPerPageRetType, ok bool) {
return getListRecordSetsResponseGetItemsPerPageAttributeTypeOk(o.ItemsPerPage)
}
// SetItemsPerPage sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) SetItemsPerPage(v ListRecordSetsResponseGetItemsPerPageRetType) {
setListRecordSetsResponseGetItemsPerPageAttributeType(&o.ItemsPerPage, v)
}
// GetMessage returns the Message field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) GetMessage() (res ListRecordSetsResponseGetMessageRetType) {
res, _ = o.GetMessageOk()
return
@@ -182,22 +225,26 @@ func (o *ListRecordSetsResponse) GetMessage() (res ListRecordSetsResponseGetMess
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) GetMessageOk() (ret ListRecordSetsResponseGetMessageRetType, ok bool) {
return getListRecordSetsResponseGetMessageAttributeTypeOk(o.Message)
}
// HasMessage returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) HasMessage() bool {
_, ok := o.GetMessageOk()
return ok
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) SetMessage(v ListRecordSetsResponseGetMessageRetType) {
setListRecordSetsResponseGetMessageAttributeType(&o.Message, v)
}
// GetRrSets returns the RrSets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) GetRrSets() (ret ListRecordSetsResponseGetRrSetsRetType) {
ret, _ = o.GetRrSetsOk()
return ret
@@ -205,16 +252,19 @@ func (o *ListRecordSetsResponse) GetRrSets() (ret ListRecordSetsResponseGetRrSet
// GetRrSetsOk returns a tuple with the RrSets field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) GetRrSetsOk() (ret ListRecordSetsResponseGetRrSetsRetType, ok bool) {
return getListRecordSetsResponseGetRrSetsAttributeTypeOk(o.RrSets)
}
// SetRrSets sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) SetRrSets(v ListRecordSetsResponseGetRrSetsRetType) {
setListRecordSetsResponseGetRrSetsAttributeType(&o.RrSets, v)
}
// GetTotalItems returns the TotalItems field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) GetTotalItems() (ret ListRecordSetsResponseGetTotalItemsRetType) {
ret, _ = o.GetTotalItemsOk()
return ret
@@ -222,16 +272,19 @@ func (o *ListRecordSetsResponse) GetTotalItems() (ret ListRecordSetsResponseGetT
// GetTotalItemsOk returns a tuple with the TotalItems field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) GetTotalItemsOk() (ret ListRecordSetsResponseGetTotalItemsRetType, ok bool) {
return getListRecordSetsResponseGetTotalItemsAttributeTypeOk(o.TotalItems)
}
// SetTotalItems sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) SetTotalItems(v ListRecordSetsResponseGetTotalItemsRetType) {
setListRecordSetsResponseGetTotalItemsAttributeType(&o.TotalItems, v)
}
// GetTotalPages returns the TotalPages field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) GetTotalPages() (ret ListRecordSetsResponseGetTotalPagesRetType) {
ret, _ = o.GetTotalPagesOk()
return ret
@@ -239,15 +292,18 @@ func (o *ListRecordSetsResponse) GetTotalPages() (ret ListRecordSetsResponseGetT
// GetTotalPagesOk returns a tuple with the TotalPages field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) GetTotalPagesOk() (ret ListRecordSetsResponseGetTotalPagesRetType, ok bool) {
return getListRecordSetsResponseGetTotalPagesAttributeTypeOk(o.TotalPages)
}
// SetTotalPages sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListRecordSetsResponse) SetTotalPages(v ListRecordSetsResponseGetTotalPagesRetType) {
setListRecordSetsResponseGetTotalPagesAttributeType(&o.TotalPages, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ListRecordSetsResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getListRecordSetsResponseGetItemsPerPageAttributeTypeOk(o.ItemsPerPage); ok {
@@ -268,37 +324,45 @@ func (o ListRecordSetsResponse) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableListRecordSetsResponse struct {
value *ListRecordSetsResponse
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableListRecordSetsResponse) Get() *ListRecordSetsResponse {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableListRecordSetsResponse) Set(val *ListRecordSetsResponse) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableListRecordSetsResponse) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableListRecordSetsResponse) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableListRecordSetsResponse(val *ListRecordSetsResponse) *NullableListRecordSetsResponse {
return &NullableListRecordSetsResponse{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableListRecordSetsResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableListRecordSetsResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_list_zones_response.go b/services/dns/model_list_zones_response.go
index 7c81f31df..b8122366e 100644
--- a/services/dns/model_list_zones_response.go
+++ b/services/dns/model_list_zones_response.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,10 +23,16 @@ var _ MappedNullable = &ListZonesResponse{}
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetItemsPerPageAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetItemsPerPageArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetItemsPerPageRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getListZonesResponseGetItemsPerPageAttributeTypeOk(arg ListZonesResponseGetItemsPerPageAttributeType) (ret ListZonesResponseGetItemsPerPageRetType, ok bool) {
if arg == nil {
return ret, false
@@ -33,6 +40,7 @@ func getListZonesResponseGetItemsPerPageAttributeTypeOk(arg ListZonesResponseGet
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setListZonesResponseGetItemsPerPageAttributeType(arg *ListZonesResponseGetItemsPerPageAttributeType, val ListZonesResponseGetItemsPerPageRetType) {
*arg = &val
}
@@ -42,8 +50,10 @@ func setListZonesResponseGetItemsPerPageAttributeType(arg *ListZonesResponseGetI
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetMessageAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getListZonesResponseGetMessageAttributeTypeOk(arg ListZonesResponseGetMessageAttributeType) (ret ListZonesResponseGetMessageRetType, ok bool) {
if arg == nil {
return ret, false
@@ -51,11 +61,15 @@ func getListZonesResponseGetMessageAttributeTypeOk(arg ListZonesResponseGetMessa
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setListZonesResponseGetMessageAttributeType(arg *ListZonesResponseGetMessageAttributeType, val ListZonesResponseGetMessageRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetMessageArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetMessageRetType = string
/*
@@ -63,10 +77,16 @@ type ListZonesResponseGetMessageRetType = string
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetTotalItemsAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetTotalItemsArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetTotalItemsRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getListZonesResponseGetTotalItemsAttributeTypeOk(arg ListZonesResponseGetTotalItemsAttributeType) (ret ListZonesResponseGetTotalItemsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -74,6 +94,7 @@ func getListZonesResponseGetTotalItemsAttributeTypeOk(arg ListZonesResponseGetTo
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setListZonesResponseGetTotalItemsAttributeType(arg *ListZonesResponseGetTotalItemsAttributeType, val ListZonesResponseGetTotalItemsRetType) {
*arg = &val
}
@@ -83,10 +104,16 @@ func setListZonesResponseGetTotalItemsAttributeType(arg *ListZonesResponseGetTot
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetTotalPagesAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetTotalPagesArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetTotalPagesRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getListZonesResponseGetTotalPagesAttributeTypeOk(arg ListZonesResponseGetTotalPagesAttributeType) (ret ListZonesResponseGetTotalPagesRetType, ok bool) {
if arg == nil {
return ret, false
@@ -94,6 +121,7 @@ func getListZonesResponseGetTotalPagesAttributeTypeOk(arg ListZonesResponseGetTo
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setListZonesResponseGetTotalPagesAttributeType(arg *ListZonesResponseGetTotalPagesAttributeType, val ListZonesResponseGetTotalPagesRetType) {
*arg = &val
}
@@ -103,10 +131,16 @@ func setListZonesResponseGetTotalPagesAttributeType(arg *ListZonesResponseGetTot
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetZonesAttributeType = *[]Zone
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetZonesArgType = []Zone
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponseGetZonesRetType = []Zone
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getListZonesResponseGetZonesAttributeTypeOk(arg ListZonesResponseGetZonesAttributeType) (ret ListZonesResponseGetZonesRetType, ok bool) {
if arg == nil {
return ret, false
@@ -114,11 +148,13 @@ func getListZonesResponseGetZonesAttributeTypeOk(arg ListZonesResponseGetZonesAt
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setListZonesResponseGetZonesAttributeType(arg *ListZonesResponseGetZonesAttributeType, val ListZonesResponseGetZonesRetType) {
*arg = &val
}
// ListZonesResponse ResponseZoneAll for filtered zones.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ListZonesResponse struct {
// Can be cast to int32 without loss of precision.
// REQUIRED
@@ -134,12 +170,14 @@ type ListZonesResponse struct {
Zones ListZonesResponseGetZonesAttributeType `json:"zones" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _ListZonesResponse ListZonesResponse
// NewListZonesResponse instantiates a new ListZonesResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewListZonesResponse(itemsPerPage ListZonesResponseGetItemsPerPageArgType, totalItems ListZonesResponseGetTotalItemsArgType, totalPages ListZonesResponseGetTotalPagesArgType, zones ListZonesResponseGetZonesArgType) *ListZonesResponse {
this := ListZonesResponse{}
setListZonesResponseGetItemsPerPageAttributeType(&this.ItemsPerPage, itemsPerPage)
@@ -152,12 +190,14 @@ func NewListZonesResponse(itemsPerPage ListZonesResponseGetItemsPerPageArgType,
// NewListZonesResponseWithDefaults instantiates a new ListZonesResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewListZonesResponseWithDefaults() *ListZonesResponse {
this := ListZonesResponse{}
return &this
}
// GetItemsPerPage returns the ItemsPerPage field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) GetItemsPerPage() (ret ListZonesResponseGetItemsPerPageRetType) {
ret, _ = o.GetItemsPerPageOk()
return ret
@@ -165,16 +205,19 @@ func (o *ListZonesResponse) GetItemsPerPage() (ret ListZonesResponseGetItemsPerP
// GetItemsPerPageOk returns a tuple with the ItemsPerPage field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) GetItemsPerPageOk() (ret ListZonesResponseGetItemsPerPageRetType, ok bool) {
return getListZonesResponseGetItemsPerPageAttributeTypeOk(o.ItemsPerPage)
}
// SetItemsPerPage sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) SetItemsPerPage(v ListZonesResponseGetItemsPerPageRetType) {
setListZonesResponseGetItemsPerPageAttributeType(&o.ItemsPerPage, v)
}
// GetMessage returns the Message field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) GetMessage() (res ListZonesResponseGetMessageRetType) {
res, _ = o.GetMessageOk()
return
@@ -182,22 +225,26 @@ func (o *ListZonesResponse) GetMessage() (res ListZonesResponseGetMessageRetType
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) GetMessageOk() (ret ListZonesResponseGetMessageRetType, ok bool) {
return getListZonesResponseGetMessageAttributeTypeOk(o.Message)
}
// HasMessage returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) HasMessage() bool {
_, ok := o.GetMessageOk()
return ok
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) SetMessage(v ListZonesResponseGetMessageRetType) {
setListZonesResponseGetMessageAttributeType(&o.Message, v)
}
// GetTotalItems returns the TotalItems field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) GetTotalItems() (ret ListZonesResponseGetTotalItemsRetType) {
ret, _ = o.GetTotalItemsOk()
return ret
@@ -205,16 +252,19 @@ func (o *ListZonesResponse) GetTotalItems() (ret ListZonesResponseGetTotalItemsR
// GetTotalItemsOk returns a tuple with the TotalItems field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) GetTotalItemsOk() (ret ListZonesResponseGetTotalItemsRetType, ok bool) {
return getListZonesResponseGetTotalItemsAttributeTypeOk(o.TotalItems)
}
// SetTotalItems sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) SetTotalItems(v ListZonesResponseGetTotalItemsRetType) {
setListZonesResponseGetTotalItemsAttributeType(&o.TotalItems, v)
}
// GetTotalPages returns the TotalPages field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) GetTotalPages() (ret ListZonesResponseGetTotalPagesRetType) {
ret, _ = o.GetTotalPagesOk()
return ret
@@ -222,16 +272,19 @@ func (o *ListZonesResponse) GetTotalPages() (ret ListZonesResponseGetTotalPagesR
// GetTotalPagesOk returns a tuple with the TotalPages field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) GetTotalPagesOk() (ret ListZonesResponseGetTotalPagesRetType, ok bool) {
return getListZonesResponseGetTotalPagesAttributeTypeOk(o.TotalPages)
}
// SetTotalPages sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) SetTotalPages(v ListZonesResponseGetTotalPagesRetType) {
setListZonesResponseGetTotalPagesAttributeType(&o.TotalPages, v)
}
// GetZones returns the Zones field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) GetZones() (ret ListZonesResponseGetZonesRetType) {
ret, _ = o.GetZonesOk()
return ret
@@ -239,15 +292,18 @@ func (o *ListZonesResponse) GetZones() (ret ListZonesResponseGetZonesRetType) {
// GetZonesOk returns a tuple with the Zones field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) GetZonesOk() (ret ListZonesResponseGetZonesRetType, ok bool) {
return getListZonesResponseGetZonesAttributeTypeOk(o.Zones)
}
// SetZones sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ListZonesResponse) SetZones(v ListZonesResponseGetZonesRetType) {
setListZonesResponseGetZonesAttributeType(&o.Zones, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ListZonesResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getListZonesResponseGetItemsPerPageAttributeTypeOk(o.ItemsPerPage); ok {
@@ -268,37 +324,45 @@ func (o ListZonesResponse) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableListZonesResponse struct {
value *ListZonesResponse
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableListZonesResponse) Get() *ListZonesResponse {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableListZonesResponse) Set(val *ListZonesResponse) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableListZonesResponse) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableListZonesResponse) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableListZonesResponse(val *ListZonesResponse) *NullableListZonesResponse {
return &NullableListZonesResponse{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableListZonesResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableListZonesResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_message.go b/services/dns/model_message.go
index 6e29cc0fc..48f7189dd 100644
--- a/services/dns/model_message.go
+++ b/services/dns/model_message.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &Message{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MessageGetMessageAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getMessageGetMessageAttributeTypeOk(arg MessageGetMessageAttributeType) (ret MessageGetMessageRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,14 +34,19 @@ func getMessageGetMessageAttributeTypeOk(arg MessageGetMessageAttributeType) (re
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setMessageGetMessageAttributeType(arg *MessageGetMessageAttributeType, val MessageGetMessageRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MessageGetMessageArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MessageGetMessageRetType = string
// Message struct for Message
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type Message struct {
Message MessageGetMessageAttributeType `json:"message,omitempty"`
}
@@ -47,6 +55,7 @@ type Message struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewMessage() *Message {
this := Message{}
return &this
@@ -55,12 +64,14 @@ func NewMessage() *Message {
// NewMessageWithDefaults instantiates a new Message 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewMessageWithDefaults() *Message {
this := Message{}
return &this
}
// GetMessage returns the Message field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Message) GetMessage() (res MessageGetMessageRetType) {
res, _ = o.GetMessageOk()
return
@@ -68,21 +79,25 @@ func (o *Message) GetMessage() (res MessageGetMessageRetType) {
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Message) GetMessageOk() (ret MessageGetMessageRetType, ok bool) {
return getMessageGetMessageAttributeTypeOk(o.Message)
}
// HasMessage returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Message) HasMessage() bool {
_, ok := o.GetMessageOk()
return ok
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Message) SetMessage(v MessageGetMessageRetType) {
setMessageGetMessageAttributeType(&o.Message, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o Message) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getMessageGetMessageAttributeTypeOk(o.Message); ok {
@@ -91,37 +106,45 @@ func (o Message) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableMessage struct {
value *Message
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableMessage) Get() *Message {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableMessage) Set(val *Message) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableMessage) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableMessage) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableMessage(val *Message) *NullableMessage {
return &NullableMessage{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableMessage) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableMessage) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_move_code_response.go b/services/dns/model_move_code_response.go
index ac971e013..665eba4a9 100644
--- a/services/dns/model_move_code_response.go
+++ b/services/dns/model_move_code_response.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &MoveCodeResponse{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveCodeResponseGetCodeAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getMoveCodeResponseGetCodeAttributeTypeOk(arg MoveCodeResponseGetCodeAttributeType) (ret MoveCodeResponseGetCodeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getMoveCodeResponseGetCodeAttributeTypeOk(arg MoveCodeResponseGetCodeAttrib
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setMoveCodeResponseGetCodeAttributeType(arg *MoveCodeResponseGetCodeAttributeType, val MoveCodeResponseGetCodeRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveCodeResponseGetCodeArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveCodeResponseGetCodeRetType = string
/*
@@ -43,8 +50,10 @@ type MoveCodeResponseGetCodeRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveCodeResponseGetExpiresAtAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getMoveCodeResponseGetExpiresAtAttributeTypeOk(arg MoveCodeResponseGetExpiresAtAttributeType) (ret MoveCodeResponseGetExpiresAtRetType, ok bool) {
if arg == nil {
return ret, false
@@ -52,11 +61,15 @@ func getMoveCodeResponseGetExpiresAtAttributeTypeOk(arg MoveCodeResponseGetExpir
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setMoveCodeResponseGetExpiresAtAttributeType(arg *MoveCodeResponseGetExpiresAtAttributeType, val MoveCodeResponseGetExpiresAtRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveCodeResponseGetExpiresAtArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveCodeResponseGetExpiresAtRetType = string
/*
@@ -64,8 +77,10 @@ type MoveCodeResponseGetExpiresAtRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveCodeResponseGetMessageAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getMoveCodeResponseGetMessageAttributeTypeOk(arg MoveCodeResponseGetMessageAttributeType) (ret MoveCodeResponseGetMessageRetType, ok bool) {
if arg == nil {
return ret, false
@@ -73,14 +88,19 @@ func getMoveCodeResponseGetMessageAttributeTypeOk(arg MoveCodeResponseGetMessage
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setMoveCodeResponseGetMessageAttributeType(arg *MoveCodeResponseGetMessageAttributeType, val MoveCodeResponseGetMessageRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveCodeResponseGetMessageArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveCodeResponseGetMessageRetType = string
// MoveCodeResponse struct for MoveCodeResponse
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveCodeResponse struct {
// code to move the zone. It is one time shown so better keep it.
// REQUIRED
@@ -92,12 +112,14 @@ type MoveCodeResponse struct {
Message MoveCodeResponseGetMessageAttributeType `json:"message,omitempty"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _MoveCodeResponse MoveCodeResponse
// NewMoveCodeResponse instantiates a new MoveCodeResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewMoveCodeResponse(code MoveCodeResponseGetCodeArgType, expiresAt MoveCodeResponseGetExpiresAtArgType) *MoveCodeResponse {
this := MoveCodeResponse{}
setMoveCodeResponseGetCodeAttributeType(&this.Code, code)
@@ -108,12 +130,14 @@ func NewMoveCodeResponse(code MoveCodeResponseGetCodeArgType, expiresAt MoveCode
// NewMoveCodeResponseWithDefaults instantiates a new MoveCodeResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewMoveCodeResponseWithDefaults() *MoveCodeResponse {
this := MoveCodeResponse{}
return &this
}
// GetCode returns the Code field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveCodeResponse) GetCode() (ret MoveCodeResponseGetCodeRetType) {
ret, _ = o.GetCodeOk()
return ret
@@ -121,16 +145,19 @@ func (o *MoveCodeResponse) GetCode() (ret MoveCodeResponseGetCodeRetType) {
// GetCodeOk returns a tuple with the Code field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveCodeResponse) GetCodeOk() (ret MoveCodeResponseGetCodeRetType, ok bool) {
return getMoveCodeResponseGetCodeAttributeTypeOk(o.Code)
}
// SetCode sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveCodeResponse) SetCode(v MoveCodeResponseGetCodeRetType) {
setMoveCodeResponseGetCodeAttributeType(&o.Code, v)
}
// GetExpiresAt returns the ExpiresAt field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveCodeResponse) GetExpiresAt() (ret MoveCodeResponseGetExpiresAtRetType) {
ret, _ = o.GetExpiresAtOk()
return ret
@@ -138,16 +165,19 @@ func (o *MoveCodeResponse) GetExpiresAt() (ret MoveCodeResponseGetExpiresAtRetTy
// GetExpiresAtOk returns a tuple with the ExpiresAt field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveCodeResponse) GetExpiresAtOk() (ret MoveCodeResponseGetExpiresAtRetType, ok bool) {
return getMoveCodeResponseGetExpiresAtAttributeTypeOk(o.ExpiresAt)
}
// SetExpiresAt sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveCodeResponse) SetExpiresAt(v MoveCodeResponseGetExpiresAtRetType) {
setMoveCodeResponseGetExpiresAtAttributeType(&o.ExpiresAt, v)
}
// GetMessage returns the Message field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveCodeResponse) GetMessage() (res MoveCodeResponseGetMessageRetType) {
res, _ = o.GetMessageOk()
return
@@ -155,21 +185,25 @@ func (o *MoveCodeResponse) GetMessage() (res MoveCodeResponseGetMessageRetType)
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveCodeResponse) GetMessageOk() (ret MoveCodeResponseGetMessageRetType, ok bool) {
return getMoveCodeResponseGetMessageAttributeTypeOk(o.Message)
}
// HasMessage returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveCodeResponse) HasMessage() bool {
_, ok := o.GetMessageOk()
return ok
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveCodeResponse) SetMessage(v MoveCodeResponseGetMessageRetType) {
setMoveCodeResponseGetMessageAttributeType(&o.Message, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o MoveCodeResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getMoveCodeResponseGetCodeAttributeTypeOk(o.Code); ok {
@@ -184,37 +218,45 @@ func (o MoveCodeResponse) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableMoveCodeResponse struct {
value *MoveCodeResponse
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableMoveCodeResponse) Get() *MoveCodeResponse {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableMoveCodeResponse) Set(val *MoveCodeResponse) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableMoveCodeResponse) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableMoveCodeResponse) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableMoveCodeResponse(val *MoveCodeResponse) *NullableMoveCodeResponse {
return &NullableMoveCodeResponse{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableMoveCodeResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableMoveCodeResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_move_zone_payload.go b/services/dns/model_move_zone_payload.go
index d2da2d2fa..82e0327a9 100644
--- a/services/dns/model_move_zone_payload.go
+++ b/services/dns/model_move_zone_payload.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &MoveZonePayload{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveZonePayloadGetCodeAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getMoveZonePayloadGetCodeAttributeTypeOk(arg MoveZonePayloadGetCodeAttributeType) (ret MoveZonePayloadGetCodeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getMoveZonePayloadGetCodeAttributeTypeOk(arg MoveZonePayloadGetCodeAttribut
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setMoveZonePayloadGetCodeAttributeType(arg *MoveZonePayloadGetCodeAttributeType, val MoveZonePayloadGetCodeRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveZonePayloadGetCodeArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveZonePayloadGetCodeRetType = string
/*
@@ -43,8 +50,10 @@ type MoveZonePayloadGetCodeRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveZonePayloadGetZoneDnsNameAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getMoveZonePayloadGetZoneDnsNameAttributeTypeOk(arg MoveZonePayloadGetZoneDnsNameAttributeType) (ret MoveZonePayloadGetZoneDnsNameRetType, ok bool) {
if arg == nil {
return ret, false
@@ -52,14 +61,19 @@ func getMoveZonePayloadGetZoneDnsNameAttributeTypeOk(arg MoveZonePayloadGetZoneD
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setMoveZonePayloadGetZoneDnsNameAttributeType(arg *MoveZonePayloadGetZoneDnsNameAttributeType, val MoveZonePayloadGetZoneDnsNameRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveZonePayloadGetZoneDnsNameArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveZonePayloadGetZoneDnsNameRetType = string
// MoveZonePayload body to move zone from one project to another.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MoveZonePayload struct {
// Code to move the zone. It must be valid, not expired and belong
// REQUIRED
@@ -69,12 +83,14 @@ type MoveZonePayload struct {
ZoneDnsName MoveZonePayloadGetZoneDnsNameAttributeType `json:"zoneDnsName" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _MoveZonePayload MoveZonePayload
// NewMoveZonePayload instantiates a new MoveZonePayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewMoveZonePayload(code MoveZonePayloadGetCodeArgType, zoneDnsName MoveZonePayloadGetZoneDnsNameArgType) *MoveZonePayload {
this := MoveZonePayload{}
setMoveZonePayloadGetCodeAttributeType(&this.Code, code)
@@ -85,12 +101,14 @@ func NewMoveZonePayload(code MoveZonePayloadGetCodeArgType, zoneDnsName MoveZone
// NewMoveZonePayloadWithDefaults instantiates a new MoveZonePayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewMoveZonePayloadWithDefaults() *MoveZonePayload {
this := MoveZonePayload{}
return &this
}
// GetCode returns the Code field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveZonePayload) GetCode() (ret MoveZonePayloadGetCodeRetType) {
ret, _ = o.GetCodeOk()
return ret
@@ -98,16 +116,19 @@ func (o *MoveZonePayload) GetCode() (ret MoveZonePayloadGetCodeRetType) {
// GetCodeOk returns a tuple with the Code field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveZonePayload) GetCodeOk() (ret MoveZonePayloadGetCodeRetType, ok bool) {
return getMoveZonePayloadGetCodeAttributeTypeOk(o.Code)
}
// SetCode sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveZonePayload) SetCode(v MoveZonePayloadGetCodeRetType) {
setMoveZonePayloadGetCodeAttributeType(&o.Code, v)
}
// GetZoneDnsName returns the ZoneDnsName field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveZonePayload) GetZoneDnsName() (ret MoveZonePayloadGetZoneDnsNameRetType) {
ret, _ = o.GetZoneDnsNameOk()
return ret
@@ -115,15 +136,18 @@ func (o *MoveZonePayload) GetZoneDnsName() (ret MoveZonePayloadGetZoneDnsNameRet
// GetZoneDnsNameOk returns a tuple with the ZoneDnsName field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveZonePayload) GetZoneDnsNameOk() (ret MoveZonePayloadGetZoneDnsNameRetType, ok bool) {
return getMoveZonePayloadGetZoneDnsNameAttributeTypeOk(o.ZoneDnsName)
}
// SetZoneDnsName sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *MoveZonePayload) SetZoneDnsName(v MoveZonePayloadGetZoneDnsNameRetType) {
setMoveZonePayloadGetZoneDnsNameAttributeType(&o.ZoneDnsName, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o MoveZonePayload) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getMoveZonePayloadGetCodeAttributeTypeOk(o.Code); ok {
@@ -135,37 +159,45 @@ func (o MoveZonePayload) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableMoveZonePayload struct {
value *MoveZonePayload
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableMoveZonePayload) Get() *MoveZonePayload {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableMoveZonePayload) Set(val *MoveZonePayload) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableMoveZonePayload) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableMoveZonePayload) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableMoveZonePayload(val *MoveZonePayload) *NullableMoveZonePayload {
return &NullableMoveZonePayload{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableMoveZonePayload) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableMoveZonePayload) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_partial_update_record_payload.go b/services/dns/model_partial_update_record_payload.go
index ec257e6af..4a86d7b85 100644
--- a/services/dns/model_partial_update_record_payload.go
+++ b/services/dns/model_partial_update_record_payload.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -26,20 +27,25 @@ var _ MappedNullable = &PartialUpdateRecordPayload{}
// PartialUpdateRecordPayloadAction the model 'PartialUpdateRecordPayload'
// value type for enums
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordPayloadAction string
// List of Action
const (
- PARTIALUPDATERECORDPAYLOADACTION_ADD PartialUpdateRecordPayloadAction = "add"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ PARTIALUPDATERECORDPAYLOADACTION_ADD PartialUpdateRecordPayloadAction = "add"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
PARTIALUPDATERECORDPAYLOADACTION_DELETE PartialUpdateRecordPayloadAction = "delete"
)
// All allowed values of PartialUpdateRecordPayload enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
var AllowedPartialUpdateRecordPayloadActionEnumValues = []PartialUpdateRecordPayloadAction{
"add",
"delete",
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *PartialUpdateRecordPayloadAction) UnmarshalJSON(src []byte) error {
// use a type alias to prevent infinite recursion during unmarshal,
// see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers
@@ -67,6 +73,7 @@ func (v *PartialUpdateRecordPayloadAction) UnmarshalJSON(src []byte) error {
// NewPartialUpdateRecordPayloadActionFromValue returns a pointer to a valid PartialUpdateRecordPayloadAction
// for the value passed as argument, or an error if the value passed is not allowed by the enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewPartialUpdateRecordPayloadActionFromValue(v PartialUpdateRecordPayloadAction) (*PartialUpdateRecordPayloadAction, error) {
ev := PartialUpdateRecordPayloadAction(v)
if ev.IsValid() {
@@ -77,6 +84,7 @@ func NewPartialUpdateRecordPayloadActionFromValue(v PartialUpdateRecordPayloadAc
}
// IsValid return true if the value is valid for the enum, false otherwise
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v PartialUpdateRecordPayloadAction) IsValid() bool {
for _, existing := range AllowedPartialUpdateRecordPayloadActionEnumValues {
if existing == v {
@@ -87,50 +95,65 @@ func (v PartialUpdateRecordPayloadAction) IsValid() bool {
}
// Ptr returns reference to ActionAction value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v PartialUpdateRecordPayloadAction) Ptr() *PartialUpdateRecordPayloadAction {
return &v
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullablePartialUpdateRecordPayloadAction struct {
value *PartialUpdateRecordPayloadAction
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullablePartialUpdateRecordPayloadAction) Get() *PartialUpdateRecordPayloadAction {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullablePartialUpdateRecordPayloadAction) Set(val *PartialUpdateRecordPayloadAction) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullablePartialUpdateRecordPayloadAction) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullablePartialUpdateRecordPayloadAction) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullablePartialUpdateRecordPayloadAction(val *PartialUpdateRecordPayloadAction) *NullablePartialUpdateRecordPayloadAction {
return &NullablePartialUpdateRecordPayloadAction{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullablePartialUpdateRecordPayloadAction) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullablePartialUpdateRecordPayloadAction) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordPayloadGetActionAttributeType = *PartialUpdateRecordPayloadAction
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordPayloadGetActionArgType = PartialUpdateRecordPayloadAction
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordPayloadGetActionRetType = PartialUpdateRecordPayloadAction
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateRecordPayloadGetActionAttributeTypeOk(arg PartialUpdateRecordPayloadGetActionAttributeType) (ret PartialUpdateRecordPayloadGetActionRetType, ok bool) {
if arg == nil {
return ret, false
@@ -138,6 +161,7 @@ func getPartialUpdateRecordPayloadGetActionAttributeTypeOk(arg PartialUpdateReco
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateRecordPayloadGetActionAttributeType(arg *PartialUpdateRecordPayloadGetActionAttributeType, val PartialUpdateRecordPayloadGetActionRetType) {
*arg = &val
}
@@ -147,10 +171,16 @@ func setPartialUpdateRecordPayloadGetActionAttributeType(arg *PartialUpdateRecor
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordPayloadGetRecordsAttributeType = *[]RecordPayload
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordPayloadGetRecordsArgType = []RecordPayload
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordPayloadGetRecordsRetType = []RecordPayload
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateRecordPayloadGetRecordsAttributeTypeOk(arg PartialUpdateRecordPayloadGetRecordsAttributeType) (ret PartialUpdateRecordPayloadGetRecordsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -158,11 +188,13 @@ func getPartialUpdateRecordPayloadGetRecordsAttributeTypeOk(arg PartialUpdateRec
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateRecordPayloadGetRecordsAttributeType(arg *PartialUpdateRecordPayloadGetRecordsAttributeType, val PartialUpdateRecordPayloadGetRecordsRetType) {
*arg = &val
}
// PartialUpdateRecordPayload RecordPatch for record patch in record set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordPayload struct {
// REQUIRED
Action PartialUpdateRecordPayloadGetActionAttributeType `json:"action" required:"true"`
@@ -171,12 +203,14 @@ type PartialUpdateRecordPayload struct {
Records PartialUpdateRecordPayloadGetRecordsAttributeType `json:"records" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _PartialUpdateRecordPayload PartialUpdateRecordPayload
// NewPartialUpdateRecordPayload instantiates a new PartialUpdateRecordPayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewPartialUpdateRecordPayload(action PartialUpdateRecordPayloadGetActionArgType, records PartialUpdateRecordPayloadGetRecordsArgType) *PartialUpdateRecordPayload {
this := PartialUpdateRecordPayload{}
setPartialUpdateRecordPayloadGetActionAttributeType(&this.Action, action)
@@ -187,12 +221,14 @@ func NewPartialUpdateRecordPayload(action PartialUpdateRecordPayloadGetActionArg
// NewPartialUpdateRecordPayloadWithDefaults instantiates a new PartialUpdateRecordPayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewPartialUpdateRecordPayloadWithDefaults() *PartialUpdateRecordPayload {
this := PartialUpdateRecordPayload{}
return &this
}
// GetAction returns the Action field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordPayload) GetAction() (ret PartialUpdateRecordPayloadGetActionRetType) {
ret, _ = o.GetActionOk()
return ret
@@ -200,16 +236,19 @@ func (o *PartialUpdateRecordPayload) GetAction() (ret PartialUpdateRecordPayload
// GetActionOk returns a tuple with the Action field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordPayload) GetActionOk() (ret PartialUpdateRecordPayloadGetActionRetType, ok bool) {
return getPartialUpdateRecordPayloadGetActionAttributeTypeOk(o.Action)
}
// SetAction sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordPayload) SetAction(v PartialUpdateRecordPayloadGetActionRetType) {
setPartialUpdateRecordPayloadGetActionAttributeType(&o.Action, v)
}
// GetRecords returns the Records field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordPayload) GetRecords() (ret PartialUpdateRecordPayloadGetRecordsRetType) {
ret, _ = o.GetRecordsOk()
return ret
@@ -217,15 +256,18 @@ func (o *PartialUpdateRecordPayload) GetRecords() (ret PartialUpdateRecordPayloa
// GetRecordsOk returns a tuple with the Records field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordPayload) GetRecordsOk() (ret PartialUpdateRecordPayloadGetRecordsRetType, ok bool) {
return getPartialUpdateRecordPayloadGetRecordsAttributeTypeOk(o.Records)
}
// SetRecords sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordPayload) SetRecords(v PartialUpdateRecordPayloadGetRecordsRetType) {
setPartialUpdateRecordPayloadGetRecordsAttributeType(&o.Records, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o PartialUpdateRecordPayload) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getPartialUpdateRecordPayloadGetActionAttributeTypeOk(o.Action); ok {
@@ -237,37 +279,45 @@ func (o PartialUpdateRecordPayload) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullablePartialUpdateRecordPayload struct {
value *PartialUpdateRecordPayload
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullablePartialUpdateRecordPayload) Get() *PartialUpdateRecordPayload {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullablePartialUpdateRecordPayload) Set(val *PartialUpdateRecordPayload) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullablePartialUpdateRecordPayload) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullablePartialUpdateRecordPayload) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullablePartialUpdateRecordPayload(val *PartialUpdateRecordPayload) *NullablePartialUpdateRecordPayload {
return &NullablePartialUpdateRecordPayload{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullablePartialUpdateRecordPayload) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullablePartialUpdateRecordPayload) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_partial_update_record_set_payload.go b/services/dns/model_partial_update_record_set_payload.go
index 6780e037d..a1f3a03c2 100644
--- a/services/dns/model_partial_update_record_set_payload.go
+++ b/services/dns/model_partial_update_record_set_payload.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &PartialUpdateRecordSetPayload{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordSetPayloadGetCommentAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateRecordSetPayloadGetCommentAttributeTypeOk(arg PartialUpdateRecordSetPayloadGetCommentAttributeType) (ret PartialUpdateRecordSetPayloadGetCommentRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getPartialUpdateRecordSetPayloadGetCommentAttributeTypeOk(arg PartialUpdate
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateRecordSetPayloadGetCommentAttributeType(arg *PartialUpdateRecordSetPayloadGetCommentAttributeType, val PartialUpdateRecordSetPayloadGetCommentRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordSetPayloadGetCommentArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordSetPayloadGetCommentRetType = string
/*
@@ -43,8 +50,10 @@ type PartialUpdateRecordSetPayloadGetCommentRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordSetPayloadGetNameAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateRecordSetPayloadGetNameAttributeTypeOk(arg PartialUpdateRecordSetPayloadGetNameAttributeType) (ret PartialUpdateRecordSetPayloadGetNameRetType, ok bool) {
if arg == nil {
return ret, false
@@ -52,11 +61,15 @@ func getPartialUpdateRecordSetPayloadGetNameAttributeTypeOk(arg PartialUpdateRec
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateRecordSetPayloadGetNameAttributeType(arg *PartialUpdateRecordSetPayloadGetNameAttributeType, val PartialUpdateRecordSetPayloadGetNameRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordSetPayloadGetNameArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordSetPayloadGetNameRetType = string
/*
@@ -64,10 +77,16 @@ type PartialUpdateRecordSetPayloadGetNameRetType = string
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordSetPayloadGetRecordsAttributeType = *[]RecordPayload
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordSetPayloadGetRecordsArgType = []RecordPayload
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordSetPayloadGetRecordsRetType = []RecordPayload
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateRecordSetPayloadGetRecordsAttributeTypeOk(arg PartialUpdateRecordSetPayloadGetRecordsAttributeType) (ret PartialUpdateRecordSetPayloadGetRecordsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -75,6 +94,7 @@ func getPartialUpdateRecordSetPayloadGetRecordsAttributeTypeOk(arg PartialUpdate
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateRecordSetPayloadGetRecordsAttributeType(arg *PartialUpdateRecordSetPayloadGetRecordsAttributeType, val PartialUpdateRecordSetPayloadGetRecordsRetType) {
*arg = &val
}
@@ -84,10 +104,16 @@ func setPartialUpdateRecordSetPayloadGetRecordsAttributeType(arg *PartialUpdateR
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordSetPayloadGetTtlAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordSetPayloadGetTtlArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordSetPayloadGetTtlRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateRecordSetPayloadGetTtlAttributeTypeOk(arg PartialUpdateRecordSetPayloadGetTtlAttributeType) (ret PartialUpdateRecordSetPayloadGetTtlRetType, ok bool) {
if arg == nil {
return ret, false
@@ -95,11 +121,13 @@ func getPartialUpdateRecordSetPayloadGetTtlAttributeTypeOk(arg PartialUpdateReco
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateRecordSetPayloadGetTtlAttributeType(arg *PartialUpdateRecordSetPayloadGetTtlAttributeType, val PartialUpdateRecordSetPayloadGetTtlRetType) {
*arg = &val
}
// PartialUpdateRecordSetPayload RRSetPatch for rr patch set info.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateRecordSetPayload struct {
// user comment
Comment PartialUpdateRecordSetPayloadGetCommentAttributeType `json:"comment,omitempty"`
@@ -116,6 +144,7 @@ type PartialUpdateRecordSetPayload struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewPartialUpdateRecordSetPayload() *PartialUpdateRecordSetPayload {
this := PartialUpdateRecordSetPayload{}
return &this
@@ -124,12 +153,14 @@ func NewPartialUpdateRecordSetPayload() *PartialUpdateRecordSetPayload {
// NewPartialUpdateRecordSetPayloadWithDefaults instantiates a new PartialUpdateRecordSetPayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewPartialUpdateRecordSetPayloadWithDefaults() *PartialUpdateRecordSetPayload {
this := PartialUpdateRecordSetPayload{}
return &this
}
// GetComment returns the Comment field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) GetComment() (res PartialUpdateRecordSetPayloadGetCommentRetType) {
res, _ = o.GetCommentOk()
return
@@ -137,22 +168,26 @@ func (o *PartialUpdateRecordSetPayload) GetComment() (res PartialUpdateRecordSet
// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) GetCommentOk() (ret PartialUpdateRecordSetPayloadGetCommentRetType, ok bool) {
return getPartialUpdateRecordSetPayloadGetCommentAttributeTypeOk(o.Comment)
}
// HasComment returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) HasComment() bool {
_, ok := o.GetCommentOk()
return ok
}
// SetComment gets a reference to the given string and assigns it to the Comment field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) SetComment(v PartialUpdateRecordSetPayloadGetCommentRetType) {
setPartialUpdateRecordSetPayloadGetCommentAttributeType(&o.Comment, v)
}
// GetName returns the Name field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) GetName() (res PartialUpdateRecordSetPayloadGetNameRetType) {
res, _ = o.GetNameOk()
return
@@ -160,22 +195,26 @@ func (o *PartialUpdateRecordSetPayload) GetName() (res PartialUpdateRecordSetPay
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) GetNameOk() (ret PartialUpdateRecordSetPayloadGetNameRetType, ok bool) {
return getPartialUpdateRecordSetPayloadGetNameAttributeTypeOk(o.Name)
}
// HasName returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) HasName() bool {
_, ok := o.GetNameOk()
return ok
}
// SetName gets a reference to the given string and assigns it to the Name field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) SetName(v PartialUpdateRecordSetPayloadGetNameRetType) {
setPartialUpdateRecordSetPayloadGetNameAttributeType(&o.Name, v)
}
// GetRecords returns the Records field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) GetRecords() (res PartialUpdateRecordSetPayloadGetRecordsRetType) {
res, _ = o.GetRecordsOk()
return
@@ -183,22 +222,26 @@ func (o *PartialUpdateRecordSetPayload) GetRecords() (res PartialUpdateRecordSet
// GetRecordsOk returns a tuple with the Records field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) GetRecordsOk() (ret PartialUpdateRecordSetPayloadGetRecordsRetType, ok bool) {
return getPartialUpdateRecordSetPayloadGetRecordsAttributeTypeOk(o.Records)
}
// HasRecords returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) HasRecords() bool {
_, ok := o.GetRecordsOk()
return ok
}
// SetRecords gets a reference to the given []RecordPayload and assigns it to the Records field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) SetRecords(v PartialUpdateRecordSetPayloadGetRecordsRetType) {
setPartialUpdateRecordSetPayloadGetRecordsAttributeType(&o.Records, v)
}
// GetTtl returns the Ttl field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) GetTtl() (res PartialUpdateRecordSetPayloadGetTtlRetType) {
res, _ = o.GetTtlOk()
return
@@ -206,21 +249,25 @@ func (o *PartialUpdateRecordSetPayload) GetTtl() (res PartialUpdateRecordSetPayl
// GetTtlOk returns a tuple with the Ttl field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) GetTtlOk() (ret PartialUpdateRecordSetPayloadGetTtlRetType, ok bool) {
return getPartialUpdateRecordSetPayloadGetTtlAttributeTypeOk(o.Ttl)
}
// HasTtl returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) HasTtl() bool {
_, ok := o.GetTtlOk()
return ok
}
// SetTtl gets a reference to the given int64 and assigns it to the Ttl field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateRecordSetPayload) SetTtl(v PartialUpdateRecordSetPayloadGetTtlRetType) {
setPartialUpdateRecordSetPayloadGetTtlAttributeType(&o.Ttl, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o PartialUpdateRecordSetPayload) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getPartialUpdateRecordSetPayloadGetCommentAttributeTypeOk(o.Comment); ok {
@@ -238,37 +285,45 @@ func (o PartialUpdateRecordSetPayload) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullablePartialUpdateRecordSetPayload struct {
value *PartialUpdateRecordSetPayload
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullablePartialUpdateRecordSetPayload) Get() *PartialUpdateRecordSetPayload {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullablePartialUpdateRecordSetPayload) Set(val *PartialUpdateRecordSetPayload) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullablePartialUpdateRecordSetPayload) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullablePartialUpdateRecordSetPayload) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullablePartialUpdateRecordSetPayload(val *PartialUpdateRecordSetPayload) *NullablePartialUpdateRecordSetPayload {
return &NullablePartialUpdateRecordSetPayload{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullablePartialUpdateRecordSetPayload) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullablePartialUpdateRecordSetPayload) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_partial_update_zone_payload.go b/services/dns/model_partial_update_zone_payload.go
index bea32d386..9bd01e14c 100644
--- a/services/dns/model_partial_update_zone_payload.go
+++ b/services/dns/model_partial_update_zone_payload.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &PartialUpdateZonePayload{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetAclAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateZonePayloadGetAclAttributeTypeOk(arg PartialUpdateZonePayloadGetAclAttributeType) (ret PartialUpdateZonePayloadGetAclRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getPartialUpdateZonePayloadGetAclAttributeTypeOk(arg PartialUpdateZonePaylo
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateZonePayloadGetAclAttributeType(arg *PartialUpdateZonePayloadGetAclAttributeType, val PartialUpdateZonePayloadGetAclRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetAclArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetAclRetType = string
/*
@@ -43,8 +50,10 @@ type PartialUpdateZonePayloadGetAclRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetContactEmailAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateZonePayloadGetContactEmailAttributeTypeOk(arg PartialUpdateZonePayloadGetContactEmailAttributeType) (ret PartialUpdateZonePayloadGetContactEmailRetType, ok bool) {
if arg == nil {
return ret, false
@@ -52,11 +61,15 @@ func getPartialUpdateZonePayloadGetContactEmailAttributeTypeOk(arg PartialUpdate
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateZonePayloadGetContactEmailAttributeType(arg *PartialUpdateZonePayloadGetContactEmailAttributeType, val PartialUpdateZonePayloadGetContactEmailRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetContactEmailArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetContactEmailRetType = string
/*
@@ -64,10 +77,16 @@ type PartialUpdateZonePayloadGetContactEmailRetType = string
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetDefaultTTLAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetDefaultTTLArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetDefaultTTLRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateZonePayloadGetDefaultTTLAttributeTypeOk(arg PartialUpdateZonePayloadGetDefaultTTLAttributeType) (ret PartialUpdateZonePayloadGetDefaultTTLRetType, ok bool) {
if arg == nil {
return ret, false
@@ -75,6 +94,7 @@ func getPartialUpdateZonePayloadGetDefaultTTLAttributeTypeOk(arg PartialUpdateZo
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateZonePayloadGetDefaultTTLAttributeType(arg *PartialUpdateZonePayloadGetDefaultTTLAttributeType, val PartialUpdateZonePayloadGetDefaultTTLRetType) {
*arg = &val
}
@@ -84,8 +104,10 @@ func setPartialUpdateZonePayloadGetDefaultTTLAttributeType(arg *PartialUpdateZon
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetDescriptionAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateZonePayloadGetDescriptionAttributeTypeOk(arg PartialUpdateZonePayloadGetDescriptionAttributeType) (ret PartialUpdateZonePayloadGetDescriptionRetType, ok bool) {
if arg == nil {
return ret, false
@@ -93,11 +115,15 @@ func getPartialUpdateZonePayloadGetDescriptionAttributeTypeOk(arg PartialUpdateZ
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateZonePayloadGetDescriptionAttributeType(arg *PartialUpdateZonePayloadGetDescriptionAttributeType, val PartialUpdateZonePayloadGetDescriptionRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetDescriptionArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetDescriptionRetType = string
/*
@@ -105,10 +131,16 @@ type PartialUpdateZonePayloadGetDescriptionRetType = string
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetExpireTimeAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetExpireTimeArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetExpireTimeRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateZonePayloadGetExpireTimeAttributeTypeOk(arg PartialUpdateZonePayloadGetExpireTimeAttributeType) (ret PartialUpdateZonePayloadGetExpireTimeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -116,6 +148,7 @@ func getPartialUpdateZonePayloadGetExpireTimeAttributeTypeOk(arg PartialUpdateZo
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateZonePayloadGetExpireTimeAttributeType(arg *PartialUpdateZonePayloadGetExpireTimeAttributeType, val PartialUpdateZonePayloadGetExpireTimeRetType) {
*arg = &val
}
@@ -125,10 +158,16 @@ func setPartialUpdateZonePayloadGetExpireTimeAttributeType(arg *PartialUpdateZon
*/
// isModel
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetExtensionsAttributeType = *CreateZonePayloadExtensions
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetExtensionsArgType = CreateZonePayloadExtensions
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetExtensionsRetType = CreateZonePayloadExtensions
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateZonePayloadGetExtensionsAttributeTypeOk(arg PartialUpdateZonePayloadGetExtensionsAttributeType) (ret PartialUpdateZonePayloadGetExtensionsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -136,6 +175,7 @@ func getPartialUpdateZonePayloadGetExtensionsAttributeTypeOk(arg PartialUpdateZo
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateZonePayloadGetExtensionsAttributeType(arg *PartialUpdateZonePayloadGetExtensionsAttributeType, val PartialUpdateZonePayloadGetExtensionsRetType) {
*arg = &val
}
@@ -145,8 +185,10 @@ func setPartialUpdateZonePayloadGetExtensionsAttributeType(arg *PartialUpdateZon
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetNameAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateZonePayloadGetNameAttributeTypeOk(arg PartialUpdateZonePayloadGetNameAttributeType) (ret PartialUpdateZonePayloadGetNameRetType, ok bool) {
if arg == nil {
return ret, false
@@ -154,11 +196,15 @@ func getPartialUpdateZonePayloadGetNameAttributeTypeOk(arg PartialUpdateZonePayl
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateZonePayloadGetNameAttributeType(arg *PartialUpdateZonePayloadGetNameAttributeType, val PartialUpdateZonePayloadGetNameRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetNameArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetNameRetType = string
/*
@@ -166,10 +212,16 @@ type PartialUpdateZonePayloadGetNameRetType = string
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetNegativeCacheAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetNegativeCacheArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetNegativeCacheRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateZonePayloadGetNegativeCacheAttributeTypeOk(arg PartialUpdateZonePayloadGetNegativeCacheAttributeType) (ret PartialUpdateZonePayloadGetNegativeCacheRetType, ok bool) {
if arg == nil {
return ret, false
@@ -177,6 +229,7 @@ func getPartialUpdateZonePayloadGetNegativeCacheAttributeTypeOk(arg PartialUpdat
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateZonePayloadGetNegativeCacheAttributeType(arg *PartialUpdateZonePayloadGetNegativeCacheAttributeType, val PartialUpdateZonePayloadGetNegativeCacheRetType) {
*arg = &val
}
@@ -186,10 +239,16 @@ func setPartialUpdateZonePayloadGetNegativeCacheAttributeType(arg *PartialUpdate
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetPrimariesAttributeType = *[]string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetPrimariesArgType = []string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetPrimariesRetType = []string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateZonePayloadGetPrimariesAttributeTypeOk(arg PartialUpdateZonePayloadGetPrimariesAttributeType) (ret PartialUpdateZonePayloadGetPrimariesRetType, ok bool) {
if arg == nil {
return ret, false
@@ -197,6 +256,7 @@ func getPartialUpdateZonePayloadGetPrimariesAttributeTypeOk(arg PartialUpdateZon
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateZonePayloadGetPrimariesAttributeType(arg *PartialUpdateZonePayloadGetPrimariesAttributeType, val PartialUpdateZonePayloadGetPrimariesRetType) {
*arg = &val
}
@@ -206,10 +266,16 @@ func setPartialUpdateZonePayloadGetPrimariesAttributeType(arg *PartialUpdateZone
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetRefreshTimeAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetRefreshTimeArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetRefreshTimeRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateZonePayloadGetRefreshTimeAttributeTypeOk(arg PartialUpdateZonePayloadGetRefreshTimeAttributeType) (ret PartialUpdateZonePayloadGetRefreshTimeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -217,6 +283,7 @@ func getPartialUpdateZonePayloadGetRefreshTimeAttributeTypeOk(arg PartialUpdateZ
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateZonePayloadGetRefreshTimeAttributeType(arg *PartialUpdateZonePayloadGetRefreshTimeAttributeType, val PartialUpdateZonePayloadGetRefreshTimeRetType) {
*arg = &val
}
@@ -226,10 +293,16 @@ func setPartialUpdateZonePayloadGetRefreshTimeAttributeType(arg *PartialUpdateZo
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetRetryTimeAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetRetryTimeArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayloadGetRetryTimeRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getPartialUpdateZonePayloadGetRetryTimeAttributeTypeOk(arg PartialUpdateZonePayloadGetRetryTimeAttributeType) (ret PartialUpdateZonePayloadGetRetryTimeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -237,11 +310,13 @@ func getPartialUpdateZonePayloadGetRetryTimeAttributeTypeOk(arg PartialUpdateZon
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setPartialUpdateZonePayloadGetRetryTimeAttributeType(arg *PartialUpdateZonePayloadGetRetryTimeAttributeType, val PartialUpdateZonePayloadGetRetryTimeRetType) {
*arg = &val
}
// PartialUpdateZonePayload struct for PartialUpdateZonePayload
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type PartialUpdateZonePayload struct {
// access control list
Acl PartialUpdateZonePayloadGetAclAttributeType `json:"acl,omitempty"`
@@ -275,6 +350,7 @@ type PartialUpdateZonePayload struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewPartialUpdateZonePayload() *PartialUpdateZonePayload {
this := PartialUpdateZonePayload{}
return &this
@@ -283,6 +359,7 @@ func NewPartialUpdateZonePayload() *PartialUpdateZonePayload {
// NewPartialUpdateZonePayloadWithDefaults instantiates a new PartialUpdateZonePayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewPartialUpdateZonePayloadWithDefaults() *PartialUpdateZonePayload {
this := PartialUpdateZonePayload{}
var acl string = "0.0.0.0/0,::/0"
@@ -301,6 +378,7 @@ func NewPartialUpdateZonePayloadWithDefaults() *PartialUpdateZonePayload {
}
// GetAcl returns the Acl field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetAcl() (res PartialUpdateZonePayloadGetAclRetType) {
res, _ = o.GetAclOk()
return
@@ -308,22 +386,26 @@ func (o *PartialUpdateZonePayload) GetAcl() (res PartialUpdateZonePayloadGetAclR
// GetAclOk returns a tuple with the Acl field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetAclOk() (ret PartialUpdateZonePayloadGetAclRetType, ok bool) {
return getPartialUpdateZonePayloadGetAclAttributeTypeOk(o.Acl)
}
// HasAcl returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) HasAcl() bool {
_, ok := o.GetAclOk()
return ok
}
// SetAcl gets a reference to the given string and assigns it to the Acl field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) SetAcl(v PartialUpdateZonePayloadGetAclRetType) {
setPartialUpdateZonePayloadGetAclAttributeType(&o.Acl, v)
}
// GetContactEmail returns the ContactEmail field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetContactEmail() (res PartialUpdateZonePayloadGetContactEmailRetType) {
res, _ = o.GetContactEmailOk()
return
@@ -331,22 +413,26 @@ func (o *PartialUpdateZonePayload) GetContactEmail() (res PartialUpdateZonePaylo
// GetContactEmailOk returns a tuple with the ContactEmail field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetContactEmailOk() (ret PartialUpdateZonePayloadGetContactEmailRetType, ok bool) {
return getPartialUpdateZonePayloadGetContactEmailAttributeTypeOk(o.ContactEmail)
}
// HasContactEmail returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) HasContactEmail() bool {
_, ok := o.GetContactEmailOk()
return ok
}
// SetContactEmail gets a reference to the given string and assigns it to the ContactEmail field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) SetContactEmail(v PartialUpdateZonePayloadGetContactEmailRetType) {
setPartialUpdateZonePayloadGetContactEmailAttributeType(&o.ContactEmail, v)
}
// GetDefaultTTL returns the DefaultTTL field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetDefaultTTL() (res PartialUpdateZonePayloadGetDefaultTTLRetType) {
res, _ = o.GetDefaultTTLOk()
return
@@ -354,22 +440,26 @@ func (o *PartialUpdateZonePayload) GetDefaultTTL() (res PartialUpdateZonePayload
// GetDefaultTTLOk returns a tuple with the DefaultTTL field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetDefaultTTLOk() (ret PartialUpdateZonePayloadGetDefaultTTLRetType, ok bool) {
return getPartialUpdateZonePayloadGetDefaultTTLAttributeTypeOk(o.DefaultTTL)
}
// HasDefaultTTL returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) HasDefaultTTL() bool {
_, ok := o.GetDefaultTTLOk()
return ok
}
// SetDefaultTTL gets a reference to the given int64 and assigns it to the DefaultTTL field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) SetDefaultTTL(v PartialUpdateZonePayloadGetDefaultTTLRetType) {
setPartialUpdateZonePayloadGetDefaultTTLAttributeType(&o.DefaultTTL, v)
}
// GetDescription returns the Description field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetDescription() (res PartialUpdateZonePayloadGetDescriptionRetType) {
res, _ = o.GetDescriptionOk()
return
@@ -377,22 +467,26 @@ func (o *PartialUpdateZonePayload) GetDescription() (res PartialUpdateZonePayloa
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetDescriptionOk() (ret PartialUpdateZonePayloadGetDescriptionRetType, ok bool) {
return getPartialUpdateZonePayloadGetDescriptionAttributeTypeOk(o.Description)
}
// HasDescription returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) HasDescription() bool {
_, ok := o.GetDescriptionOk()
return ok
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) SetDescription(v PartialUpdateZonePayloadGetDescriptionRetType) {
setPartialUpdateZonePayloadGetDescriptionAttributeType(&o.Description, v)
}
// GetExpireTime returns the ExpireTime field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetExpireTime() (res PartialUpdateZonePayloadGetExpireTimeRetType) {
res, _ = o.GetExpireTimeOk()
return
@@ -400,22 +494,26 @@ func (o *PartialUpdateZonePayload) GetExpireTime() (res PartialUpdateZonePayload
// GetExpireTimeOk returns a tuple with the ExpireTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetExpireTimeOk() (ret PartialUpdateZonePayloadGetExpireTimeRetType, ok bool) {
return getPartialUpdateZonePayloadGetExpireTimeAttributeTypeOk(o.ExpireTime)
}
// HasExpireTime returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) HasExpireTime() bool {
_, ok := o.GetExpireTimeOk()
return ok
}
// SetExpireTime gets a reference to the given int64 and assigns it to the ExpireTime field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) SetExpireTime(v PartialUpdateZonePayloadGetExpireTimeRetType) {
setPartialUpdateZonePayloadGetExpireTimeAttributeType(&o.ExpireTime, v)
}
// GetExtensions returns the Extensions field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetExtensions() (res PartialUpdateZonePayloadGetExtensionsRetType) {
res, _ = o.GetExtensionsOk()
return
@@ -423,22 +521,26 @@ func (o *PartialUpdateZonePayload) GetExtensions() (res PartialUpdateZonePayload
// GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetExtensionsOk() (ret PartialUpdateZonePayloadGetExtensionsRetType, ok bool) {
return getPartialUpdateZonePayloadGetExtensionsAttributeTypeOk(o.Extensions)
}
// HasExtensions returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) HasExtensions() bool {
_, ok := o.GetExtensionsOk()
return ok
}
// SetExtensions gets a reference to the given CreateZonePayloadExtensions and assigns it to the Extensions field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) SetExtensions(v PartialUpdateZonePayloadGetExtensionsRetType) {
setPartialUpdateZonePayloadGetExtensionsAttributeType(&o.Extensions, v)
}
// GetName returns the Name field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetName() (res PartialUpdateZonePayloadGetNameRetType) {
res, _ = o.GetNameOk()
return
@@ -446,22 +548,26 @@ func (o *PartialUpdateZonePayload) GetName() (res PartialUpdateZonePayloadGetNam
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetNameOk() (ret PartialUpdateZonePayloadGetNameRetType, ok bool) {
return getPartialUpdateZonePayloadGetNameAttributeTypeOk(o.Name)
}
// HasName returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) HasName() bool {
_, ok := o.GetNameOk()
return ok
}
// SetName gets a reference to the given string and assigns it to the Name field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) SetName(v PartialUpdateZonePayloadGetNameRetType) {
setPartialUpdateZonePayloadGetNameAttributeType(&o.Name, v)
}
// GetNegativeCache returns the NegativeCache field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetNegativeCache() (res PartialUpdateZonePayloadGetNegativeCacheRetType) {
res, _ = o.GetNegativeCacheOk()
return
@@ -469,22 +575,26 @@ func (o *PartialUpdateZonePayload) GetNegativeCache() (res PartialUpdateZonePayl
// GetNegativeCacheOk returns a tuple with the NegativeCache field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetNegativeCacheOk() (ret PartialUpdateZonePayloadGetNegativeCacheRetType, ok bool) {
return getPartialUpdateZonePayloadGetNegativeCacheAttributeTypeOk(o.NegativeCache)
}
// HasNegativeCache returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) HasNegativeCache() bool {
_, ok := o.GetNegativeCacheOk()
return ok
}
// SetNegativeCache gets a reference to the given int64 and assigns it to the NegativeCache field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) SetNegativeCache(v PartialUpdateZonePayloadGetNegativeCacheRetType) {
setPartialUpdateZonePayloadGetNegativeCacheAttributeType(&o.NegativeCache, v)
}
// GetPrimaries returns the Primaries field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetPrimaries() (res PartialUpdateZonePayloadGetPrimariesRetType) {
res, _ = o.GetPrimariesOk()
return
@@ -492,22 +602,26 @@ func (o *PartialUpdateZonePayload) GetPrimaries() (res PartialUpdateZonePayloadG
// GetPrimariesOk returns a tuple with the Primaries field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetPrimariesOk() (ret PartialUpdateZonePayloadGetPrimariesRetType, ok bool) {
return getPartialUpdateZonePayloadGetPrimariesAttributeTypeOk(o.Primaries)
}
// HasPrimaries returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) HasPrimaries() bool {
_, ok := o.GetPrimariesOk()
return ok
}
// SetPrimaries gets a reference to the given []string and assigns it to the Primaries field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) SetPrimaries(v PartialUpdateZonePayloadGetPrimariesRetType) {
setPartialUpdateZonePayloadGetPrimariesAttributeType(&o.Primaries, v)
}
// GetRefreshTime returns the RefreshTime field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetRefreshTime() (res PartialUpdateZonePayloadGetRefreshTimeRetType) {
res, _ = o.GetRefreshTimeOk()
return
@@ -515,22 +629,26 @@ func (o *PartialUpdateZonePayload) GetRefreshTime() (res PartialUpdateZonePayloa
// GetRefreshTimeOk returns a tuple with the RefreshTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetRefreshTimeOk() (ret PartialUpdateZonePayloadGetRefreshTimeRetType, ok bool) {
return getPartialUpdateZonePayloadGetRefreshTimeAttributeTypeOk(o.RefreshTime)
}
// HasRefreshTime returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) HasRefreshTime() bool {
_, ok := o.GetRefreshTimeOk()
return ok
}
// SetRefreshTime gets a reference to the given int64 and assigns it to the RefreshTime field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) SetRefreshTime(v PartialUpdateZonePayloadGetRefreshTimeRetType) {
setPartialUpdateZonePayloadGetRefreshTimeAttributeType(&o.RefreshTime, v)
}
// GetRetryTime returns the RetryTime field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetRetryTime() (res PartialUpdateZonePayloadGetRetryTimeRetType) {
res, _ = o.GetRetryTimeOk()
return
@@ -538,21 +656,25 @@ func (o *PartialUpdateZonePayload) GetRetryTime() (res PartialUpdateZonePayloadG
// GetRetryTimeOk returns a tuple with the RetryTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) GetRetryTimeOk() (ret PartialUpdateZonePayloadGetRetryTimeRetType, ok bool) {
return getPartialUpdateZonePayloadGetRetryTimeAttributeTypeOk(o.RetryTime)
}
// HasRetryTime returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) HasRetryTime() bool {
_, ok := o.GetRetryTimeOk()
return ok
}
// SetRetryTime gets a reference to the given int64 and assigns it to the RetryTime field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *PartialUpdateZonePayload) SetRetryTime(v PartialUpdateZonePayloadGetRetryTimeRetType) {
setPartialUpdateZonePayloadGetRetryTimeAttributeType(&o.RetryTime, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o PartialUpdateZonePayload) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getPartialUpdateZonePayloadGetAclAttributeTypeOk(o.Acl); ok {
@@ -591,37 +713,45 @@ func (o PartialUpdateZonePayload) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullablePartialUpdateZonePayload struct {
value *PartialUpdateZonePayload
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullablePartialUpdateZonePayload) Get() *PartialUpdateZonePayload {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullablePartialUpdateZonePayload) Set(val *PartialUpdateZonePayload) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullablePartialUpdateZonePayload) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullablePartialUpdateZonePayload) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullablePartialUpdateZonePayload(val *PartialUpdateZonePayload) *NullablePartialUpdateZonePayload {
return &NullablePartialUpdateZonePayload{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullablePartialUpdateZonePayload) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullablePartialUpdateZonePayload) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_record.go b/services/dns/model_record.go
index 282a0283a..33ea1bb22 100644
--- a/services/dns/model_record.go
+++ b/services/dns/model_record.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &Record{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordGetContentAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordGetContentAttributeTypeOk(arg RecordGetContentAttributeType) (ret RecordGetContentRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getRecordGetContentAttributeTypeOk(arg RecordGetContentAttributeType) (ret
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordGetContentAttributeType(arg *RecordGetContentAttributeType, val RecordGetContentRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordGetContentArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordGetContentRetType = string
/*
@@ -43,8 +50,10 @@ type RecordGetContentRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordGetIdAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordGetIdAttributeTypeOk(arg RecordGetIdAttributeType) (ret RecordGetIdRetType, ok bool) {
if arg == nil {
return ret, false
@@ -52,14 +61,19 @@ func getRecordGetIdAttributeTypeOk(arg RecordGetIdAttributeType) (ret RecordGetI
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordGetIdAttributeType(arg *RecordGetIdAttributeType, val RecordGetIdRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordGetIdArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordGetIdRetType = string
// Record Record.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type Record struct {
// content of the record
// REQUIRED
@@ -69,12 +83,14 @@ type Record struct {
Id RecordGetIdAttributeType `json:"id" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _Record Record
// NewRecord instantiates a new Record 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewRecord(content RecordGetContentArgType, id RecordGetIdArgType) *Record {
this := Record{}
setRecordGetContentAttributeType(&this.Content, content)
@@ -85,12 +101,14 @@ func NewRecord(content RecordGetContentArgType, id RecordGetIdArgType) *Record {
// NewRecordWithDefaults instantiates a new Record 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewRecordWithDefaults() *Record {
this := Record{}
return &this
}
// GetContent returns the Content field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Record) GetContent() (ret RecordGetContentRetType) {
ret, _ = o.GetContentOk()
return ret
@@ -98,16 +116,19 @@ func (o *Record) GetContent() (ret RecordGetContentRetType) {
// GetContentOk returns a tuple with the Content field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Record) GetContentOk() (ret RecordGetContentRetType, ok bool) {
return getRecordGetContentAttributeTypeOk(o.Content)
}
// SetContent sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Record) SetContent(v RecordGetContentRetType) {
setRecordGetContentAttributeType(&o.Content, v)
}
// GetId returns the Id field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Record) GetId() (ret RecordGetIdRetType) {
ret, _ = o.GetIdOk()
return ret
@@ -115,15 +136,18 @@ func (o *Record) GetId() (ret RecordGetIdRetType) {
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Record) GetIdOk() (ret RecordGetIdRetType, ok bool) {
return getRecordGetIdAttributeTypeOk(o.Id)
}
// SetId sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Record) SetId(v RecordGetIdRetType) {
setRecordGetIdAttributeType(&o.Id, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o Record) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getRecordGetContentAttributeTypeOk(o.Content); ok {
@@ -135,37 +159,45 @@ func (o Record) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableRecord struct {
value *Record
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecord) Get() *Record {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecord) Set(val *Record) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecord) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecord) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableRecord(val *Record) *NullableRecord {
return &NullableRecord{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecord) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecord) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_record_data_exchange.go b/services/dns/model_record_data_exchange.go
index c7e18be45..653611cb8 100644
--- a/services/dns/model_record_data_exchange.go
+++ b/services/dns/model_record_data_exchange.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &RecordDataExchange{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetCommentAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordDataExchangeGetCommentAttributeTypeOk(arg RecordDataExchangeGetCommentAttributeType) (ret RecordDataExchangeGetCommentRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getRecordDataExchangeGetCommentAttributeTypeOk(arg RecordDataExchangeGetCom
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordDataExchangeGetCommentAttributeType(arg *RecordDataExchangeGetCommentAttributeType, val RecordDataExchangeGetCommentRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetCommentArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetCommentRetType = string
/*
@@ -43,10 +50,16 @@ type RecordDataExchangeGetCommentRetType = string
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetContentAttributeType = *[]string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetContentArgType = []string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetContentRetType = []string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordDataExchangeGetContentAttributeTypeOk(arg RecordDataExchangeGetContentAttributeType) (ret RecordDataExchangeGetContentRetType, ok bool) {
if arg == nil {
return ret, false
@@ -54,6 +67,7 @@ func getRecordDataExchangeGetContentAttributeTypeOk(arg RecordDataExchangeGetCon
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordDataExchangeGetContentAttributeType(arg *RecordDataExchangeGetContentAttributeType, val RecordDataExchangeGetContentRetType) {
*arg = &val
}
@@ -63,8 +77,10 @@ func setRecordDataExchangeGetContentAttributeType(arg *RecordDataExchangeGetCont
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetNameAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordDataExchangeGetNameAttributeTypeOk(arg RecordDataExchangeGetNameAttributeType) (ret RecordDataExchangeGetNameRetType, ok bool) {
if arg == nil {
return ret, false
@@ -72,11 +88,15 @@ func getRecordDataExchangeGetNameAttributeTypeOk(arg RecordDataExchangeGetNameAt
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordDataExchangeGetNameAttributeType(arg *RecordDataExchangeGetNameAttributeType, val RecordDataExchangeGetNameRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetNameArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetNameRetType = string
/*
@@ -84,10 +104,16 @@ type RecordDataExchangeGetNameRetType = string
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetTtlAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetTtlArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetTtlRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordDataExchangeGetTtlAttributeTypeOk(arg RecordDataExchangeGetTtlAttributeType) (ret RecordDataExchangeGetTtlRetType, ok bool) {
if arg == nil {
return ret, false
@@ -95,6 +121,7 @@ func getRecordDataExchangeGetTtlAttributeTypeOk(arg RecordDataExchangeGetTtlAttr
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordDataExchangeGetTtlAttributeType(arg *RecordDataExchangeGetTtlAttributeType, val RecordDataExchangeGetTtlRetType) {
*arg = &val
}
@@ -104,8 +131,10 @@ func setRecordDataExchangeGetTtlAttributeType(arg *RecordDataExchangeGetTtlAttri
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetTypeAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordDataExchangeGetTypeAttributeTypeOk(arg RecordDataExchangeGetTypeAttributeType) (ret RecordDataExchangeGetTypeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -113,14 +142,19 @@ func getRecordDataExchangeGetTypeAttributeTypeOk(arg RecordDataExchangeGetTypeAt
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordDataExchangeGetTypeAttributeType(arg *RecordDataExchangeGetTypeAttributeType, val RecordDataExchangeGetTypeRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetTypeArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchangeGetTypeRetType = string
// RecordDataExchange struct for RecordDataExchange
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordDataExchange struct {
Comment RecordDataExchangeGetCommentAttributeType `json:"comment,omitempty"`
Content RecordDataExchangeGetContentAttributeType `json:"content,omitempty"`
@@ -134,6 +168,7 @@ type RecordDataExchange struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewRecordDataExchange() *RecordDataExchange {
this := RecordDataExchange{}
return &this
@@ -142,12 +177,14 @@ func NewRecordDataExchange() *RecordDataExchange {
// NewRecordDataExchangeWithDefaults instantiates a new RecordDataExchange 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewRecordDataExchangeWithDefaults() *RecordDataExchange {
this := RecordDataExchange{}
return &this
}
// GetComment returns the Comment field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) GetComment() (res RecordDataExchangeGetCommentRetType) {
res, _ = o.GetCommentOk()
return
@@ -155,22 +192,26 @@ func (o *RecordDataExchange) GetComment() (res RecordDataExchangeGetCommentRetTy
// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) GetCommentOk() (ret RecordDataExchangeGetCommentRetType, ok bool) {
return getRecordDataExchangeGetCommentAttributeTypeOk(o.Comment)
}
// HasComment returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) HasComment() bool {
_, ok := o.GetCommentOk()
return ok
}
// SetComment gets a reference to the given string and assigns it to the Comment field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) SetComment(v RecordDataExchangeGetCommentRetType) {
setRecordDataExchangeGetCommentAttributeType(&o.Comment, v)
}
// GetContent returns the Content field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) GetContent() (res RecordDataExchangeGetContentRetType) {
res, _ = o.GetContentOk()
return
@@ -178,22 +219,26 @@ func (o *RecordDataExchange) GetContent() (res RecordDataExchangeGetContentRetTy
// GetContentOk returns a tuple with the Content field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) GetContentOk() (ret RecordDataExchangeGetContentRetType, ok bool) {
return getRecordDataExchangeGetContentAttributeTypeOk(o.Content)
}
// HasContent returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) HasContent() bool {
_, ok := o.GetContentOk()
return ok
}
// SetContent gets a reference to the given []string and assigns it to the Content field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) SetContent(v RecordDataExchangeGetContentRetType) {
setRecordDataExchangeGetContentAttributeType(&o.Content, v)
}
// GetName returns the Name field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) GetName() (res RecordDataExchangeGetNameRetType) {
res, _ = o.GetNameOk()
return
@@ -201,22 +246,26 @@ func (o *RecordDataExchange) GetName() (res RecordDataExchangeGetNameRetType) {
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) GetNameOk() (ret RecordDataExchangeGetNameRetType, ok bool) {
return getRecordDataExchangeGetNameAttributeTypeOk(o.Name)
}
// HasName returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) HasName() bool {
_, ok := o.GetNameOk()
return ok
}
// SetName gets a reference to the given string and assigns it to the Name field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) SetName(v RecordDataExchangeGetNameRetType) {
setRecordDataExchangeGetNameAttributeType(&o.Name, v)
}
// GetTtl returns the Ttl field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) GetTtl() (res RecordDataExchangeGetTtlRetType) {
res, _ = o.GetTtlOk()
return
@@ -224,22 +273,26 @@ func (o *RecordDataExchange) GetTtl() (res RecordDataExchangeGetTtlRetType) {
// GetTtlOk returns a tuple with the Ttl field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) GetTtlOk() (ret RecordDataExchangeGetTtlRetType, ok bool) {
return getRecordDataExchangeGetTtlAttributeTypeOk(o.Ttl)
}
// HasTtl returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) HasTtl() bool {
_, ok := o.GetTtlOk()
return ok
}
// SetTtl gets a reference to the given int64 and assigns it to the Ttl field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) SetTtl(v RecordDataExchangeGetTtlRetType) {
setRecordDataExchangeGetTtlAttributeType(&o.Ttl, v)
}
// GetType returns the Type field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) GetType() (res RecordDataExchangeGetTypeRetType) {
res, _ = o.GetTypeOk()
return
@@ -247,21 +300,25 @@ func (o *RecordDataExchange) GetType() (res RecordDataExchangeGetTypeRetType) {
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) GetTypeOk() (ret RecordDataExchangeGetTypeRetType, ok bool) {
return getRecordDataExchangeGetTypeAttributeTypeOk(o.Type)
}
// HasType returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) HasType() bool {
_, ok := o.GetTypeOk()
return ok
}
// SetType gets a reference to the given string and assigns it to the Type field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordDataExchange) SetType(v RecordDataExchangeGetTypeRetType) {
setRecordDataExchangeGetTypeAttributeType(&o.Type, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o RecordDataExchange) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getRecordDataExchangeGetCommentAttributeTypeOk(o.Comment); ok {
@@ -282,37 +339,45 @@ func (o RecordDataExchange) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableRecordDataExchange struct {
value *RecordDataExchange
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordDataExchange) Get() *RecordDataExchange {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordDataExchange) Set(val *RecordDataExchange) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordDataExchange) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordDataExchange) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableRecordDataExchange(val *RecordDataExchange) *NullableRecordDataExchange {
return &NullableRecordDataExchange{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordDataExchange) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordDataExchange) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_record_payload.go b/services/dns/model_record_payload.go
index 9126fd84b..b282d4607 100644
--- a/services/dns/model_record_payload.go
+++ b/services/dns/model_record_payload.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &RecordPayload{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordPayloadGetContentAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordPayloadGetContentAttributeTypeOk(arg RecordPayloadGetContentAttributeType) (ret RecordPayloadGetContentRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,26 +34,33 @@ func getRecordPayloadGetContentAttributeTypeOk(arg RecordPayloadGetContentAttrib
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordPayloadGetContentAttributeType(arg *RecordPayloadGetContentAttributeType, val RecordPayloadGetContentRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordPayloadGetContentArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordPayloadGetContentRetType = string
// RecordPayload RecordPost for rr set info.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordPayload struct {
// content of the record
// REQUIRED
Content RecordPayloadGetContentAttributeType `json:"content" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _RecordPayload RecordPayload
// NewRecordPayload instantiates a new RecordPayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewRecordPayload(content RecordPayloadGetContentArgType) *RecordPayload {
this := RecordPayload{}
setRecordPayloadGetContentAttributeType(&this.Content, content)
@@ -60,12 +70,14 @@ func NewRecordPayload(content RecordPayloadGetContentArgType) *RecordPayload {
// NewRecordPayloadWithDefaults instantiates a new RecordPayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewRecordPayloadWithDefaults() *RecordPayload {
this := RecordPayload{}
return &this
}
// GetContent returns the Content field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordPayload) GetContent() (ret RecordPayloadGetContentRetType) {
ret, _ = o.GetContentOk()
return ret
@@ -73,15 +85,18 @@ func (o *RecordPayload) GetContent() (ret RecordPayloadGetContentRetType) {
// GetContentOk returns a tuple with the Content field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordPayload) GetContentOk() (ret RecordPayloadGetContentRetType, ok bool) {
return getRecordPayloadGetContentAttributeTypeOk(o.Content)
}
// SetContent sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordPayload) SetContent(v RecordPayloadGetContentRetType) {
setRecordPayloadGetContentAttributeType(&o.Content, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o RecordPayload) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getRecordPayloadGetContentAttributeTypeOk(o.Content); ok {
@@ -90,37 +105,45 @@ func (o RecordPayload) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableRecordPayload struct {
value *RecordPayload
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordPayload) Get() *RecordPayload {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordPayload) Set(val *RecordPayload) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordPayload) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordPayload) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableRecordPayload(val *RecordPayload) *NullableRecordPayload {
return &NullableRecordPayload{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordPayload) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordPayload) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_record_set.go b/services/dns/model_record_set.go
index 364625ac3..c7e539b7a 100644
--- a/services/dns/model_record_set.go
+++ b/services/dns/model_record_set.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -23,10 +24,16 @@ var _ MappedNullable = &RecordSet{}
*/
// isBoolean
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetgetActiveAttributeType = *bool
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetgetActiveArgType = bool
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetgetActiveRetType = bool
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetgetActiveAttributeTypeOk(arg RecordSetgetActiveAttributeType) (ret RecordSetgetActiveRetType, ok bool) {
if arg == nil {
return ret, false
@@ -34,6 +41,7 @@ func getRecordSetgetActiveAttributeTypeOk(arg RecordSetgetActiveAttributeType) (
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetgetActiveAttributeType(arg *RecordSetgetActiveAttributeType, val RecordSetgetActiveRetType) {
*arg = &val
}
@@ -43,8 +51,10 @@ func setRecordSetgetActiveAttributeType(arg *RecordSetgetActiveAttributeType, va
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetCommentAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetGetCommentAttributeTypeOk(arg RecordSetGetCommentAttributeType) (ret RecordSetGetCommentRetType, ok bool) {
if arg == nil {
return ret, false
@@ -52,11 +62,15 @@ func getRecordSetGetCommentAttributeTypeOk(arg RecordSetGetCommentAttributeType)
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetGetCommentAttributeType(arg *RecordSetGetCommentAttributeType, val RecordSetGetCommentRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetCommentArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetCommentRetType = string
/*
@@ -64,8 +78,10 @@ type RecordSetGetCommentRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetCreationFinishedAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetGetCreationFinishedAttributeTypeOk(arg RecordSetGetCreationFinishedAttributeType) (ret RecordSetGetCreationFinishedRetType, ok bool) {
if arg == nil {
return ret, false
@@ -73,11 +89,15 @@ func getRecordSetGetCreationFinishedAttributeTypeOk(arg RecordSetGetCreationFini
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetGetCreationFinishedAttributeType(arg *RecordSetGetCreationFinishedAttributeType, val RecordSetGetCreationFinishedRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetCreationFinishedArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetCreationFinishedRetType = string
/*
@@ -85,8 +105,10 @@ type RecordSetGetCreationFinishedRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetCreationStartedAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetGetCreationStartedAttributeTypeOk(arg RecordSetGetCreationStartedAttributeType) (ret RecordSetGetCreationStartedRetType, ok bool) {
if arg == nil {
return ret, false
@@ -94,11 +116,15 @@ func getRecordSetGetCreationStartedAttributeTypeOk(arg RecordSetGetCreationStart
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetGetCreationStartedAttributeType(arg *RecordSetGetCreationStartedAttributeType, val RecordSetGetCreationStartedRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetCreationStartedArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetCreationStartedRetType = string
/*
@@ -106,8 +132,10 @@ type RecordSetGetCreationStartedRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetErrorAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetGetErrorAttributeTypeOk(arg RecordSetGetErrorAttributeType) (ret RecordSetGetErrorRetType, ok bool) {
if arg == nil {
return ret, false
@@ -115,11 +143,15 @@ func getRecordSetGetErrorAttributeTypeOk(arg RecordSetGetErrorAttributeType) (re
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetGetErrorAttributeType(arg *RecordSetGetErrorAttributeType, val RecordSetGetErrorRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetErrorArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetErrorRetType = string
/*
@@ -127,8 +159,10 @@ type RecordSetGetErrorRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetIdAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetGetIdAttributeTypeOk(arg RecordSetGetIdAttributeType) (ret RecordSetGetIdRetType, ok bool) {
if arg == nil {
return ret, false
@@ -136,11 +170,15 @@ func getRecordSetGetIdAttributeTypeOk(arg RecordSetGetIdAttributeType) (ret Reco
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetGetIdAttributeType(arg *RecordSetGetIdAttributeType, val RecordSetGetIdRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetIdArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetIdRetType = string
/*
@@ -148,8 +186,10 @@ type RecordSetGetIdRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetNameAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetGetNameAttributeTypeOk(arg RecordSetGetNameAttributeType) (ret RecordSetGetNameRetType, ok bool) {
if arg == nil {
return ret, false
@@ -157,11 +197,15 @@ func getRecordSetGetNameAttributeTypeOk(arg RecordSetGetNameAttributeType) (ret
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetGetNameAttributeType(arg *RecordSetGetNameAttributeType, val RecordSetGetNameRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetNameArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetNameRetType = string
/*
@@ -169,10 +213,16 @@ type RecordSetGetNameRetType = string
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetRecordsAttributeType = *[]Record
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetRecordsArgType = []Record
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetRecordsRetType = []Record
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetGetRecordsAttributeTypeOk(arg RecordSetGetRecordsAttributeType) (ret RecordSetGetRecordsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -180,6 +230,7 @@ func getRecordSetGetRecordsAttributeTypeOk(arg RecordSetGetRecordsAttributeType)
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetGetRecordsAttributeType(arg *RecordSetGetRecordsAttributeType, val RecordSetGetRecordsRetType) {
*arg = &val
}
@@ -192,22 +243,33 @@ func setRecordSetGetRecordsAttributeType(arg *RecordSetGetRecordsAttributeType,
// RecordSetState record set state
// value type for enums
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetState string
// List of State
const (
- RECORDSETSTATE_CREATING RecordSetState = "CREATING"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETSTATE_CREATING RecordSetState = "CREATING"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
RECORDSETSTATE_CREATE_SUCCEEDED RecordSetState = "CREATE_SUCCEEDED"
- RECORDSETSTATE_CREATE_FAILED RecordSetState = "CREATE_FAILED"
- RECORDSETSTATE_DELETING RecordSetState = "DELETING"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETSTATE_CREATE_FAILED RecordSetState = "CREATE_FAILED"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETSTATE_DELETING RecordSetState = "DELETING"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
RECORDSETSTATE_DELETE_SUCCEEDED RecordSetState = "DELETE_SUCCEEDED"
- RECORDSETSTATE_DELETE_FAILED RecordSetState = "DELETE_FAILED"
- RECORDSETSTATE_UPDATING RecordSetState = "UPDATING"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETSTATE_DELETE_FAILED RecordSetState = "DELETE_FAILED"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETSTATE_UPDATING RecordSetState = "UPDATING"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
RECORDSETSTATE_UPDATE_SUCCEEDED RecordSetState = "UPDATE_SUCCEEDED"
- RECORDSETSTATE_UPDATE_FAILED RecordSetState = "UPDATE_FAILED"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETSTATE_UPDATE_FAILED RecordSetState = "UPDATE_FAILED"
)
// All allowed values of RecordSet enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
var AllowedRecordSetStateEnumValues = []RecordSetState{
"CREATING",
"CREATE_SUCCEEDED",
@@ -220,6 +282,7 @@ var AllowedRecordSetStateEnumValues = []RecordSetState{
"UPDATE_FAILED",
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *RecordSetState) UnmarshalJSON(src []byte) error {
// use a type alias to prevent infinite recursion during unmarshal,
// see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers
@@ -247,6 +310,7 @@ func (v *RecordSetState) UnmarshalJSON(src []byte) error {
// NewRecordSetStateFromValue returns a pointer to a valid RecordSetState
// for the value passed as argument, or an error if the value passed is not allowed by the enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewRecordSetStateFromValue(v RecordSetState) (*RecordSetState, error) {
ev := RecordSetState(v)
if ev.IsValid() {
@@ -257,6 +321,7 @@ func NewRecordSetStateFromValue(v RecordSetState) (*RecordSetState, error) {
}
// IsValid return true if the value is valid for the enum, false otherwise
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v RecordSetState) IsValid() bool {
for _, existing := range AllowedRecordSetStateEnumValues {
if existing == v {
@@ -267,50 +332,65 @@ func (v RecordSetState) IsValid() bool {
}
// Ptr returns reference to StateState value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v RecordSetState) Ptr() *RecordSetState {
return &v
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableRecordSetState struct {
value *RecordSetState
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordSetState) Get() *RecordSetState {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordSetState) Set(val *RecordSetState) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordSetState) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordSetState) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableRecordSetState(val *RecordSetState) *NullableRecordSetState {
return &NullableRecordSetState{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordSetState) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordSetState) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetStateAttributeType = *RecordSetState
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetStateArgType = RecordSetState
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetStateRetType = RecordSetState
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetGetStateAttributeTypeOk(arg RecordSetGetStateAttributeType) (ret RecordSetGetStateRetType, ok bool) {
if arg == nil {
return ret, false
@@ -318,6 +398,7 @@ func getRecordSetGetStateAttributeTypeOk(arg RecordSetGetStateAttributeType) (re
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetGetStateAttributeType(arg *RecordSetGetStateAttributeType, val RecordSetGetStateRetType) {
*arg = &val
}
@@ -327,10 +408,16 @@ func setRecordSetGetStateAttributeType(arg *RecordSetGetStateAttributeType, val
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetTtlAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetTtlArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetTtlRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetGetTtlAttributeTypeOk(arg RecordSetGetTtlAttributeType) (ret RecordSetGetTtlRetType, ok bool) {
if arg == nil {
return ret, false
@@ -338,6 +425,7 @@ func getRecordSetGetTtlAttributeTypeOk(arg RecordSetGetTtlAttributeType) (ret Re
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetGetTtlAttributeType(arg *RecordSetGetTtlAttributeType, val RecordSetGetTtlRetType) {
*arg = &val
}
@@ -350,38 +438,65 @@ func setRecordSetGetTtlAttributeType(arg *RecordSetGetTtlAttributeType, val Reco
// RecordSetTypes record set type
// value type for enums
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetTypes string
// List of Type
const (
- RECORDSETTYPE_A RecordSetTypes = "A"
- RECORDSETTYPE_AAAA RecordSetTypes = "AAAA"
- RECORDSETTYPE_SOA RecordSetTypes = "SOA"
- RECORDSETTYPE_CNAME RecordSetTypes = "CNAME"
- RECORDSETTYPE_NS RecordSetTypes = "NS"
- RECORDSETTYPE_MX RecordSetTypes = "MX"
- RECORDSETTYPE_TXT RecordSetTypes = "TXT"
- RECORDSETTYPE_SRV RecordSetTypes = "SRV"
- RECORDSETTYPE_PTR RecordSetTypes = "PTR"
- RECORDSETTYPE_ALIAS RecordSetTypes = "ALIAS"
- RECORDSETTYPE_DNAME RecordSetTypes = "DNAME"
- RECORDSETTYPE_CAA RecordSetTypes = "CAA"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_A RecordSetTypes = "A"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_AAAA RecordSetTypes = "AAAA"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_SOA RecordSetTypes = "SOA"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_CNAME RecordSetTypes = "CNAME"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_NS RecordSetTypes = "NS"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_MX RecordSetTypes = "MX"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_TXT RecordSetTypes = "TXT"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_SRV RecordSetTypes = "SRV"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_PTR RecordSetTypes = "PTR"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_ALIAS RecordSetTypes = "ALIAS"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_DNAME RecordSetTypes = "DNAME"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_CAA RecordSetTypes = "CAA"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
RECORDSETTYPE_DNSKEY RecordSetTypes = "DNSKEY"
- RECORDSETTYPE_DS RecordSetTypes = "DS"
- RECORDSETTYPE_LOC RecordSetTypes = "LOC"
- RECORDSETTYPE_NAPTR RecordSetTypes = "NAPTR"
- RECORDSETTYPE_SSHFP RecordSetTypes = "SSHFP"
- RECORDSETTYPE_TLSA RecordSetTypes = "TLSA"
- RECORDSETTYPE_URI RecordSetTypes = "URI"
- RECORDSETTYPE_CERT RecordSetTypes = "CERT"
- RECORDSETTYPE_SVCB RecordSetTypes = "SVCB"
- RECORDSETTYPE_TYPE RecordSetTypes = "TYPE"
- RECORDSETTYPE_CSYNC RecordSetTypes = "CSYNC"
- RECORDSETTYPE_HINFO RecordSetTypes = "HINFO"
- RECORDSETTYPE_HTTPS RecordSetTypes = "HTTPS"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_DS RecordSetTypes = "DS"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_LOC RecordSetTypes = "LOC"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_NAPTR RecordSetTypes = "NAPTR"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_SSHFP RecordSetTypes = "SSHFP"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_TLSA RecordSetTypes = "TLSA"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_URI RecordSetTypes = "URI"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_CERT RecordSetTypes = "CERT"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_SVCB RecordSetTypes = "SVCB"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_TYPE RecordSetTypes = "TYPE"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_CSYNC RecordSetTypes = "CSYNC"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_HINFO RecordSetTypes = "HINFO"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ RECORDSETTYPE_HTTPS RecordSetTypes = "HTTPS"
)
// All allowed values of RecordSet enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
var AllowedRecordSetTypesEnumValues = []RecordSetTypes{
"A",
"AAAA",
@@ -410,6 +525,7 @@ var AllowedRecordSetTypesEnumValues = []RecordSetTypes{
"HTTPS",
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *RecordSetTypes) UnmarshalJSON(src []byte) error {
// use a type alias to prevent infinite recursion during unmarshal,
// see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers
@@ -437,6 +553,7 @@ func (v *RecordSetTypes) UnmarshalJSON(src []byte) error {
// NewRecordSetTypesFromValue returns a pointer to a valid RecordSetTypes
// for the value passed as argument, or an error if the value passed is not allowed by the enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewRecordSetTypesFromValue(v RecordSetTypes) (*RecordSetTypes, error) {
ev := RecordSetTypes(v)
if ev.IsValid() {
@@ -447,6 +564,7 @@ func NewRecordSetTypesFromValue(v RecordSetTypes) (*RecordSetTypes, error) {
}
// IsValid return true if the value is valid for the enum, false otherwise
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v RecordSetTypes) IsValid() bool {
for _, existing := range AllowedRecordSetTypesEnumValues {
if existing == v {
@@ -457,50 +575,65 @@ func (v RecordSetTypes) IsValid() bool {
}
// Ptr returns reference to TypeTypes value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v RecordSetTypes) Ptr() *RecordSetTypes {
return &v
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableRecordSetTypes struct {
value *RecordSetTypes
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordSetTypes) Get() *RecordSetTypes {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordSetTypes) Set(val *RecordSetTypes) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordSetTypes) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordSetTypes) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableRecordSetTypes(val *RecordSetTypes) *NullableRecordSetTypes {
return &NullableRecordSetTypes{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordSetTypes) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordSetTypes) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetTypeAttributeType = *RecordSetTypes
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetTypeArgType = RecordSetTypes
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetTypeRetType = RecordSetTypes
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetGetTypeAttributeTypeOk(arg RecordSetGetTypeAttributeType) (ret RecordSetGetTypeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -508,6 +641,7 @@ func getRecordSetGetTypeAttributeTypeOk(arg RecordSetGetTypeAttributeType) (ret
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetGetTypeAttributeType(arg *RecordSetGetTypeAttributeType, val RecordSetGetTypeRetType) {
*arg = &val
}
@@ -517,8 +651,10 @@ func setRecordSetGetTypeAttributeType(arg *RecordSetGetTypeAttributeType, val Re
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetUpdateFinishedAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetGetUpdateFinishedAttributeTypeOk(arg RecordSetGetUpdateFinishedAttributeType) (ret RecordSetGetUpdateFinishedRetType, ok bool) {
if arg == nil {
return ret, false
@@ -526,11 +662,15 @@ func getRecordSetGetUpdateFinishedAttributeTypeOk(arg RecordSetGetUpdateFinished
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetGetUpdateFinishedAttributeType(arg *RecordSetGetUpdateFinishedAttributeType, val RecordSetGetUpdateFinishedRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetUpdateFinishedArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetUpdateFinishedRetType = string
/*
@@ -538,8 +678,10 @@ type RecordSetGetUpdateFinishedRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetUpdateStartedAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetGetUpdateStartedAttributeTypeOk(arg RecordSetGetUpdateStartedAttributeType) (ret RecordSetGetUpdateStartedRetType, ok bool) {
if arg == nil {
return ret, false
@@ -547,14 +689,19 @@ func getRecordSetGetUpdateStartedAttributeTypeOk(arg RecordSetGetUpdateStartedAt
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetGetUpdateStartedAttributeType(arg *RecordSetGetUpdateStartedAttributeType, val RecordSetGetUpdateStartedRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetUpdateStartedArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetGetUpdateStartedRetType = string
// RecordSet RRSet.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSet struct {
// if the record set is active or not
Active RecordSetgetActiveAttributeType `json:"active,omitempty"`
@@ -595,12 +742,14 @@ type RecordSet struct {
UpdateStarted RecordSetGetUpdateStartedAttributeType `json:"updateStarted" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _RecordSet RecordSet
// NewRecordSet instantiates a new RecordSet 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewRecordSet(creationFinished RecordSetGetCreationFinishedArgType, creationStarted RecordSetGetCreationStartedArgType, id RecordSetGetIdArgType, name RecordSetGetNameArgType, records RecordSetGetRecordsArgType, state RecordSetGetStateArgType, ttl RecordSetGetTtlArgType, types RecordSetGetTypeArgType, updateFinished RecordSetGetUpdateFinishedArgType, updateStarted RecordSetGetUpdateStartedArgType) *RecordSet {
this := RecordSet{}
setRecordSetGetCreationFinishedAttributeType(&this.CreationFinished, creationFinished)
@@ -619,12 +768,14 @@ func NewRecordSet(creationFinished RecordSetGetCreationFinishedArgType, creation
// NewRecordSetWithDefaults instantiates a new RecordSet 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewRecordSetWithDefaults() *RecordSet {
this := RecordSet{}
return &this
}
// GetActive returns the Active field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetActive() (res RecordSetgetActiveRetType) {
res, _ = o.GetActiveOk()
return
@@ -632,22 +783,26 @@ func (o *RecordSet) GetActive() (res RecordSetgetActiveRetType) {
// GetActiveOk returns a tuple with the Active field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetActiveOk() (ret RecordSetgetActiveRetType, ok bool) {
return getRecordSetgetActiveAttributeTypeOk(o.Active)
}
// HasActive returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) HasActive() bool {
_, ok := o.GetActiveOk()
return ok
}
// SetActive gets a reference to the given bool and assigns it to the Active field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) SetActive(v RecordSetgetActiveRetType) {
setRecordSetgetActiveAttributeType(&o.Active, v)
}
// GetComment returns the Comment field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetComment() (res RecordSetGetCommentRetType) {
res, _ = o.GetCommentOk()
return
@@ -655,22 +810,26 @@ func (o *RecordSet) GetComment() (res RecordSetGetCommentRetType) {
// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetCommentOk() (ret RecordSetGetCommentRetType, ok bool) {
return getRecordSetGetCommentAttributeTypeOk(o.Comment)
}
// HasComment returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) HasComment() bool {
_, ok := o.GetCommentOk()
return ok
}
// SetComment gets a reference to the given string and assigns it to the Comment field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) SetComment(v RecordSetGetCommentRetType) {
setRecordSetGetCommentAttributeType(&o.Comment, v)
}
// GetCreationFinished returns the CreationFinished field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetCreationFinished() (ret RecordSetGetCreationFinishedRetType) {
ret, _ = o.GetCreationFinishedOk()
return ret
@@ -678,16 +837,19 @@ func (o *RecordSet) GetCreationFinished() (ret RecordSetGetCreationFinishedRetTy
// GetCreationFinishedOk returns a tuple with the CreationFinished field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetCreationFinishedOk() (ret RecordSetGetCreationFinishedRetType, ok bool) {
return getRecordSetGetCreationFinishedAttributeTypeOk(o.CreationFinished)
}
// SetCreationFinished sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) SetCreationFinished(v RecordSetGetCreationFinishedRetType) {
setRecordSetGetCreationFinishedAttributeType(&o.CreationFinished, v)
}
// GetCreationStarted returns the CreationStarted field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetCreationStarted() (ret RecordSetGetCreationStartedRetType) {
ret, _ = o.GetCreationStartedOk()
return ret
@@ -695,16 +857,19 @@ func (o *RecordSet) GetCreationStarted() (ret RecordSetGetCreationStartedRetType
// GetCreationStartedOk returns a tuple with the CreationStarted field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetCreationStartedOk() (ret RecordSetGetCreationStartedRetType, ok bool) {
return getRecordSetGetCreationStartedAttributeTypeOk(o.CreationStarted)
}
// SetCreationStarted sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) SetCreationStarted(v RecordSetGetCreationStartedRetType) {
setRecordSetGetCreationStartedAttributeType(&o.CreationStarted, v)
}
// GetError returns the Error field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetError() (res RecordSetGetErrorRetType) {
res, _ = o.GetErrorOk()
return
@@ -712,22 +877,26 @@ func (o *RecordSet) GetError() (res RecordSetGetErrorRetType) {
// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetErrorOk() (ret RecordSetGetErrorRetType, ok bool) {
return getRecordSetGetErrorAttributeTypeOk(o.Error)
}
// HasError returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) HasError() bool {
_, ok := o.GetErrorOk()
return ok
}
// SetError gets a reference to the given string and assigns it to the Error field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) SetError(v RecordSetGetErrorRetType) {
setRecordSetGetErrorAttributeType(&o.Error, v)
}
// GetId returns the Id field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetId() (ret RecordSetGetIdRetType) {
ret, _ = o.GetIdOk()
return ret
@@ -735,16 +904,19 @@ func (o *RecordSet) GetId() (ret RecordSetGetIdRetType) {
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetIdOk() (ret RecordSetGetIdRetType, ok bool) {
return getRecordSetGetIdAttributeTypeOk(o.Id)
}
// SetId sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) SetId(v RecordSetGetIdRetType) {
setRecordSetGetIdAttributeType(&o.Id, v)
}
// GetName returns the Name field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetName() (ret RecordSetGetNameRetType) {
ret, _ = o.GetNameOk()
return ret
@@ -752,16 +924,19 @@ func (o *RecordSet) GetName() (ret RecordSetGetNameRetType) {
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetNameOk() (ret RecordSetGetNameRetType, ok bool) {
return getRecordSetGetNameAttributeTypeOk(o.Name)
}
// SetName sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) SetName(v RecordSetGetNameRetType) {
setRecordSetGetNameAttributeType(&o.Name, v)
}
// GetRecords returns the Records field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetRecords() (ret RecordSetGetRecordsRetType) {
ret, _ = o.GetRecordsOk()
return ret
@@ -769,16 +944,19 @@ func (o *RecordSet) GetRecords() (ret RecordSetGetRecordsRetType) {
// GetRecordsOk returns a tuple with the Records field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetRecordsOk() (ret RecordSetGetRecordsRetType, ok bool) {
return getRecordSetGetRecordsAttributeTypeOk(o.Records)
}
// SetRecords sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) SetRecords(v RecordSetGetRecordsRetType) {
setRecordSetGetRecordsAttributeType(&o.Records, v)
}
// GetState returns the State field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetState() (ret RecordSetGetStateRetType) {
ret, _ = o.GetStateOk()
return ret
@@ -786,16 +964,19 @@ func (o *RecordSet) GetState() (ret RecordSetGetStateRetType) {
// GetStateOk returns a tuple with the State field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetStateOk() (ret RecordSetGetStateRetType, ok bool) {
return getRecordSetGetStateAttributeTypeOk(o.State)
}
// SetState sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) SetState(v RecordSetGetStateRetType) {
setRecordSetGetStateAttributeType(&o.State, v)
}
// GetTtl returns the Ttl field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetTtl() (ret RecordSetGetTtlRetType) {
ret, _ = o.GetTtlOk()
return ret
@@ -803,16 +984,19 @@ func (o *RecordSet) GetTtl() (ret RecordSetGetTtlRetType) {
// GetTtlOk returns a tuple with the Ttl field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetTtlOk() (ret RecordSetGetTtlRetType, ok bool) {
return getRecordSetGetTtlAttributeTypeOk(o.Ttl)
}
// SetTtl sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) SetTtl(v RecordSetGetTtlRetType) {
setRecordSetGetTtlAttributeType(&o.Ttl, v)
}
// GetType returns the Type field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetType() (ret RecordSetGetTypeRetType) {
ret, _ = o.GetTypeOk()
return ret
@@ -820,16 +1004,19 @@ func (o *RecordSet) GetType() (ret RecordSetGetTypeRetType) {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetTypeOk() (ret RecordSetGetTypeRetType, ok bool) {
return getRecordSetGetTypeAttributeTypeOk(o.Type)
}
// SetType sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) SetType(v RecordSetGetTypeRetType) {
setRecordSetGetTypeAttributeType(&o.Type, v)
}
// GetUpdateFinished returns the UpdateFinished field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetUpdateFinished() (ret RecordSetGetUpdateFinishedRetType) {
ret, _ = o.GetUpdateFinishedOk()
return ret
@@ -837,16 +1024,19 @@ func (o *RecordSet) GetUpdateFinished() (ret RecordSetGetUpdateFinishedRetType)
// GetUpdateFinishedOk returns a tuple with the UpdateFinished field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetUpdateFinishedOk() (ret RecordSetGetUpdateFinishedRetType, ok bool) {
return getRecordSetGetUpdateFinishedAttributeTypeOk(o.UpdateFinished)
}
// SetUpdateFinished sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) SetUpdateFinished(v RecordSetGetUpdateFinishedRetType) {
setRecordSetGetUpdateFinishedAttributeType(&o.UpdateFinished, v)
}
// GetUpdateStarted returns the UpdateStarted field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetUpdateStarted() (ret RecordSetGetUpdateStartedRetType) {
ret, _ = o.GetUpdateStartedOk()
return ret
@@ -854,15 +1044,18 @@ func (o *RecordSet) GetUpdateStarted() (ret RecordSetGetUpdateStartedRetType) {
// GetUpdateStartedOk returns a tuple with the UpdateStarted field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) GetUpdateStartedOk() (ret RecordSetGetUpdateStartedRetType, ok bool) {
return getRecordSetGetUpdateStartedAttributeTypeOk(o.UpdateStarted)
}
// SetUpdateStarted sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSet) SetUpdateStarted(v RecordSetGetUpdateStartedRetType) {
setRecordSetGetUpdateStartedAttributeType(&o.UpdateStarted, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o RecordSet) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getRecordSetgetActiveAttributeTypeOk(o.Active); ok {
@@ -907,37 +1100,45 @@ func (o RecordSet) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableRecordSet struct {
value *RecordSet
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordSet) Get() *RecordSet {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordSet) Set(val *RecordSet) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordSet) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordSet) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableRecordSet(val *RecordSet) *NullableRecordSet {
return &NullableRecordSet{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordSet) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordSet) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_record_set_response.go b/services/dns/model_record_set_response.go
index 770f9da45..2d4ca0072 100644
--- a/services/dns/model_record_set_response.go
+++ b/services/dns/model_record_set_response.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &RecordSetResponse{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetResponseGetMessageAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetResponseGetMessageAttributeTypeOk(arg RecordSetResponseGetMessageAttributeType) (ret RecordSetResponseGetMessageRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getRecordSetResponseGetMessageAttributeTypeOk(arg RecordSetResponseGetMessa
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetResponseGetMessageAttributeType(arg *RecordSetResponseGetMessageAttributeType, val RecordSetResponseGetMessageRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetResponseGetMessageArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetResponseGetMessageRetType = string
/*
@@ -43,10 +50,16 @@ type RecordSetResponseGetMessageRetType = string
*/
// isModel
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetResponseGetRrsetAttributeType = *RecordSet
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetResponseGetRrsetArgType = RecordSet
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetResponseGetRrsetRetType = RecordSet
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getRecordSetResponseGetRrsetAttributeTypeOk(arg RecordSetResponseGetRrsetAttributeType) (ret RecordSetResponseGetRrsetRetType, ok bool) {
if arg == nil {
return ret, false
@@ -54,23 +67,27 @@ func getRecordSetResponseGetRrsetAttributeTypeOk(arg RecordSetResponseGetRrsetAt
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setRecordSetResponseGetRrsetAttributeType(arg *RecordSetResponseGetRrsetAttributeType, val RecordSetResponseGetRrsetRetType) {
*arg = &val
}
// RecordSetResponse ResponseRRSet for rr set info.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type RecordSetResponse struct {
Message RecordSetResponseGetMessageAttributeType `json:"message,omitempty"`
// REQUIRED
Rrset RecordSetResponseGetRrsetAttributeType `json:"rrset" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _RecordSetResponse RecordSetResponse
// NewRecordSetResponse instantiates a new RecordSetResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewRecordSetResponse(rrset RecordSetResponseGetRrsetArgType) *RecordSetResponse {
this := RecordSetResponse{}
setRecordSetResponseGetRrsetAttributeType(&this.Rrset, rrset)
@@ -80,12 +97,14 @@ func NewRecordSetResponse(rrset RecordSetResponseGetRrsetArgType) *RecordSetResp
// NewRecordSetResponseWithDefaults instantiates a new RecordSetResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewRecordSetResponseWithDefaults() *RecordSetResponse {
this := RecordSetResponse{}
return &this
}
// GetMessage returns the Message field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSetResponse) GetMessage() (res RecordSetResponseGetMessageRetType) {
res, _ = o.GetMessageOk()
return
@@ -93,22 +112,26 @@ func (o *RecordSetResponse) GetMessage() (res RecordSetResponseGetMessageRetType
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSetResponse) GetMessageOk() (ret RecordSetResponseGetMessageRetType, ok bool) {
return getRecordSetResponseGetMessageAttributeTypeOk(o.Message)
}
// HasMessage returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSetResponse) HasMessage() bool {
_, ok := o.GetMessageOk()
return ok
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSetResponse) SetMessage(v RecordSetResponseGetMessageRetType) {
setRecordSetResponseGetMessageAttributeType(&o.Message, v)
}
// GetRrset returns the Rrset field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSetResponse) GetRrset() (ret RecordSetResponseGetRrsetRetType) {
ret, _ = o.GetRrsetOk()
return ret
@@ -116,15 +139,18 @@ func (o *RecordSetResponse) GetRrset() (ret RecordSetResponseGetRrsetRetType) {
// GetRrsetOk returns a tuple with the Rrset field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSetResponse) GetRrsetOk() (ret RecordSetResponseGetRrsetRetType, ok bool) {
return getRecordSetResponseGetRrsetAttributeTypeOk(o.Rrset)
}
// SetRrset sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *RecordSetResponse) SetRrset(v RecordSetResponseGetRrsetRetType) {
setRecordSetResponseGetRrsetAttributeType(&o.Rrset, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o RecordSetResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getRecordSetResponseGetMessageAttributeTypeOk(o.Message); ok {
@@ -136,37 +162,45 @@ func (o RecordSetResponse) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableRecordSetResponse struct {
value *RecordSetResponse
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordSetResponse) Get() *RecordSetResponse {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordSetResponse) Set(val *RecordSetResponse) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordSetResponse) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordSetResponse) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableRecordSetResponse(val *RecordSetResponse) *NullableRecordSetResponse {
return &NullableRecordSetResponse{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableRecordSetResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableRecordSetResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_validate_move_code_payload.go b/services/dns/model_validate_move_code_payload.go
index 2cea61a81..6948df6b7 100644
--- a/services/dns/model_validate_move_code_payload.go
+++ b/services/dns/model_validate_move_code_payload.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &ValidateMoveCodePayload{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ValidateMoveCodePayloadGetCodeAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getValidateMoveCodePayloadGetCodeAttributeTypeOk(arg ValidateMoveCodePayloadGetCodeAttributeType) (ret ValidateMoveCodePayloadGetCodeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,26 +34,33 @@ func getValidateMoveCodePayloadGetCodeAttributeTypeOk(arg ValidateMoveCodePayloa
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setValidateMoveCodePayloadGetCodeAttributeType(arg *ValidateMoveCodePayloadGetCodeAttributeType, val ValidateMoveCodePayloadGetCodeRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ValidateMoveCodePayloadGetCodeArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ValidateMoveCodePayloadGetCodeRetType = string
// ValidateMoveCodePayload PostValidateMoveCodeRequest body to validate move code request.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ValidateMoveCodePayload struct {
// code that should be validated. It validates if it is valid, not expired and belongs to the zone.
// REQUIRED
Code ValidateMoveCodePayloadGetCodeAttributeType `json:"code" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _ValidateMoveCodePayload ValidateMoveCodePayload
// NewValidateMoveCodePayload instantiates a new ValidateMoveCodePayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewValidateMoveCodePayload(code ValidateMoveCodePayloadGetCodeArgType) *ValidateMoveCodePayload {
this := ValidateMoveCodePayload{}
setValidateMoveCodePayloadGetCodeAttributeType(&this.Code, code)
@@ -60,12 +70,14 @@ func NewValidateMoveCodePayload(code ValidateMoveCodePayloadGetCodeArgType) *Val
// NewValidateMoveCodePayloadWithDefaults instantiates a new ValidateMoveCodePayload 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewValidateMoveCodePayloadWithDefaults() *ValidateMoveCodePayload {
this := ValidateMoveCodePayload{}
return &this
}
// GetCode returns the Code field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ValidateMoveCodePayload) GetCode() (ret ValidateMoveCodePayloadGetCodeRetType) {
ret, _ = o.GetCodeOk()
return ret
@@ -73,15 +85,18 @@ func (o *ValidateMoveCodePayload) GetCode() (ret ValidateMoveCodePayloadGetCodeR
// GetCodeOk returns a tuple with the Code field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ValidateMoveCodePayload) GetCodeOk() (ret ValidateMoveCodePayloadGetCodeRetType, ok bool) {
return getValidateMoveCodePayloadGetCodeAttributeTypeOk(o.Code)
}
// SetCode sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ValidateMoveCodePayload) SetCode(v ValidateMoveCodePayloadGetCodeRetType) {
setValidateMoveCodePayloadGetCodeAttributeType(&o.Code, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ValidateMoveCodePayload) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getValidateMoveCodePayloadGetCodeAttributeTypeOk(o.Code); ok {
@@ -90,37 +105,45 @@ func (o ValidateMoveCodePayload) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableValidateMoveCodePayload struct {
value *ValidateMoveCodePayload
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableValidateMoveCodePayload) Get() *ValidateMoveCodePayload {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableValidateMoveCodePayload) Set(val *ValidateMoveCodePayload) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableValidateMoveCodePayload) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableValidateMoveCodePayload) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableValidateMoveCodePayload(val *ValidateMoveCodePayload) *NullableValidateMoveCodePayload {
return &NullableValidateMoveCodePayload{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableValidateMoveCodePayload) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableValidateMoveCodePayload) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_zone.go b/services/dns/model_zone.go
index 881fff745..31c52b869 100644
--- a/services/dns/model_zone.go
+++ b/services/dns/model_zone.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -23,8 +24,10 @@ var _ MappedNullable = &Zone{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetAclAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetAclAttributeTypeOk(arg ZoneGetAclAttributeType) (ret ZoneGetAclRetType, ok bool) {
if arg == nil {
return ret, false
@@ -32,11 +35,15 @@ func getZoneGetAclAttributeTypeOk(arg ZoneGetAclAttributeType) (ret ZoneGetAclRe
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetAclAttributeType(arg *ZoneGetAclAttributeType, val ZoneGetAclRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetAclArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetAclRetType = string
/*
@@ -44,10 +51,16 @@ type ZoneGetAclRetType = string
*/
// isBoolean
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZonegetActiveAttributeType = *bool
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZonegetActiveArgType = bool
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZonegetActiveRetType = bool
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZonegetActiveAttributeTypeOk(arg ZonegetActiveAttributeType) (ret ZonegetActiveRetType, ok bool) {
if arg == nil {
return ret, false
@@ -55,6 +68,7 @@ func getZonegetActiveAttributeTypeOk(arg ZonegetActiveAttributeType) (ret Zonege
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZonegetActiveAttributeType(arg *ZonegetActiveAttributeType, val ZonegetActiveRetType) {
*arg = &val
}
@@ -64,8 +78,10 @@ func setZonegetActiveAttributeType(arg *ZonegetActiveAttributeType, val ZonegetA
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetContactEmailAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetContactEmailAttributeTypeOk(arg ZoneGetContactEmailAttributeType) (ret ZoneGetContactEmailRetType, ok bool) {
if arg == nil {
return ret, false
@@ -73,11 +89,15 @@ func getZoneGetContactEmailAttributeTypeOk(arg ZoneGetContactEmailAttributeType)
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetContactEmailAttributeType(arg *ZoneGetContactEmailAttributeType, val ZoneGetContactEmailRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetContactEmailArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetContactEmailRetType = string
/*
@@ -85,8 +105,10 @@ type ZoneGetContactEmailRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetCreationFinishedAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetCreationFinishedAttributeTypeOk(arg ZoneGetCreationFinishedAttributeType) (ret ZoneGetCreationFinishedRetType, ok bool) {
if arg == nil {
return ret, false
@@ -94,11 +116,15 @@ func getZoneGetCreationFinishedAttributeTypeOk(arg ZoneGetCreationFinishedAttrib
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetCreationFinishedAttributeType(arg *ZoneGetCreationFinishedAttributeType, val ZoneGetCreationFinishedRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetCreationFinishedArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetCreationFinishedRetType = string
/*
@@ -106,8 +132,10 @@ type ZoneGetCreationFinishedRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetCreationStartedAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetCreationStartedAttributeTypeOk(arg ZoneGetCreationStartedAttributeType) (ret ZoneGetCreationStartedRetType, ok bool) {
if arg == nil {
return ret, false
@@ -115,11 +143,15 @@ func getZoneGetCreationStartedAttributeTypeOk(arg ZoneGetCreationStartedAttribut
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetCreationStartedAttributeType(arg *ZoneGetCreationStartedAttributeType, val ZoneGetCreationStartedRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetCreationStartedArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetCreationStartedRetType = string
/*
@@ -127,10 +159,16 @@ type ZoneGetCreationStartedRetType = string
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetDefaultTTLAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetDefaultTTLArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetDefaultTTLRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetDefaultTTLAttributeTypeOk(arg ZoneGetDefaultTTLAttributeType) (ret ZoneGetDefaultTTLRetType, ok bool) {
if arg == nil {
return ret, false
@@ -138,6 +176,7 @@ func getZoneGetDefaultTTLAttributeTypeOk(arg ZoneGetDefaultTTLAttributeType) (re
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetDefaultTTLAttributeType(arg *ZoneGetDefaultTTLAttributeType, val ZoneGetDefaultTTLRetType) {
*arg = &val
}
@@ -147,8 +186,10 @@ func setZoneGetDefaultTTLAttributeType(arg *ZoneGetDefaultTTLAttributeType, val
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetDescriptionAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetDescriptionAttributeTypeOk(arg ZoneGetDescriptionAttributeType) (ret ZoneGetDescriptionRetType, ok bool) {
if arg == nil {
return ret, false
@@ -156,11 +197,15 @@ func getZoneGetDescriptionAttributeTypeOk(arg ZoneGetDescriptionAttributeType) (
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetDescriptionAttributeType(arg *ZoneGetDescriptionAttributeType, val ZoneGetDescriptionRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetDescriptionArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetDescriptionRetType = string
/*
@@ -168,8 +213,10 @@ type ZoneGetDescriptionRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetDnsNameAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetDnsNameAttributeTypeOk(arg ZoneGetDnsNameAttributeType) (ret ZoneGetDnsNameRetType, ok bool) {
if arg == nil {
return ret, false
@@ -177,11 +224,15 @@ func getZoneGetDnsNameAttributeTypeOk(arg ZoneGetDnsNameAttributeType) (ret Zone
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetDnsNameAttributeType(arg *ZoneGetDnsNameAttributeType, val ZoneGetDnsNameRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetDnsNameArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetDnsNameRetType = string
/*
@@ -189,8 +240,10 @@ type ZoneGetDnsNameRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetErrorAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetErrorAttributeTypeOk(arg ZoneGetErrorAttributeType) (ret ZoneGetErrorRetType, ok bool) {
if arg == nil {
return ret, false
@@ -198,11 +251,15 @@ func getZoneGetErrorAttributeTypeOk(arg ZoneGetErrorAttributeType) (ret ZoneGetE
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetErrorAttributeType(arg *ZoneGetErrorAttributeType, val ZoneGetErrorRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetErrorArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetErrorRetType = string
/*
@@ -210,10 +267,16 @@ type ZoneGetErrorRetType = string
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetExpireTimeAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetExpireTimeArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetExpireTimeRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetExpireTimeAttributeTypeOk(arg ZoneGetExpireTimeAttributeType) (ret ZoneGetExpireTimeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -221,6 +284,7 @@ func getZoneGetExpireTimeAttributeTypeOk(arg ZoneGetExpireTimeAttributeType) (re
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetExpireTimeAttributeType(arg *ZoneGetExpireTimeAttributeType, val ZoneGetExpireTimeRetType) {
*arg = &val
}
@@ -230,10 +294,16 @@ func setZoneGetExpireTimeAttributeType(arg *ZoneGetExpireTimeAttributeType, val
*/
// isModel
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetExtensionsAttributeType = *DomainExtensions
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetExtensionsArgType = DomainExtensions
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetExtensionsRetType = DomainExtensions
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetExtensionsAttributeTypeOk(arg ZoneGetExtensionsAttributeType) (ret ZoneGetExtensionsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -241,6 +311,7 @@ func getZoneGetExtensionsAttributeTypeOk(arg ZoneGetExtensionsAttributeType) (re
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetExtensionsAttributeType(arg *ZoneGetExtensionsAttributeType, val ZoneGetExtensionsRetType) {
*arg = &val
}
@@ -250,8 +321,10 @@ func setZoneGetExtensionsAttributeType(arg *ZoneGetExtensionsAttributeType, val
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetIdAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetIdAttributeTypeOk(arg ZoneGetIdAttributeType) (ret ZoneGetIdRetType, ok bool) {
if arg == nil {
return ret, false
@@ -259,11 +332,15 @@ func getZoneGetIdAttributeTypeOk(arg ZoneGetIdAttributeType) (ret ZoneGetIdRetTy
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetIdAttributeType(arg *ZoneGetIdAttributeType, val ZoneGetIdRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetIdArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetIdRetType = string
/*
@@ -271,10 +348,16 @@ type ZoneGetIdRetType = string
*/
// isBoolean
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZonegetIsReverseZoneAttributeType = *bool
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZonegetIsReverseZoneArgType = bool
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZonegetIsReverseZoneRetType = bool
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZonegetIsReverseZoneAttributeTypeOk(arg ZonegetIsReverseZoneAttributeType) (ret ZonegetIsReverseZoneRetType, ok bool) {
if arg == nil {
return ret, false
@@ -282,6 +365,7 @@ func getZonegetIsReverseZoneAttributeTypeOk(arg ZonegetIsReverseZoneAttributeTyp
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZonegetIsReverseZoneAttributeType(arg *ZonegetIsReverseZoneAttributeType, val ZonegetIsReverseZoneRetType) {
*arg = &val
}
@@ -291,10 +375,16 @@ func setZonegetIsReverseZoneAttributeType(arg *ZonegetIsReverseZoneAttributeType
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetLabelsAttributeType = *[]Label
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetLabelsArgType = []Label
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetLabelsRetType = []Label
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetLabelsAttributeTypeOk(arg ZoneGetLabelsAttributeType) (ret ZoneGetLabelsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -302,6 +392,7 @@ func getZoneGetLabelsAttributeTypeOk(arg ZoneGetLabelsAttributeType) (ret ZoneGe
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetLabelsAttributeType(arg *ZoneGetLabelsAttributeType, val ZoneGetLabelsRetType) {
*arg = &val
}
@@ -311,8 +402,10 @@ func setZoneGetLabelsAttributeType(arg *ZoneGetLabelsAttributeType, val ZoneGetL
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetNameAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetNameAttributeTypeOk(arg ZoneGetNameAttributeType) (ret ZoneGetNameRetType, ok bool) {
if arg == nil {
return ret, false
@@ -320,11 +413,15 @@ func getZoneGetNameAttributeTypeOk(arg ZoneGetNameAttributeType) (ret ZoneGetNam
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetNameAttributeType(arg *ZoneGetNameAttributeType, val ZoneGetNameRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetNameArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetNameRetType = string
/*
@@ -332,10 +429,16 @@ type ZoneGetNameRetType = string
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetNegativeCacheAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetNegativeCacheArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetNegativeCacheRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetNegativeCacheAttributeTypeOk(arg ZoneGetNegativeCacheAttributeType) (ret ZoneGetNegativeCacheRetType, ok bool) {
if arg == nil {
return ret, false
@@ -343,6 +446,7 @@ func getZoneGetNegativeCacheAttributeTypeOk(arg ZoneGetNegativeCacheAttributeTyp
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetNegativeCacheAttributeType(arg *ZoneGetNegativeCacheAttributeType, val ZoneGetNegativeCacheRetType) {
*arg = &val
}
@@ -352,10 +456,16 @@ func setZoneGetNegativeCacheAttributeType(arg *ZoneGetNegativeCacheAttributeType
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetPrimariesAttributeType = *[]string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetPrimariesArgType = []string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetPrimariesRetType = []string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetPrimariesAttributeTypeOk(arg ZoneGetPrimariesAttributeType) (ret ZoneGetPrimariesRetType, ok bool) {
if arg == nil {
return ret, false
@@ -363,6 +473,7 @@ func getZoneGetPrimariesAttributeTypeOk(arg ZoneGetPrimariesAttributeType) (ret
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetPrimariesAttributeType(arg *ZoneGetPrimariesAttributeType, val ZoneGetPrimariesRetType) {
*arg = &val
}
@@ -372,8 +483,10 @@ func setZoneGetPrimariesAttributeType(arg *ZoneGetPrimariesAttributeType, val Zo
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetPrimaryNameServerAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetPrimaryNameServerAttributeTypeOk(arg ZoneGetPrimaryNameServerAttributeType) (ret ZoneGetPrimaryNameServerRetType, ok bool) {
if arg == nil {
return ret, false
@@ -381,11 +494,15 @@ func getZoneGetPrimaryNameServerAttributeTypeOk(arg ZoneGetPrimaryNameServerAttr
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetPrimaryNameServerAttributeType(arg *ZoneGetPrimaryNameServerAttributeType, val ZoneGetPrimaryNameServerRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetPrimaryNameServerArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetPrimaryNameServerRetType = string
/*
@@ -393,10 +510,16 @@ type ZoneGetPrimaryNameServerRetType = string
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetRecordCountAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetRecordCountArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetRecordCountRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetRecordCountAttributeTypeOk(arg ZoneGetRecordCountAttributeType) (ret ZoneGetRecordCountRetType, ok bool) {
if arg == nil {
return ret, false
@@ -404,6 +527,7 @@ func getZoneGetRecordCountAttributeTypeOk(arg ZoneGetRecordCountAttributeType) (
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetRecordCountAttributeType(arg *ZoneGetRecordCountAttributeType, val ZoneGetRecordCountRetType) {
*arg = &val
}
@@ -413,10 +537,16 @@ func setZoneGetRecordCountAttributeType(arg *ZoneGetRecordCountAttributeType, va
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetRefreshTimeAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetRefreshTimeArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetRefreshTimeRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetRefreshTimeAttributeTypeOk(arg ZoneGetRefreshTimeAttributeType) (ret ZoneGetRefreshTimeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -424,6 +554,7 @@ func getZoneGetRefreshTimeAttributeTypeOk(arg ZoneGetRefreshTimeAttributeType) (
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetRefreshTimeAttributeType(arg *ZoneGetRefreshTimeAttributeType, val ZoneGetRefreshTimeRetType) {
*arg = &val
}
@@ -433,10 +564,16 @@ func setZoneGetRefreshTimeAttributeType(arg *ZoneGetRefreshTimeAttributeType, va
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetRetryTimeAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetRetryTimeArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetRetryTimeRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetRetryTimeAttributeTypeOk(arg ZoneGetRetryTimeAttributeType) (ret ZoneGetRetryTimeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -444,6 +581,7 @@ func getZoneGetRetryTimeAttributeTypeOk(arg ZoneGetRetryTimeAttributeType) (ret
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetRetryTimeAttributeType(arg *ZoneGetRetryTimeAttributeType, val ZoneGetRetryTimeRetType) {
*arg = &val
}
@@ -453,10 +591,16 @@ func setZoneGetRetryTimeAttributeType(arg *ZoneGetRetryTimeAttributeType, val Zo
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetSerialNumberAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetSerialNumberArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetSerialNumberRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetSerialNumberAttributeTypeOk(arg ZoneGetSerialNumberAttributeType) (ret ZoneGetSerialNumberRetType, ok bool) {
if arg == nil {
return ret, false
@@ -464,6 +608,7 @@ func getZoneGetSerialNumberAttributeTypeOk(arg ZoneGetSerialNumberAttributeType)
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetSerialNumberAttributeType(arg *ZoneGetSerialNumberAttributeType, val ZoneGetSerialNumberRetType) {
*arg = &val
}
@@ -476,22 +621,33 @@ func setZoneGetSerialNumberAttributeType(arg *ZoneGetSerialNumberAttributeType,
// ZoneState zone state
// value type for enums
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneState string
// List of State
const (
- ZONESTATE_CREATING ZoneState = "CREATING"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ ZONESTATE_CREATING ZoneState = "CREATING"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
ZONESTATE_CREATE_SUCCEEDED ZoneState = "CREATE_SUCCEEDED"
- ZONESTATE_CREATE_FAILED ZoneState = "CREATE_FAILED"
- ZONESTATE_DELETING ZoneState = "DELETING"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ ZONESTATE_CREATE_FAILED ZoneState = "CREATE_FAILED"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ ZONESTATE_DELETING ZoneState = "DELETING"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
ZONESTATE_DELETE_SUCCEEDED ZoneState = "DELETE_SUCCEEDED"
- ZONESTATE_DELETE_FAILED ZoneState = "DELETE_FAILED"
- ZONESTATE_UPDATING ZoneState = "UPDATING"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ ZONESTATE_DELETE_FAILED ZoneState = "DELETE_FAILED"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ ZONESTATE_UPDATING ZoneState = "UPDATING"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
ZONESTATE_UPDATE_SUCCEEDED ZoneState = "UPDATE_SUCCEEDED"
- ZONESTATE_UPDATE_FAILED ZoneState = "UPDATE_FAILED"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ ZONESTATE_UPDATE_FAILED ZoneState = "UPDATE_FAILED"
)
// All allowed values of Zone enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
var AllowedZoneStateEnumValues = []ZoneState{
"CREATING",
"CREATE_SUCCEEDED",
@@ -504,6 +660,7 @@ var AllowedZoneStateEnumValues = []ZoneState{
"UPDATE_FAILED",
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *ZoneState) UnmarshalJSON(src []byte) error {
// use a type alias to prevent infinite recursion during unmarshal,
// see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers
@@ -531,6 +688,7 @@ func (v *ZoneState) UnmarshalJSON(src []byte) error {
// NewZoneStateFromValue returns a pointer to a valid ZoneState
// for the value passed as argument, or an error if the value passed is not allowed by the enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneStateFromValue(v ZoneState) (*ZoneState, error) {
ev := ZoneState(v)
if ev.IsValid() {
@@ -541,6 +699,7 @@ func NewZoneStateFromValue(v ZoneState) (*ZoneState, error) {
}
// IsValid return true if the value is valid for the enum, false otherwise
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v ZoneState) IsValid() bool {
for _, existing := range AllowedZoneStateEnumValues {
if existing == v {
@@ -551,50 +710,65 @@ func (v ZoneState) IsValid() bool {
}
// Ptr returns reference to StateState value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v ZoneState) Ptr() *ZoneState {
return &v
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableZoneState struct {
value *ZoneState
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneState) Get() *ZoneState {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneState) Set(val *ZoneState) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneState) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneState) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableZoneState(val *ZoneState) *NullableZoneState {
return &NullableZoneState{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneState) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneState) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetStateAttributeType = *ZoneState
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetStateArgType = ZoneState
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetStateRetType = ZoneState
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetStateAttributeTypeOk(arg ZoneGetStateAttributeType) (ret ZoneGetStateRetType, ok bool) {
if arg == nil {
return ret, false
@@ -602,6 +776,7 @@ func getZoneGetStateAttributeTypeOk(arg ZoneGetStateAttributeType) (ret ZoneGetS
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetStateAttributeType(arg *ZoneGetStateAttributeType, val ZoneGetStateRetType) {
*arg = &val
}
@@ -614,20 +789,25 @@ func setZoneGetStateAttributeType(arg *ZoneGetStateAttributeType, val ZoneGetSta
// ZoneTypes zone type
// value type for enums
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneTypes string
// List of Type
const (
- ZONETYPE_PRIMARY ZoneTypes = "primary"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+ ZONETYPE_PRIMARY ZoneTypes = "primary"
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
ZONETYPE_SECONDARY ZoneTypes = "secondary"
)
// All allowed values of Zone enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
var AllowedZoneTypesEnumValues = []ZoneTypes{
"primary",
"secondary",
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *ZoneTypes) UnmarshalJSON(src []byte) error {
// use a type alias to prevent infinite recursion during unmarshal,
// see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers
@@ -655,6 +835,7 @@ func (v *ZoneTypes) UnmarshalJSON(src []byte) error {
// NewZoneTypesFromValue returns a pointer to a valid ZoneTypes
// for the value passed as argument, or an error if the value passed is not allowed by the enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneTypesFromValue(v ZoneTypes) (*ZoneTypes, error) {
ev := ZoneTypes(v)
if ev.IsValid() {
@@ -665,6 +846,7 @@ func NewZoneTypesFromValue(v ZoneTypes) (*ZoneTypes, error) {
}
// IsValid return true if the value is valid for the enum, false otherwise
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v ZoneTypes) IsValid() bool {
for _, existing := range AllowedZoneTypesEnumValues {
if existing == v {
@@ -675,50 +857,65 @@ func (v ZoneTypes) IsValid() bool {
}
// Ptr returns reference to TypeTypes value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v ZoneTypes) Ptr() *ZoneTypes {
return &v
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableZoneTypes struct {
value *ZoneTypes
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneTypes) Get() *ZoneTypes {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneTypes) Set(val *ZoneTypes) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneTypes) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneTypes) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableZoneTypes(val *ZoneTypes) *NullableZoneTypes {
return &NullableZoneTypes{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneTypes) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneTypes) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetTypeAttributeType = *ZoneTypes
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetTypeArgType = ZoneTypes
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetTypeRetType = ZoneTypes
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetTypeAttributeTypeOk(arg ZoneGetTypeAttributeType) (ret ZoneGetTypeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -726,6 +923,7 @@ func getZoneGetTypeAttributeTypeOk(arg ZoneGetTypeAttributeType) (ret ZoneGetTyp
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetTypeAttributeType(arg *ZoneGetTypeAttributeType, val ZoneGetTypeRetType) {
*arg = &val
}
@@ -735,8 +933,10 @@ func setZoneGetTypeAttributeType(arg *ZoneGetTypeAttributeType, val ZoneGetTypeR
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetUpdateFinishedAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetUpdateFinishedAttributeTypeOk(arg ZoneGetUpdateFinishedAttributeType) (ret ZoneGetUpdateFinishedRetType, ok bool) {
if arg == nil {
return ret, false
@@ -744,11 +944,15 @@ func getZoneGetUpdateFinishedAttributeTypeOk(arg ZoneGetUpdateFinishedAttributeT
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetUpdateFinishedAttributeType(arg *ZoneGetUpdateFinishedAttributeType, val ZoneGetUpdateFinishedRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetUpdateFinishedArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetUpdateFinishedRetType = string
/*
@@ -756,8 +960,10 @@ type ZoneGetUpdateFinishedRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetUpdateStartedAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetUpdateStartedAttributeTypeOk(arg ZoneGetUpdateStartedAttributeType) (ret ZoneGetUpdateStartedRetType, ok bool) {
if arg == nil {
return ret, false
@@ -765,11 +971,15 @@ func getZoneGetUpdateStartedAttributeTypeOk(arg ZoneGetUpdateStartedAttributeTyp
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetUpdateStartedAttributeType(arg *ZoneGetUpdateStartedAttributeType, val ZoneGetUpdateStartedRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetUpdateStartedArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetUpdateStartedRetType = string
/*
@@ -780,18 +990,22 @@ type ZoneGetUpdateStartedRetType = string
// ZoneVisibility visibility of the zone
// value type for enums
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneVisibility string
// List of Visibility
const (
+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
ZONEVISIBILITY_PUBLIC ZoneVisibility = "public"
)
// All allowed values of Zone enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
var AllowedZoneVisibilityEnumValues = []ZoneVisibility{
"public",
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *ZoneVisibility) UnmarshalJSON(src []byte) error {
// use a type alias to prevent infinite recursion during unmarshal,
// see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers
@@ -819,6 +1033,7 @@ func (v *ZoneVisibility) UnmarshalJSON(src []byte) error {
// NewZoneVisibilityFromValue returns a pointer to a valid ZoneVisibility
// for the value passed as argument, or an error if the value passed is not allowed by the enum
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneVisibilityFromValue(v ZoneVisibility) (*ZoneVisibility, error) {
ev := ZoneVisibility(v)
if ev.IsValid() {
@@ -829,6 +1044,7 @@ func NewZoneVisibilityFromValue(v ZoneVisibility) (*ZoneVisibility, error) {
}
// IsValid return true if the value is valid for the enum, false otherwise
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v ZoneVisibility) IsValid() bool {
for _, existing := range AllowedZoneVisibilityEnumValues {
if existing == v {
@@ -839,50 +1055,65 @@ func (v ZoneVisibility) IsValid() bool {
}
// Ptr returns reference to VisibilityVisibility value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v ZoneVisibility) Ptr() *ZoneVisibility {
return &v
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableZoneVisibility struct {
value *ZoneVisibility
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneVisibility) Get() *ZoneVisibility {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneVisibility) Set(val *ZoneVisibility) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneVisibility) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneVisibility) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableZoneVisibility(val *ZoneVisibility) *NullableZoneVisibility {
return &NullableZoneVisibility{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneVisibility) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneVisibility) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetVisibilityAttributeType = *ZoneVisibility
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetVisibilityArgType = ZoneVisibility
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneGetVisibilityRetType = ZoneVisibility
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneGetVisibilityAttributeTypeOk(arg ZoneGetVisibilityAttributeType) (ret ZoneGetVisibilityRetType, ok bool) {
if arg == nil {
return ret, false
@@ -890,11 +1121,13 @@ func getZoneGetVisibilityAttributeTypeOk(arg ZoneGetVisibilityAttributeType) (re
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneGetVisibilityAttributeType(arg *ZoneGetVisibilityAttributeType, val ZoneGetVisibilityRetType) {
*arg = &val
}
// Zone Zone.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type Zone struct {
// access control list
// REQUIRED
@@ -974,12 +1207,14 @@ type Zone struct {
Visibility ZoneGetVisibilityAttributeType `json:"visibility" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _Zone Zone
// NewZone instantiates a new Zone 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZone(acl ZoneGetAclArgType, creationFinished ZoneGetCreationFinishedArgType, creationStarted ZoneGetCreationStartedArgType, defaultTTL ZoneGetDefaultTTLArgType, dnsName ZoneGetDnsNameArgType, expireTime ZoneGetExpireTimeArgType, id ZoneGetIdArgType, name ZoneGetNameArgType, negativeCache ZoneGetNegativeCacheArgType, primaryNameServer ZoneGetPrimaryNameServerArgType, refreshTime ZoneGetRefreshTimeArgType, retryTime ZoneGetRetryTimeArgType, serialNumber ZoneGetSerialNumberArgType, state ZoneGetStateArgType, types ZoneGetTypeArgType, updateFinished ZoneGetUpdateFinishedArgType, updateStarted ZoneGetUpdateStartedArgType, visibility ZoneGetVisibilityArgType) *Zone {
this := Zone{}
setZoneGetAclAttributeType(&this.Acl, acl)
@@ -1006,12 +1241,14 @@ func NewZone(acl ZoneGetAclArgType, creationFinished ZoneGetCreationFinishedArgT
// NewZoneWithDefaults instantiates a new Zone 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneWithDefaults() *Zone {
this := Zone{}
return &this
}
// GetAcl returns the Acl field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetAcl() (ret ZoneGetAclRetType) {
ret, _ = o.GetAclOk()
return ret
@@ -1019,16 +1256,19 @@ func (o *Zone) GetAcl() (ret ZoneGetAclRetType) {
// GetAclOk returns a tuple with the Acl field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetAclOk() (ret ZoneGetAclRetType, ok bool) {
return getZoneGetAclAttributeTypeOk(o.Acl)
}
// SetAcl sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetAcl(v ZoneGetAclRetType) {
setZoneGetAclAttributeType(&o.Acl, v)
}
// GetActive returns the Active field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetActive() (res ZonegetActiveRetType) {
res, _ = o.GetActiveOk()
return
@@ -1036,22 +1276,26 @@ func (o *Zone) GetActive() (res ZonegetActiveRetType) {
// GetActiveOk returns a tuple with the Active field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetActiveOk() (ret ZonegetActiveRetType, ok bool) {
return getZonegetActiveAttributeTypeOk(o.Active)
}
// HasActive returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) HasActive() bool {
_, ok := o.GetActiveOk()
return ok
}
// SetActive gets a reference to the given bool and assigns it to the Active field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetActive(v ZonegetActiveRetType) {
setZonegetActiveAttributeType(&o.Active, v)
}
// GetContactEmail returns the ContactEmail field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetContactEmail() (res ZoneGetContactEmailRetType) {
res, _ = o.GetContactEmailOk()
return
@@ -1059,22 +1303,26 @@ func (o *Zone) GetContactEmail() (res ZoneGetContactEmailRetType) {
// GetContactEmailOk returns a tuple with the ContactEmail field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetContactEmailOk() (ret ZoneGetContactEmailRetType, ok bool) {
return getZoneGetContactEmailAttributeTypeOk(o.ContactEmail)
}
// HasContactEmail returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) HasContactEmail() bool {
_, ok := o.GetContactEmailOk()
return ok
}
// SetContactEmail gets a reference to the given string and assigns it to the ContactEmail field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetContactEmail(v ZoneGetContactEmailRetType) {
setZoneGetContactEmailAttributeType(&o.ContactEmail, v)
}
// GetCreationFinished returns the CreationFinished field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetCreationFinished() (ret ZoneGetCreationFinishedRetType) {
ret, _ = o.GetCreationFinishedOk()
return ret
@@ -1082,16 +1330,19 @@ func (o *Zone) GetCreationFinished() (ret ZoneGetCreationFinishedRetType) {
// GetCreationFinishedOk returns a tuple with the CreationFinished field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetCreationFinishedOk() (ret ZoneGetCreationFinishedRetType, ok bool) {
return getZoneGetCreationFinishedAttributeTypeOk(o.CreationFinished)
}
// SetCreationFinished sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetCreationFinished(v ZoneGetCreationFinishedRetType) {
setZoneGetCreationFinishedAttributeType(&o.CreationFinished, v)
}
// GetCreationStarted returns the CreationStarted field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetCreationStarted() (ret ZoneGetCreationStartedRetType) {
ret, _ = o.GetCreationStartedOk()
return ret
@@ -1099,16 +1350,19 @@ func (o *Zone) GetCreationStarted() (ret ZoneGetCreationStartedRetType) {
// GetCreationStartedOk returns a tuple with the CreationStarted field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetCreationStartedOk() (ret ZoneGetCreationStartedRetType, ok bool) {
return getZoneGetCreationStartedAttributeTypeOk(o.CreationStarted)
}
// SetCreationStarted sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetCreationStarted(v ZoneGetCreationStartedRetType) {
setZoneGetCreationStartedAttributeType(&o.CreationStarted, v)
}
// GetDefaultTTL returns the DefaultTTL field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetDefaultTTL() (ret ZoneGetDefaultTTLRetType) {
ret, _ = o.GetDefaultTTLOk()
return ret
@@ -1116,16 +1370,19 @@ func (o *Zone) GetDefaultTTL() (ret ZoneGetDefaultTTLRetType) {
// GetDefaultTTLOk returns a tuple with the DefaultTTL field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetDefaultTTLOk() (ret ZoneGetDefaultTTLRetType, ok bool) {
return getZoneGetDefaultTTLAttributeTypeOk(o.DefaultTTL)
}
// SetDefaultTTL sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetDefaultTTL(v ZoneGetDefaultTTLRetType) {
setZoneGetDefaultTTLAttributeType(&o.DefaultTTL, v)
}
// GetDescription returns the Description field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetDescription() (res ZoneGetDescriptionRetType) {
res, _ = o.GetDescriptionOk()
return
@@ -1133,22 +1390,26 @@ func (o *Zone) GetDescription() (res ZoneGetDescriptionRetType) {
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetDescriptionOk() (ret ZoneGetDescriptionRetType, ok bool) {
return getZoneGetDescriptionAttributeTypeOk(o.Description)
}
// HasDescription returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) HasDescription() bool {
_, ok := o.GetDescriptionOk()
return ok
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetDescription(v ZoneGetDescriptionRetType) {
setZoneGetDescriptionAttributeType(&o.Description, v)
}
// GetDnsName returns the DnsName field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetDnsName() (ret ZoneGetDnsNameRetType) {
ret, _ = o.GetDnsNameOk()
return ret
@@ -1156,16 +1417,19 @@ func (o *Zone) GetDnsName() (ret ZoneGetDnsNameRetType) {
// GetDnsNameOk returns a tuple with the DnsName field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetDnsNameOk() (ret ZoneGetDnsNameRetType, ok bool) {
return getZoneGetDnsNameAttributeTypeOk(o.DnsName)
}
// SetDnsName sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetDnsName(v ZoneGetDnsNameRetType) {
setZoneGetDnsNameAttributeType(&o.DnsName, v)
}
// GetError returns the Error field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetError() (res ZoneGetErrorRetType) {
res, _ = o.GetErrorOk()
return
@@ -1173,22 +1437,26 @@ func (o *Zone) GetError() (res ZoneGetErrorRetType) {
// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetErrorOk() (ret ZoneGetErrorRetType, ok bool) {
return getZoneGetErrorAttributeTypeOk(o.Error)
}
// HasError returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) HasError() bool {
_, ok := o.GetErrorOk()
return ok
}
// SetError gets a reference to the given string and assigns it to the Error field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetError(v ZoneGetErrorRetType) {
setZoneGetErrorAttributeType(&o.Error, v)
}
// GetExpireTime returns the ExpireTime field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetExpireTime() (ret ZoneGetExpireTimeRetType) {
ret, _ = o.GetExpireTimeOk()
return ret
@@ -1196,16 +1464,19 @@ func (o *Zone) GetExpireTime() (ret ZoneGetExpireTimeRetType) {
// GetExpireTimeOk returns a tuple with the ExpireTime field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetExpireTimeOk() (ret ZoneGetExpireTimeRetType, ok bool) {
return getZoneGetExpireTimeAttributeTypeOk(o.ExpireTime)
}
// SetExpireTime sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetExpireTime(v ZoneGetExpireTimeRetType) {
setZoneGetExpireTimeAttributeType(&o.ExpireTime, v)
}
// GetExtensions returns the Extensions field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetExtensions() (res ZoneGetExtensionsRetType) {
res, _ = o.GetExtensionsOk()
return
@@ -1213,22 +1484,26 @@ func (o *Zone) GetExtensions() (res ZoneGetExtensionsRetType) {
// GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetExtensionsOk() (ret ZoneGetExtensionsRetType, ok bool) {
return getZoneGetExtensionsAttributeTypeOk(o.Extensions)
}
// HasExtensions returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) HasExtensions() bool {
_, ok := o.GetExtensionsOk()
return ok
}
// SetExtensions gets a reference to the given DomainExtensions and assigns it to the Extensions field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetExtensions(v ZoneGetExtensionsRetType) {
setZoneGetExtensionsAttributeType(&o.Extensions, v)
}
// GetId returns the Id field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetId() (ret ZoneGetIdRetType) {
ret, _ = o.GetIdOk()
return ret
@@ -1236,16 +1511,19 @@ func (o *Zone) GetId() (ret ZoneGetIdRetType) {
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetIdOk() (ret ZoneGetIdRetType, ok bool) {
return getZoneGetIdAttributeTypeOk(o.Id)
}
// SetId sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetId(v ZoneGetIdRetType) {
setZoneGetIdAttributeType(&o.Id, v)
}
// GetIsReverseZone returns the IsReverseZone field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetIsReverseZone() (res ZonegetIsReverseZoneRetType) {
res, _ = o.GetIsReverseZoneOk()
return
@@ -1253,22 +1531,26 @@ func (o *Zone) GetIsReverseZone() (res ZonegetIsReverseZoneRetType) {
// GetIsReverseZoneOk returns a tuple with the IsReverseZone field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetIsReverseZoneOk() (ret ZonegetIsReverseZoneRetType, ok bool) {
return getZonegetIsReverseZoneAttributeTypeOk(o.IsReverseZone)
}
// HasIsReverseZone returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) HasIsReverseZone() bool {
_, ok := o.GetIsReverseZoneOk()
return ok
}
// SetIsReverseZone gets a reference to the given bool and assigns it to the IsReverseZone field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetIsReverseZone(v ZonegetIsReverseZoneRetType) {
setZonegetIsReverseZoneAttributeType(&o.IsReverseZone, v)
}
// GetLabels returns the Labels field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetLabels() (res ZoneGetLabelsRetType) {
res, _ = o.GetLabelsOk()
return
@@ -1276,22 +1558,26 @@ func (o *Zone) GetLabels() (res ZoneGetLabelsRetType) {
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetLabelsOk() (ret ZoneGetLabelsRetType, ok bool) {
return getZoneGetLabelsAttributeTypeOk(o.Labels)
}
// HasLabels returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) HasLabels() bool {
_, ok := o.GetLabelsOk()
return ok
}
// SetLabels gets a reference to the given []Label and assigns it to the Labels field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetLabels(v ZoneGetLabelsRetType) {
setZoneGetLabelsAttributeType(&o.Labels, v)
}
// GetName returns the Name field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetName() (ret ZoneGetNameRetType) {
ret, _ = o.GetNameOk()
return ret
@@ -1299,16 +1585,19 @@ func (o *Zone) GetName() (ret ZoneGetNameRetType) {
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetNameOk() (ret ZoneGetNameRetType, ok bool) {
return getZoneGetNameAttributeTypeOk(o.Name)
}
// SetName sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetName(v ZoneGetNameRetType) {
setZoneGetNameAttributeType(&o.Name, v)
}
// GetNegativeCache returns the NegativeCache field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetNegativeCache() (ret ZoneGetNegativeCacheRetType) {
ret, _ = o.GetNegativeCacheOk()
return ret
@@ -1316,16 +1605,19 @@ func (o *Zone) GetNegativeCache() (ret ZoneGetNegativeCacheRetType) {
// GetNegativeCacheOk returns a tuple with the NegativeCache field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetNegativeCacheOk() (ret ZoneGetNegativeCacheRetType, ok bool) {
return getZoneGetNegativeCacheAttributeTypeOk(o.NegativeCache)
}
// SetNegativeCache sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetNegativeCache(v ZoneGetNegativeCacheRetType) {
setZoneGetNegativeCacheAttributeType(&o.NegativeCache, v)
}
// GetPrimaries returns the Primaries field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetPrimaries() (res ZoneGetPrimariesRetType) {
res, _ = o.GetPrimariesOk()
return
@@ -1333,22 +1625,26 @@ func (o *Zone) GetPrimaries() (res ZoneGetPrimariesRetType) {
// GetPrimariesOk returns a tuple with the Primaries field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetPrimariesOk() (ret ZoneGetPrimariesRetType, ok bool) {
return getZoneGetPrimariesAttributeTypeOk(o.Primaries)
}
// HasPrimaries returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) HasPrimaries() bool {
_, ok := o.GetPrimariesOk()
return ok
}
// SetPrimaries gets a reference to the given []string and assigns it to the Primaries field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetPrimaries(v ZoneGetPrimariesRetType) {
setZoneGetPrimariesAttributeType(&o.Primaries, v)
}
// GetPrimaryNameServer returns the PrimaryNameServer field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetPrimaryNameServer() (ret ZoneGetPrimaryNameServerRetType) {
ret, _ = o.GetPrimaryNameServerOk()
return ret
@@ -1356,16 +1652,19 @@ func (o *Zone) GetPrimaryNameServer() (ret ZoneGetPrimaryNameServerRetType) {
// GetPrimaryNameServerOk returns a tuple with the PrimaryNameServer field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetPrimaryNameServerOk() (ret ZoneGetPrimaryNameServerRetType, ok bool) {
return getZoneGetPrimaryNameServerAttributeTypeOk(o.PrimaryNameServer)
}
// SetPrimaryNameServer sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetPrimaryNameServer(v ZoneGetPrimaryNameServerRetType) {
setZoneGetPrimaryNameServerAttributeType(&o.PrimaryNameServer, v)
}
// GetRecordCount returns the RecordCount field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetRecordCount() (res ZoneGetRecordCountRetType) {
res, _ = o.GetRecordCountOk()
return
@@ -1373,22 +1672,26 @@ func (o *Zone) GetRecordCount() (res ZoneGetRecordCountRetType) {
// GetRecordCountOk returns a tuple with the RecordCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetRecordCountOk() (ret ZoneGetRecordCountRetType, ok bool) {
return getZoneGetRecordCountAttributeTypeOk(o.RecordCount)
}
// HasRecordCount returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) HasRecordCount() bool {
_, ok := o.GetRecordCountOk()
return ok
}
// SetRecordCount gets a reference to the given int64 and assigns it to the RecordCount field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetRecordCount(v ZoneGetRecordCountRetType) {
setZoneGetRecordCountAttributeType(&o.RecordCount, v)
}
// GetRefreshTime returns the RefreshTime field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetRefreshTime() (ret ZoneGetRefreshTimeRetType) {
ret, _ = o.GetRefreshTimeOk()
return ret
@@ -1396,16 +1699,19 @@ func (o *Zone) GetRefreshTime() (ret ZoneGetRefreshTimeRetType) {
// GetRefreshTimeOk returns a tuple with the RefreshTime field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetRefreshTimeOk() (ret ZoneGetRefreshTimeRetType, ok bool) {
return getZoneGetRefreshTimeAttributeTypeOk(o.RefreshTime)
}
// SetRefreshTime sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetRefreshTime(v ZoneGetRefreshTimeRetType) {
setZoneGetRefreshTimeAttributeType(&o.RefreshTime, v)
}
// GetRetryTime returns the RetryTime field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetRetryTime() (ret ZoneGetRetryTimeRetType) {
ret, _ = o.GetRetryTimeOk()
return ret
@@ -1413,16 +1719,19 @@ func (o *Zone) GetRetryTime() (ret ZoneGetRetryTimeRetType) {
// GetRetryTimeOk returns a tuple with the RetryTime field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetRetryTimeOk() (ret ZoneGetRetryTimeRetType, ok bool) {
return getZoneGetRetryTimeAttributeTypeOk(o.RetryTime)
}
// SetRetryTime sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetRetryTime(v ZoneGetRetryTimeRetType) {
setZoneGetRetryTimeAttributeType(&o.RetryTime, v)
}
// GetSerialNumber returns the SerialNumber field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetSerialNumber() (ret ZoneGetSerialNumberRetType) {
ret, _ = o.GetSerialNumberOk()
return ret
@@ -1430,16 +1739,19 @@ func (o *Zone) GetSerialNumber() (ret ZoneGetSerialNumberRetType) {
// GetSerialNumberOk returns a tuple with the SerialNumber field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetSerialNumberOk() (ret ZoneGetSerialNumberRetType, ok bool) {
return getZoneGetSerialNumberAttributeTypeOk(o.SerialNumber)
}
// SetSerialNumber sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetSerialNumber(v ZoneGetSerialNumberRetType) {
setZoneGetSerialNumberAttributeType(&o.SerialNumber, v)
}
// GetState returns the State field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetState() (ret ZoneGetStateRetType) {
ret, _ = o.GetStateOk()
return ret
@@ -1447,16 +1759,19 @@ func (o *Zone) GetState() (ret ZoneGetStateRetType) {
// GetStateOk returns a tuple with the State field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetStateOk() (ret ZoneGetStateRetType, ok bool) {
return getZoneGetStateAttributeTypeOk(o.State)
}
// SetState sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetState(v ZoneGetStateRetType) {
setZoneGetStateAttributeType(&o.State, v)
}
// GetType returns the Type field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetType() (ret ZoneGetTypeRetType) {
ret, _ = o.GetTypeOk()
return ret
@@ -1464,16 +1779,19 @@ func (o *Zone) GetType() (ret ZoneGetTypeRetType) {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetTypeOk() (ret ZoneGetTypeRetType, ok bool) {
return getZoneGetTypeAttributeTypeOk(o.Type)
}
// SetType sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetType(v ZoneGetTypeRetType) {
setZoneGetTypeAttributeType(&o.Type, v)
}
// GetUpdateFinished returns the UpdateFinished field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetUpdateFinished() (ret ZoneGetUpdateFinishedRetType) {
ret, _ = o.GetUpdateFinishedOk()
return ret
@@ -1481,16 +1799,19 @@ func (o *Zone) GetUpdateFinished() (ret ZoneGetUpdateFinishedRetType) {
// GetUpdateFinishedOk returns a tuple with the UpdateFinished field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetUpdateFinishedOk() (ret ZoneGetUpdateFinishedRetType, ok bool) {
return getZoneGetUpdateFinishedAttributeTypeOk(o.UpdateFinished)
}
// SetUpdateFinished sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetUpdateFinished(v ZoneGetUpdateFinishedRetType) {
setZoneGetUpdateFinishedAttributeType(&o.UpdateFinished, v)
}
// GetUpdateStarted returns the UpdateStarted field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetUpdateStarted() (ret ZoneGetUpdateStartedRetType) {
ret, _ = o.GetUpdateStartedOk()
return ret
@@ -1498,16 +1819,19 @@ func (o *Zone) GetUpdateStarted() (ret ZoneGetUpdateStartedRetType) {
// GetUpdateStartedOk returns a tuple with the UpdateStarted field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetUpdateStartedOk() (ret ZoneGetUpdateStartedRetType, ok bool) {
return getZoneGetUpdateStartedAttributeTypeOk(o.UpdateStarted)
}
// SetUpdateStarted sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetUpdateStarted(v ZoneGetUpdateStartedRetType) {
setZoneGetUpdateStartedAttributeType(&o.UpdateStarted, v)
}
// GetVisibility returns the Visibility field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetVisibility() (ret ZoneGetVisibilityRetType) {
ret, _ = o.GetVisibilityOk()
return ret
@@ -1515,15 +1839,18 @@ func (o *Zone) GetVisibility() (ret ZoneGetVisibilityRetType) {
// GetVisibilityOk returns a tuple with the Visibility field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) GetVisibilityOk() (ret ZoneGetVisibilityRetType, ok bool) {
return getZoneGetVisibilityAttributeTypeOk(o.Visibility)
}
// SetVisibility sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *Zone) SetVisibility(v ZoneGetVisibilityRetType) {
setZoneGetVisibilityAttributeType(&o.Visibility, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o Zone) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getZoneGetAclAttributeTypeOk(o.Acl); ok {
@@ -1610,37 +1937,45 @@ func (o Zone) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableZone struct {
value *Zone
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZone) Get() *Zone {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZone) Set(val *Zone) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZone) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZone) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableZone(val *Zone) *NullableZone {
return &NullableZone{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZone) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZone) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_zone_data_exchange.go b/services/dns/model_zone_data_exchange.go
index bf349041a..43129d960 100644
--- a/services/dns/model_zone_data_exchange.go
+++ b/services/dns/model_zone_data_exchange.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,10 +23,16 @@ var _ MappedNullable = &ZoneDataExchange{}
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneDataExchangeGetRrSetsAttributeType = *[]RecordDataExchange
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneDataExchangeGetRrSetsArgType = []RecordDataExchange
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneDataExchangeGetRrSetsRetType = []RecordDataExchange
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneDataExchangeGetRrSetsAttributeTypeOk(arg ZoneDataExchangeGetRrSetsAttributeType) (ret ZoneDataExchangeGetRrSetsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -33,11 +40,13 @@ func getZoneDataExchangeGetRrSetsAttributeTypeOk(arg ZoneDataExchangeGetRrSetsAt
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneDataExchangeGetRrSetsAttributeType(arg *ZoneDataExchangeGetRrSetsAttributeType, val ZoneDataExchangeGetRrSetsRetType) {
*arg = &val
}
// ZoneDataExchange struct for ZoneDataExchange
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneDataExchange struct {
RrSets ZoneDataExchangeGetRrSetsAttributeType `json:"rrSets,omitempty"`
}
@@ -46,6 +55,7 @@ type ZoneDataExchange struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneDataExchange() *ZoneDataExchange {
this := ZoneDataExchange{}
return &this
@@ -54,12 +64,14 @@ func NewZoneDataExchange() *ZoneDataExchange {
// NewZoneDataExchangeWithDefaults instantiates a new ZoneDataExchange 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneDataExchangeWithDefaults() *ZoneDataExchange {
this := ZoneDataExchange{}
return &this
}
// GetRrSets returns the RrSets field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneDataExchange) GetRrSets() (res ZoneDataExchangeGetRrSetsRetType) {
res, _ = o.GetRrSetsOk()
return
@@ -67,21 +79,25 @@ func (o *ZoneDataExchange) GetRrSets() (res ZoneDataExchangeGetRrSetsRetType) {
// GetRrSetsOk returns a tuple with the RrSets field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneDataExchange) GetRrSetsOk() (ret ZoneDataExchangeGetRrSetsRetType, ok bool) {
return getZoneDataExchangeGetRrSetsAttributeTypeOk(o.RrSets)
}
// HasRrSets returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneDataExchange) HasRrSets() bool {
_, ok := o.GetRrSetsOk()
return ok
}
// SetRrSets gets a reference to the given []RecordDataExchange and assigns it to the RrSets field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneDataExchange) SetRrSets(v ZoneDataExchangeGetRrSetsRetType) {
setZoneDataExchangeGetRrSetsAttributeType(&o.RrSets, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ZoneDataExchange) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getZoneDataExchangeGetRrSetsAttributeTypeOk(o.RrSets); ok {
@@ -90,37 +106,45 @@ func (o ZoneDataExchange) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableZoneDataExchange struct {
value *ZoneDataExchange
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneDataExchange) Get() *ZoneDataExchange {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneDataExchange) Set(val *ZoneDataExchange) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneDataExchange) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneDataExchange) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableZoneDataExchange(val *ZoneDataExchange) *NullableZoneDataExchange {
return &NullableZoneDataExchange{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneDataExchange) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneDataExchange) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_zone_extensions.go b/services/dns/model_zone_extensions.go
index bb43fd535..237662e7e 100644
--- a/services/dns/model_zone_extensions.go
+++ b/services/dns/model_zone_extensions.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,10 +23,16 @@ var _ MappedNullable = &ZoneExtensions{}
*/
// isModel
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneExtensionsGetObservabilityExtensionAttributeType = *ZoneObservabilityExtension
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneExtensionsGetObservabilityExtensionArgType = ZoneObservabilityExtension
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneExtensionsGetObservabilityExtensionRetType = ZoneObservabilityExtension
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneExtensionsGetObservabilityExtensionAttributeTypeOk(arg ZoneExtensionsGetObservabilityExtensionAttributeType) (ret ZoneExtensionsGetObservabilityExtensionRetType, ok bool) {
if arg == nil {
return ret, false
@@ -33,11 +40,13 @@ func getZoneExtensionsGetObservabilityExtensionAttributeTypeOk(arg ZoneExtension
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneExtensionsGetObservabilityExtensionAttributeType(arg *ZoneExtensionsGetObservabilityExtensionAttributeType, val ZoneExtensionsGetObservabilityExtensionRetType) {
*arg = &val
}
// ZoneExtensions struct for ZoneExtensions
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneExtensions struct {
ObservabilityExtension ZoneExtensionsGetObservabilityExtensionAttributeType `json:"observabilityExtension,omitempty"`
}
@@ -46,6 +55,7 @@ type ZoneExtensions struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneExtensions() *ZoneExtensions {
this := ZoneExtensions{}
return &this
@@ -54,12 +64,14 @@ func NewZoneExtensions() *ZoneExtensions {
// NewZoneExtensionsWithDefaults instantiates a new ZoneExtensions 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneExtensionsWithDefaults() *ZoneExtensions {
this := ZoneExtensions{}
return &this
}
// GetObservabilityExtension returns the ObservabilityExtension field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneExtensions) GetObservabilityExtension() (res ZoneExtensionsGetObservabilityExtensionRetType) {
res, _ = o.GetObservabilityExtensionOk()
return
@@ -67,21 +79,25 @@ func (o *ZoneExtensions) GetObservabilityExtension() (res ZoneExtensionsGetObser
// GetObservabilityExtensionOk returns a tuple with the ObservabilityExtension field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneExtensions) GetObservabilityExtensionOk() (ret ZoneExtensionsGetObservabilityExtensionRetType, ok bool) {
return getZoneExtensionsGetObservabilityExtensionAttributeTypeOk(o.ObservabilityExtension)
}
// HasObservabilityExtension returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneExtensions) HasObservabilityExtension() bool {
_, ok := o.GetObservabilityExtensionOk()
return ok
}
// SetObservabilityExtension gets a reference to the given ZoneObservabilityExtension and assigns it to the ObservabilityExtension field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneExtensions) SetObservabilityExtension(v ZoneExtensionsGetObservabilityExtensionRetType) {
setZoneExtensionsGetObservabilityExtensionAttributeType(&o.ObservabilityExtension, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ZoneExtensions) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getZoneExtensionsGetObservabilityExtensionAttributeTypeOk(o.ObservabilityExtension); ok {
@@ -90,37 +106,45 @@ func (o ZoneExtensions) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableZoneExtensions struct {
value *ZoneExtensions
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneExtensions) Get() *ZoneExtensions {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneExtensions) Set(val *ZoneExtensions) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneExtensions) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneExtensions) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableZoneExtensions(val *ZoneExtensions) *NullableZoneExtensions {
return &NullableZoneExtensions{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneExtensions) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneExtensions) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_zone_models_import_record_model.go b/services/dns/model_zone_models_import_record_model.go
index 4c3c10dea..1b5ec111d 100644
--- a/services/dns/model_zone_models_import_record_model.go
+++ b/services/dns/model_zone_models_import_record_model.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &ZoneModelsImportRecordModel{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetCommentAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneModelsImportRecordModelGetCommentAttributeTypeOk(arg ZoneModelsImportRecordModelGetCommentAttributeType) (ret ZoneModelsImportRecordModelGetCommentRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getZoneModelsImportRecordModelGetCommentAttributeTypeOk(arg ZoneModelsImpor
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneModelsImportRecordModelGetCommentAttributeType(arg *ZoneModelsImportRecordModelGetCommentAttributeType, val ZoneModelsImportRecordModelGetCommentRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetCommentArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetCommentRetType = string
/*
@@ -43,10 +50,16 @@ type ZoneModelsImportRecordModelGetCommentRetType = string
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetContentAttributeType = *[]string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetContentArgType = []string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetContentRetType = []string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneModelsImportRecordModelGetContentAttributeTypeOk(arg ZoneModelsImportRecordModelGetContentAttributeType) (ret ZoneModelsImportRecordModelGetContentRetType, ok bool) {
if arg == nil {
return ret, false
@@ -54,6 +67,7 @@ func getZoneModelsImportRecordModelGetContentAttributeTypeOk(arg ZoneModelsImpor
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneModelsImportRecordModelGetContentAttributeType(arg *ZoneModelsImportRecordModelGetContentAttributeType, val ZoneModelsImportRecordModelGetContentRetType) {
*arg = &val
}
@@ -63,8 +77,10 @@ func setZoneModelsImportRecordModelGetContentAttributeType(arg *ZoneModelsImport
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetNameAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneModelsImportRecordModelGetNameAttributeTypeOk(arg ZoneModelsImportRecordModelGetNameAttributeType) (ret ZoneModelsImportRecordModelGetNameRetType, ok bool) {
if arg == nil {
return ret, false
@@ -72,11 +88,15 @@ func getZoneModelsImportRecordModelGetNameAttributeTypeOk(arg ZoneModelsImportRe
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneModelsImportRecordModelGetNameAttributeType(arg *ZoneModelsImportRecordModelGetNameAttributeType, val ZoneModelsImportRecordModelGetNameRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetNameArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetNameRetType = string
/*
@@ -84,10 +104,16 @@ type ZoneModelsImportRecordModelGetNameRetType = string
*/
// isInteger
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetTtlAttributeType = *int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetTtlArgType = int64
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetTtlRetType = int64
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneModelsImportRecordModelGetTtlAttributeTypeOk(arg ZoneModelsImportRecordModelGetTtlAttributeType) (ret ZoneModelsImportRecordModelGetTtlRetType, ok bool) {
if arg == nil {
return ret, false
@@ -95,6 +121,7 @@ func getZoneModelsImportRecordModelGetTtlAttributeTypeOk(arg ZoneModelsImportRec
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneModelsImportRecordModelGetTtlAttributeType(arg *ZoneModelsImportRecordModelGetTtlAttributeType, val ZoneModelsImportRecordModelGetTtlRetType) {
*arg = &val
}
@@ -104,8 +131,10 @@ func setZoneModelsImportRecordModelGetTtlAttributeType(arg *ZoneModelsImportReco
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetTypeAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneModelsImportRecordModelGetTypeAttributeTypeOk(arg ZoneModelsImportRecordModelGetTypeAttributeType) (ret ZoneModelsImportRecordModelGetTypeRetType, ok bool) {
if arg == nil {
return ret, false
@@ -113,14 +142,19 @@ func getZoneModelsImportRecordModelGetTypeAttributeTypeOk(arg ZoneModelsImportRe
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneModelsImportRecordModelGetTypeAttributeType(arg *ZoneModelsImportRecordModelGetTypeAttributeType, val ZoneModelsImportRecordModelGetTypeRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetTypeArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModelGetTypeRetType = string
// ZoneModelsImportRecordModel struct for ZoneModelsImportRecordModel
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportRecordModel struct {
Comment ZoneModelsImportRecordModelGetCommentAttributeType `json:"comment,omitempty"`
Content ZoneModelsImportRecordModelGetContentAttributeType `json:"content,omitempty"`
@@ -134,6 +168,7 @@ type ZoneModelsImportRecordModel struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneModelsImportRecordModel() *ZoneModelsImportRecordModel {
this := ZoneModelsImportRecordModel{}
return &this
@@ -142,12 +177,14 @@ func NewZoneModelsImportRecordModel() *ZoneModelsImportRecordModel {
// NewZoneModelsImportRecordModelWithDefaults instantiates a new ZoneModelsImportRecordModel 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneModelsImportRecordModelWithDefaults() *ZoneModelsImportRecordModel {
this := ZoneModelsImportRecordModel{}
return &this
}
// GetComment returns the Comment field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) GetComment() (res ZoneModelsImportRecordModelGetCommentRetType) {
res, _ = o.GetCommentOk()
return
@@ -155,22 +192,26 @@ func (o *ZoneModelsImportRecordModel) GetComment() (res ZoneModelsImportRecordMo
// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) GetCommentOk() (ret ZoneModelsImportRecordModelGetCommentRetType, ok bool) {
return getZoneModelsImportRecordModelGetCommentAttributeTypeOk(o.Comment)
}
// HasComment returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) HasComment() bool {
_, ok := o.GetCommentOk()
return ok
}
// SetComment gets a reference to the given string and assigns it to the Comment field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) SetComment(v ZoneModelsImportRecordModelGetCommentRetType) {
setZoneModelsImportRecordModelGetCommentAttributeType(&o.Comment, v)
}
// GetContent returns the Content field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) GetContent() (res ZoneModelsImportRecordModelGetContentRetType) {
res, _ = o.GetContentOk()
return
@@ -178,22 +219,26 @@ func (o *ZoneModelsImportRecordModel) GetContent() (res ZoneModelsImportRecordMo
// GetContentOk returns a tuple with the Content field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) GetContentOk() (ret ZoneModelsImportRecordModelGetContentRetType, ok bool) {
return getZoneModelsImportRecordModelGetContentAttributeTypeOk(o.Content)
}
// HasContent returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) HasContent() bool {
_, ok := o.GetContentOk()
return ok
}
// SetContent gets a reference to the given []string and assigns it to the Content field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) SetContent(v ZoneModelsImportRecordModelGetContentRetType) {
setZoneModelsImportRecordModelGetContentAttributeType(&o.Content, v)
}
// GetName returns the Name field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) GetName() (res ZoneModelsImportRecordModelGetNameRetType) {
res, _ = o.GetNameOk()
return
@@ -201,22 +246,26 @@ func (o *ZoneModelsImportRecordModel) GetName() (res ZoneModelsImportRecordModel
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) GetNameOk() (ret ZoneModelsImportRecordModelGetNameRetType, ok bool) {
return getZoneModelsImportRecordModelGetNameAttributeTypeOk(o.Name)
}
// HasName returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) HasName() bool {
_, ok := o.GetNameOk()
return ok
}
// SetName gets a reference to the given string and assigns it to the Name field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) SetName(v ZoneModelsImportRecordModelGetNameRetType) {
setZoneModelsImportRecordModelGetNameAttributeType(&o.Name, v)
}
// GetTtl returns the Ttl field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) GetTtl() (res ZoneModelsImportRecordModelGetTtlRetType) {
res, _ = o.GetTtlOk()
return
@@ -224,22 +273,26 @@ func (o *ZoneModelsImportRecordModel) GetTtl() (res ZoneModelsImportRecordModelG
// GetTtlOk returns a tuple with the Ttl field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) GetTtlOk() (ret ZoneModelsImportRecordModelGetTtlRetType, ok bool) {
return getZoneModelsImportRecordModelGetTtlAttributeTypeOk(o.Ttl)
}
// HasTtl returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) HasTtl() bool {
_, ok := o.GetTtlOk()
return ok
}
// SetTtl gets a reference to the given int64 and assigns it to the Ttl field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) SetTtl(v ZoneModelsImportRecordModelGetTtlRetType) {
setZoneModelsImportRecordModelGetTtlAttributeType(&o.Ttl, v)
}
// GetType returns the Type field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) GetType() (res ZoneModelsImportRecordModelGetTypeRetType) {
res, _ = o.GetTypeOk()
return
@@ -247,21 +300,25 @@ func (o *ZoneModelsImportRecordModel) GetType() (res ZoneModelsImportRecordModel
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) GetTypeOk() (ret ZoneModelsImportRecordModelGetTypeRetType, ok bool) {
return getZoneModelsImportRecordModelGetTypeAttributeTypeOk(o.Type)
}
// HasType returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) HasType() bool {
_, ok := o.GetTypeOk()
return ok
}
// SetType gets a reference to the given string and assigns it to the Type field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportRecordModel) SetType(v ZoneModelsImportRecordModelGetTypeRetType) {
setZoneModelsImportRecordModelGetTypeAttributeType(&o.Type, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ZoneModelsImportRecordModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getZoneModelsImportRecordModelGetCommentAttributeTypeOk(o.Comment); ok {
@@ -282,37 +339,45 @@ func (o ZoneModelsImportRecordModel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableZoneModelsImportRecordModel struct {
value *ZoneModelsImportRecordModel
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneModelsImportRecordModel) Get() *ZoneModelsImportRecordModel {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneModelsImportRecordModel) Set(val *ZoneModelsImportRecordModel) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneModelsImportRecordModel) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneModelsImportRecordModel) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableZoneModelsImportRecordModel(val *ZoneModelsImportRecordModel) *NullableZoneModelsImportRecordModel {
return &NullableZoneModelsImportRecordModel{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneModelsImportRecordModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneModelsImportRecordModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_zone_models_import_zone_json.go b/services/dns/model_zone_models_import_zone_json.go
index 4f6f78ab5..a1f47b099 100644
--- a/services/dns/model_zone_models_import_zone_json.go
+++ b/services/dns/model_zone_models_import_zone_json.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,10 +23,16 @@ var _ MappedNullable = &ZoneModelsImportZoneJson{}
*/
// isArray
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportZoneJsonGetRrSetsAttributeType = *[]ZoneModelsImportRecordModel
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportZoneJsonGetRrSetsArgType = []ZoneModelsImportRecordModel
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportZoneJsonGetRrSetsRetType = []ZoneModelsImportRecordModel
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneModelsImportZoneJsonGetRrSetsAttributeTypeOk(arg ZoneModelsImportZoneJsonGetRrSetsAttributeType) (ret ZoneModelsImportZoneJsonGetRrSetsRetType, ok bool) {
if arg == nil {
return ret, false
@@ -33,11 +40,13 @@ func getZoneModelsImportZoneJsonGetRrSetsAttributeTypeOk(arg ZoneModelsImportZon
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneModelsImportZoneJsonGetRrSetsAttributeType(arg *ZoneModelsImportZoneJsonGetRrSetsAttributeType, val ZoneModelsImportZoneJsonGetRrSetsRetType) {
*arg = &val
}
// ZoneModelsImportZoneJson struct for ZoneModelsImportZoneJson
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneModelsImportZoneJson struct {
RrSets ZoneModelsImportZoneJsonGetRrSetsAttributeType `json:"rrSets,omitempty"`
}
@@ -46,6 +55,7 @@ type ZoneModelsImportZoneJson struct {
// 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneModelsImportZoneJson() *ZoneModelsImportZoneJson {
this := ZoneModelsImportZoneJson{}
return &this
@@ -54,12 +64,14 @@ func NewZoneModelsImportZoneJson() *ZoneModelsImportZoneJson {
// NewZoneModelsImportZoneJsonWithDefaults instantiates a new ZoneModelsImportZoneJson 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneModelsImportZoneJsonWithDefaults() *ZoneModelsImportZoneJson {
this := ZoneModelsImportZoneJson{}
return &this
}
// GetRrSets returns the RrSets field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportZoneJson) GetRrSets() (res ZoneModelsImportZoneJsonGetRrSetsRetType) {
res, _ = o.GetRrSetsOk()
return
@@ -67,21 +79,25 @@ func (o *ZoneModelsImportZoneJson) GetRrSets() (res ZoneModelsImportZoneJsonGetR
// GetRrSetsOk returns a tuple with the RrSets field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportZoneJson) GetRrSetsOk() (ret ZoneModelsImportZoneJsonGetRrSetsRetType, ok bool) {
return getZoneModelsImportZoneJsonGetRrSetsAttributeTypeOk(o.RrSets)
}
// HasRrSets returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportZoneJson) HasRrSets() bool {
_, ok := o.GetRrSetsOk()
return ok
}
// SetRrSets gets a reference to the given []ZoneModelsImportRecordModel and assigns it to the RrSets field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneModelsImportZoneJson) SetRrSets(v ZoneModelsImportZoneJsonGetRrSetsRetType) {
setZoneModelsImportZoneJsonGetRrSetsAttributeType(&o.RrSets, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ZoneModelsImportZoneJson) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getZoneModelsImportZoneJsonGetRrSetsAttributeTypeOk(o.RrSets); ok {
@@ -90,37 +106,45 @@ func (o ZoneModelsImportZoneJson) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableZoneModelsImportZoneJson struct {
value *ZoneModelsImportZoneJson
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneModelsImportZoneJson) Get() *ZoneModelsImportZoneJson {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneModelsImportZoneJson) Set(val *ZoneModelsImportZoneJson) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneModelsImportZoneJson) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneModelsImportZoneJson) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableZoneModelsImportZoneJson(val *ZoneModelsImportZoneJson) *NullableZoneModelsImportZoneJson {
return &NullableZoneModelsImportZoneJson{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneModelsImportZoneJson) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneModelsImportZoneJson) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_zone_observability_extension.go b/services/dns/model_zone_observability_extension.go
index 84922a9b9..9fb3f1c13 100644
--- a/services/dns/model_zone_observability_extension.go
+++ b/services/dns/model_zone_observability_extension.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &ZoneObservabilityExtension{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneObservabilityExtensionGetObservabilityInstanceIdAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneObservabilityExtensionGetObservabilityInstanceIdAttributeTypeOk(arg ZoneObservabilityExtensionGetObservabilityInstanceIdAttributeType) (ret ZoneObservabilityExtensionGetObservabilityInstanceIdRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getZoneObservabilityExtensionGetObservabilityInstanceIdAttributeTypeOk(arg
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneObservabilityExtensionGetObservabilityInstanceIdAttributeType(arg *ZoneObservabilityExtensionGetObservabilityInstanceIdAttributeType, val ZoneObservabilityExtensionGetObservabilityInstanceIdRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneObservabilityExtensionGetObservabilityInstanceIdArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneObservabilityExtensionGetObservabilityInstanceIdRetType = string
/*
@@ -43,8 +50,10 @@ type ZoneObservabilityExtensionGetObservabilityInstanceIdRetType = string
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneObservabilityExtensionGetStateAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneObservabilityExtensionGetStateAttributeTypeOk(arg ZoneObservabilityExtensionGetStateAttributeType) (ret ZoneObservabilityExtensionGetStateRetType, ok bool) {
if arg == nil {
return ret, false
@@ -52,26 +61,33 @@ func getZoneObservabilityExtensionGetStateAttributeTypeOk(arg ZoneObservabilityE
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneObservabilityExtensionGetStateAttributeType(arg *ZoneObservabilityExtensionGetStateAttributeType, val ZoneObservabilityExtensionGetStateRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneObservabilityExtensionGetStateArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneObservabilityExtensionGetStateRetType = string
// ZoneObservabilityExtension struct for ZoneObservabilityExtension
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneObservabilityExtension struct {
// REQUIRED
ObservabilityInstanceId ZoneObservabilityExtensionGetObservabilityInstanceIdAttributeType `json:"observabilityInstanceId" required:"true"`
State ZoneObservabilityExtensionGetStateAttributeType `json:"state,omitempty"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _ZoneObservabilityExtension ZoneObservabilityExtension
// NewZoneObservabilityExtension instantiates a new ZoneObservabilityExtension 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneObservabilityExtension(observabilityInstanceId ZoneObservabilityExtensionGetObservabilityInstanceIdArgType) *ZoneObservabilityExtension {
this := ZoneObservabilityExtension{}
setZoneObservabilityExtensionGetObservabilityInstanceIdAttributeType(&this.ObservabilityInstanceId, observabilityInstanceId)
@@ -81,12 +97,14 @@ func NewZoneObservabilityExtension(observabilityInstanceId ZoneObservabilityExte
// NewZoneObservabilityExtensionWithDefaults instantiates a new ZoneObservabilityExtension 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneObservabilityExtensionWithDefaults() *ZoneObservabilityExtension {
this := ZoneObservabilityExtension{}
return &this
}
// GetObservabilityInstanceId returns the ObservabilityInstanceId field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneObservabilityExtension) GetObservabilityInstanceId() (ret ZoneObservabilityExtensionGetObservabilityInstanceIdRetType) {
ret, _ = o.GetObservabilityInstanceIdOk()
return ret
@@ -94,16 +112,19 @@ func (o *ZoneObservabilityExtension) GetObservabilityInstanceId() (ret ZoneObser
// GetObservabilityInstanceIdOk returns a tuple with the ObservabilityInstanceId field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneObservabilityExtension) GetObservabilityInstanceIdOk() (ret ZoneObservabilityExtensionGetObservabilityInstanceIdRetType, ok bool) {
return getZoneObservabilityExtensionGetObservabilityInstanceIdAttributeTypeOk(o.ObservabilityInstanceId)
}
// SetObservabilityInstanceId sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneObservabilityExtension) SetObservabilityInstanceId(v ZoneObservabilityExtensionGetObservabilityInstanceIdRetType) {
setZoneObservabilityExtensionGetObservabilityInstanceIdAttributeType(&o.ObservabilityInstanceId, v)
}
// GetState returns the State field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneObservabilityExtension) GetState() (res ZoneObservabilityExtensionGetStateRetType) {
res, _ = o.GetStateOk()
return
@@ -111,21 +132,25 @@ func (o *ZoneObservabilityExtension) GetState() (res ZoneObservabilityExtensionG
// GetStateOk returns a tuple with the State field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneObservabilityExtension) GetStateOk() (ret ZoneObservabilityExtensionGetStateRetType, ok bool) {
return getZoneObservabilityExtensionGetStateAttributeTypeOk(o.State)
}
// HasState returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneObservabilityExtension) HasState() bool {
_, ok := o.GetStateOk()
return ok
}
// SetState gets a reference to the given string and assigns it to the State field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneObservabilityExtension) SetState(v ZoneObservabilityExtensionGetStateRetType) {
setZoneObservabilityExtensionGetStateAttributeType(&o.State, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ZoneObservabilityExtension) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getZoneObservabilityExtensionGetObservabilityInstanceIdAttributeTypeOk(o.ObservabilityInstanceId); ok {
@@ -137,37 +162,45 @@ func (o ZoneObservabilityExtension) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableZoneObservabilityExtension struct {
value *ZoneObservabilityExtension
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneObservabilityExtension) Get() *ZoneObservabilityExtension {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneObservabilityExtension) Set(val *ZoneObservabilityExtension) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneObservabilityExtension) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneObservabilityExtension) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableZoneObservabilityExtension(val *ZoneObservabilityExtension) *NullableZoneObservabilityExtension {
return &NullableZoneObservabilityExtension{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneObservabilityExtension) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneObservabilityExtension) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/model_zone_response.go b/services/dns/model_zone_response.go
index ca99f9a16..ec422fd14 100644
--- a/services/dns/model_zone_response.go
+++ b/services/dns/model_zone_response.go
@@ -8,6 +8,7 @@ API version: 1.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
@@ -22,8 +23,10 @@ var _ MappedNullable = &ZoneResponse{}
*/
// isNotNullableString
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneResponseGetMessageAttributeType = *string
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneResponseGetMessageAttributeTypeOk(arg ZoneResponseGetMessageAttributeType) (ret ZoneResponseGetMessageRetType, ok bool) {
if arg == nil {
return ret, false
@@ -31,11 +34,15 @@ func getZoneResponseGetMessageAttributeTypeOk(arg ZoneResponseGetMessageAttribut
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneResponseGetMessageAttributeType(arg *ZoneResponseGetMessageAttributeType, val ZoneResponseGetMessageRetType) {
*arg = &val
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneResponseGetMessageArgType = string
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneResponseGetMessageRetType = string
/*
@@ -43,10 +50,16 @@ type ZoneResponseGetMessageRetType = string
*/
// isModel
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneResponseGetZoneAttributeType = *Zone
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneResponseGetZoneArgType = Zone
+
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneResponseGetZoneRetType = Zone
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getZoneResponseGetZoneAttributeTypeOk(arg ZoneResponseGetZoneAttributeType) (ret ZoneResponseGetZoneRetType, ok bool) {
if arg == nil {
return ret, false
@@ -54,23 +67,27 @@ func getZoneResponseGetZoneAttributeTypeOk(arg ZoneResponseGetZoneAttributeType)
return *arg, true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setZoneResponseGetZoneAttributeType(arg *ZoneResponseGetZoneAttributeType, val ZoneResponseGetZoneRetType) {
*arg = &val
}
// ZoneResponse ResponseZone for user info.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type ZoneResponse struct {
Message ZoneResponseGetMessageAttributeType `json:"message,omitempty"`
// REQUIRED
Zone ZoneResponseGetZoneAttributeType `json:"zone" required:"true"`
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _ZoneResponse ZoneResponse
// NewZoneResponse instantiates a new ZoneResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneResponse(zone ZoneResponseGetZoneArgType) *ZoneResponse {
this := ZoneResponse{}
setZoneResponseGetZoneAttributeType(&this.Zone, zone)
@@ -80,12 +97,14 @@ func NewZoneResponse(zone ZoneResponseGetZoneArgType) *ZoneResponse {
// NewZoneResponseWithDefaults instantiates a new ZoneResponse 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
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewZoneResponseWithDefaults() *ZoneResponse {
this := ZoneResponse{}
return &this
}
// GetMessage returns the Message field value if set, zero value otherwise.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneResponse) GetMessage() (res ZoneResponseGetMessageRetType) {
res, _ = o.GetMessageOk()
return
@@ -93,22 +112,26 @@ func (o *ZoneResponse) GetMessage() (res ZoneResponseGetMessageRetType) {
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneResponse) GetMessageOk() (ret ZoneResponseGetMessageRetType, ok bool) {
return getZoneResponseGetMessageAttributeTypeOk(o.Message)
}
// HasMessage returns a boolean if a field has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneResponse) HasMessage() bool {
_, ok := o.GetMessageOk()
return ok
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneResponse) SetMessage(v ZoneResponseGetMessageRetType) {
setZoneResponseGetMessageAttributeType(&o.Message, v)
}
// GetZone returns the Zone field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneResponse) GetZone() (ret ZoneResponseGetZoneRetType) {
ret, _ = o.GetZoneOk()
return ret
@@ -116,15 +139,18 @@ func (o *ZoneResponse) GetZone() (ret ZoneResponseGetZoneRetType) {
// GetZoneOk returns a tuple with the Zone field value
// and a boolean to check if the value has been set.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneResponse) GetZoneOk() (ret ZoneResponseGetZoneRetType, ok bool) {
return getZoneResponseGetZoneAttributeTypeOk(o.Zone)
}
// SetZone sets field value
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *ZoneResponse) SetZone(v ZoneResponseGetZoneRetType) {
setZoneResponseGetZoneAttributeType(&o.Zone, v)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o ZoneResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getZoneResponseGetMessageAttributeTypeOk(o.Message); ok {
@@ -136,37 +162,45 @@ func (o ZoneResponse) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableZoneResponse struct {
value *ZoneResponse
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneResponse) Get() *ZoneResponse {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneResponse) Set(val *ZoneResponse) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneResponse) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneResponse) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableZoneResponse(val *ZoneResponse) *NullableZoneResponse {
return &NullableZoneResponse{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableZoneResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableZoneResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
diff --git a/services/dns/oas_commit b/services/dns/oas_commit
index 588ee296b..bf3189995 100644
--- a/services/dns/oas_commit
+++ b/services/dns/oas_commit
@@ -1 +1 @@
-964ac4ce34f0b6417f2496a1d48585c4926dee3a
+3e9c109388be83b40c16d8cb5ab146aa314eb6e8
diff --git a/services/dns/utils.go b/services/dns/utils.go
index bf6126676..84c65a724 100644
--- a/services/dns/utils.go
+++ b/services/dns/utils.go
@@ -18,341 +18,419 @@ import (
)
// PtrBool is a helper routine that returns a pointer to given boolean value.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func PtrBool(v bool) *bool { return &v }
// PtrInt is a helper routine that returns a pointer to given integer value.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func PtrInt(v int) *int { return &v }
// PtrInt32 is a helper routine that returns a pointer to given integer value.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func PtrInt32(v int32) *int32 { return &v }
// PtrInt64 is a helper routine that returns a pointer to given integer value.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func PtrInt64(v int64) *int64 { return &v }
// PtrFloat32 is a helper routine that returns a pointer to given float value.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func PtrFloat32(v float32) *float32 { return &v }
// PtrFloat64 is a helper routine that returns a pointer to given float value.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func PtrFloat64(v float64) *float64 { return &v }
// PtrString is a helper routine that returns a pointer to given string value.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func PtrString(v string) *string { return &v }
// PtrTime is helper routine that returns a pointer to given Time value.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func PtrTime(v time.Time) *time.Time { return &v }
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableValue[T any] struct {
value *T
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableValue[T]) Get() *T {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableValue[T]) Set(val *T) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableValue[T]) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableValue[T]) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableBool struct {
value *bool
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableBool) Get() *bool {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableBool) Set(val *bool) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableBool) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableBool) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableBool(val *bool) *NullableBool {
return &NullableBool{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableBool) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableBool) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableInt struct {
value *int
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableInt) Get() *int {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableInt) Set(val *int) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableInt) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableInt) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableInt(val *int) *NullableInt {
return &NullableInt{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableInt) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableInt) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableInt32 struct {
value *int32
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableInt32) Get() *int32 {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableInt32) Set(val *int32) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableInt32) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableInt32) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableInt32(val *int32) *NullableInt32 {
return &NullableInt32{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableInt32) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableInt32) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableInt64 struct {
value *int64
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableInt64) Get() *int64 {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableInt64) Set(val *int64) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableInt64) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableInt64) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableInt64(val *int64) *NullableInt64 {
return &NullableInt64{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableInt64) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableInt64) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableFloat32 struct {
value *float32
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableFloat32) Get() *float32 {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableFloat32) Set(val *float32) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableFloat32) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableFloat32) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableFloat32(val *float32) *NullableFloat32 {
return &NullableFloat32{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableFloat32) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableFloat32) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableFloat64 struct {
value *float64
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableFloat64) Get() *float64 {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableFloat64) Set(val *float64) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableFloat64) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableFloat64) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableFloat64(val *float64) *NullableFloat64 {
return &NullableFloat64{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableFloat64) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableFloat64) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableString struct {
value *string
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableString) Get() *string {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableString) Set(val *string) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableString) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableString) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableString(val *string) *NullableString {
return &NullableString{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableString) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableString) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableTime struct {
value *time.Time
isSet bool
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableTime) Get() *time.Time {
return v.value
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableTime) Set(val *time.Time) {
v.value = val
v.isSet = true
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableTime) IsSet() bool {
return v.isSet
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableTime) Unset() {
v.value = nil
v.isSet = false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableTime(val *time.Time) *NullableTime {
return &NullableTime{value: val, isSet: true}
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableTime) MarshalJSON() ([]byte, error) {
return v.value.MarshalJSON()
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableTime) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
// IsNil checks if an input is nil
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func IsNil(i interface{}) bool {
if i == nil {
return true
@@ -369,13 +447,16 @@ func IsNil(i interface{}) bool {
return false
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type MappedNullable interface {
ToMap() (map[string]interface{}, error)
}
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
// randString returns a random string with a specified length. It panics if n <= 0.
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func randString(n int) string {
b := make([]byte, n)
for i := range b {
diff --git a/services/dns/v1api/api_default.go b/services/dns/v1api/api_default.go
new file mode 100644
index 000000000..18febda0f
--- /dev/null
+++ b/services/dns/v1api/api_default.go
@@ -0,0 +1,5360 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+package v1api
+
+import (
+ "bytes"
+ "context"
+ "io"
+ "net/http"
+ "net/url"
+ "strings"
+
+ "github.com/stackitcloud/stackit-sdk-go/core/config"
+ "github.com/stackitcloud/stackit-sdk-go/core/oapierror"
+)
+
+type DefaultAPI interface {
+
+ /*
+ CloneZone Clone an existing zone with all record sets to a new zone with a different name
+
+ Clone an existing zone with all record sets to a new zone with a different name
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiCloneZoneRequest
+ */
+ CloneZone(ctx context.Context, projectId string, zoneId string) ApiCloneZoneRequest
+
+ // CloneZoneExecute executes the request
+ // @return ZoneResponse
+ CloneZoneExecute(r ApiCloneZoneRequest) (*ZoneResponse, error)
+
+ /*
+ CreateLabel Create or update label
+
+ Create or update label
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiCreateLabelRequest
+ */
+ CreateLabel(ctx context.Context, projectId string, zoneId string) ApiCreateLabelRequest
+
+ // CreateLabelExecute executes the request
+ // @return CreateLabelResponse
+ CreateLabelExecute(r ApiCreateLabelRequest) (*CreateLabelResponse, error)
+
+ /*
+ CreateMoveCode request a move code to move zone to another project
+
+ move zone from one project to another
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiCreateMoveCodeRequest
+ */
+ CreateMoveCode(ctx context.Context, projectId string, zoneId string) ApiCreateMoveCodeRequest
+
+ // CreateMoveCodeExecute executes the request
+ // @return MoveCodeResponse
+ CreateMoveCodeExecute(r ApiCreateMoveCodeRequest) (*MoveCodeResponse, error)
+
+ /*
+ CreateRecordSet Post record set
+
+ Post record set
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiCreateRecordSetRequest
+ */
+ CreateRecordSet(ctx context.Context, projectId string, zoneId string) ApiCreateRecordSetRequest
+
+ // CreateRecordSetExecute executes the request
+ // @return RecordSetResponse
+ CreateRecordSetExecute(r ApiCreateRecordSetRequest) (*RecordSetResponse, error)
+
+ /*
+ CreateZone Post create a new zone
+
+ Post zone create a new zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @return ApiCreateZoneRequest
+ */
+ CreateZone(ctx context.Context, projectId string) ApiCreateZoneRequest
+
+ // CreateZoneExecute executes the request
+ // @return ZoneResponse
+ CreateZoneExecute(r ApiCreateZoneRequest) (*ZoneResponse, error)
+
+ /*
+ DeleteLabel Delete a label
+
+ Delete a label
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @param key key of the label
+ @return ApiDeleteLabelRequest
+ */
+ DeleteLabel(ctx context.Context, projectId string, zoneId string, key string) ApiDeleteLabelRequest
+
+ // DeleteLabelExecute executes the request
+ // @return DeleteLabelResponse
+ DeleteLabelExecute(r ApiDeleteLabelRequest) (*DeleteLabelResponse, error)
+
+ /*
+ DeleteMoveCode delete/invalidate a move code
+
+ delete/invalidate a move code
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiDeleteMoveCodeRequest
+ */
+ DeleteMoveCode(ctx context.Context, projectId string, zoneId string) ApiDeleteMoveCodeRequest
+
+ // DeleteMoveCodeExecute executes the request
+ // @return Message
+ DeleteMoveCodeExecute(r ApiDeleteMoveCodeRequest) (*Message, error)
+
+ /*
+ DeleteRecordSet Delete a record set
+
+ Delete a record set
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @param rrSetId record set id
+ @return ApiDeleteRecordSetRequest
+ */
+ DeleteRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiDeleteRecordSetRequest
+
+ // DeleteRecordSetExecute executes the request
+ // @return Message
+ DeleteRecordSetExecute(r ApiDeleteRecordSetRequest) (*Message, error)
+
+ /*
+ DeleteZone Delete a zone
+
+ Delete a zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiDeleteZoneRequest
+ */
+ DeleteZone(ctx context.Context, projectId string, zoneId string) ApiDeleteZoneRequest
+
+ // DeleteZoneExecute executes the request
+ // @return Message
+ DeleteZoneExecute(r ApiDeleteZoneRequest) (*Message, error)
+
+ /*
+ ExportRecordSets Export all records in a single zone
+
+ Export Zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiExportRecordSetsRequest
+ */
+ ExportRecordSets(ctx context.Context, projectId string, zoneId string) ApiExportRecordSetsRequest
+
+ // ExportRecordSetsExecute executes the request
+ // @return ZoneDataExchange
+ ExportRecordSetsExecute(r ApiExportRecordSetsRequest) (*ZoneDataExchange, error)
+
+ /*
+ GetRecordSet Get a single rrset
+
+ Get rrset
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @param rrSetId record set id
+ @return ApiGetRecordSetRequest
+ */
+ GetRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiGetRecordSetRequest
+
+ // GetRecordSetExecute executes the request
+ // @return RecordSetResponse
+ GetRecordSetExecute(r ApiGetRecordSetRequest) (*RecordSetResponse, error)
+
+ /*
+ GetZone Get a single zone
+
+ Get zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiGetZoneRequest
+ */
+ GetZone(ctx context.Context, projectId string, zoneId string) ApiGetZoneRequest
+
+ // GetZoneExecute executes the request
+ // @return ZoneResponse
+ GetZoneExecute(r ApiGetZoneRequest) (*ZoneResponse, error)
+
+ /*
+ ImportRecordSets Imports a zone
+
+ Imports a zone and overwrites/deletes/inserts all desired records
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiImportRecordSetsRequest
+ */
+ ImportRecordSets(ctx context.Context, projectId string, zoneId string) ApiImportRecordSetsRequest
+
+ // ImportRecordSetsExecute executes the request
+ // @return ImportRecordSetsResponse
+ ImportRecordSetsExecute(r ApiImportRecordSetsRequest) (*ImportRecordSetsResponse, error)
+
+ /*
+ ListLabels Get all labels
+
+ All Labels
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiListLabelsRequest
+ */
+ ListLabels(ctx context.Context, projectId string, zoneId string) ApiListLabelsRequest
+
+ // ListLabelsExecute executes the request
+ // @return ListLabelsResponse
+ ListLabelsExecute(r ApiListLabelsRequest) (*ListLabelsResponse, error)
+
+ /*
+ ListRecordSets All get selected RRSets
+
+ All RRSet
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiListRecordSetsRequest
+ */
+ ListRecordSets(ctx context.Context, projectId string, zoneId string) ApiListRecordSetsRequest
+
+ // ListRecordSetsExecute executes the request
+ // @return ListRecordSetsResponse
+ ListRecordSetsExecute(r ApiListRecordSetsRequest) (*ListRecordSetsResponse, error)
+
+ /*
+ ListZones All get selected zones
+
+ All zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @return ApiListZonesRequest
+ */
+ ListZones(ctx context.Context, projectId string) ApiListZonesRequest
+
+ // ListZonesExecute executes the request
+ // @return ListZonesResponse
+ ListZonesExecute(r ApiListZonesRequest) (*ListZonesResponse, error)
+
+ /*
+ MoveZone move zone from one project to another
+
+ move zone from one project to another
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @return ApiMoveZoneRequest
+ */
+ MoveZone(ctx context.Context, projectId string) ApiMoveZoneRequest
+
+ // MoveZoneExecute executes the request
+ // @return Message
+ MoveZoneExecute(r ApiMoveZoneRequest) (*Message, error)
+
+ /*
+ PartialUpdateRecord PatchRecords updates a record in a rrset
+
+ PatchRecords rrset updates a record in a rrset
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @param rrSetId record set id
+ @return ApiPartialUpdateRecordRequest
+ */
+ PartialUpdateRecord(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiPartialUpdateRecordRequest
+
+ // PartialUpdateRecordExecute executes the request
+ // @return Message
+ PartialUpdateRecordExecute(r ApiPartialUpdateRecordRequest) (*Message, error)
+
+ /*
+ PartialUpdateRecordSet Patch updates a record set
+
+ Patch record set
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @param rrSetId record set id
+ @return ApiPartialUpdateRecordSetRequest
+ */
+ PartialUpdateRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiPartialUpdateRecordSetRequest
+
+ // PartialUpdateRecordSetExecute executes the request
+ // @return Message
+ PartialUpdateRecordSetExecute(r ApiPartialUpdateRecordSetRequest) (*Message, error)
+
+ /*
+ PartialUpdateZone Patch update an existing zone
+
+ Patch update an existing zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiPartialUpdateZoneRequest
+ */
+ PartialUpdateZone(ctx context.Context, projectId string, zoneId string) ApiPartialUpdateZoneRequest
+
+ // PartialUpdateZoneExecute executes the request
+ // @return ZoneResponse
+ PartialUpdateZoneExecute(r ApiPartialUpdateZoneRequest) (*ZoneResponse, error)
+
+ /*
+ RestoreRecordSet Restore record set
+
+ Restore record set
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @param rrSetId record set id
+ @return ApiRestoreRecordSetRequest
+ */
+ RestoreRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiRestoreRecordSetRequest
+
+ // RestoreRecordSetExecute executes the request
+ // @return Message
+ RestoreRecordSetExecute(r ApiRestoreRecordSetRequest) (*Message, error)
+
+ /*
+ RestoreZone Restore an inactive zone
+
+ Restore an inactive zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiRestoreZoneRequest
+ */
+ RestoreZone(ctx context.Context, projectId string, zoneId string) ApiRestoreZoneRequest
+
+ // RestoreZoneExecute executes the request
+ // @return Message
+ RestoreZoneExecute(r ApiRestoreZoneRequest) (*Message, error)
+
+ /*
+ RetrieveZone Queue secondary zone for a zone transfer request.
+
+ The zone transfer will usually be performed within a few seconds, and will be tried only once by randomly choosing one of the configured primary name servers. If that single attempt fails, no further attempt will be performed. The zone will be transferred to our inbound name server regardless of its serial, but the internal zone distribution is only reliable if the zone's serial on the customer's primary name server is higher than on the STACKIT name server.
NOTE: As said above, this endpoint is not a reliable way to decrease a zone's serial. To guarantee consistent zones over all STACKIT location, the zone's serial MUST always be increased on zone changes.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiRetrieveZoneRequest
+ */
+ RetrieveZone(ctx context.Context, projectId string, zoneId string) ApiRetrieveZoneRequest
+
+ // RetrieveZoneExecute executes the request
+ // @return Message
+ RetrieveZoneExecute(r ApiRetrieveZoneRequest) (*Message, error)
+
+ /*
+ ValidateMoveCode validate the move code is still valid for the zone
+
+ validate the move code is still valid for the zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiValidateMoveCodeRequest
+ */
+ ValidateMoveCode(ctx context.Context, projectId string, zoneId string) ApiValidateMoveCodeRequest
+
+ // ValidateMoveCodeExecute executes the request
+ // @return Message
+ ValidateMoveCodeExecute(r ApiValidateMoveCodeRequest) (*Message, error)
+}
+
+// DefaultAPIService DefaultAPI service
+type DefaultAPIService service
+
+type ApiCloneZoneRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+ cloneZonePayload *CloneZonePayload
+}
+
+// zone to clone
+func (r ApiCloneZoneRequest) CloneZonePayload(cloneZonePayload CloneZonePayload) ApiCloneZoneRequest {
+ r.cloneZonePayload = &cloneZonePayload
+ return r
+}
+
+func (r ApiCloneZoneRequest) Execute() (*ZoneResponse, error) {
+ return r.ApiService.CloneZoneExecute(r)
+}
+
+/*
+CloneZone Clone an existing zone with all record sets to a new zone with a different name
+
+Clone an existing zone with all record sets to a new zone with a different name
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiCloneZoneRequest
+*/
+func (a *DefaultAPIService) CloneZone(ctx context.Context, projectId string, zoneId string) ApiCloneZoneRequest {
+ return ApiCloneZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return ZoneResponse
+func (a *DefaultAPIService) CloneZoneExecute(r ApiCloneZoneRequest) (*ZoneResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ZoneResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CloneZone")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/clone"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.cloneZonePayload == nil {
+ return localVarReturnValue, reportError("cloneZonePayload is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.cloneZonePayload
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiCreateLabelRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+ createLabelPayload *CreateLabelPayload
+}
+
+// record set to create
+func (r ApiCreateLabelRequest) CreateLabelPayload(createLabelPayload CreateLabelPayload) ApiCreateLabelRequest {
+ r.createLabelPayload = &createLabelPayload
+ return r
+}
+
+func (r ApiCreateLabelRequest) Execute() (*CreateLabelResponse, error) {
+ return r.ApiService.CreateLabelExecute(r)
+}
+
+/*
+CreateLabel Create or update label
+
+Create or update label
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiCreateLabelRequest
+*/
+func (a *DefaultAPIService) CreateLabel(ctx context.Context, projectId string, zoneId string) ApiCreateLabelRequest {
+ return ApiCreateLabelRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return CreateLabelResponse
+func (a *DefaultAPIService) CreateLabelExecute(r ApiCreateLabelRequest) (*CreateLabelResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CreateLabelResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateLabel")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/labels"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.createLabelPayload == nil {
+ return localVarReturnValue, reportError("createLabelPayload is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.createLabelPayload
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiCreateMoveCodeRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+}
+
+func (r ApiCreateMoveCodeRequest) Execute() (*MoveCodeResponse, error) {
+ return r.ApiService.CreateMoveCodeExecute(r)
+}
+
+/*
+CreateMoveCode request a move code to move zone to another project
+
+move zone from one project to another
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiCreateMoveCodeRequest
+*/
+func (a *DefaultAPIService) CreateMoveCode(ctx context.Context, projectId string, zoneId string) ApiCreateMoveCodeRequest {
+ return ApiCreateMoveCodeRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return MoveCodeResponse
+func (a *DefaultAPIService) CreateMoveCodeExecute(r ApiCreateMoveCodeRequest) (*MoveCodeResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *MoveCodeResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateMoveCode")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/move-code"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiCreateRecordSetRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+ createRecordSetPayload *CreateRecordSetPayload
+}
+
+// record set to create
+func (r ApiCreateRecordSetRequest) CreateRecordSetPayload(createRecordSetPayload CreateRecordSetPayload) ApiCreateRecordSetRequest {
+ r.createRecordSetPayload = &createRecordSetPayload
+ return r
+}
+
+func (r ApiCreateRecordSetRequest) Execute() (*RecordSetResponse, error) {
+ return r.ApiService.CreateRecordSetExecute(r)
+}
+
+/*
+CreateRecordSet Post record set
+
+Post record set
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiCreateRecordSetRequest
+*/
+func (a *DefaultAPIService) CreateRecordSet(ctx context.Context, projectId string, zoneId string) ApiCreateRecordSetRequest {
+ return ApiCreateRecordSetRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return RecordSetResponse
+func (a *DefaultAPIService) CreateRecordSetExecute(r ApiCreateRecordSetRequest) (*RecordSetResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RecordSetResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateRecordSet")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/rrsets"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.createRecordSetPayload == nil {
+ return localVarReturnValue, reportError("createRecordSetPayload is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.createRecordSetPayload
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiCreateZoneRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ createZonePayload *CreateZonePayload
+}
+
+// zone to create
+func (r ApiCreateZoneRequest) CreateZonePayload(createZonePayload CreateZonePayload) ApiCreateZoneRequest {
+ r.createZonePayload = &createZonePayload
+ return r
+}
+
+func (r ApiCreateZoneRequest) Execute() (*ZoneResponse, error) {
+ return r.ApiService.CreateZoneExecute(r)
+}
+
+/*
+CreateZone Post create a new zone
+
+Post zone create a new zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @return ApiCreateZoneRequest
+*/
+func (a *DefaultAPIService) CreateZone(ctx context.Context, projectId string) ApiCreateZoneRequest {
+ return ApiCreateZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ }
+}
+
+// Execute executes the request
+//
+// @return ZoneResponse
+func (a *DefaultAPIService) CreateZoneExecute(r ApiCreateZoneRequest) (*ZoneResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ZoneResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateZone")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.createZonePayload == nil {
+ return localVarReturnValue, reportError("createZonePayload is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.createZonePayload
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiDeleteLabelRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+ key string
+}
+
+func (r ApiDeleteLabelRequest) Execute() (*DeleteLabelResponse, error) {
+ return r.ApiService.DeleteLabelExecute(r)
+}
+
+/*
+DeleteLabel Delete a label
+
+Delete a label
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @param key key of the label
+ @return ApiDeleteLabelRequest
+*/
+func (a *DefaultAPIService) DeleteLabel(ctx context.Context, projectId string, zoneId string, key string) ApiDeleteLabelRequest {
+ return ApiDeleteLabelRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ key: key,
+ }
+}
+
+// Execute executes the request
+//
+// @return DeleteLabelResponse
+func (a *DefaultAPIService) DeleteLabelExecute(r ApiDeleteLabelRequest) (*DeleteLabelResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeleteLabelResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteLabel")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/labels/{key}"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"key"+"}", url.PathEscape(parameterValueToString(r.key, "key")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiDeleteMoveCodeRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+}
+
+func (r ApiDeleteMoveCodeRequest) Execute() (*Message, error) {
+ return r.ApiService.DeleteMoveCodeExecute(r)
+}
+
+/*
+DeleteMoveCode delete/invalidate a move code
+
+delete/invalidate a move code
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiDeleteMoveCodeRequest
+*/
+func (a *DefaultAPIService) DeleteMoveCode(ctx context.Context, projectId string, zoneId string) ApiDeleteMoveCodeRequest {
+ return ApiDeleteMoveCodeRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return Message
+func (a *DefaultAPIService) DeleteMoveCodeExecute(r ApiDeleteMoveCodeRequest) (*Message, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Message
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteMoveCode")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/move-code"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiDeleteRecordSetRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+ rrSetId string
+}
+
+func (r ApiDeleteRecordSetRequest) Execute() (*Message, error) {
+ return r.ApiService.DeleteRecordSetExecute(r)
+}
+
+/*
+DeleteRecordSet Delete a record set
+
+Delete a record set
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @param rrSetId record set id
+ @return ApiDeleteRecordSetRequest
+*/
+func (a *DefaultAPIService) DeleteRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiDeleteRecordSetRequest {
+ return ApiDeleteRecordSetRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ rrSetId: rrSetId,
+ }
+}
+
+// Execute executes the request
+//
+// @return Message
+func (a *DefaultAPIService) DeleteRecordSetExecute(r ApiDeleteRecordSetRequest) (*Message, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Message
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteRecordSet")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"rrSetId"+"}", url.PathEscape(parameterValueToString(r.rrSetId, "rrSetId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiDeleteZoneRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+}
+
+func (r ApiDeleteZoneRequest) Execute() (*Message, error) {
+ return r.ApiService.DeleteZoneExecute(r)
+}
+
+/*
+DeleteZone Delete a zone
+
+Delete a zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiDeleteZoneRequest
+*/
+func (a *DefaultAPIService) DeleteZone(ctx context.Context, projectId string, zoneId string) ApiDeleteZoneRequest {
+ return ApiDeleteZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return Message
+func (a *DefaultAPIService) DeleteZoneExecute(r ApiDeleteZoneRequest) (*Message, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Message
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteZone")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiExportRecordSetsRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+ exportRecordSetsPayload *ExportRecordSetsPayload
+}
+
+// export configuration
+func (r ApiExportRecordSetsRequest) ExportRecordSetsPayload(exportRecordSetsPayload ExportRecordSetsPayload) ApiExportRecordSetsRequest {
+ r.exportRecordSetsPayload = &exportRecordSetsPayload
+ return r
+}
+
+func (r ApiExportRecordSetsRequest) Execute() (*ZoneDataExchange, error) {
+ return r.ApiService.ExportRecordSetsExecute(r)
+}
+
+/*
+ExportRecordSets Export all records in a single zone
+
+Export Zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiExportRecordSetsRequest
+*/
+func (a *DefaultAPIService) ExportRecordSets(ctx context.Context, projectId string, zoneId string) ApiExportRecordSetsRequest {
+ return ApiExportRecordSetsRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return ZoneDataExchange
+func (a *DefaultAPIService) ExportRecordSetsExecute(r ApiExportRecordSetsRequest) (*ZoneDataExchange, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ZoneDataExchange
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ExportRecordSets")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/export"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.exportRecordSetsPayload == nil {
+ return localVarReturnValue, reportError("exportRecordSetsPayload is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json", "text/csv", "text/plain"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.exportRecordSetsPayload
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiGetRecordSetRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+ rrSetId string
+}
+
+func (r ApiGetRecordSetRequest) Execute() (*RecordSetResponse, error) {
+ return r.ApiService.GetRecordSetExecute(r)
+}
+
+/*
+GetRecordSet Get a single rrset
+
+Get rrset
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @param rrSetId record set id
+ @return ApiGetRecordSetRequest
+*/
+func (a *DefaultAPIService) GetRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiGetRecordSetRequest {
+ return ApiGetRecordSetRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ rrSetId: rrSetId,
+ }
+}
+
+// Execute executes the request
+//
+// @return RecordSetResponse
+func (a *DefaultAPIService) GetRecordSetExecute(r ApiGetRecordSetRequest) (*RecordSetResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RecordSetResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetRecordSet")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"rrSetId"+"}", url.PathEscape(parameterValueToString(r.rrSetId, "rrSetId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiGetZoneRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+}
+
+func (r ApiGetZoneRequest) Execute() (*ZoneResponse, error) {
+ return r.ApiService.GetZoneExecute(r)
+}
+
+/*
+GetZone Get a single zone
+
+Get zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiGetZoneRequest
+*/
+func (a *DefaultAPIService) GetZone(ctx context.Context, projectId string, zoneId string) ApiGetZoneRequest {
+ return ApiGetZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return ZoneResponse
+func (a *DefaultAPIService) GetZoneExecute(r ApiGetZoneRequest) (*ZoneResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ZoneResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetZone")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiImportRecordSetsRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+ importRecordSetsPayload *ImportRecordSetsPayload
+ format *string
+ importType *string
+}
+
+// accepts all response bodies for the export endpoint
+func (r ApiImportRecordSetsRequest) ImportRecordSetsPayload(importRecordSetsPayload ImportRecordSetsPayload) ApiImportRecordSetsRequest {
+ r.importRecordSetsPayload = &importRecordSetsPayload
+ return r
+}
+
+// format of the data to import
+func (r ApiImportRecordSetsRequest) Format(format string) ApiImportRecordSetsRequest {
+ r.format = &format
+ return r
+}
+
+// type of the zone import
+func (r ApiImportRecordSetsRequest) ImportType(importType string) ApiImportRecordSetsRequest {
+ r.importType = &importType
+ return r
+}
+
+func (r ApiImportRecordSetsRequest) Execute() (*ImportRecordSetsResponse, error) {
+ return r.ApiService.ImportRecordSetsExecute(r)
+}
+
+/*
+ImportRecordSets Imports a zone
+
+Imports a zone and overwrites/deletes/inserts all desired records
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiImportRecordSetsRequest
+*/
+func (a *DefaultAPIService) ImportRecordSets(ctx context.Context, projectId string, zoneId string) ApiImportRecordSetsRequest {
+ return ApiImportRecordSetsRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return ImportRecordSetsResponse
+func (a *DefaultAPIService) ImportRecordSetsExecute(r ApiImportRecordSetsRequest) (*ImportRecordSetsResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ImportRecordSetsResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ImportRecordSets")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/import"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.importRecordSetsPayload == nil {
+ return localVarReturnValue, reportError("importRecordSetsPayload is required and must be specified")
+ }
+
+ if r.format != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "format", r.format, "form", "")
+ } else {
+ var defaultValue string = "csv"
+ parameterAddToHeaderOrQuery(localVarQueryParams, "format", defaultValue, "form", "")
+ r.format = &defaultValue
+ }
+ if r.importType != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "importType", r.importType, "form", "")
+ } else {
+ var defaultValue string = "restore"
+ parameterAddToHeaderOrQuery(localVarQueryParams, "importType", defaultValue, "form", "")
+ r.importType = &defaultValue
+ }
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "text/csv", "text/plain"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.importRecordSetsPayload
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiListLabelsRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+}
+
+func (r ApiListLabelsRequest) Execute() (*ListLabelsResponse, error) {
+ return r.ApiService.ListLabelsExecute(r)
+}
+
+/*
+ListLabels Get all labels
+
+All Labels
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiListLabelsRequest
+*/
+func (a *DefaultAPIService) ListLabels(ctx context.Context, projectId string, zoneId string) ApiListLabelsRequest {
+ return ApiListLabelsRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return ListLabelsResponse
+func (a *DefaultAPIService) ListLabelsExecute(r ApiListLabelsRequest) (*ListLabelsResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ListLabelsResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListLabels")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/labels"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiListRecordSetsRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+ page *int32
+ pageSize *int32
+ nameEq *string
+ nameLike *string
+ typeEq *string
+ stateEq *string
+ stateNeq *string
+ activeEq *bool
+ creationStartedGt *string
+ creationStartedLt *string
+ creationStartedGte *string
+ creationStartedLte *string
+ creationFinishedGt *string
+ creationFinishedLt *string
+ creationFinishedGte *string
+ creationFinishedLte *string
+ updateStartedGt *string
+ updateStartedLt *string
+ updateStartedGte *string
+ updateStartedLte *string
+ updateFinishedGt *string
+ updateFinishedLt *string
+ updateFinishedGte *string
+ updateFinishedLte *string
+ orderByName *string
+ orderByCreationStarted *string
+ orderByCreationFinished *string
+ orderByUpdateStarted *string
+ orderByUpdateFinished *string
+ orderByType *string
+ orderByState *string
+ orderByRecordCount *string
+}
+
+// page
+func (r ApiListRecordSetsRequest) Page(page int32) ApiListRecordSetsRequest {
+ r.page = &page
+ return r
+}
+
+// page size
+func (r ApiListRecordSetsRequest) PageSize(pageSize int32) ApiListRecordSetsRequest {
+ r.pageSize = &pageSize
+ return r
+}
+
+// filter name equal
+func (r ApiListRecordSetsRequest) NameEq(nameEq string) ApiListRecordSetsRequest {
+ r.nameEq = &nameEq
+ return r
+}
+
+// filter name like
+func (r ApiListRecordSetsRequest) NameLike(nameLike string) ApiListRecordSetsRequest {
+ r.nameLike = &nameLike
+ return r
+}
+
+// filter type
+func (r ApiListRecordSetsRequest) TypeEq(typeEq string) ApiListRecordSetsRequest {
+ r.typeEq = &typeEq
+ return r
+}
+
+// filter state
+func (r ApiListRecordSetsRequest) StateEq(stateEq string) ApiListRecordSetsRequest {
+ r.stateEq = &stateEq
+ return r
+}
+
+// filter state
+func (r ApiListRecordSetsRequest) StateNeq(stateNeq string) ApiListRecordSetsRequest {
+ r.stateNeq = &stateNeq
+ return r
+}
+
+// filter active equal
+func (r ApiListRecordSetsRequest) ActiveEq(activeEq bool) ApiListRecordSetsRequest {
+ r.activeEq = &activeEq
+ return r
+}
+
+// filter creation started greater with utc timestamp
+func (r ApiListRecordSetsRequest) CreationStartedGt(creationStartedGt string) ApiListRecordSetsRequest {
+ r.creationStartedGt = &creationStartedGt
+ return r
+}
+
+// filter creation started lesser with utc timestamp
+func (r ApiListRecordSetsRequest) CreationStartedLt(creationStartedLt string) ApiListRecordSetsRequest {
+ r.creationStartedLt = &creationStartedLt
+ return r
+}
+
+// filter creation started greater equal with utc timestamp
+func (r ApiListRecordSetsRequest) CreationStartedGte(creationStartedGte string) ApiListRecordSetsRequest {
+ r.creationStartedGte = &creationStartedGte
+ return r
+}
+
+// filter creation started lesser equal with utc timestamp
+func (r ApiListRecordSetsRequest) CreationStartedLte(creationStartedLte string) ApiListRecordSetsRequest {
+ r.creationStartedLte = &creationStartedLte
+ return r
+}
+
+// filter creation finished greater with utc timestamp
+func (r ApiListRecordSetsRequest) CreationFinishedGt(creationFinishedGt string) ApiListRecordSetsRequest {
+ r.creationFinishedGt = &creationFinishedGt
+ return r
+}
+
+// filter creation finished lesser with utc timestamp
+func (r ApiListRecordSetsRequest) CreationFinishedLt(creationFinishedLt string) ApiListRecordSetsRequest {
+ r.creationFinishedLt = &creationFinishedLt
+ return r
+}
+
+// filter creation finished greater equal with utc timestamp
+func (r ApiListRecordSetsRequest) CreationFinishedGte(creationFinishedGte string) ApiListRecordSetsRequest {
+ r.creationFinishedGte = &creationFinishedGte
+ return r
+}
+
+// filter creation finished lesser equal with utc timestamp
+func (r ApiListRecordSetsRequest) CreationFinishedLte(creationFinishedLte string) ApiListRecordSetsRequest {
+ r.creationFinishedLte = &creationFinishedLte
+ return r
+}
+
+// filter update started greater with utc timestamp
+func (r ApiListRecordSetsRequest) UpdateStartedGt(updateStartedGt string) ApiListRecordSetsRequest {
+ r.updateStartedGt = &updateStartedGt
+ return r
+}
+
+// filter update started lesser with utc timestamp
+func (r ApiListRecordSetsRequest) UpdateStartedLt(updateStartedLt string) ApiListRecordSetsRequest {
+ r.updateStartedLt = &updateStartedLt
+ return r
+}
+
+// filter update started greater equal with utc timestamp
+func (r ApiListRecordSetsRequest) UpdateStartedGte(updateStartedGte string) ApiListRecordSetsRequest {
+ r.updateStartedGte = &updateStartedGte
+ return r
+}
+
+// filter update started lesser equal with utc timestamp
+func (r ApiListRecordSetsRequest) UpdateStartedLte(updateStartedLte string) ApiListRecordSetsRequest {
+ r.updateStartedLte = &updateStartedLte
+ return r
+}
+
+// filter update finished greater with utc timestamp
+func (r ApiListRecordSetsRequest) UpdateFinishedGt(updateFinishedGt string) ApiListRecordSetsRequest {
+ r.updateFinishedGt = &updateFinishedGt
+ return r
+}
+
+// filter update finished lesser with utc timestamp
+func (r ApiListRecordSetsRequest) UpdateFinishedLt(updateFinishedLt string) ApiListRecordSetsRequest {
+ r.updateFinishedLt = &updateFinishedLt
+ return r
+}
+
+// filter update finished greater equal with utc timestamp
+func (r ApiListRecordSetsRequest) UpdateFinishedGte(updateFinishedGte string) ApiListRecordSetsRequest {
+ r.updateFinishedGte = &updateFinishedGte
+ return r
+}
+
+// filter update finished lesser equal with utc timestamp
+func (r ApiListRecordSetsRequest) UpdateFinishedLte(updateFinishedLte string) ApiListRecordSetsRequest {
+ r.updateFinishedLte = &updateFinishedLte
+ return r
+}
+
+// order by name
+func (r ApiListRecordSetsRequest) OrderByName(orderByName string) ApiListRecordSetsRequest {
+ r.orderByName = &orderByName
+ return r
+}
+
+// order by creationStarted
+func (r ApiListRecordSetsRequest) OrderByCreationStarted(orderByCreationStarted string) ApiListRecordSetsRequest {
+ r.orderByCreationStarted = &orderByCreationStarted
+ return r
+}
+
+// order by creationFinished
+func (r ApiListRecordSetsRequest) OrderByCreationFinished(orderByCreationFinished string) ApiListRecordSetsRequest {
+ r.orderByCreationFinished = &orderByCreationFinished
+ return r
+}
+
+// order by updateStarted
+func (r ApiListRecordSetsRequest) OrderByUpdateStarted(orderByUpdateStarted string) ApiListRecordSetsRequest {
+ r.orderByUpdateStarted = &orderByUpdateStarted
+ return r
+}
+
+// order by updateFinished
+func (r ApiListRecordSetsRequest) OrderByUpdateFinished(orderByUpdateFinished string) ApiListRecordSetsRequest {
+ r.orderByUpdateFinished = &orderByUpdateFinished
+ return r
+}
+
+// order by type
+func (r ApiListRecordSetsRequest) OrderByType(orderByType string) ApiListRecordSetsRequest {
+ r.orderByType = &orderByType
+ return r
+}
+
+// order by state
+func (r ApiListRecordSetsRequest) OrderByState(orderByState string) ApiListRecordSetsRequest {
+ r.orderByState = &orderByState
+ return r
+}
+
+// order by record count
+func (r ApiListRecordSetsRequest) OrderByRecordCount(orderByRecordCount string) ApiListRecordSetsRequest {
+ r.orderByRecordCount = &orderByRecordCount
+ return r
+}
+
+func (r ApiListRecordSetsRequest) Execute() (*ListRecordSetsResponse, error) {
+ return r.ApiService.ListRecordSetsExecute(r)
+}
+
+/*
+ListRecordSets All get selected RRSets
+
+All RRSet
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiListRecordSetsRequest
+*/
+func (a *DefaultAPIService) ListRecordSets(ctx context.Context, projectId string, zoneId string) ApiListRecordSetsRequest {
+ return ApiListRecordSetsRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return ListRecordSetsResponse
+func (a *DefaultAPIService) ListRecordSetsExecute(r ApiListRecordSetsRequest) (*ListRecordSetsResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ListRecordSetsResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListRecordSets")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/rrsets"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.page != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "")
+ } else {
+ var defaultValue int32 = 1
+ parameterAddToHeaderOrQuery(localVarQueryParams, "page", defaultValue, "form", "")
+ r.page = &defaultValue
+ }
+ if r.pageSize != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pageSize", r.pageSize, "form", "")
+ } else {
+ var defaultValue int32 = 100
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pageSize", defaultValue, "form", "")
+ r.pageSize = &defaultValue
+ }
+ if r.nameEq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name[eq]", r.nameEq, "form", "")
+ }
+ if r.nameLike != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name[like]", r.nameLike, "form", "")
+ }
+ if r.typeEq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "type[eq]", r.typeEq, "form", "")
+ }
+ if r.stateEq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "state[eq]", r.stateEq, "form", "")
+ }
+ if r.stateNeq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "state[neq]", r.stateNeq, "form", "")
+ }
+ if r.activeEq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "active[eq]", r.activeEq, "form", "")
+ }
+ if r.creationStartedGt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationStarted[gt]", r.creationStartedGt, "form", "")
+ }
+ if r.creationStartedLt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationStarted[lt]", r.creationStartedLt, "form", "")
+ }
+ if r.creationStartedGte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationStarted[gte]", r.creationStartedGte, "form", "")
+ }
+ if r.creationStartedLte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationStarted[lte]", r.creationStartedLte, "form", "")
+ }
+ if r.creationFinishedGt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationFinished[gt]", r.creationFinishedGt, "form", "")
+ }
+ if r.creationFinishedLt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationFinished[lt]", r.creationFinishedLt, "form", "")
+ }
+ if r.creationFinishedGte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationFinished[gte]", r.creationFinishedGte, "form", "")
+ }
+ if r.creationFinishedLte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationFinished[lte]", r.creationFinishedLte, "form", "")
+ }
+ if r.updateStartedGt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateStarted[gt]", r.updateStartedGt, "form", "")
+ }
+ if r.updateStartedLt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateStarted[lt]", r.updateStartedLt, "form", "")
+ }
+ if r.updateStartedGte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateStarted[gte]", r.updateStartedGte, "form", "")
+ }
+ if r.updateStartedLte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateStarted[lte]", r.updateStartedLte, "form", "")
+ }
+ if r.updateFinishedGt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateFinished[gt]", r.updateFinishedGt, "form", "")
+ }
+ if r.updateFinishedLt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateFinished[lt]", r.updateFinishedLt, "form", "")
+ }
+ if r.updateFinishedGte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateFinished[gte]", r.updateFinishedGte, "form", "")
+ }
+ if r.updateFinishedLte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateFinished[lte]", r.updateFinishedLte, "form", "")
+ }
+ if r.orderByName != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[name]", r.orderByName, "form", "")
+ }
+ if r.orderByCreationStarted != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[creationStarted]", r.orderByCreationStarted, "form", "")
+ }
+ if r.orderByCreationFinished != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[creationFinished]", r.orderByCreationFinished, "form", "")
+ }
+ if r.orderByUpdateStarted != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[updateStarted]", r.orderByUpdateStarted, "form", "")
+ }
+ if r.orderByUpdateFinished != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[updateFinished]", r.orderByUpdateFinished, "form", "")
+ }
+ if r.orderByType != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[type]", r.orderByType, "form", "")
+ }
+ if r.orderByState != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[state]", r.orderByState, "form", "")
+ }
+ if r.orderByRecordCount != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[recordCount]", r.orderByRecordCount, "form", "")
+ }
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiListZonesRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ page *int32
+ pageSize *int32
+ dnsNameEq *string
+ dnsNameLike *string
+ typeEq *string
+ nameEq *string
+ nameNeq *string
+ nameLike *string
+ descriptionEq *string
+ descriptionNeq *string
+ descriptionLike *string
+ stateEq *string
+ stateNeq *string
+ primaryNameServerEq *string
+ primaryNameServerLike *string
+ isReverseZoneEq *bool
+ activeEq *bool
+ creationStartedGt *string
+ creationStartedLt *string
+ creationStartedGte *string
+ creationStartedLte *string
+ creationFinishedGt *string
+ creationFinishedLt *string
+ creationFinishedGte *string
+ creationFinishedLte *string
+ updateStartedGt *string
+ updateStartedLt *string
+ updateStartedGte *string
+ updateStartedLte *string
+ updateFinishedGt *string
+ updateFinishedLt *string
+ updateFinishedGte *string
+ updateFinishedLte *string
+ labelKeyEq *[]string
+ labelValueEq *[]string
+ orderByDnsName *string
+ orderByName *string
+ orderByRecordCount *string
+ orderByType *string
+ orderByDescription *string
+ orderByCreationStarted *string
+ orderByCreationFinished *string
+ orderByUpdateStarted *string
+ orderByUpdateFinished *string
+}
+
+// page
+func (r ApiListZonesRequest) Page(page int32) ApiListZonesRequest {
+ r.page = &page
+ return r
+}
+
+// page size
+func (r ApiListZonesRequest) PageSize(pageSize int32) ApiListZonesRequest {
+ r.pageSize = &pageSize
+ return r
+}
+
+// filter dns name equal
+func (r ApiListZonesRequest) DnsNameEq(dnsNameEq string) ApiListZonesRequest {
+ r.dnsNameEq = &dnsNameEq
+ return r
+}
+
+// filter dns name like
+func (r ApiListZonesRequest) DnsNameLike(dnsNameLike string) ApiListZonesRequest {
+ r.dnsNameLike = &dnsNameLike
+ return r
+}
+
+// filter type
+func (r ApiListZonesRequest) TypeEq(typeEq string) ApiListZonesRequest {
+ r.typeEq = &typeEq
+ return r
+}
+
+// filter name equal
+func (r ApiListZonesRequest) NameEq(nameEq string) ApiListZonesRequest {
+ r.nameEq = &nameEq
+ return r
+}
+
+// filter name not equal
+func (r ApiListZonesRequest) NameNeq(nameNeq string) ApiListZonesRequest {
+ r.nameNeq = &nameNeq
+ return r
+}
+
+// filter name like
+func (r ApiListZonesRequest) NameLike(nameLike string) ApiListZonesRequest {
+ r.nameLike = &nameLike
+ return r
+}
+
+// filter description equal
+func (r ApiListZonesRequest) DescriptionEq(descriptionEq string) ApiListZonesRequest {
+ r.descriptionEq = &descriptionEq
+ return r
+}
+
+// filter description not equal
+func (r ApiListZonesRequest) DescriptionNeq(descriptionNeq string) ApiListZonesRequest {
+ r.descriptionNeq = &descriptionNeq
+ return r
+}
+
+// filter description like
+func (r ApiListZonesRequest) DescriptionLike(descriptionLike string) ApiListZonesRequest {
+ r.descriptionLike = &descriptionLike
+ return r
+}
+
+// filter state
+func (r ApiListZonesRequest) StateEq(stateEq string) ApiListZonesRequest {
+ r.stateEq = &stateEq
+ return r
+}
+
+// filter state
+func (r ApiListZonesRequest) StateNeq(stateNeq string) ApiListZonesRequest {
+ r.stateNeq = &stateNeq
+ return r
+}
+
+// filter primary name server equal
+func (r ApiListZonesRequest) PrimaryNameServerEq(primaryNameServerEq string) ApiListZonesRequest {
+ r.primaryNameServerEq = &primaryNameServerEq
+ return r
+}
+
+// filter primary name server like
+func (r ApiListZonesRequest) PrimaryNameServerLike(primaryNameServerLike string) ApiListZonesRequest {
+ r.primaryNameServerLike = &primaryNameServerLike
+ return r
+}
+
+// filter reverse zone equal
+func (r ApiListZonesRequest) IsReverseZoneEq(isReverseZoneEq bool) ApiListZonesRequest {
+ r.isReverseZoneEq = &isReverseZoneEq
+ return r
+}
+
+// filter active equal
+func (r ApiListZonesRequest) ActiveEq(activeEq bool) ApiListZonesRequest {
+ r.activeEq = &activeEq
+ return r
+}
+
+// filter creation started greater with utc timestamp
+func (r ApiListZonesRequest) CreationStartedGt(creationStartedGt string) ApiListZonesRequest {
+ r.creationStartedGt = &creationStartedGt
+ return r
+}
+
+// filter creation started lesser with utc timestamp
+func (r ApiListZonesRequest) CreationStartedLt(creationStartedLt string) ApiListZonesRequest {
+ r.creationStartedLt = &creationStartedLt
+ return r
+}
+
+// filter creation started greater equal with utc timestamp
+func (r ApiListZonesRequest) CreationStartedGte(creationStartedGte string) ApiListZonesRequest {
+ r.creationStartedGte = &creationStartedGte
+ return r
+}
+
+// filter creation started lesser equal with utc timestamp
+func (r ApiListZonesRequest) CreationStartedLte(creationStartedLte string) ApiListZonesRequest {
+ r.creationStartedLte = &creationStartedLte
+ return r
+}
+
+// filter creation finished greater with utc timestamp
+func (r ApiListZonesRequest) CreationFinishedGt(creationFinishedGt string) ApiListZonesRequest {
+ r.creationFinishedGt = &creationFinishedGt
+ return r
+}
+
+// filter creation finished lesser with utc timestamp
+func (r ApiListZonesRequest) CreationFinishedLt(creationFinishedLt string) ApiListZonesRequest {
+ r.creationFinishedLt = &creationFinishedLt
+ return r
+}
+
+// filter creation finished greater equal with utc timestamp
+func (r ApiListZonesRequest) CreationFinishedGte(creationFinishedGte string) ApiListZonesRequest {
+ r.creationFinishedGte = &creationFinishedGte
+ return r
+}
+
+// filter creation finished lesser equal with utc timestamp
+func (r ApiListZonesRequest) CreationFinishedLte(creationFinishedLte string) ApiListZonesRequest {
+ r.creationFinishedLte = &creationFinishedLte
+ return r
+}
+
+// filter update started greater with utc timestamp
+func (r ApiListZonesRequest) UpdateStartedGt(updateStartedGt string) ApiListZonesRequest {
+ r.updateStartedGt = &updateStartedGt
+ return r
+}
+
+// filter update started lesser with utc timestamp
+func (r ApiListZonesRequest) UpdateStartedLt(updateStartedLt string) ApiListZonesRequest {
+ r.updateStartedLt = &updateStartedLt
+ return r
+}
+
+// filter update started greater equal with utc timestamp
+func (r ApiListZonesRequest) UpdateStartedGte(updateStartedGte string) ApiListZonesRequest {
+ r.updateStartedGte = &updateStartedGte
+ return r
+}
+
+// filter update started lesser equal with utc timestamp
+func (r ApiListZonesRequest) UpdateStartedLte(updateStartedLte string) ApiListZonesRequest {
+ r.updateStartedLte = &updateStartedLte
+ return r
+}
+
+// filter update finished greater with utc timestamp
+func (r ApiListZonesRequest) UpdateFinishedGt(updateFinishedGt string) ApiListZonesRequest {
+ r.updateFinishedGt = &updateFinishedGt
+ return r
+}
+
+// filter update finished lesser with utc timestamp
+func (r ApiListZonesRequest) UpdateFinishedLt(updateFinishedLt string) ApiListZonesRequest {
+ r.updateFinishedLt = &updateFinishedLt
+ return r
+}
+
+// filter update finished greater equal with utc timestamp
+func (r ApiListZonesRequest) UpdateFinishedGte(updateFinishedGte string) ApiListZonesRequest {
+ r.updateFinishedGte = &updateFinishedGte
+ return r
+}
+
+// filter update finished lesser equal with utc timestamp
+func (r ApiListZonesRequest) UpdateFinishedLte(updateFinishedLte string) ApiListZonesRequest {
+ r.updateFinishedLte = &updateFinishedLte
+ return r
+}
+
+// filter zones according to the zone label keys.
+func (r ApiListZonesRequest) LabelKeyEq(labelKeyEq []string) ApiListZonesRequest {
+ r.labelKeyEq = &labelKeyEq
+ return r
+}
+
+// filter zones according to the zone label values.
+func (r ApiListZonesRequest) LabelValueEq(labelValueEq []string) ApiListZonesRequest {
+ r.labelValueEq = &labelValueEq
+ return r
+}
+
+// order by dns name
+func (r ApiListZonesRequest) OrderByDnsName(orderByDnsName string) ApiListZonesRequest {
+ r.orderByDnsName = &orderByDnsName
+ return r
+}
+
+// order by name
+func (r ApiListZonesRequest) OrderByName(orderByName string) ApiListZonesRequest {
+ r.orderByName = &orderByName
+ return r
+}
+
+// order by record count
+func (r ApiListZonesRequest) OrderByRecordCount(orderByRecordCount string) ApiListZonesRequest {
+ r.orderByRecordCount = &orderByRecordCount
+ return r
+}
+
+// order by type
+func (r ApiListZonesRequest) OrderByType(orderByType string) ApiListZonesRequest {
+ r.orderByType = &orderByType
+ return r
+}
+
+// order by description
+func (r ApiListZonesRequest) OrderByDescription(orderByDescription string) ApiListZonesRequest {
+ r.orderByDescription = &orderByDescription
+ return r
+}
+
+// order by creationStarted
+func (r ApiListZonesRequest) OrderByCreationStarted(orderByCreationStarted string) ApiListZonesRequest {
+ r.orderByCreationStarted = &orderByCreationStarted
+ return r
+}
+
+// order by creationFinished
+func (r ApiListZonesRequest) OrderByCreationFinished(orderByCreationFinished string) ApiListZonesRequest {
+ r.orderByCreationFinished = &orderByCreationFinished
+ return r
+}
+
+// order by updateStarted
+func (r ApiListZonesRequest) OrderByUpdateStarted(orderByUpdateStarted string) ApiListZonesRequest {
+ r.orderByUpdateStarted = &orderByUpdateStarted
+ return r
+}
+
+// order by updateFinished
+func (r ApiListZonesRequest) OrderByUpdateFinished(orderByUpdateFinished string) ApiListZonesRequest {
+ r.orderByUpdateFinished = &orderByUpdateFinished
+ return r
+}
+
+func (r ApiListZonesRequest) Execute() (*ListZonesResponse, error) {
+ return r.ApiService.ListZonesExecute(r)
+}
+
+/*
+ListZones All get selected zones
+
+All zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @return ApiListZonesRequest
+*/
+func (a *DefaultAPIService) ListZones(ctx context.Context, projectId string) ApiListZonesRequest {
+ return ApiListZonesRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ }
+}
+
+// Execute executes the request
+//
+// @return ListZonesResponse
+func (a *DefaultAPIService) ListZonesExecute(r ApiListZonesRequest) (*ListZonesResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ListZonesResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListZones")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.page != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "")
+ } else {
+ var defaultValue int32 = 1
+ parameterAddToHeaderOrQuery(localVarQueryParams, "page", defaultValue, "form", "")
+ r.page = &defaultValue
+ }
+ if r.pageSize != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pageSize", r.pageSize, "form", "")
+ } else {
+ var defaultValue int32 = 100
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pageSize", defaultValue, "form", "")
+ r.pageSize = &defaultValue
+ }
+ if r.dnsNameEq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "dnsName[eq]", r.dnsNameEq, "form", "")
+ }
+ if r.dnsNameLike != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "dnsName[like]", r.dnsNameLike, "form", "")
+ }
+ if r.typeEq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "type[eq]", r.typeEq, "form", "")
+ }
+ if r.nameEq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name[eq]", r.nameEq, "form", "")
+ }
+ if r.nameNeq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name[neq]", r.nameNeq, "form", "")
+ }
+ if r.nameLike != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name[like]", r.nameLike, "form", "")
+ }
+ if r.descriptionEq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description[eq]", r.descriptionEq, "form", "")
+ }
+ if r.descriptionNeq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description[neq]", r.descriptionNeq, "form", "")
+ }
+ if r.descriptionLike != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description[like]", r.descriptionLike, "form", "")
+ }
+ if r.stateEq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "state[eq]", r.stateEq, "form", "")
+ }
+ if r.stateNeq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "state[neq]", r.stateNeq, "form", "")
+ }
+ if r.primaryNameServerEq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primaryNameServer[eq]", r.primaryNameServerEq, "form", "")
+ }
+ if r.primaryNameServerLike != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primaryNameServer[like]", r.primaryNameServerLike, "form", "")
+ }
+ if r.isReverseZoneEq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "isReverseZone[eq]", r.isReverseZoneEq, "form", "")
+ }
+ if r.activeEq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "active[eq]", r.activeEq, "form", "")
+ }
+ if r.creationStartedGt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationStarted[gt]", r.creationStartedGt, "form", "")
+ }
+ if r.creationStartedLt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationStarted[lt]", r.creationStartedLt, "form", "")
+ }
+ if r.creationStartedGte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationStarted[gte]", r.creationStartedGte, "form", "")
+ }
+ if r.creationStartedLte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationStarted[lte]", r.creationStartedLte, "form", "")
+ }
+ if r.creationFinishedGt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationFinished[gt]", r.creationFinishedGt, "form", "")
+ }
+ if r.creationFinishedLt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationFinished[lt]", r.creationFinishedLt, "form", "")
+ }
+ if r.creationFinishedGte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationFinished[gte]", r.creationFinishedGte, "form", "")
+ }
+ if r.creationFinishedLte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "creationFinished[lte]", r.creationFinishedLte, "form", "")
+ }
+ if r.updateStartedGt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateStarted[gt]", r.updateStartedGt, "form", "")
+ }
+ if r.updateStartedLt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateStarted[lt]", r.updateStartedLt, "form", "")
+ }
+ if r.updateStartedGte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateStarted[gte]", r.updateStartedGte, "form", "")
+ }
+ if r.updateStartedLte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateStarted[lte]", r.updateStartedLte, "form", "")
+ }
+ if r.updateFinishedGt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateFinished[gt]", r.updateFinishedGt, "form", "")
+ }
+ if r.updateFinishedLt != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateFinished[lt]", r.updateFinishedLt, "form", "")
+ }
+ if r.updateFinishedGte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateFinished[gte]", r.updateFinishedGte, "form", "")
+ }
+ if r.updateFinishedLte != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updateFinished[lte]", r.updateFinishedLte, "form", "")
+ }
+ if r.labelKeyEq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "labelKey[eq]", r.labelKeyEq, "form", "csv")
+ }
+ if r.labelValueEq != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "labelValue[eq]", r.labelValueEq, "form", "csv")
+ }
+ if r.orderByDnsName != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[dnsName]", r.orderByDnsName, "form", "")
+ }
+ if r.orderByName != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[name]", r.orderByName, "form", "")
+ }
+ if r.orderByRecordCount != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[recordCount]", r.orderByRecordCount, "form", "")
+ }
+ if r.orderByType != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[type]", r.orderByType, "form", "")
+ }
+ if r.orderByDescription != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[description]", r.orderByDescription, "form", "")
+ }
+ if r.orderByCreationStarted != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[creationStarted]", r.orderByCreationStarted, "form", "")
+ }
+ if r.orderByCreationFinished != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[creationFinished]", r.orderByCreationFinished, "form", "")
+ }
+ if r.orderByUpdateStarted != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[updateStarted]", r.orderByUpdateStarted, "form", "")
+ }
+ if r.orderByUpdateFinished != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy[updateFinished]", r.orderByUpdateFinished, "form", "")
+ }
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiMoveZoneRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ moveZonePayload *MoveZonePayload
+}
+
+// information about the move
+func (r ApiMoveZoneRequest) MoveZonePayload(moveZonePayload MoveZonePayload) ApiMoveZoneRequest {
+ r.moveZonePayload = &moveZonePayload
+ return r
+}
+
+func (r ApiMoveZoneRequest) Execute() (*Message, error) {
+ return r.ApiService.MoveZoneExecute(r)
+}
+
+/*
+MoveZone move zone from one project to another
+
+move zone from one project to another
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @return ApiMoveZoneRequest
+*/
+func (a *DefaultAPIService) MoveZone(ctx context.Context, projectId string) ApiMoveZoneRequest {
+ return ApiMoveZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ }
+}
+
+// Execute executes the request
+//
+// @return Message
+func (a *DefaultAPIService) MoveZoneExecute(r ApiMoveZoneRequest) (*Message, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Message
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.MoveZone")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/move-zone"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.moveZonePayload == nil {
+ return localVarReturnValue, reportError("moveZonePayload is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.moveZonePayload
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiPartialUpdateRecordRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+ rrSetId string
+ partialUpdateRecordPayload *PartialUpdateRecordPayload
+}
+
+// rrset to update
+func (r ApiPartialUpdateRecordRequest) PartialUpdateRecordPayload(partialUpdateRecordPayload PartialUpdateRecordPayload) ApiPartialUpdateRecordRequest {
+ r.partialUpdateRecordPayload = &partialUpdateRecordPayload
+ return r
+}
+
+func (r ApiPartialUpdateRecordRequest) Execute() (*Message, error) {
+ return r.ApiService.PartialUpdateRecordExecute(r)
+}
+
+/*
+PartialUpdateRecord PatchRecords updates a record in a rrset
+
+PatchRecords rrset updates a record in a rrset
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @param rrSetId record set id
+ @return ApiPartialUpdateRecordRequest
+*/
+func (a *DefaultAPIService) PartialUpdateRecord(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiPartialUpdateRecordRequest {
+ return ApiPartialUpdateRecordRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ rrSetId: rrSetId,
+ }
+}
+
+// Execute executes the request
+//
+// @return Message
+func (a *DefaultAPIService) PartialUpdateRecordExecute(r ApiPartialUpdateRecordRequest) (*Message, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Message
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PartialUpdateRecord")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}/records"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"rrSetId"+"}", url.PathEscape(parameterValueToString(r.rrSetId, "rrSetId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.partialUpdateRecordPayload == nil {
+ return localVarReturnValue, reportError("partialUpdateRecordPayload is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.partialUpdateRecordPayload
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiPartialUpdateRecordSetRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+ rrSetId string
+ partialUpdateRecordSetPayload *PartialUpdateRecordSetPayload
+}
+
+// record set to patch
+func (r ApiPartialUpdateRecordSetRequest) PartialUpdateRecordSetPayload(partialUpdateRecordSetPayload PartialUpdateRecordSetPayload) ApiPartialUpdateRecordSetRequest {
+ r.partialUpdateRecordSetPayload = &partialUpdateRecordSetPayload
+ return r
+}
+
+func (r ApiPartialUpdateRecordSetRequest) Execute() (*Message, error) {
+ return r.ApiService.PartialUpdateRecordSetExecute(r)
+}
+
+/*
+PartialUpdateRecordSet Patch updates a record set
+
+Patch record set
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @param rrSetId record set id
+ @return ApiPartialUpdateRecordSetRequest
+*/
+func (a *DefaultAPIService) PartialUpdateRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiPartialUpdateRecordSetRequest {
+ return ApiPartialUpdateRecordSetRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ rrSetId: rrSetId,
+ }
+}
+
+// Execute executes the request
+//
+// @return Message
+func (a *DefaultAPIService) PartialUpdateRecordSetExecute(r ApiPartialUpdateRecordSetRequest) (*Message, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Message
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PartialUpdateRecordSet")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"rrSetId"+"}", url.PathEscape(parameterValueToString(r.rrSetId, "rrSetId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.partialUpdateRecordSetPayload == nil {
+ return localVarReturnValue, reportError("partialUpdateRecordSetPayload is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.partialUpdateRecordSetPayload
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiPartialUpdateZoneRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+ partialUpdateZonePayload *PartialUpdateZonePayload
+}
+
+// zone to update
+func (r ApiPartialUpdateZoneRequest) PartialUpdateZonePayload(partialUpdateZonePayload PartialUpdateZonePayload) ApiPartialUpdateZoneRequest {
+ r.partialUpdateZonePayload = &partialUpdateZonePayload
+ return r
+}
+
+func (r ApiPartialUpdateZoneRequest) Execute() (*ZoneResponse, error) {
+ return r.ApiService.PartialUpdateZoneExecute(r)
+}
+
+/*
+PartialUpdateZone Patch update an existing zone
+
+Patch update an existing zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiPartialUpdateZoneRequest
+*/
+func (a *DefaultAPIService) PartialUpdateZone(ctx context.Context, projectId string, zoneId string) ApiPartialUpdateZoneRequest {
+ return ApiPartialUpdateZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return ZoneResponse
+func (a *DefaultAPIService) PartialUpdateZoneExecute(r ApiPartialUpdateZoneRequest) (*ZoneResponse, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ZoneResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PartialUpdateZone")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.partialUpdateZonePayload == nil {
+ return localVarReturnValue, reportError("partialUpdateZonePayload is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.partialUpdateZonePayload
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiRestoreRecordSetRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+ rrSetId string
+}
+
+func (r ApiRestoreRecordSetRequest) Execute() (*Message, error) {
+ return r.ApiService.RestoreRecordSetExecute(r)
+}
+
+/*
+RestoreRecordSet Restore record set
+
+Restore record set
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @param rrSetId record set id
+ @return ApiRestoreRecordSetRequest
+*/
+func (a *DefaultAPIService) RestoreRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiRestoreRecordSetRequest {
+ return ApiRestoreRecordSetRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ rrSetId: rrSetId,
+ }
+}
+
+// Execute executes the request
+//
+// @return Message
+func (a *DefaultAPIService) RestoreRecordSetExecute(r ApiRestoreRecordSetRequest) (*Message, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Message
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.RestoreRecordSet")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}/restores"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"rrSetId"+"}", url.PathEscape(parameterValueToString(r.rrSetId, "rrSetId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiRestoreZoneRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+}
+
+func (r ApiRestoreZoneRequest) Execute() (*Message, error) {
+ return r.ApiService.RestoreZoneExecute(r)
+}
+
+/*
+RestoreZone Restore an inactive zone
+
+Restore an inactive zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiRestoreZoneRequest
+*/
+func (a *DefaultAPIService) RestoreZone(ctx context.Context, projectId string, zoneId string) ApiRestoreZoneRequest {
+ return ApiRestoreZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return Message
+func (a *DefaultAPIService) RestoreZoneExecute(r ApiRestoreZoneRequest) (*Message, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Message
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.RestoreZone")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/restores"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiRetrieveZoneRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+}
+
+func (r ApiRetrieveZoneRequest) Execute() (*Message, error) {
+ return r.ApiService.RetrieveZoneExecute(r)
+}
+
+/*
+RetrieveZone Queue secondary zone for a zone transfer request.
+
+The zone transfer will usually be performed within a few seconds, and will be tried only once by randomly choosing one of the configured primary name servers. If that single attempt fails, no further attempt will be performed. The zone will be transferred to our inbound name server regardless of its serial, but the internal zone distribution is only reliable if the zone's serial on the customer's primary name server is higher than on the STACKIT name server.
NOTE: As said above, this endpoint is not a reliable way to decrease a zone's serial. To guarantee consistent zones over all STACKIT location, the zone's serial MUST always be increased on zone changes.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiRetrieveZoneRequest
+*/
+func (a *DefaultAPIService) RetrieveZone(ctx context.Context, projectId string, zoneId string) ApiRetrieveZoneRequest {
+ return ApiRetrieveZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return Message
+func (a *DefaultAPIService) RetrieveZoneExecute(r ApiRetrieveZoneRequest) (*Message, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Message
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.RetrieveZone")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/retrieve"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
+
+type ApiValidateMoveCodeRequest struct {
+ ctx context.Context
+ ApiService DefaultAPI
+ projectId string
+ zoneId string
+ validateMoveCodePayload *ValidateMoveCodePayload
+}
+
+// information about the move
+func (r ApiValidateMoveCodeRequest) ValidateMoveCodePayload(validateMoveCodePayload ValidateMoveCodePayload) ApiValidateMoveCodeRequest {
+ r.validateMoveCodePayload = &validateMoveCodePayload
+ return r
+}
+
+func (r ApiValidateMoveCodeRequest) Execute() (*Message, error) {
+ return r.ApiService.ValidateMoveCodeExecute(r)
+}
+
+/*
+ValidateMoveCode validate the move code is still valid for the zone
+
+validate the move code is still valid for the zone
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param projectId project id
+ @param zoneId zone id
+ @return ApiValidateMoveCodeRequest
+*/
+func (a *DefaultAPIService) ValidateMoveCode(ctx context.Context, projectId string, zoneId string) ApiValidateMoveCodeRequest {
+ return ApiValidateMoveCodeRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// Execute executes the request
+//
+// @return Message
+func (a *DefaultAPIService) ValidateMoveCodeExecute(r ApiValidateMoveCodeRequest) (*Message, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Message
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ValidateMoveCode")
+ if err != nil {
+ return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/projects/{projectId}/zones/{zoneId}/move-code-validation"
+ localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"zoneId"+"}", url.PathEscape(parameterValueToString(r.zoneId, "zoneId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.validateMoveCodePayload == nil {
+ return localVarReturnValue, reportError("validateMoveCodePayload is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.validateMoveCodePayload
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request)
+ if ok {
+ *contextHTTPRequest = req
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response)
+ if ok {
+ *contextHTTPResponse = localVarHTTPResponse
+ }
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &oapierror.GenericOpenAPIError{
+ Body: localVarBody,
+ ErrorMessage: localVarHTTPResponse.Status,
+ StatusCode: localVarHTTPResponse.StatusCode,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v ErrorMessage
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ return localVarReturnValue, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 502 {
+ var v Message
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.ErrorMessage = err.Error()
+ return localVarReturnValue, newErr
+ }
+ newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.Model = v
+ return localVarReturnValue, newErr
+ }
+ return localVarReturnValue, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &oapierror.GenericOpenAPIError{
+ StatusCode: localVarHTTPResponse.StatusCode,
+ Body: localVarBody,
+ ErrorMessage: err.Error(),
+ }
+ return localVarReturnValue, newErr
+ }
+
+ return localVarReturnValue, nil
+}
diff --git a/services/dns/v1api/api_default_mock.go b/services/dns/v1api/api_default_mock.go
new file mode 100644
index 000000000..d3de5ada9
--- /dev/null
+++ b/services/dns/v1api/api_default_mock.go
@@ -0,0 +1,531 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "context"
+)
+
+// assert the implementation matches the interface
+var _ DefaultAPI = &DefaultAPIServiceMock{}
+
+// DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService.
+// By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct.
+type DefaultAPIServiceMock struct {
+ // CloneZoneExecuteMock can be populated to implement the behavior of the CloneZoneExecute function of this mock
+ CloneZoneExecuteMock *func(r ApiCloneZoneRequest) (*ZoneResponse, error)
+ // CreateLabelExecuteMock can be populated to implement the behavior of the CreateLabelExecute function of this mock
+ CreateLabelExecuteMock *func(r ApiCreateLabelRequest) (*CreateLabelResponse, error)
+ // CreateMoveCodeExecuteMock can be populated to implement the behavior of the CreateMoveCodeExecute function of this mock
+ CreateMoveCodeExecuteMock *func(r ApiCreateMoveCodeRequest) (*MoveCodeResponse, error)
+ // CreateRecordSetExecuteMock can be populated to implement the behavior of the CreateRecordSetExecute function of this mock
+ CreateRecordSetExecuteMock *func(r ApiCreateRecordSetRequest) (*RecordSetResponse, error)
+ // CreateZoneExecuteMock can be populated to implement the behavior of the CreateZoneExecute function of this mock
+ CreateZoneExecuteMock *func(r ApiCreateZoneRequest) (*ZoneResponse, error)
+ // DeleteLabelExecuteMock can be populated to implement the behavior of the DeleteLabelExecute function of this mock
+ DeleteLabelExecuteMock *func(r ApiDeleteLabelRequest) (*DeleteLabelResponse, error)
+ // DeleteMoveCodeExecuteMock can be populated to implement the behavior of the DeleteMoveCodeExecute function of this mock
+ DeleteMoveCodeExecuteMock *func(r ApiDeleteMoveCodeRequest) (*Message, error)
+ // DeleteRecordSetExecuteMock can be populated to implement the behavior of the DeleteRecordSetExecute function of this mock
+ DeleteRecordSetExecuteMock *func(r ApiDeleteRecordSetRequest) (*Message, error)
+ // DeleteZoneExecuteMock can be populated to implement the behavior of the DeleteZoneExecute function of this mock
+ DeleteZoneExecuteMock *func(r ApiDeleteZoneRequest) (*Message, error)
+ // ExportRecordSetsExecuteMock can be populated to implement the behavior of the ExportRecordSetsExecute function of this mock
+ ExportRecordSetsExecuteMock *func(r ApiExportRecordSetsRequest) (*ZoneDataExchange, error)
+ // GetRecordSetExecuteMock can be populated to implement the behavior of the GetRecordSetExecute function of this mock
+ GetRecordSetExecuteMock *func(r ApiGetRecordSetRequest) (*RecordSetResponse, error)
+ // GetZoneExecuteMock can be populated to implement the behavior of the GetZoneExecute function of this mock
+ GetZoneExecuteMock *func(r ApiGetZoneRequest) (*ZoneResponse, error)
+ // ImportRecordSetsExecuteMock can be populated to implement the behavior of the ImportRecordSetsExecute function of this mock
+ ImportRecordSetsExecuteMock *func(r ApiImportRecordSetsRequest) (*ImportRecordSetsResponse, error)
+ // ListLabelsExecuteMock can be populated to implement the behavior of the ListLabelsExecute function of this mock
+ ListLabelsExecuteMock *func(r ApiListLabelsRequest) (*ListLabelsResponse, error)
+ // ListRecordSetsExecuteMock can be populated to implement the behavior of the ListRecordSetsExecute function of this mock
+ ListRecordSetsExecuteMock *func(r ApiListRecordSetsRequest) (*ListRecordSetsResponse, error)
+ // ListZonesExecuteMock can be populated to implement the behavior of the ListZonesExecute function of this mock
+ ListZonesExecuteMock *func(r ApiListZonesRequest) (*ListZonesResponse, error)
+ // MoveZoneExecuteMock can be populated to implement the behavior of the MoveZoneExecute function of this mock
+ MoveZoneExecuteMock *func(r ApiMoveZoneRequest) (*Message, error)
+ // PartialUpdateRecordExecuteMock can be populated to implement the behavior of the PartialUpdateRecordExecute function of this mock
+ PartialUpdateRecordExecuteMock *func(r ApiPartialUpdateRecordRequest) (*Message, error)
+ // PartialUpdateRecordSetExecuteMock can be populated to implement the behavior of the PartialUpdateRecordSetExecute function of this mock
+ PartialUpdateRecordSetExecuteMock *func(r ApiPartialUpdateRecordSetRequest) (*Message, error)
+ // PartialUpdateZoneExecuteMock can be populated to implement the behavior of the PartialUpdateZoneExecute function of this mock
+ PartialUpdateZoneExecuteMock *func(r ApiPartialUpdateZoneRequest) (*ZoneResponse, error)
+ // RestoreRecordSetExecuteMock can be populated to implement the behavior of the RestoreRecordSetExecute function of this mock
+ RestoreRecordSetExecuteMock *func(r ApiRestoreRecordSetRequest) (*Message, error)
+ // RestoreZoneExecuteMock can be populated to implement the behavior of the RestoreZoneExecute function of this mock
+ RestoreZoneExecuteMock *func(r ApiRestoreZoneRequest) (*Message, error)
+ // RetrieveZoneExecuteMock can be populated to implement the behavior of the RetrieveZoneExecute function of this mock
+ RetrieveZoneExecuteMock *func(r ApiRetrieveZoneRequest) (*Message, error)
+ // ValidateMoveCodeExecuteMock can be populated to implement the behavior of the ValidateMoveCodeExecute function of this mock
+ ValidateMoveCodeExecuteMock *func(r ApiValidateMoveCodeRequest) (*Message, error)
+}
+
+func (a DefaultAPIServiceMock) CloneZone(ctx context.Context, projectId string, zoneId string) ApiCloneZoneRequest {
+ return ApiCloneZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// CloneZoneExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CloneZoneExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) CloneZoneExecute(r ApiCloneZoneRequest) (*ZoneResponse, error) {
+ if a.CloneZoneExecuteMock == nil {
+ var localVarReturnValue *ZoneResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.CloneZoneExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) CreateLabel(ctx context.Context, projectId string, zoneId string) ApiCreateLabelRequest {
+ return ApiCreateLabelRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// CreateLabelExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateLabelExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) CreateLabelExecute(r ApiCreateLabelRequest) (*CreateLabelResponse, error) {
+ if a.CreateLabelExecuteMock == nil {
+ var localVarReturnValue *CreateLabelResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.CreateLabelExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) CreateMoveCode(ctx context.Context, projectId string, zoneId string) ApiCreateMoveCodeRequest {
+ return ApiCreateMoveCodeRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// CreateMoveCodeExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateMoveCodeExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) CreateMoveCodeExecute(r ApiCreateMoveCodeRequest) (*MoveCodeResponse, error) {
+ if a.CreateMoveCodeExecuteMock == nil {
+ var localVarReturnValue *MoveCodeResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.CreateMoveCodeExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) CreateRecordSet(ctx context.Context, projectId string, zoneId string) ApiCreateRecordSetRequest {
+ return ApiCreateRecordSetRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// CreateRecordSetExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateRecordSetExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) CreateRecordSetExecute(r ApiCreateRecordSetRequest) (*RecordSetResponse, error) {
+ if a.CreateRecordSetExecuteMock == nil {
+ var localVarReturnValue *RecordSetResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.CreateRecordSetExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) CreateZone(ctx context.Context, projectId string) ApiCreateZoneRequest {
+ return ApiCreateZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ }
+}
+
+// CreateZoneExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateZoneExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) CreateZoneExecute(r ApiCreateZoneRequest) (*ZoneResponse, error) {
+ if a.CreateZoneExecuteMock == nil {
+ var localVarReturnValue *ZoneResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.CreateZoneExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) DeleteLabel(ctx context.Context, projectId string, zoneId string, key string) ApiDeleteLabelRequest {
+ return ApiDeleteLabelRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ key: key,
+ }
+}
+
+// DeleteLabelExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteLabelExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) DeleteLabelExecute(r ApiDeleteLabelRequest) (*DeleteLabelResponse, error) {
+ if a.DeleteLabelExecuteMock == nil {
+ var localVarReturnValue *DeleteLabelResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.DeleteLabelExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) DeleteMoveCode(ctx context.Context, projectId string, zoneId string) ApiDeleteMoveCodeRequest {
+ return ApiDeleteMoveCodeRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// DeleteMoveCodeExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteMoveCodeExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) DeleteMoveCodeExecute(r ApiDeleteMoveCodeRequest) (*Message, error) {
+ if a.DeleteMoveCodeExecuteMock == nil {
+ var localVarReturnValue *Message
+ return localVarReturnValue, nil
+ }
+
+ return (*a.DeleteMoveCodeExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) DeleteRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiDeleteRecordSetRequest {
+ return ApiDeleteRecordSetRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ rrSetId: rrSetId,
+ }
+}
+
+// DeleteRecordSetExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteRecordSetExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) DeleteRecordSetExecute(r ApiDeleteRecordSetRequest) (*Message, error) {
+ if a.DeleteRecordSetExecuteMock == nil {
+ var localVarReturnValue *Message
+ return localVarReturnValue, nil
+ }
+
+ return (*a.DeleteRecordSetExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) DeleteZone(ctx context.Context, projectId string, zoneId string) ApiDeleteZoneRequest {
+ return ApiDeleteZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// DeleteZoneExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteZoneExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) DeleteZoneExecute(r ApiDeleteZoneRequest) (*Message, error) {
+ if a.DeleteZoneExecuteMock == nil {
+ var localVarReturnValue *Message
+ return localVarReturnValue, nil
+ }
+
+ return (*a.DeleteZoneExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) ExportRecordSets(ctx context.Context, projectId string, zoneId string) ApiExportRecordSetsRequest {
+ return ApiExportRecordSetsRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// ExportRecordSetsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ExportRecordSetsExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) ExportRecordSetsExecute(r ApiExportRecordSetsRequest) (*ZoneDataExchange, error) {
+ if a.ExportRecordSetsExecuteMock == nil {
+ var localVarReturnValue *ZoneDataExchange
+ return localVarReturnValue, nil
+ }
+
+ return (*a.ExportRecordSetsExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) GetRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiGetRecordSetRequest {
+ return ApiGetRecordSetRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ rrSetId: rrSetId,
+ }
+}
+
+// GetRecordSetExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetRecordSetExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) GetRecordSetExecute(r ApiGetRecordSetRequest) (*RecordSetResponse, error) {
+ if a.GetRecordSetExecuteMock == nil {
+ var localVarReturnValue *RecordSetResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.GetRecordSetExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) GetZone(ctx context.Context, projectId string, zoneId string) ApiGetZoneRequest {
+ return ApiGetZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// GetZoneExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetZoneExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) GetZoneExecute(r ApiGetZoneRequest) (*ZoneResponse, error) {
+ if a.GetZoneExecuteMock == nil {
+ var localVarReturnValue *ZoneResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.GetZoneExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) ImportRecordSets(ctx context.Context, projectId string, zoneId string) ApiImportRecordSetsRequest {
+ return ApiImportRecordSetsRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// ImportRecordSetsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ImportRecordSetsExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) ImportRecordSetsExecute(r ApiImportRecordSetsRequest) (*ImportRecordSetsResponse, error) {
+ if a.ImportRecordSetsExecuteMock == nil {
+ var localVarReturnValue *ImportRecordSetsResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.ImportRecordSetsExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) ListLabels(ctx context.Context, projectId string, zoneId string) ApiListLabelsRequest {
+ return ApiListLabelsRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// ListLabelsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListLabelsExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) ListLabelsExecute(r ApiListLabelsRequest) (*ListLabelsResponse, error) {
+ if a.ListLabelsExecuteMock == nil {
+ var localVarReturnValue *ListLabelsResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.ListLabelsExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) ListRecordSets(ctx context.Context, projectId string, zoneId string) ApiListRecordSetsRequest {
+ return ApiListRecordSetsRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// ListRecordSetsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListRecordSetsExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) ListRecordSetsExecute(r ApiListRecordSetsRequest) (*ListRecordSetsResponse, error) {
+ if a.ListRecordSetsExecuteMock == nil {
+ var localVarReturnValue *ListRecordSetsResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.ListRecordSetsExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) ListZones(ctx context.Context, projectId string) ApiListZonesRequest {
+ return ApiListZonesRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ }
+}
+
+// ListZonesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListZonesExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) ListZonesExecute(r ApiListZonesRequest) (*ListZonesResponse, error) {
+ if a.ListZonesExecuteMock == nil {
+ var localVarReturnValue *ListZonesResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.ListZonesExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) MoveZone(ctx context.Context, projectId string) ApiMoveZoneRequest {
+ return ApiMoveZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ }
+}
+
+// MoveZoneExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the MoveZoneExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) MoveZoneExecute(r ApiMoveZoneRequest) (*Message, error) {
+ if a.MoveZoneExecuteMock == nil {
+ var localVarReturnValue *Message
+ return localVarReturnValue, nil
+ }
+
+ return (*a.MoveZoneExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) PartialUpdateRecord(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiPartialUpdateRecordRequest {
+ return ApiPartialUpdateRecordRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ rrSetId: rrSetId,
+ }
+}
+
+// PartialUpdateRecordExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateRecordExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) PartialUpdateRecordExecute(r ApiPartialUpdateRecordRequest) (*Message, error) {
+ if a.PartialUpdateRecordExecuteMock == nil {
+ var localVarReturnValue *Message
+ return localVarReturnValue, nil
+ }
+
+ return (*a.PartialUpdateRecordExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) PartialUpdateRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiPartialUpdateRecordSetRequest {
+ return ApiPartialUpdateRecordSetRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ rrSetId: rrSetId,
+ }
+}
+
+// PartialUpdateRecordSetExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateRecordSetExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) PartialUpdateRecordSetExecute(r ApiPartialUpdateRecordSetRequest) (*Message, error) {
+ if a.PartialUpdateRecordSetExecuteMock == nil {
+ var localVarReturnValue *Message
+ return localVarReturnValue, nil
+ }
+
+ return (*a.PartialUpdateRecordSetExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) PartialUpdateZone(ctx context.Context, projectId string, zoneId string) ApiPartialUpdateZoneRequest {
+ return ApiPartialUpdateZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// PartialUpdateZoneExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateZoneExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) PartialUpdateZoneExecute(r ApiPartialUpdateZoneRequest) (*ZoneResponse, error) {
+ if a.PartialUpdateZoneExecuteMock == nil {
+ var localVarReturnValue *ZoneResponse
+ return localVarReturnValue, nil
+ }
+
+ return (*a.PartialUpdateZoneExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) RestoreRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiRestoreRecordSetRequest {
+ return ApiRestoreRecordSetRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ rrSetId: rrSetId,
+ }
+}
+
+// RestoreRecordSetExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the RestoreRecordSetExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) RestoreRecordSetExecute(r ApiRestoreRecordSetRequest) (*Message, error) {
+ if a.RestoreRecordSetExecuteMock == nil {
+ var localVarReturnValue *Message
+ return localVarReturnValue, nil
+ }
+
+ return (*a.RestoreRecordSetExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) RestoreZone(ctx context.Context, projectId string, zoneId string) ApiRestoreZoneRequest {
+ return ApiRestoreZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// RestoreZoneExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the RestoreZoneExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) RestoreZoneExecute(r ApiRestoreZoneRequest) (*Message, error) {
+ if a.RestoreZoneExecuteMock == nil {
+ var localVarReturnValue *Message
+ return localVarReturnValue, nil
+ }
+
+ return (*a.RestoreZoneExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) RetrieveZone(ctx context.Context, projectId string, zoneId string) ApiRetrieveZoneRequest {
+ return ApiRetrieveZoneRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// RetrieveZoneExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the RetrieveZoneExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) RetrieveZoneExecute(r ApiRetrieveZoneRequest) (*Message, error) {
+ if a.RetrieveZoneExecuteMock == nil {
+ var localVarReturnValue *Message
+ return localVarReturnValue, nil
+ }
+
+ return (*a.RetrieveZoneExecuteMock)(r)
+}
+
+func (a DefaultAPIServiceMock) ValidateMoveCode(ctx context.Context, projectId string, zoneId string) ApiValidateMoveCodeRequest {
+ return ApiValidateMoveCodeRequest{
+ ApiService: a,
+ ctx: ctx,
+ projectId: projectId,
+ zoneId: zoneId,
+ }
+}
+
+// ValidateMoveCodeExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ValidateMoveCodeExecuteMock field in the DefaultAPIServiceMock struct.
+func (a DefaultAPIServiceMock) ValidateMoveCodeExecute(r ApiValidateMoveCodeRequest) (*Message, error) {
+ if a.ValidateMoveCodeExecuteMock == nil {
+ var localVarReturnValue *Message
+ return localVarReturnValue, nil
+ }
+
+ return (*a.ValidateMoveCodeExecuteMock)(r)
+}
diff --git a/services/dns/v1api/client.go b/services/dns/v1api/client.go
new file mode 100644
index 000000000..1a009d26b
--- /dev/null
+++ b/services/dns/v1api/client.go
@@ -0,0 +1,659 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+package v1api
+
+import (
+ "bytes"
+ "context"
+ "encoding/json"
+ "encoding/xml"
+ "errors"
+ "fmt"
+ "io"
+ "log"
+ "mime/multipart"
+ "net/http"
+ "net/http/httputil"
+ "net/url"
+ "os"
+ "path/filepath"
+ "reflect"
+ "regexp"
+ "strconv"
+ "strings"
+ "time"
+ "unicode/utf8"
+
+ "github.com/stackitcloud/stackit-sdk-go/core/auth"
+ "github.com/stackitcloud/stackit-sdk-go/core/config"
+)
+
+var (
+ JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
+ XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
+ queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`)
+ queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]")
+)
+
+// APIClient manages communication with the STACKIT DNS API API v1.0
+// In most cases there should be only one, shared, APIClient.
+type APIClient struct {
+ cfg *config.Configuration
+ common service // Reuse a single struct instead of allocating one for each service on the heap.
+
+ // API Services
+
+ DefaultAPI DefaultAPI
+}
+
+type service struct {
+ client *APIClient
+}
+
+// NewAPIClient creates a new API client. Requires a userAgent string describing your application.
+// optionally a custom http.Client to allow for advanced features such as caching.
+func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) {
+ cfg := NewConfiguration()
+
+ for _, option := range opts {
+ err := option(cfg)
+ if err != nil {
+ return nil, fmt.Errorf("configuring the client: %w", err)
+ }
+ }
+
+ err := config.ConfigureRegion(cfg)
+ if err != nil {
+ return nil, fmt.Errorf("configuring region: %w", err)
+ }
+
+ if cfg.HTTPClient == nil {
+ cfg.HTTPClient = &http.Client{}
+ }
+
+ authRoundTripper, err := auth.SetupAuth(cfg)
+ if err != nil {
+ return nil, fmt.Errorf("setting up authentication: %w", err)
+ }
+
+ roundTripper := authRoundTripper
+ if cfg.Middleware != nil {
+ roundTripper = config.ChainMiddleware(roundTripper, cfg.Middleware...)
+ }
+
+ cfg.HTTPClient.Transport = roundTripper
+
+ c := &APIClient{}
+ c.cfg = cfg
+ c.common.client = c
+
+ // API Services
+ c.DefaultAPI = (*DefaultAPIService)(&c.common)
+
+ return c, nil
+}
+
+func atoi(in string) (int, error) {
+ return strconv.Atoi(in)
+}
+
+// selectHeaderContentType select a content type from the available list.
+func selectHeaderContentType(contentTypes []string) string {
+ if len(contentTypes) == 0 {
+ return ""
+ }
+ if contains(contentTypes, "application/json") {
+ return "application/json"
+ }
+ return contentTypes[0] // use the first content type specified in 'consumes'
+}
+
+// selectHeaderAccept join all accept types and return
+func selectHeaderAccept(accepts []string) string {
+ if len(accepts) == 0 {
+ return ""
+ }
+
+ if contains(accepts, "application/json") {
+ return "application/json"
+ }
+
+ return strings.Join(accepts, ",")
+}
+
+// contains is a case insensitive match, finding needle in a haystack
+func contains(haystack []string, needle string) bool {
+ for _, a := range haystack {
+ if strings.EqualFold(a, needle) {
+ return true
+ }
+ }
+ return false
+}
+
+// Verify optional parameters are of the correct type.
+func typeCheckParameter(obj interface{}, expected string, name string) error {
+ // Make sure there is an object.
+ if obj == nil {
+ return nil
+ }
+
+ // Check the type is as expected.
+ if reflect.TypeOf(obj).String() != expected {
+ return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String())
+ }
+ return nil
+}
+
+func parameterValueToString(obj interface{}, key string) string {
+ if reflect.TypeOf(obj).Kind() != reflect.Ptr {
+ if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok {
+ return fmt.Sprintf("%v", actualObj.GetActualInstanceValue())
+ }
+
+ return fmt.Sprintf("%v", obj)
+ }
+ var param, ok = obj.(MappedNullable)
+ if !ok {
+ return ""
+ }
+ dataMap, err := param.ToMap()
+ if err != nil {
+ return ""
+ }
+ return fmt.Sprintf("%v", dataMap[key])
+}
+
+// parameterAddToHeaderOrQuery adds the provided object to the request header or url query
+// supporting deep object syntax
+func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) {
+ var v = reflect.ValueOf(obj)
+ var value = ""
+ if v == reflect.ValueOf(nil) {
+ value = "null"
+ } else {
+ switch v.Kind() {
+ case reflect.Invalid:
+ value = "invalid"
+
+ case reflect.Struct:
+ if t, ok := obj.(MappedNullable); ok {
+ dataMap, err := t.ToMap()
+ if err != nil {
+ return
+ }
+ parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType)
+ return
+ }
+ if t, ok := obj.(time.Time); ok {
+ parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType)
+ return
+ }
+ value = v.Type().String() + " value"
+ case reflect.Slice:
+ var indValue = reflect.ValueOf(obj)
+ if indValue == reflect.ValueOf(nil) {
+ return
+ }
+ var lenIndValue = indValue.Len()
+ for i := 0; i < lenIndValue; i++ {
+ var arrayValue = indValue.Index(i)
+ var keyPrefixForCollectionType = keyPrefix
+ if style == "deepObject" {
+ keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]"
+ }
+ parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType)
+ }
+ return
+
+ case reflect.Map:
+ var indValue = reflect.ValueOf(obj)
+ if indValue == reflect.ValueOf(nil) {
+ return
+ }
+ iter := indValue.MapRange()
+ for iter.Next() {
+ k, v := iter.Key(), iter.Value()
+ parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType)
+ }
+ return
+
+ case reflect.Interface:
+ fallthrough
+ case reflect.Ptr:
+ parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType)
+ return
+
+ case reflect.Int, reflect.Int8, reflect.Int16,
+ reflect.Int32, reflect.Int64:
+ value = strconv.FormatInt(v.Int(), 10)
+ case reflect.Uint, reflect.Uint8, reflect.Uint16,
+ reflect.Uint32, reflect.Uint64, reflect.Uintptr:
+ value = strconv.FormatUint(v.Uint(), 10)
+ case reflect.Float32, reflect.Float64:
+ value = strconv.FormatFloat(v.Float(), 'g', -1, 32)
+ case reflect.Bool:
+ value = strconv.FormatBool(v.Bool())
+ case reflect.String:
+ value = v.String()
+ default:
+ value = v.Type().String() + " value"
+ }
+ }
+
+ switch valuesMap := headerOrQueryParams.(type) {
+ case url.Values:
+ if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" {
+ valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value)
+ } else {
+ valuesMap.Add(keyPrefix, value)
+ }
+ break
+ case map[string]string:
+ valuesMap[keyPrefix] = value
+ break
+ }
+}
+
+// helper for converting interface{} parameters to json strings
+func parameterToJson(obj interface{}) (string, error) {
+ jsonBuf, err := json.Marshal(obj)
+ if err != nil {
+ return "", err
+ }
+ return string(jsonBuf), err
+}
+
+// callAPI do the request.
+func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
+ if c.cfg.Debug {
+ dump, err := httputil.DumpRequestOut(request, true)
+ if err != nil {
+ return nil, err
+ }
+ log.Printf("\n%s\n", string(dump))
+ }
+
+ resp, err := c.cfg.HTTPClient.Do(request)
+ if err != nil {
+ return resp, err
+ }
+
+ if c.cfg.Debug {
+ dump, err := httputil.DumpResponse(resp, true)
+ if err != nil {
+ return resp, err
+ }
+ log.Printf("\n%s\n", string(dump))
+ }
+ return resp, err
+}
+
+// Allow modification of underlying config for alternate implementations and testing
+// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
+func (c *APIClient) GetConfig() *config.Configuration {
+ return c.cfg
+}
+
+type formFile struct {
+ fileBytes []byte
+ fileName string
+ formFileName string
+}
+
+// prepareRequest build the request
+func (c *APIClient) prepareRequest(
+ ctx context.Context,
+ path string, method string,
+ postBody interface{},
+ headerParams map[string]string,
+ queryParams url.Values,
+ formParams url.Values,
+ formFiles []formFile) (localVarRequest *http.Request, err error) {
+
+ var body *bytes.Buffer
+
+ // Detect postBody type and post.
+ if postBody != nil {
+ contentType := headerParams["Content-Type"]
+ if contentType == "" {
+ contentType = detectContentType(postBody)
+ headerParams["Content-Type"] = contentType
+ }
+
+ body, err = setBody(postBody, contentType)
+ if err != nil {
+ return nil, err
+ }
+ }
+
+ // add form parameters and file if available.
+ if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) {
+ if body != nil {
+ return nil, errors.New("Cannot specify postBody and multipart form at the same time.")
+ }
+ body = &bytes.Buffer{}
+ w := multipart.NewWriter(body)
+
+ for k, v := range formParams {
+ for _, iv := range v {
+ if strings.HasPrefix(k, "@") { // file
+ err = addFile(w, k[1:], iv)
+ if err != nil {
+ return nil, err
+ }
+ } else { // form value
+ w.WriteField(k, iv)
+ }
+ }
+ }
+ for _, formFile := range formFiles {
+ if len(formFile.fileBytes) > 0 && formFile.fileName != "" {
+ w.Boundary()
+ part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName))
+ if err != nil {
+ return nil, err
+ }
+ _, err = part.Write(formFile.fileBytes)
+ if err != nil {
+ return nil, err
+ }
+ }
+ }
+
+ // Set the Boundary in the Content-Type
+ headerParams["Content-Type"] = w.FormDataContentType()
+
+ // Set Content-Length
+ headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len())
+ w.Close()
+ }
+
+ if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 {
+ if body != nil {
+ return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.")
+ }
+ body = &bytes.Buffer{}
+ body.WriteString(formParams.Encode())
+ // Set Content-Length
+ headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len())
+ }
+
+ // Setup path and query parameters
+ url, err := url.Parse(path)
+ if err != nil {
+ return nil, err
+ }
+
+ // Override request host, if applicable
+ if c.cfg.Host != "" {
+ url.Host = c.cfg.Host
+ }
+
+ // Override request scheme, if applicable
+ if c.cfg.Scheme != "" {
+ url.Scheme = c.cfg.Scheme
+ }
+
+ // Adding Query Param
+ query := url.Query()
+ for k, v := range queryParams {
+ for _, iv := range v {
+ query.Add(k, iv)
+ }
+ }
+
+ // Encode the parameters.
+ url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string {
+ pieces := strings.Split(s, "=")
+ pieces[0] = queryDescape.Replace(pieces[0])
+ return strings.Join(pieces, "=")
+ })
+
+ // Generate a new request
+ if body != nil {
+ localVarRequest, err = http.NewRequest(method, url.String(), body)
+ } else {
+ localVarRequest, err = http.NewRequest(method, url.String(), nil)
+ }
+ if err != nil {
+ return nil, err
+ }
+
+ // add header parameters, if any
+ if len(headerParams) > 0 {
+ headers := http.Header{}
+ for h, v := range headerParams {
+ headers[h] = []string{v}
+ }
+ localVarRequest.Header = headers
+ }
+
+ // Add the user agent to the request.
+ localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent)
+
+ if ctx != nil {
+ // add context to the request
+ localVarRequest = localVarRequest.WithContext(ctx)
+
+ // Walk through any authentication.
+
+ }
+
+ for header, value := range c.cfg.DefaultHeader {
+ localVarRequest.Header.Add(header, value)
+ }
+ return localVarRequest, nil
+}
+
+func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) {
+ if len(b) == 0 {
+ return nil
+ }
+ if s, ok := v.(*string); ok {
+ *s = string(b)
+ return nil
+ }
+ if f, ok := v.(*os.File); ok {
+ f, err = os.CreateTemp("", "HttpClientFile")
+ if err != nil {
+ return
+ }
+ _, err = f.Write(b)
+ if err != nil {
+ return
+ }
+ _, err = f.Seek(0, io.SeekStart)
+ return
+ }
+ if f, ok := v.(**os.File); ok {
+ *f, err = os.CreateTemp("", "HttpClientFile")
+ if err != nil {
+ return
+ }
+ _, err = (*f).Write(b)
+ if err != nil {
+ return
+ }
+ _, err = (*f).Seek(0, io.SeekStart)
+ return
+ }
+ if XmlCheck.MatchString(contentType) {
+ if err = xml.Unmarshal(b, v); err != nil {
+ return err
+ }
+ return nil
+ }
+ if JsonCheck.MatchString(contentType) {
+ if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas
+ if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined
+ if err = unmarshalObj.UnmarshalJSON(b); err != nil {
+ return err
+ }
+ } else {
+ return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined")
+ }
+ } else if err = json.Unmarshal(b, v); err != nil { // simple model
+ return err
+ }
+ return nil
+ }
+ return errors.New("undefined response type")
+}
+
+// Add a file to the multipart request
+func addFile(w *multipart.Writer, fieldName, path string) error {
+ file, err := os.Open(filepath.Clean(path))
+ if err != nil {
+ return err
+ }
+ defer file.Close()
+
+ part, err := w.CreateFormFile(fieldName, filepath.Base(path))
+ if err != nil {
+ return err
+ }
+ _, err = io.Copy(part, file)
+
+ return err
+}
+
+// Set request body from an interface{}
+func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) {
+ if bodyBuf == nil {
+ bodyBuf = &bytes.Buffer{}
+ }
+
+ if reader, ok := body.(io.Reader); ok {
+ _, err = bodyBuf.ReadFrom(reader)
+ } else if fp, ok := body.(*os.File); ok {
+ _, err = bodyBuf.ReadFrom(fp)
+ } else if b, ok := body.([]byte); ok {
+ _, err = bodyBuf.Write(b)
+ } else if s, ok := body.(string); ok {
+ _, err = bodyBuf.WriteString(s)
+ } else if s, ok := body.(*string); ok {
+ _, err = bodyBuf.WriteString(*s)
+ } else if JsonCheck.MatchString(contentType) {
+ err = json.NewEncoder(bodyBuf).Encode(body)
+ } else if XmlCheck.MatchString(contentType) {
+ var bs []byte
+ bs, err = xml.Marshal(body)
+ if err == nil {
+ bodyBuf.Write(bs)
+ }
+ }
+
+ if err != nil {
+ return nil, err
+ }
+
+ if bodyBuf.Len() == 0 {
+ err = fmt.Errorf("invalid body type %s\n", contentType)
+ return nil, err
+ }
+ return bodyBuf, nil
+}
+
+// detectContentType method is used to figure out `Request.Body` content type for request header
+func detectContentType(body interface{}) string {
+ contentType := "text/plain; charset=utf-8"
+ kind := reflect.TypeOf(body).Kind()
+
+ switch kind {
+ case reflect.Struct, reflect.Map, reflect.Ptr:
+ contentType = "application/json; charset=utf-8"
+ case reflect.String:
+ contentType = "text/plain; charset=utf-8"
+ default:
+ if b, ok := body.([]byte); ok {
+ contentType = http.DetectContentType(b)
+ } else if kind == reflect.Slice {
+ contentType = "application/json; charset=utf-8"
+ }
+ }
+
+ return contentType
+}
+
+// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go
+type cacheControl map[string]string
+
+func parseCacheControl(headers http.Header) cacheControl {
+ cc := cacheControl{}
+ ccHeader := headers.Get("Cache-Control")
+ for _, part := range strings.Split(ccHeader, ",") {
+ part = strings.Trim(part, " ")
+ if part == "" {
+ continue
+ }
+ if strings.ContainsRune(part, '=') {
+ keyval := strings.Split(part, "=")
+ cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",")
+ } else {
+ cc[part] = ""
+ }
+ }
+ return cc
+}
+
+// CacheExpires helper function to determine remaining time before repeating a request.
+func CacheExpires(r *http.Response) time.Time {
+ // Figure out when the cache expires.
+ var expires time.Time
+ now, err := time.Parse(time.RFC1123, r.Header.Get("date"))
+ if err != nil {
+ return time.Now()
+ }
+ respCacheControl := parseCacheControl(r.Header)
+
+ if maxAge, ok := respCacheControl["max-age"]; ok {
+ lifetime, err := time.ParseDuration(maxAge + "s")
+ if err != nil {
+ expires = now
+ } else {
+ expires = now.Add(lifetime)
+ }
+ } else {
+ expiresHeader := r.Header.Get("Expires")
+ if expiresHeader != "" {
+ expires, err = time.Parse(time.RFC1123, expiresHeader)
+ if err != nil {
+ expires = now
+ }
+ }
+ }
+ return expires
+}
+
+func strlen(s string) int {
+ return utf8.RuneCountInString(s)
+}
+
+// format error message using title and detail when model implements rfc7807
+func formatErrorMessage(status string, v interface{}) string {
+ str := ""
+ metaValue := reflect.ValueOf(v).Elem()
+
+ if metaValue.Kind() == reflect.Struct {
+ field := metaValue.FieldByName("Title")
+ if field != (reflect.Value{}) {
+ str = fmt.Sprintf("%s", field.Interface())
+ }
+
+ field = metaValue.FieldByName("Detail")
+ if field != (reflect.Value{}) {
+ str = fmt.Sprintf("%s (%s)", str, field.Interface())
+ }
+ }
+
+ return strings.TrimSpace(fmt.Sprintf("%s %s", status, str))
+}
diff --git a/services/dns/v1api/configuration.go b/services/dns/v1api/configuration.go
new file mode 100644
index 000000000..dd88ff484
--- /dev/null
+++ b/services/dns/v1api/configuration.go
@@ -0,0 +1,38 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+package v1api
+
+import (
+ "github.com/stackitcloud/stackit-sdk-go/core/config"
+)
+
+// NewConfiguration returns a new Configuration object
+func NewConfiguration() *config.Configuration {
+ cfg := &config.Configuration{
+ DefaultHeader: make(map[string]string),
+ UserAgent: "stackit-sdk-go/dns",
+ Debug: false,
+ Servers: config.ServerConfigurations{
+ {
+ URL: "https://dns.api.stackit.cloud",
+ Description: "No description provided",
+ Variables: map[string]config.ServerVariable{
+ "region": {
+ Description: "No description provided",
+ DefaultValue: "global",
+ },
+ },
+ },
+ },
+ OperationServers: map[string]config.ServerConfigurations{},
+ }
+ return cfg
+}
diff --git a/services/dns/v1api/model_clone_zone_payload.go b/services/dns/v1api/model_clone_zone_payload.go
new file mode 100644
index 000000000..dad3be2f1
--- /dev/null
+++ b/services/dns/v1api/model_clone_zone_payload.go
@@ -0,0 +1,269 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the CloneZonePayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &CloneZonePayload{}
+
+// CloneZonePayload metadata to clone a zone.
+type CloneZonePayload struct {
+ // Adjust record set content and replace the dns name of the original zone with the new dns name of the cloned zone
+ AdjustRecords *bool `json:"adjustRecords,omitempty"`
+ // New Description for the cloned zone. Leave empty to use the same description as the original zone
+ Description *string `json:"description,omitempty"`
+ // DnsName is the dns name of the zone to clone
+ DnsName string `json:"dnsName"`
+ // New Name for the cloned zone. Leave empty to use the same name as the original zone
+ Name *string `json:"name,omitempty"`
+}
+
+type _CloneZonePayload CloneZonePayload
+
+// NewCloneZonePayload instantiates a new CloneZonePayload 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
+func NewCloneZonePayload(dnsName string) *CloneZonePayload {
+ this := CloneZonePayload{}
+ this.DnsName = dnsName
+ return &this
+}
+
+// NewCloneZonePayloadWithDefaults instantiates a new CloneZonePayload 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
+func NewCloneZonePayloadWithDefaults() *CloneZonePayload {
+ this := CloneZonePayload{}
+ return &this
+}
+
+// GetAdjustRecords returns the AdjustRecords field value if set, zero value otherwise.
+func (o *CloneZonePayload) GetAdjustRecords() bool {
+ if o == nil || IsNil(o.AdjustRecords) {
+ var ret bool
+ return ret
+ }
+ return *o.AdjustRecords
+}
+
+// GetAdjustRecordsOk returns a tuple with the AdjustRecords field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CloneZonePayload) GetAdjustRecordsOk() (*bool, bool) {
+ if o == nil || IsNil(o.AdjustRecords) {
+ return nil, false
+ }
+ return o.AdjustRecords, true
+}
+
+// HasAdjustRecords returns a boolean if a field has been set.
+func (o *CloneZonePayload) HasAdjustRecords() bool {
+ if o != nil && !IsNil(o.AdjustRecords) {
+ return true
+ }
+
+ return false
+}
+
+// SetAdjustRecords gets a reference to the given bool and assigns it to the AdjustRecords field.
+func (o *CloneZonePayload) SetAdjustRecords(v bool) {
+ o.AdjustRecords = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *CloneZonePayload) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ var ret string
+ return ret
+ }
+ return *o.Description
+}
+
+// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CloneZonePayload) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
+ return nil, false
+ }
+ return o.Description, true
+}
+
+// HasDescription returns a boolean if a field has been set.
+func (o *CloneZonePayload) HasDescription() bool {
+ if o != nil && !IsNil(o.Description) {
+ return true
+ }
+
+ return false
+}
+
+// SetDescription gets a reference to the given string and assigns it to the Description field.
+func (o *CloneZonePayload) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetDnsName returns the DnsName field value
+func (o *CloneZonePayload) GetDnsName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.DnsName
+}
+
+// GetDnsNameOk returns a tuple with the DnsName field value
+// and a boolean to check if the value has been set.
+func (o *CloneZonePayload) GetDnsNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DnsName, true
+}
+
+// SetDnsName sets field value
+func (o *CloneZonePayload) SetDnsName(v string) {
+ o.DnsName = v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *CloneZonePayload) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CloneZonePayload) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *CloneZonePayload) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *CloneZonePayload) SetName(v string) {
+ o.Name = &v
+}
+
+func (o CloneZonePayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o CloneZonePayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.AdjustRecords) {
+ toSerialize["adjustRecords"] = o.AdjustRecords
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ toSerialize["dnsName"] = o.DnsName
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ return toSerialize, nil
+}
+
+func (o *CloneZonePayload) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "dnsName",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCloneZonePayload := _CloneZonePayload{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCloneZonePayload)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CloneZonePayload(varCloneZonePayload)
+
+ return err
+}
+
+type NullableCloneZonePayload struct {
+ value *CloneZonePayload
+ isSet bool
+}
+
+func (v NullableCloneZonePayload) Get() *CloneZonePayload {
+ return v.value
+}
+
+func (v *NullableCloneZonePayload) Set(val *CloneZonePayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCloneZonePayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCloneZonePayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCloneZonePayload(val *CloneZonePayload) *NullableCloneZonePayload {
+ return &NullableCloneZonePayload{value: val, isSet: true}
+}
+
+func (v NullableCloneZonePayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCloneZonePayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_create_label_payload.go b/services/dns/v1api/model_create_label_payload.go
new file mode 100644
index 000000000..55491821e
--- /dev/null
+++ b/services/dns/v1api/model_create_label_payload.go
@@ -0,0 +1,185 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the CreateLabelPayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &CreateLabelPayload{}
+
+// CreateLabelPayload struct for CreateLabelPayload
+type CreateLabelPayload struct {
+ Key string `json:"key"`
+ Value string `json:"value"`
+}
+
+type _CreateLabelPayload CreateLabelPayload
+
+// NewCreateLabelPayload instantiates a new CreateLabelPayload 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
+func NewCreateLabelPayload(key string, value string) *CreateLabelPayload {
+ this := CreateLabelPayload{}
+ this.Key = key
+ this.Value = value
+ return &this
+}
+
+// NewCreateLabelPayloadWithDefaults instantiates a new CreateLabelPayload 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
+func NewCreateLabelPayloadWithDefaults() *CreateLabelPayload {
+ this := CreateLabelPayload{}
+ return &this
+}
+
+// GetKey returns the Key field value
+func (o *CreateLabelPayload) GetKey() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Key
+}
+
+// GetKeyOk returns a tuple with the Key field value
+// and a boolean to check if the value has been set.
+func (o *CreateLabelPayload) GetKeyOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Key, true
+}
+
+// SetKey sets field value
+func (o *CreateLabelPayload) SetKey(v string) {
+ o.Key = v
+}
+
+// GetValue returns the Value field value
+func (o *CreateLabelPayload) GetValue() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Value
+}
+
+// GetValueOk returns a tuple with the Value field value
+// and a boolean to check if the value has been set.
+func (o *CreateLabelPayload) GetValueOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Value, true
+}
+
+// SetValue sets field value
+func (o *CreateLabelPayload) SetValue(v string) {
+ o.Value = v
+}
+
+func (o CreateLabelPayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o CreateLabelPayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["key"] = o.Key
+ toSerialize["value"] = o.Value
+ return toSerialize, nil
+}
+
+func (o *CreateLabelPayload) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "key",
+ "value",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCreateLabelPayload := _CreateLabelPayload{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCreateLabelPayload)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CreateLabelPayload(varCreateLabelPayload)
+
+ return err
+}
+
+type NullableCreateLabelPayload struct {
+ value *CreateLabelPayload
+ isSet bool
+}
+
+func (v NullableCreateLabelPayload) Get() *CreateLabelPayload {
+ return v.value
+}
+
+func (v *NullableCreateLabelPayload) Set(val *CreateLabelPayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCreateLabelPayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCreateLabelPayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCreateLabelPayload(val *CreateLabelPayload) *NullableCreateLabelPayload {
+ return &NullableCreateLabelPayload{value: val, isSet: true}
+}
+
+func (v NullableCreateLabelPayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCreateLabelPayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_create_label_response.go b/services/dns/v1api/model_create_label_response.go
new file mode 100644
index 000000000..c2d8a1114
--- /dev/null
+++ b/services/dns/v1api/model_create_label_response.go
@@ -0,0 +1,161 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the CreateLabelResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &CreateLabelResponse{}
+
+// CreateLabelResponse ResponseUpsertLabel.
+type CreateLabelResponse struct {
+ Label *Label `json:"label,omitempty"`
+ Message *string `json:"message,omitempty"`
+}
+
+// NewCreateLabelResponse instantiates a new CreateLabelResponse 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
+func NewCreateLabelResponse() *CreateLabelResponse {
+ this := CreateLabelResponse{}
+ return &this
+}
+
+// NewCreateLabelResponseWithDefaults instantiates a new CreateLabelResponse 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
+func NewCreateLabelResponseWithDefaults() *CreateLabelResponse {
+ this := CreateLabelResponse{}
+ return &this
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *CreateLabelResponse) GetLabel() Label {
+ if o == nil || IsNil(o.Label) {
+ var ret Label
+ return ret
+ }
+ return *o.Label
+}
+
+// GetLabelOk returns a tuple with the Label field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateLabelResponse) GetLabelOk() (*Label, bool) {
+ if o == nil || IsNil(o.Label) {
+ return nil, false
+ }
+ return o.Label, true
+}
+
+// HasLabel returns a boolean if a field has been set.
+func (o *CreateLabelResponse) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given Label and assigns it to the Label field.
+func (o *CreateLabelResponse) SetLabel(v Label) {
+ o.Label = &v
+}
+
+// GetMessage returns the Message field value if set, zero value otherwise.
+func (o *CreateLabelResponse) GetMessage() string {
+ if o == nil || IsNil(o.Message) {
+ var ret string
+ return ret
+ }
+ return *o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateLabelResponse) GetMessageOk() (*string, bool) {
+ if o == nil || IsNil(o.Message) {
+ return nil, false
+ }
+ return o.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (o *CreateLabelResponse) HasMessage() bool {
+ if o != nil && !IsNil(o.Message) {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage gets a reference to the given string and assigns it to the Message field.
+func (o *CreateLabelResponse) SetMessage(v string) {
+ o.Message = &v
+}
+
+func (o CreateLabelResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o CreateLabelResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Label) {
+ toSerialize["label"] = o.Label
+ }
+ if !IsNil(o.Message) {
+ toSerialize["message"] = o.Message
+ }
+ return toSerialize, nil
+}
+
+type NullableCreateLabelResponse struct {
+ value *CreateLabelResponse
+ isSet bool
+}
+
+func (v NullableCreateLabelResponse) Get() *CreateLabelResponse {
+ return v.value
+}
+
+func (v *NullableCreateLabelResponse) Set(val *CreateLabelResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCreateLabelResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCreateLabelResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCreateLabelResponse(val *CreateLabelResponse) *NullableCreateLabelResponse {
+ return &NullableCreateLabelResponse{value: val, isSet: true}
+}
+
+func (v NullableCreateLabelResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCreateLabelResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_create_record_set_payload.go b/services/dns/v1api/model_create_record_set_payload.go
new file mode 100644
index 000000000..02e80ad56
--- /dev/null
+++ b/services/dns/v1api/model_create_record_set_payload.go
@@ -0,0 +1,290 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the CreateRecordSetPayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &CreateRecordSetPayload{}
+
+// CreateRecordSetPayload RRSetPost for rr set info.
+type CreateRecordSetPayload struct {
+ // user comment
+ Comment *string `json:"comment,omitempty"`
+ // name of the record which should be a valid domain according to rfc1035 Section 2.3.4. For APEX records (same as zone name), the zone name itself has to be put in here.
+ Name string `json:"name"`
+ // records
+ Records []RecordPayload `json:"records"`
+ // time to live. If nothing provided we will set the zone ttl.
+ Ttl *int32 `json:"ttl,omitempty"`
+ // record set type
+ Type string `json:"type"`
+}
+
+type _CreateRecordSetPayload CreateRecordSetPayload
+
+// NewCreateRecordSetPayload instantiates a new CreateRecordSetPayload 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
+func NewCreateRecordSetPayload(name string, records []RecordPayload, types string) *CreateRecordSetPayload {
+ this := CreateRecordSetPayload{}
+ this.Name = name
+ this.Records = records
+ this.Type = types
+ return &this
+}
+
+// NewCreateRecordSetPayloadWithDefaults instantiates a new CreateRecordSetPayload 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
+func NewCreateRecordSetPayloadWithDefaults() *CreateRecordSetPayload {
+ this := CreateRecordSetPayload{}
+ return &this
+}
+
+// GetComment returns the Comment field value if set, zero value otherwise.
+func (o *CreateRecordSetPayload) GetComment() string {
+ if o == nil || IsNil(o.Comment) {
+ var ret string
+ return ret
+ }
+ return *o.Comment
+}
+
+// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateRecordSetPayload) GetCommentOk() (*string, bool) {
+ if o == nil || IsNil(o.Comment) {
+ return nil, false
+ }
+ return o.Comment, true
+}
+
+// HasComment returns a boolean if a field has been set.
+func (o *CreateRecordSetPayload) HasComment() bool {
+ if o != nil && !IsNil(o.Comment) {
+ return true
+ }
+
+ return false
+}
+
+// SetComment gets a reference to the given string and assigns it to the Comment field.
+func (o *CreateRecordSetPayload) SetComment(v string) {
+ o.Comment = &v
+}
+
+// GetName returns the Name field value
+func (o *CreateRecordSetPayload) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *CreateRecordSetPayload) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *CreateRecordSetPayload) SetName(v string) {
+ o.Name = v
+}
+
+// GetRecords returns the Records field value
+func (o *CreateRecordSetPayload) GetRecords() []RecordPayload {
+ if o == nil {
+ var ret []RecordPayload
+ return ret
+ }
+
+ return o.Records
+}
+
+// GetRecordsOk returns a tuple with the Records field value
+// and a boolean to check if the value has been set.
+func (o *CreateRecordSetPayload) GetRecordsOk() ([]RecordPayload, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Records, true
+}
+
+// SetRecords sets field value
+func (o *CreateRecordSetPayload) SetRecords(v []RecordPayload) {
+ o.Records = v
+}
+
+// GetTtl returns the Ttl field value if set, zero value otherwise.
+func (o *CreateRecordSetPayload) GetTtl() int32 {
+ if o == nil || IsNil(o.Ttl) {
+ var ret int32
+ return ret
+ }
+ return *o.Ttl
+}
+
+// GetTtlOk returns a tuple with the Ttl field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateRecordSetPayload) GetTtlOk() (*int32, bool) {
+ if o == nil || IsNil(o.Ttl) {
+ return nil, false
+ }
+ return o.Ttl, true
+}
+
+// HasTtl returns a boolean if a field has been set.
+func (o *CreateRecordSetPayload) HasTtl() bool {
+ if o != nil && !IsNil(o.Ttl) {
+ return true
+ }
+
+ return false
+}
+
+// SetTtl gets a reference to the given int32 and assigns it to the Ttl field.
+func (o *CreateRecordSetPayload) SetTtl(v int32) {
+ o.Ttl = &v
+}
+
+// GetType returns the Type field value
+func (o *CreateRecordSetPayload) GetType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *CreateRecordSetPayload) GetTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *CreateRecordSetPayload) SetType(v string) {
+ o.Type = v
+}
+
+func (o CreateRecordSetPayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o CreateRecordSetPayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Comment) {
+ toSerialize["comment"] = o.Comment
+ }
+ toSerialize["name"] = o.Name
+ toSerialize["records"] = o.Records
+ if !IsNil(o.Ttl) {
+ toSerialize["ttl"] = o.Ttl
+ }
+ toSerialize["type"] = o.Type
+ return toSerialize, nil
+}
+
+func (o *CreateRecordSetPayload) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ "records",
+ "type",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCreateRecordSetPayload := _CreateRecordSetPayload{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCreateRecordSetPayload)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CreateRecordSetPayload(varCreateRecordSetPayload)
+
+ return err
+}
+
+type NullableCreateRecordSetPayload struct {
+ value *CreateRecordSetPayload
+ isSet bool
+}
+
+func (v NullableCreateRecordSetPayload) Get() *CreateRecordSetPayload {
+ return v.value
+}
+
+func (v *NullableCreateRecordSetPayload) Set(val *CreateRecordSetPayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCreateRecordSetPayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCreateRecordSetPayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCreateRecordSetPayload(val *CreateRecordSetPayload) *NullableCreateRecordSetPayload {
+ return &NullableCreateRecordSetPayload{value: val, isSet: true}
+}
+
+func (v NullableCreateRecordSetPayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCreateRecordSetPayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_create_zone_payload.go b/services/dns/v1api/model_create_zone_payload.go
new file mode 100644
index 000000000..bcd3196b2
--- /dev/null
+++ b/services/dns/v1api/model_create_zone_payload.go
@@ -0,0 +1,663 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the CreateZonePayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &CreateZonePayload{}
+
+// CreateZonePayload Zone to create.
+type CreateZonePayload struct {
+ // access control list
+ Acl *string `json:"acl,omitempty"`
+ // contact e-mail for the zone
+ ContactEmail *string `json:"contactEmail,omitempty"`
+ // default time to live
+ DefaultTTL *int32 `json:"defaultTTL,omitempty"`
+ // description of the zone
+ Description *string `json:"description,omitempty"`
+ // zone name
+ DnsName string `json:"dnsName"`
+ // expire time
+ ExpireTime *int32 `json:"expireTime,omitempty"`
+ // optional extensions
+ Extensions *ZoneExtensions `json:"extensions,omitempty"`
+ // if the zone is a reverse zone or not
+ IsReverseZone *bool `json:"isReverseZone,omitempty"`
+ // user given name
+ Name string `json:"name"`
+ // negative caching
+ NegativeCache *int32 `json:"negativeCache,omitempty"`
+ // primary name server for secondary zone
+ Primaries []string `json:"primaries,omitempty"`
+ // refresh time
+ RefreshTime *int32 `json:"refreshTime,omitempty"`
+ // retry time
+ RetryTime *int32 `json:"retryTime,omitempty"`
+ // zone type
+ Type *string `json:"type,omitempty"`
+}
+
+type _CreateZonePayload CreateZonePayload
+
+// NewCreateZonePayload instantiates a new CreateZonePayload 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
+func NewCreateZonePayload(dnsName string, name string) *CreateZonePayload {
+ this := CreateZonePayload{}
+ var acl string = "0.0.0.0/0,::/0"
+ this.Acl = &acl
+ var contactEmail string = "hostmaster@stackit.cloud"
+ this.ContactEmail = &contactEmail
+ var defaultTTL int32 = 3600
+ this.DefaultTTL = &defaultTTL
+ this.DnsName = dnsName
+ var expireTime int32 = 1209600
+ this.ExpireTime = &expireTime
+ var isReverseZone bool = false
+ this.IsReverseZone = &isReverseZone
+ this.Name = name
+ var refreshTime int32 = 3600
+ this.RefreshTime = &refreshTime
+ var retryTime int32 = 600
+ this.RetryTime = &retryTime
+ var types string = "primary"
+ this.Type = &types
+ return &this
+}
+
+// NewCreateZonePayloadWithDefaults instantiates a new CreateZonePayload 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
+func NewCreateZonePayloadWithDefaults() *CreateZonePayload {
+ this := CreateZonePayload{}
+ var acl string = "0.0.0.0/0,::/0"
+ this.Acl = &acl
+ var contactEmail string = "hostmaster@stackit.cloud"
+ this.ContactEmail = &contactEmail
+ var defaultTTL int32 = 3600
+ this.DefaultTTL = &defaultTTL
+ var expireTime int32 = 1209600
+ this.ExpireTime = &expireTime
+ var isReverseZone bool = false
+ this.IsReverseZone = &isReverseZone
+ var refreshTime int32 = 3600
+ this.RefreshTime = &refreshTime
+ var retryTime int32 = 600
+ this.RetryTime = &retryTime
+ var types string = "primary"
+ this.Type = &types
+ return &this
+}
+
+// GetAcl returns the Acl field value if set, zero value otherwise.
+func (o *CreateZonePayload) GetAcl() string {
+ if o == nil || IsNil(o.Acl) {
+ var ret string
+ return ret
+ }
+ return *o.Acl
+}
+
+// GetAclOk returns a tuple with the Acl field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateZonePayload) GetAclOk() (*string, bool) {
+ if o == nil || IsNil(o.Acl) {
+ return nil, false
+ }
+ return o.Acl, true
+}
+
+// HasAcl returns a boolean if a field has been set.
+func (o *CreateZonePayload) HasAcl() bool {
+ if o != nil && !IsNil(o.Acl) {
+ return true
+ }
+
+ return false
+}
+
+// SetAcl gets a reference to the given string and assigns it to the Acl field.
+func (o *CreateZonePayload) SetAcl(v string) {
+ o.Acl = &v
+}
+
+// GetContactEmail returns the ContactEmail field value if set, zero value otherwise.
+func (o *CreateZonePayload) GetContactEmail() string {
+ if o == nil || IsNil(o.ContactEmail) {
+ var ret string
+ return ret
+ }
+ return *o.ContactEmail
+}
+
+// GetContactEmailOk returns a tuple with the ContactEmail field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateZonePayload) GetContactEmailOk() (*string, bool) {
+ if o == nil || IsNil(o.ContactEmail) {
+ return nil, false
+ }
+ return o.ContactEmail, true
+}
+
+// HasContactEmail returns a boolean if a field has been set.
+func (o *CreateZonePayload) HasContactEmail() bool {
+ if o != nil && !IsNil(o.ContactEmail) {
+ return true
+ }
+
+ return false
+}
+
+// SetContactEmail gets a reference to the given string and assigns it to the ContactEmail field.
+func (o *CreateZonePayload) SetContactEmail(v string) {
+ o.ContactEmail = &v
+}
+
+// GetDefaultTTL returns the DefaultTTL field value if set, zero value otherwise.
+func (o *CreateZonePayload) GetDefaultTTL() int32 {
+ if o == nil || IsNil(o.DefaultTTL) {
+ var ret int32
+ return ret
+ }
+ return *o.DefaultTTL
+}
+
+// GetDefaultTTLOk returns a tuple with the DefaultTTL field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateZonePayload) GetDefaultTTLOk() (*int32, bool) {
+ if o == nil || IsNil(o.DefaultTTL) {
+ return nil, false
+ }
+ return o.DefaultTTL, true
+}
+
+// HasDefaultTTL returns a boolean if a field has been set.
+func (o *CreateZonePayload) HasDefaultTTL() bool {
+ if o != nil && !IsNil(o.DefaultTTL) {
+ return true
+ }
+
+ return false
+}
+
+// SetDefaultTTL gets a reference to the given int32 and assigns it to the DefaultTTL field.
+func (o *CreateZonePayload) SetDefaultTTL(v int32) {
+ o.DefaultTTL = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *CreateZonePayload) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ var ret string
+ return ret
+ }
+ return *o.Description
+}
+
+// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateZonePayload) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
+ return nil, false
+ }
+ return o.Description, true
+}
+
+// HasDescription returns a boolean if a field has been set.
+func (o *CreateZonePayload) HasDescription() bool {
+ if o != nil && !IsNil(o.Description) {
+ return true
+ }
+
+ return false
+}
+
+// SetDescription gets a reference to the given string and assigns it to the Description field.
+func (o *CreateZonePayload) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetDnsName returns the DnsName field value
+func (o *CreateZonePayload) GetDnsName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.DnsName
+}
+
+// GetDnsNameOk returns a tuple with the DnsName field value
+// and a boolean to check if the value has been set.
+func (o *CreateZonePayload) GetDnsNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DnsName, true
+}
+
+// SetDnsName sets field value
+func (o *CreateZonePayload) SetDnsName(v string) {
+ o.DnsName = v
+}
+
+// GetExpireTime returns the ExpireTime field value if set, zero value otherwise.
+func (o *CreateZonePayload) GetExpireTime() int32 {
+ if o == nil || IsNil(o.ExpireTime) {
+ var ret int32
+ return ret
+ }
+ return *o.ExpireTime
+}
+
+// GetExpireTimeOk returns a tuple with the ExpireTime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateZonePayload) GetExpireTimeOk() (*int32, bool) {
+ if o == nil || IsNil(o.ExpireTime) {
+ return nil, false
+ }
+ return o.ExpireTime, true
+}
+
+// HasExpireTime returns a boolean if a field has been set.
+func (o *CreateZonePayload) HasExpireTime() bool {
+ if o != nil && !IsNil(o.ExpireTime) {
+ return true
+ }
+
+ return false
+}
+
+// SetExpireTime gets a reference to the given int32 and assigns it to the ExpireTime field.
+func (o *CreateZonePayload) SetExpireTime(v int32) {
+ o.ExpireTime = &v
+}
+
+// GetExtensions returns the Extensions field value if set, zero value otherwise.
+func (o *CreateZonePayload) GetExtensions() ZoneExtensions {
+ if o == nil || IsNil(o.Extensions) {
+ var ret ZoneExtensions
+ return ret
+ }
+ return *o.Extensions
+}
+
+// GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateZonePayload) GetExtensionsOk() (*ZoneExtensions, bool) {
+ if o == nil || IsNil(o.Extensions) {
+ return nil, false
+ }
+ return o.Extensions, true
+}
+
+// HasExtensions returns a boolean if a field has been set.
+func (o *CreateZonePayload) HasExtensions() bool {
+ if o != nil && !IsNil(o.Extensions) {
+ return true
+ }
+
+ return false
+}
+
+// SetExtensions gets a reference to the given ZoneExtensions and assigns it to the Extensions field.
+func (o *CreateZonePayload) SetExtensions(v ZoneExtensions) {
+ o.Extensions = &v
+}
+
+// GetIsReverseZone returns the IsReverseZone field value if set, zero value otherwise.
+func (o *CreateZonePayload) GetIsReverseZone() bool {
+ if o == nil || IsNil(o.IsReverseZone) {
+ var ret bool
+ return ret
+ }
+ return *o.IsReverseZone
+}
+
+// GetIsReverseZoneOk returns a tuple with the IsReverseZone field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateZonePayload) GetIsReverseZoneOk() (*bool, bool) {
+ if o == nil || IsNil(o.IsReverseZone) {
+ return nil, false
+ }
+ return o.IsReverseZone, true
+}
+
+// HasIsReverseZone returns a boolean if a field has been set.
+func (o *CreateZonePayload) HasIsReverseZone() bool {
+ if o != nil && !IsNil(o.IsReverseZone) {
+ return true
+ }
+
+ return false
+}
+
+// SetIsReverseZone gets a reference to the given bool and assigns it to the IsReverseZone field.
+func (o *CreateZonePayload) SetIsReverseZone(v bool) {
+ o.IsReverseZone = &v
+}
+
+// GetName returns the Name field value
+func (o *CreateZonePayload) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *CreateZonePayload) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *CreateZonePayload) SetName(v string) {
+ o.Name = v
+}
+
+// GetNegativeCache returns the NegativeCache field value if set, zero value otherwise.
+func (o *CreateZonePayload) GetNegativeCache() int32 {
+ if o == nil || IsNil(o.NegativeCache) {
+ var ret int32
+ return ret
+ }
+ return *o.NegativeCache
+}
+
+// GetNegativeCacheOk returns a tuple with the NegativeCache field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateZonePayload) GetNegativeCacheOk() (*int32, bool) {
+ if o == nil || IsNil(o.NegativeCache) {
+ return nil, false
+ }
+ return o.NegativeCache, true
+}
+
+// HasNegativeCache returns a boolean if a field has been set.
+func (o *CreateZonePayload) HasNegativeCache() bool {
+ if o != nil && !IsNil(o.NegativeCache) {
+ return true
+ }
+
+ return false
+}
+
+// SetNegativeCache gets a reference to the given int32 and assigns it to the NegativeCache field.
+func (o *CreateZonePayload) SetNegativeCache(v int32) {
+ o.NegativeCache = &v
+}
+
+// GetPrimaries returns the Primaries field value if set, zero value otherwise.
+func (o *CreateZonePayload) GetPrimaries() []string {
+ if o == nil || IsNil(o.Primaries) {
+ var ret []string
+ return ret
+ }
+ return o.Primaries
+}
+
+// GetPrimariesOk returns a tuple with the Primaries field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateZonePayload) GetPrimariesOk() ([]string, bool) {
+ if o == nil || IsNil(o.Primaries) {
+ return nil, false
+ }
+ return o.Primaries, true
+}
+
+// HasPrimaries returns a boolean if a field has been set.
+func (o *CreateZonePayload) HasPrimaries() bool {
+ if o != nil && !IsNil(o.Primaries) {
+ return true
+ }
+
+ return false
+}
+
+// SetPrimaries gets a reference to the given []string and assigns it to the Primaries field.
+func (o *CreateZonePayload) SetPrimaries(v []string) {
+ o.Primaries = v
+}
+
+// GetRefreshTime returns the RefreshTime field value if set, zero value otherwise.
+func (o *CreateZonePayload) GetRefreshTime() int32 {
+ if o == nil || IsNil(o.RefreshTime) {
+ var ret int32
+ return ret
+ }
+ return *o.RefreshTime
+}
+
+// GetRefreshTimeOk returns a tuple with the RefreshTime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateZonePayload) GetRefreshTimeOk() (*int32, bool) {
+ if o == nil || IsNil(o.RefreshTime) {
+ return nil, false
+ }
+ return o.RefreshTime, true
+}
+
+// HasRefreshTime returns a boolean if a field has been set.
+func (o *CreateZonePayload) HasRefreshTime() bool {
+ if o != nil && !IsNil(o.RefreshTime) {
+ return true
+ }
+
+ return false
+}
+
+// SetRefreshTime gets a reference to the given int32 and assigns it to the RefreshTime field.
+func (o *CreateZonePayload) SetRefreshTime(v int32) {
+ o.RefreshTime = &v
+}
+
+// GetRetryTime returns the RetryTime field value if set, zero value otherwise.
+func (o *CreateZonePayload) GetRetryTime() int32 {
+ if o == nil || IsNil(o.RetryTime) {
+ var ret int32
+ return ret
+ }
+ return *o.RetryTime
+}
+
+// GetRetryTimeOk returns a tuple with the RetryTime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateZonePayload) GetRetryTimeOk() (*int32, bool) {
+ if o == nil || IsNil(o.RetryTime) {
+ return nil, false
+ }
+ return o.RetryTime, true
+}
+
+// HasRetryTime returns a boolean if a field has been set.
+func (o *CreateZonePayload) HasRetryTime() bool {
+ if o != nil && !IsNil(o.RetryTime) {
+ return true
+ }
+
+ return false
+}
+
+// SetRetryTime gets a reference to the given int32 and assigns it to the RetryTime field.
+func (o *CreateZonePayload) SetRetryTime(v int32) {
+ o.RetryTime = &v
+}
+
+// GetType returns the Type field value if set, zero value otherwise.
+func (o *CreateZonePayload) GetType() string {
+ if o == nil || IsNil(o.Type) {
+ var ret string
+ return ret
+ }
+ return *o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CreateZonePayload) GetTypeOk() (*string, bool) {
+ if o == nil || IsNil(o.Type) {
+ return nil, false
+ }
+ return o.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (o *CreateZonePayload) HasType() bool {
+ if o != nil && !IsNil(o.Type) {
+ return true
+ }
+
+ return false
+}
+
+// SetType gets a reference to the given string and assigns it to the Type field.
+func (o *CreateZonePayload) SetType(v string) {
+ o.Type = &v
+}
+
+func (o CreateZonePayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o CreateZonePayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Acl) {
+ toSerialize["acl"] = o.Acl
+ }
+ if !IsNil(o.ContactEmail) {
+ toSerialize["contactEmail"] = o.ContactEmail
+ }
+ if !IsNil(o.DefaultTTL) {
+ toSerialize["defaultTTL"] = o.DefaultTTL
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ toSerialize["dnsName"] = o.DnsName
+ if !IsNil(o.ExpireTime) {
+ toSerialize["expireTime"] = o.ExpireTime
+ }
+ if !IsNil(o.Extensions) {
+ toSerialize["extensions"] = o.Extensions
+ }
+ if !IsNil(o.IsReverseZone) {
+ toSerialize["isReverseZone"] = o.IsReverseZone
+ }
+ toSerialize["name"] = o.Name
+ if !IsNil(o.NegativeCache) {
+ toSerialize["negativeCache"] = o.NegativeCache
+ }
+ if !IsNil(o.Primaries) {
+ toSerialize["primaries"] = o.Primaries
+ }
+ if !IsNil(o.RefreshTime) {
+ toSerialize["refreshTime"] = o.RefreshTime
+ }
+ if !IsNil(o.RetryTime) {
+ toSerialize["retryTime"] = o.RetryTime
+ }
+ if !IsNil(o.Type) {
+ toSerialize["type"] = o.Type
+ }
+ return toSerialize, nil
+}
+
+func (o *CreateZonePayload) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "dnsName",
+ "name",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCreateZonePayload := _CreateZonePayload{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCreateZonePayload)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CreateZonePayload(varCreateZonePayload)
+
+ return err
+}
+
+type NullableCreateZonePayload struct {
+ value *CreateZonePayload
+ isSet bool
+}
+
+func (v NullableCreateZonePayload) Get() *CreateZonePayload {
+ return v.value
+}
+
+func (v *NullableCreateZonePayload) Set(val *CreateZonePayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCreateZonePayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCreateZonePayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCreateZonePayload(val *CreateZonePayload) *NullableCreateZonePayload {
+ return &NullableCreateZonePayload{value: val, isSet: true}
+}
+
+func (v NullableCreateZonePayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCreateZonePayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_delete_label_response.go b/services/dns/v1api/model_delete_label_response.go
new file mode 100644
index 000000000..f002aef6c
--- /dev/null
+++ b/services/dns/v1api/model_delete_label_response.go
@@ -0,0 +1,161 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the DeleteLabelResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &DeleteLabelResponse{}
+
+// DeleteLabelResponse ResponseDeleteLabel.
+type DeleteLabelResponse struct {
+ Label *Label `json:"label,omitempty"`
+ Message *string `json:"message,omitempty"`
+}
+
+// NewDeleteLabelResponse instantiates a new DeleteLabelResponse 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
+func NewDeleteLabelResponse() *DeleteLabelResponse {
+ this := DeleteLabelResponse{}
+ return &this
+}
+
+// NewDeleteLabelResponseWithDefaults instantiates a new DeleteLabelResponse 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
+func NewDeleteLabelResponseWithDefaults() *DeleteLabelResponse {
+ this := DeleteLabelResponse{}
+ return &this
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *DeleteLabelResponse) GetLabel() Label {
+ if o == nil || IsNil(o.Label) {
+ var ret Label
+ return ret
+ }
+ return *o.Label
+}
+
+// GetLabelOk returns a tuple with the Label field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *DeleteLabelResponse) GetLabelOk() (*Label, bool) {
+ if o == nil || IsNil(o.Label) {
+ return nil, false
+ }
+ return o.Label, true
+}
+
+// HasLabel returns a boolean if a field has been set.
+func (o *DeleteLabelResponse) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given Label and assigns it to the Label field.
+func (o *DeleteLabelResponse) SetLabel(v Label) {
+ o.Label = &v
+}
+
+// GetMessage returns the Message field value if set, zero value otherwise.
+func (o *DeleteLabelResponse) GetMessage() string {
+ if o == nil || IsNil(o.Message) {
+ var ret string
+ return ret
+ }
+ return *o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *DeleteLabelResponse) GetMessageOk() (*string, bool) {
+ if o == nil || IsNil(o.Message) {
+ return nil, false
+ }
+ return o.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (o *DeleteLabelResponse) HasMessage() bool {
+ if o != nil && !IsNil(o.Message) {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage gets a reference to the given string and assigns it to the Message field.
+func (o *DeleteLabelResponse) SetMessage(v string) {
+ o.Message = &v
+}
+
+func (o DeleteLabelResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o DeleteLabelResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Label) {
+ toSerialize["label"] = o.Label
+ }
+ if !IsNil(o.Message) {
+ toSerialize["message"] = o.Message
+ }
+ return toSerialize, nil
+}
+
+type NullableDeleteLabelResponse struct {
+ value *DeleteLabelResponse
+ isSet bool
+}
+
+func (v NullableDeleteLabelResponse) Get() *DeleteLabelResponse {
+ return v.value
+}
+
+func (v *NullableDeleteLabelResponse) Set(val *DeleteLabelResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeleteLabelResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeleteLabelResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeleteLabelResponse(val *DeleteLabelResponse) *NullableDeleteLabelResponse {
+ return &NullableDeleteLabelResponse{value: val, isSet: true}
+}
+
+func (v NullableDeleteLabelResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeleteLabelResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_domain_extensions.go b/services/dns/v1api/model_domain_extensions.go
new file mode 100644
index 000000000..c75995e97
--- /dev/null
+++ b/services/dns/v1api/model_domain_extensions.go
@@ -0,0 +1,125 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the DomainExtensions type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &DomainExtensions{}
+
+// DomainExtensions struct for DomainExtensions
+type DomainExtensions struct {
+ ObservabilityExtension *DomainObservabilityExtension `json:"observabilityExtension,omitempty"`
+}
+
+// NewDomainExtensions instantiates a new DomainExtensions 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
+func NewDomainExtensions() *DomainExtensions {
+ this := DomainExtensions{}
+ return &this
+}
+
+// NewDomainExtensionsWithDefaults instantiates a new DomainExtensions 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
+func NewDomainExtensionsWithDefaults() *DomainExtensions {
+ this := DomainExtensions{}
+ return &this
+}
+
+// GetObservabilityExtension returns the ObservabilityExtension field value if set, zero value otherwise.
+func (o *DomainExtensions) GetObservabilityExtension() DomainObservabilityExtension {
+ if o == nil || IsNil(o.ObservabilityExtension) {
+ var ret DomainObservabilityExtension
+ return ret
+ }
+ return *o.ObservabilityExtension
+}
+
+// GetObservabilityExtensionOk returns a tuple with the ObservabilityExtension field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *DomainExtensions) GetObservabilityExtensionOk() (*DomainObservabilityExtension, bool) {
+ if o == nil || IsNil(o.ObservabilityExtension) {
+ return nil, false
+ }
+ return o.ObservabilityExtension, true
+}
+
+// HasObservabilityExtension returns a boolean if a field has been set.
+func (o *DomainExtensions) HasObservabilityExtension() bool {
+ if o != nil && !IsNil(o.ObservabilityExtension) {
+ return true
+ }
+
+ return false
+}
+
+// SetObservabilityExtension gets a reference to the given DomainObservabilityExtension and assigns it to the ObservabilityExtension field.
+func (o *DomainExtensions) SetObservabilityExtension(v DomainObservabilityExtension) {
+ o.ObservabilityExtension = &v
+}
+
+func (o DomainExtensions) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o DomainExtensions) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.ObservabilityExtension) {
+ toSerialize["observabilityExtension"] = o.ObservabilityExtension
+ }
+ return toSerialize, nil
+}
+
+type NullableDomainExtensions struct {
+ value *DomainExtensions
+ isSet bool
+}
+
+func (v NullableDomainExtensions) Get() *DomainExtensions {
+ return v.value
+}
+
+func (v *NullableDomainExtensions) Set(val *DomainExtensions) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDomainExtensions) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDomainExtensions) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDomainExtensions(val *DomainExtensions) *NullableDomainExtensions {
+ return &NullableDomainExtensions{value: val, isSet: true}
+}
+
+func (v NullableDomainExtensions) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDomainExtensions) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_domain_observability_extension.go b/services/dns/v1api/model_domain_observability_extension.go
new file mode 100644
index 000000000..560b1cd23
--- /dev/null
+++ b/services/dns/v1api/model_domain_observability_extension.go
@@ -0,0 +1,193 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the DomainObservabilityExtension type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &DomainObservabilityExtension{}
+
+// DomainObservabilityExtension struct for DomainObservabilityExtension
+type DomainObservabilityExtension struct {
+ ObservabilityInstanceId string `json:"observabilityInstanceId"`
+ State *string `json:"state,omitempty"`
+}
+
+type _DomainObservabilityExtension DomainObservabilityExtension
+
+// NewDomainObservabilityExtension instantiates a new DomainObservabilityExtension 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
+func NewDomainObservabilityExtension(observabilityInstanceId string) *DomainObservabilityExtension {
+ this := DomainObservabilityExtension{}
+ this.ObservabilityInstanceId = observabilityInstanceId
+ return &this
+}
+
+// NewDomainObservabilityExtensionWithDefaults instantiates a new DomainObservabilityExtension 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
+func NewDomainObservabilityExtensionWithDefaults() *DomainObservabilityExtension {
+ this := DomainObservabilityExtension{}
+ return &this
+}
+
+// GetObservabilityInstanceId returns the ObservabilityInstanceId field value
+func (o *DomainObservabilityExtension) GetObservabilityInstanceId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ObservabilityInstanceId
+}
+
+// GetObservabilityInstanceIdOk returns a tuple with the ObservabilityInstanceId field value
+// and a boolean to check if the value has been set.
+func (o *DomainObservabilityExtension) GetObservabilityInstanceIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ObservabilityInstanceId, true
+}
+
+// SetObservabilityInstanceId sets field value
+func (o *DomainObservabilityExtension) SetObservabilityInstanceId(v string) {
+ o.ObservabilityInstanceId = v
+}
+
+// GetState returns the State field value if set, zero value otherwise.
+func (o *DomainObservabilityExtension) GetState() string {
+ if o == nil || IsNil(o.State) {
+ var ret string
+ return ret
+ }
+ return *o.State
+}
+
+// GetStateOk returns a tuple with the State field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *DomainObservabilityExtension) GetStateOk() (*string, bool) {
+ if o == nil || IsNil(o.State) {
+ return nil, false
+ }
+ return o.State, true
+}
+
+// HasState returns a boolean if a field has been set.
+func (o *DomainObservabilityExtension) HasState() bool {
+ if o != nil && !IsNil(o.State) {
+ return true
+ }
+
+ return false
+}
+
+// SetState gets a reference to the given string and assigns it to the State field.
+func (o *DomainObservabilityExtension) SetState(v string) {
+ o.State = &v
+}
+
+func (o DomainObservabilityExtension) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o DomainObservabilityExtension) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["observabilityInstanceId"] = o.ObservabilityInstanceId
+ if !IsNil(o.State) {
+ toSerialize["state"] = o.State
+ }
+ return toSerialize, nil
+}
+
+func (o *DomainObservabilityExtension) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "observabilityInstanceId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varDomainObservabilityExtension := _DomainObservabilityExtension{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varDomainObservabilityExtension)
+
+ if err != nil {
+ return err
+ }
+
+ *o = DomainObservabilityExtension(varDomainObservabilityExtension)
+
+ return err
+}
+
+type NullableDomainObservabilityExtension struct {
+ value *DomainObservabilityExtension
+ isSet bool
+}
+
+func (v NullableDomainObservabilityExtension) Get() *DomainObservabilityExtension {
+ return v.value
+}
+
+func (v *NullableDomainObservabilityExtension) Set(val *DomainObservabilityExtension) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDomainObservabilityExtension) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDomainObservabilityExtension) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDomainObservabilityExtension(val *DomainObservabilityExtension) *NullableDomainObservabilityExtension {
+ return &NullableDomainObservabilityExtension{value: val, isSet: true}
+}
+
+func (v NullableDomainObservabilityExtension) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDomainObservabilityExtension) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_error_message.go b/services/dns/v1api/model_error_message.go
new file mode 100644
index 000000000..248b796ed
--- /dev/null
+++ b/services/dns/v1api/model_error_message.go
@@ -0,0 +1,161 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the ErrorMessage type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ErrorMessage{}
+
+// ErrorMessage struct for ErrorMessage
+type ErrorMessage struct {
+ Error *string `json:"error,omitempty"`
+ Message *string `json:"message,omitempty"`
+}
+
+// NewErrorMessage instantiates a new ErrorMessage 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
+func NewErrorMessage() *ErrorMessage {
+ this := ErrorMessage{}
+ return &this
+}
+
+// NewErrorMessageWithDefaults instantiates a new ErrorMessage 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
+func NewErrorMessageWithDefaults() *ErrorMessage {
+ this := ErrorMessage{}
+ return &this
+}
+
+// GetError returns the Error field value if set, zero value otherwise.
+func (o *ErrorMessage) GetError() string {
+ if o == nil || IsNil(o.Error) {
+ var ret string
+ return ret
+ }
+ return *o.Error
+}
+
+// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ErrorMessage) GetErrorOk() (*string, bool) {
+ if o == nil || IsNil(o.Error) {
+ return nil, false
+ }
+ return o.Error, true
+}
+
+// HasError returns a boolean if a field has been set.
+func (o *ErrorMessage) HasError() bool {
+ if o != nil && !IsNil(o.Error) {
+ return true
+ }
+
+ return false
+}
+
+// SetError gets a reference to the given string and assigns it to the Error field.
+func (o *ErrorMessage) SetError(v string) {
+ o.Error = &v
+}
+
+// GetMessage returns the Message field value if set, zero value otherwise.
+func (o *ErrorMessage) GetMessage() string {
+ if o == nil || IsNil(o.Message) {
+ var ret string
+ return ret
+ }
+ return *o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ErrorMessage) GetMessageOk() (*string, bool) {
+ if o == nil || IsNil(o.Message) {
+ return nil, false
+ }
+ return o.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (o *ErrorMessage) HasMessage() bool {
+ if o != nil && !IsNil(o.Message) {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage gets a reference to the given string and assigns it to the Message field.
+func (o *ErrorMessage) SetMessage(v string) {
+ o.Message = &v
+}
+
+func (o ErrorMessage) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ErrorMessage) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Error) {
+ toSerialize["error"] = o.Error
+ }
+ if !IsNil(o.Message) {
+ toSerialize["message"] = o.Message
+ }
+ return toSerialize, nil
+}
+
+type NullableErrorMessage struct {
+ value *ErrorMessage
+ isSet bool
+}
+
+func (v NullableErrorMessage) Get() *ErrorMessage {
+ return v.value
+}
+
+func (v *NullableErrorMessage) Set(val *ErrorMessage) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableErrorMessage) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableErrorMessage) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableErrorMessage(val *ErrorMessage) *NullableErrorMessage {
+ return &NullableErrorMessage{value: val, isSet: true}
+}
+
+func (v NullableErrorMessage) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableErrorMessage) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_export_record_sets_payload.go b/services/dns/v1api/model_export_record_sets_payload.go
new file mode 100644
index 000000000..04fec1baf
--- /dev/null
+++ b/services/dns/v1api/model_export_record_sets_payload.go
@@ -0,0 +1,169 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the ExportRecordSetsPayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ExportRecordSetsPayload{}
+
+// ExportRecordSetsPayload struct for ExportRecordSetsPayload
+type ExportRecordSetsPayload struct {
+ ExportAsFQDN *bool `json:"exportAsFQDN,omitempty"`
+ Format *string `json:"format,omitempty"`
+}
+
+// NewExportRecordSetsPayload instantiates a new ExportRecordSetsPayload 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
+func NewExportRecordSetsPayload() *ExportRecordSetsPayload {
+ this := ExportRecordSetsPayload{}
+ var exportAsFQDN bool = true
+ this.ExportAsFQDN = &exportAsFQDN
+ var format string = "csv"
+ this.Format = &format
+ return &this
+}
+
+// NewExportRecordSetsPayloadWithDefaults instantiates a new ExportRecordSetsPayload 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
+func NewExportRecordSetsPayloadWithDefaults() *ExportRecordSetsPayload {
+ this := ExportRecordSetsPayload{}
+ var exportAsFQDN bool = true
+ this.ExportAsFQDN = &exportAsFQDN
+ var format string = "csv"
+ this.Format = &format
+ return &this
+}
+
+// GetExportAsFQDN returns the ExportAsFQDN field value if set, zero value otherwise.
+func (o *ExportRecordSetsPayload) GetExportAsFQDN() bool {
+ if o == nil || IsNil(o.ExportAsFQDN) {
+ var ret bool
+ return ret
+ }
+ return *o.ExportAsFQDN
+}
+
+// GetExportAsFQDNOk returns a tuple with the ExportAsFQDN field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ExportRecordSetsPayload) GetExportAsFQDNOk() (*bool, bool) {
+ if o == nil || IsNil(o.ExportAsFQDN) {
+ return nil, false
+ }
+ return o.ExportAsFQDN, true
+}
+
+// HasExportAsFQDN returns a boolean if a field has been set.
+func (o *ExportRecordSetsPayload) HasExportAsFQDN() bool {
+ if o != nil && !IsNil(o.ExportAsFQDN) {
+ return true
+ }
+
+ return false
+}
+
+// SetExportAsFQDN gets a reference to the given bool and assigns it to the ExportAsFQDN field.
+func (o *ExportRecordSetsPayload) SetExportAsFQDN(v bool) {
+ o.ExportAsFQDN = &v
+}
+
+// GetFormat returns the Format field value if set, zero value otherwise.
+func (o *ExportRecordSetsPayload) GetFormat() string {
+ if o == nil || IsNil(o.Format) {
+ var ret string
+ return ret
+ }
+ return *o.Format
+}
+
+// GetFormatOk returns a tuple with the Format field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ExportRecordSetsPayload) GetFormatOk() (*string, bool) {
+ if o == nil || IsNil(o.Format) {
+ return nil, false
+ }
+ return o.Format, true
+}
+
+// HasFormat returns a boolean if a field has been set.
+func (o *ExportRecordSetsPayload) HasFormat() bool {
+ if o != nil && !IsNil(o.Format) {
+ return true
+ }
+
+ return false
+}
+
+// SetFormat gets a reference to the given string and assigns it to the Format field.
+func (o *ExportRecordSetsPayload) SetFormat(v string) {
+ o.Format = &v
+}
+
+func (o ExportRecordSetsPayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ExportRecordSetsPayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.ExportAsFQDN) {
+ toSerialize["exportAsFQDN"] = o.ExportAsFQDN
+ }
+ if !IsNil(o.Format) {
+ toSerialize["format"] = o.Format
+ }
+ return toSerialize, nil
+}
+
+type NullableExportRecordSetsPayload struct {
+ value *ExportRecordSetsPayload
+ isSet bool
+}
+
+func (v NullableExportRecordSetsPayload) Get() *ExportRecordSetsPayload {
+ return v.value
+}
+
+func (v *NullableExportRecordSetsPayload) Set(val *ExportRecordSetsPayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableExportRecordSetsPayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableExportRecordSetsPayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableExportRecordSetsPayload(val *ExportRecordSetsPayload) *NullableExportRecordSetsPayload {
+ return &NullableExportRecordSetsPayload{value: val, isSet: true}
+}
+
+func (v NullableExportRecordSetsPayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableExportRecordSetsPayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_import_record_sets_payload.go b/services/dns/v1api/model_import_record_sets_payload.go
new file mode 100644
index 000000000..2d7d62f34
--- /dev/null
+++ b/services/dns/v1api/model_import_record_sets_payload.go
@@ -0,0 +1,125 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the ImportRecordSetsPayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ImportRecordSetsPayload{}
+
+// ImportRecordSetsPayload struct for ImportRecordSetsPayload
+type ImportRecordSetsPayload struct {
+ RrSets []ZoneModelsImportRecordModel `json:"rrSets,omitempty"`
+}
+
+// NewImportRecordSetsPayload instantiates a new ImportRecordSetsPayload 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
+func NewImportRecordSetsPayload() *ImportRecordSetsPayload {
+ this := ImportRecordSetsPayload{}
+ return &this
+}
+
+// NewImportRecordSetsPayloadWithDefaults instantiates a new ImportRecordSetsPayload 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
+func NewImportRecordSetsPayloadWithDefaults() *ImportRecordSetsPayload {
+ this := ImportRecordSetsPayload{}
+ return &this
+}
+
+// GetRrSets returns the RrSets field value if set, zero value otherwise.
+func (o *ImportRecordSetsPayload) GetRrSets() []ZoneModelsImportRecordModel {
+ if o == nil || IsNil(o.RrSets) {
+ var ret []ZoneModelsImportRecordModel
+ return ret
+ }
+ return o.RrSets
+}
+
+// GetRrSetsOk returns a tuple with the RrSets field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ImportRecordSetsPayload) GetRrSetsOk() ([]ZoneModelsImportRecordModel, bool) {
+ if o == nil || IsNil(o.RrSets) {
+ return nil, false
+ }
+ return o.RrSets, true
+}
+
+// HasRrSets returns a boolean if a field has been set.
+func (o *ImportRecordSetsPayload) HasRrSets() bool {
+ if o != nil && !IsNil(o.RrSets) {
+ return true
+ }
+
+ return false
+}
+
+// SetRrSets gets a reference to the given []ZoneModelsImportRecordModel and assigns it to the RrSets field.
+func (o *ImportRecordSetsPayload) SetRrSets(v []ZoneModelsImportRecordModel) {
+ o.RrSets = v
+}
+
+func (o ImportRecordSetsPayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ImportRecordSetsPayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.RrSets) {
+ toSerialize["rrSets"] = o.RrSets
+ }
+ return toSerialize, nil
+}
+
+type NullableImportRecordSetsPayload struct {
+ value *ImportRecordSetsPayload
+ isSet bool
+}
+
+func (v NullableImportRecordSetsPayload) Get() *ImportRecordSetsPayload {
+ return v.value
+}
+
+func (v *NullableImportRecordSetsPayload) Set(val *ImportRecordSetsPayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableImportRecordSetsPayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableImportRecordSetsPayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableImportRecordSetsPayload(val *ImportRecordSetsPayload) *NullableImportRecordSetsPayload {
+ return &NullableImportRecordSetsPayload{value: val, isSet: true}
+}
+
+func (v NullableImportRecordSetsPayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableImportRecordSetsPayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_import_record_sets_response.go b/services/dns/v1api/model_import_record_sets_response.go
new file mode 100644
index 000000000..222ffd155
--- /dev/null
+++ b/services/dns/v1api/model_import_record_sets_response.go
@@ -0,0 +1,193 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ImportRecordSetsResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ImportRecordSetsResponse{}
+
+// ImportRecordSetsResponse ImportSummaryResponse is the response of the import.
+type ImportRecordSetsResponse struct {
+ Message *string `json:"message,omitempty"`
+ Summary ImportSummary `json:"summary"`
+}
+
+type _ImportRecordSetsResponse ImportRecordSetsResponse
+
+// NewImportRecordSetsResponse instantiates a new ImportRecordSetsResponse 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
+func NewImportRecordSetsResponse(summary ImportSummary) *ImportRecordSetsResponse {
+ this := ImportRecordSetsResponse{}
+ this.Summary = summary
+ return &this
+}
+
+// NewImportRecordSetsResponseWithDefaults instantiates a new ImportRecordSetsResponse 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
+func NewImportRecordSetsResponseWithDefaults() *ImportRecordSetsResponse {
+ this := ImportRecordSetsResponse{}
+ return &this
+}
+
+// GetMessage returns the Message field value if set, zero value otherwise.
+func (o *ImportRecordSetsResponse) GetMessage() string {
+ if o == nil || IsNil(o.Message) {
+ var ret string
+ return ret
+ }
+ return *o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ImportRecordSetsResponse) GetMessageOk() (*string, bool) {
+ if o == nil || IsNil(o.Message) {
+ return nil, false
+ }
+ return o.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (o *ImportRecordSetsResponse) HasMessage() bool {
+ if o != nil && !IsNil(o.Message) {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage gets a reference to the given string and assigns it to the Message field.
+func (o *ImportRecordSetsResponse) SetMessage(v string) {
+ o.Message = &v
+}
+
+// GetSummary returns the Summary field value
+func (o *ImportRecordSetsResponse) GetSummary() ImportSummary {
+ if o == nil {
+ var ret ImportSummary
+ return ret
+ }
+
+ return o.Summary
+}
+
+// GetSummaryOk returns a tuple with the Summary field value
+// and a boolean to check if the value has been set.
+func (o *ImportRecordSetsResponse) GetSummaryOk() (*ImportSummary, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Summary, true
+}
+
+// SetSummary sets field value
+func (o *ImportRecordSetsResponse) SetSummary(v ImportSummary) {
+ o.Summary = v
+}
+
+func (o ImportRecordSetsResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ImportRecordSetsResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Message) {
+ toSerialize["message"] = o.Message
+ }
+ toSerialize["summary"] = o.Summary
+ return toSerialize, nil
+}
+
+func (o *ImportRecordSetsResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "summary",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varImportRecordSetsResponse := _ImportRecordSetsResponse{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varImportRecordSetsResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ImportRecordSetsResponse(varImportRecordSetsResponse)
+
+ return err
+}
+
+type NullableImportRecordSetsResponse struct {
+ value *ImportRecordSetsResponse
+ isSet bool
+}
+
+func (v NullableImportRecordSetsResponse) Get() *ImportRecordSetsResponse {
+ return v.value
+}
+
+func (v *NullableImportRecordSetsResponse) Set(val *ImportRecordSetsResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableImportRecordSetsResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableImportRecordSetsResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableImportRecordSetsResponse(val *ImportRecordSetsResponse) *NullableImportRecordSetsResponse {
+ return &NullableImportRecordSetsResponse{value: val, isSet: true}
+}
+
+func (v NullableImportRecordSetsResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableImportRecordSetsResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_import_summary.go b/services/dns/v1api/model_import_summary.go
new file mode 100644
index 000000000..d12fba9af
--- /dev/null
+++ b/services/dns/v1api/model_import_summary.go
@@ -0,0 +1,305 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the ImportSummary type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ImportSummary{}
+
+// ImportSummary ImportSummary is the summary of the import.
+type ImportSummary struct {
+ CreatedRRSets *int32 `json:"createdRRSets,omitempty"`
+ CreatedRecords *int32 `json:"createdRecords,omitempty"`
+ DeletedRRSets *int32 `json:"deletedRRSets,omitempty"`
+ DeletedRecords *int32 `json:"deletedRecords,omitempty"`
+ UpdatedRRSets *int32 `json:"updatedRRSets,omitempty"`
+ UpdatedRecords *int32 `json:"updatedRecords,omitempty"`
+}
+
+// NewImportSummary instantiates a new ImportSummary 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
+func NewImportSummary() *ImportSummary {
+ this := ImportSummary{}
+ return &this
+}
+
+// NewImportSummaryWithDefaults instantiates a new ImportSummary 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
+func NewImportSummaryWithDefaults() *ImportSummary {
+ this := ImportSummary{}
+ return &this
+}
+
+// GetCreatedRRSets returns the CreatedRRSets field value if set, zero value otherwise.
+func (o *ImportSummary) GetCreatedRRSets() int32 {
+ if o == nil || IsNil(o.CreatedRRSets) {
+ var ret int32
+ return ret
+ }
+ return *o.CreatedRRSets
+}
+
+// GetCreatedRRSetsOk returns a tuple with the CreatedRRSets field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ImportSummary) GetCreatedRRSetsOk() (*int32, bool) {
+ if o == nil || IsNil(o.CreatedRRSets) {
+ return nil, false
+ }
+ return o.CreatedRRSets, true
+}
+
+// HasCreatedRRSets returns a boolean if a field has been set.
+func (o *ImportSummary) HasCreatedRRSets() bool {
+ if o != nil && !IsNil(o.CreatedRRSets) {
+ return true
+ }
+
+ return false
+}
+
+// SetCreatedRRSets gets a reference to the given int32 and assigns it to the CreatedRRSets field.
+func (o *ImportSummary) SetCreatedRRSets(v int32) {
+ o.CreatedRRSets = &v
+}
+
+// GetCreatedRecords returns the CreatedRecords field value if set, zero value otherwise.
+func (o *ImportSummary) GetCreatedRecords() int32 {
+ if o == nil || IsNil(o.CreatedRecords) {
+ var ret int32
+ return ret
+ }
+ return *o.CreatedRecords
+}
+
+// GetCreatedRecordsOk returns a tuple with the CreatedRecords field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ImportSummary) GetCreatedRecordsOk() (*int32, bool) {
+ if o == nil || IsNil(o.CreatedRecords) {
+ return nil, false
+ }
+ return o.CreatedRecords, true
+}
+
+// HasCreatedRecords returns a boolean if a field has been set.
+func (o *ImportSummary) HasCreatedRecords() bool {
+ if o != nil && !IsNil(o.CreatedRecords) {
+ return true
+ }
+
+ return false
+}
+
+// SetCreatedRecords gets a reference to the given int32 and assigns it to the CreatedRecords field.
+func (o *ImportSummary) SetCreatedRecords(v int32) {
+ o.CreatedRecords = &v
+}
+
+// GetDeletedRRSets returns the DeletedRRSets field value if set, zero value otherwise.
+func (o *ImportSummary) GetDeletedRRSets() int32 {
+ if o == nil || IsNil(o.DeletedRRSets) {
+ var ret int32
+ return ret
+ }
+ return *o.DeletedRRSets
+}
+
+// GetDeletedRRSetsOk returns a tuple with the DeletedRRSets field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ImportSummary) GetDeletedRRSetsOk() (*int32, bool) {
+ if o == nil || IsNil(o.DeletedRRSets) {
+ return nil, false
+ }
+ return o.DeletedRRSets, true
+}
+
+// HasDeletedRRSets returns a boolean if a field has been set.
+func (o *ImportSummary) HasDeletedRRSets() bool {
+ if o != nil && !IsNil(o.DeletedRRSets) {
+ return true
+ }
+
+ return false
+}
+
+// SetDeletedRRSets gets a reference to the given int32 and assigns it to the DeletedRRSets field.
+func (o *ImportSummary) SetDeletedRRSets(v int32) {
+ o.DeletedRRSets = &v
+}
+
+// GetDeletedRecords returns the DeletedRecords field value if set, zero value otherwise.
+func (o *ImportSummary) GetDeletedRecords() int32 {
+ if o == nil || IsNil(o.DeletedRecords) {
+ var ret int32
+ return ret
+ }
+ return *o.DeletedRecords
+}
+
+// GetDeletedRecordsOk returns a tuple with the DeletedRecords field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ImportSummary) GetDeletedRecordsOk() (*int32, bool) {
+ if o == nil || IsNil(o.DeletedRecords) {
+ return nil, false
+ }
+ return o.DeletedRecords, true
+}
+
+// HasDeletedRecords returns a boolean if a field has been set.
+func (o *ImportSummary) HasDeletedRecords() bool {
+ if o != nil && !IsNil(o.DeletedRecords) {
+ return true
+ }
+
+ return false
+}
+
+// SetDeletedRecords gets a reference to the given int32 and assigns it to the DeletedRecords field.
+func (o *ImportSummary) SetDeletedRecords(v int32) {
+ o.DeletedRecords = &v
+}
+
+// GetUpdatedRRSets returns the UpdatedRRSets field value if set, zero value otherwise.
+func (o *ImportSummary) GetUpdatedRRSets() int32 {
+ if o == nil || IsNil(o.UpdatedRRSets) {
+ var ret int32
+ return ret
+ }
+ return *o.UpdatedRRSets
+}
+
+// GetUpdatedRRSetsOk returns a tuple with the UpdatedRRSets field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ImportSummary) GetUpdatedRRSetsOk() (*int32, bool) {
+ if o == nil || IsNil(o.UpdatedRRSets) {
+ return nil, false
+ }
+ return o.UpdatedRRSets, true
+}
+
+// HasUpdatedRRSets returns a boolean if a field has been set.
+func (o *ImportSummary) HasUpdatedRRSets() bool {
+ if o != nil && !IsNil(o.UpdatedRRSets) {
+ return true
+ }
+
+ return false
+}
+
+// SetUpdatedRRSets gets a reference to the given int32 and assigns it to the UpdatedRRSets field.
+func (o *ImportSummary) SetUpdatedRRSets(v int32) {
+ o.UpdatedRRSets = &v
+}
+
+// GetUpdatedRecords returns the UpdatedRecords field value if set, zero value otherwise.
+func (o *ImportSummary) GetUpdatedRecords() int32 {
+ if o == nil || IsNil(o.UpdatedRecords) {
+ var ret int32
+ return ret
+ }
+ return *o.UpdatedRecords
+}
+
+// GetUpdatedRecordsOk returns a tuple with the UpdatedRecords field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ImportSummary) GetUpdatedRecordsOk() (*int32, bool) {
+ if o == nil || IsNil(o.UpdatedRecords) {
+ return nil, false
+ }
+ return o.UpdatedRecords, true
+}
+
+// HasUpdatedRecords returns a boolean if a field has been set.
+func (o *ImportSummary) HasUpdatedRecords() bool {
+ if o != nil && !IsNil(o.UpdatedRecords) {
+ return true
+ }
+
+ return false
+}
+
+// SetUpdatedRecords gets a reference to the given int32 and assigns it to the UpdatedRecords field.
+func (o *ImportSummary) SetUpdatedRecords(v int32) {
+ o.UpdatedRecords = &v
+}
+
+func (o ImportSummary) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ImportSummary) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.CreatedRRSets) {
+ toSerialize["createdRRSets"] = o.CreatedRRSets
+ }
+ if !IsNil(o.CreatedRecords) {
+ toSerialize["createdRecords"] = o.CreatedRecords
+ }
+ if !IsNil(o.DeletedRRSets) {
+ toSerialize["deletedRRSets"] = o.DeletedRRSets
+ }
+ if !IsNil(o.DeletedRecords) {
+ toSerialize["deletedRecords"] = o.DeletedRecords
+ }
+ if !IsNil(o.UpdatedRRSets) {
+ toSerialize["updatedRRSets"] = o.UpdatedRRSets
+ }
+ if !IsNil(o.UpdatedRecords) {
+ toSerialize["updatedRecords"] = o.UpdatedRecords
+ }
+ return toSerialize, nil
+}
+
+type NullableImportSummary struct {
+ value *ImportSummary
+ isSet bool
+}
+
+func (v NullableImportSummary) Get() *ImportSummary {
+ return v.value
+}
+
+func (v *NullableImportSummary) Set(val *ImportSummary) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableImportSummary) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableImportSummary) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableImportSummary(val *ImportSummary) *NullableImportSummary {
+ return &NullableImportSummary{value: val, isSet: true}
+}
+
+func (v NullableImportSummary) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableImportSummary) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_label.go b/services/dns/v1api/model_label.go
new file mode 100644
index 000000000..6a082d7bf
--- /dev/null
+++ b/services/dns/v1api/model_label.go
@@ -0,0 +1,185 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the Label type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &Label{}
+
+// Label struct for Label
+type Label struct {
+ Key string `json:"key"`
+ Value string `json:"value"`
+}
+
+type _Label Label
+
+// NewLabel instantiates a new Label 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
+func NewLabel(key string, value string) *Label {
+ this := Label{}
+ this.Key = key
+ this.Value = value
+ return &this
+}
+
+// NewLabelWithDefaults instantiates a new Label 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
+func NewLabelWithDefaults() *Label {
+ this := Label{}
+ return &this
+}
+
+// GetKey returns the Key field value
+func (o *Label) GetKey() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Key
+}
+
+// GetKeyOk returns a tuple with the Key field value
+// and a boolean to check if the value has been set.
+func (o *Label) GetKeyOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Key, true
+}
+
+// SetKey sets field value
+func (o *Label) SetKey(v string) {
+ o.Key = v
+}
+
+// GetValue returns the Value field value
+func (o *Label) GetValue() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Value
+}
+
+// GetValueOk returns a tuple with the Value field value
+// and a boolean to check if the value has been set.
+func (o *Label) GetValueOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Value, true
+}
+
+// SetValue sets field value
+func (o *Label) SetValue(v string) {
+ o.Value = v
+}
+
+func (o Label) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o Label) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["key"] = o.Key
+ toSerialize["value"] = o.Value
+ return toSerialize, nil
+}
+
+func (o *Label) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "key",
+ "value",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varLabel := _Label{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varLabel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = Label(varLabel)
+
+ return err
+}
+
+type NullableLabel struct {
+ value *Label
+ isSet bool
+}
+
+func (v NullableLabel) Get() *Label {
+ return v.value
+}
+
+func (v *NullableLabel) Set(val *Label) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableLabel(val *Label) *NullableLabel {
+ return &NullableLabel{value: val, isSet: true}
+}
+
+func (v NullableLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_list_labels_response.go b/services/dns/v1api/model_list_labels_response.go
new file mode 100644
index 000000000..b7417e424
--- /dev/null
+++ b/services/dns/v1api/model_list_labels_response.go
@@ -0,0 +1,161 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the ListLabelsResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ListLabelsResponse{}
+
+// ListLabelsResponse ResponseAllLabels.
+type ListLabelsResponse struct {
+ Labels []Label `json:"labels,omitempty"`
+ Message *string `json:"message,omitempty"`
+}
+
+// NewListLabelsResponse instantiates a new ListLabelsResponse 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
+func NewListLabelsResponse() *ListLabelsResponse {
+ this := ListLabelsResponse{}
+ return &this
+}
+
+// NewListLabelsResponseWithDefaults instantiates a new ListLabelsResponse 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
+func NewListLabelsResponseWithDefaults() *ListLabelsResponse {
+ this := ListLabelsResponse{}
+ return &this
+}
+
+// GetLabels returns the Labels field value if set, zero value otherwise.
+func (o *ListLabelsResponse) GetLabels() []Label {
+ if o == nil || IsNil(o.Labels) {
+ var ret []Label
+ return ret
+ }
+ return o.Labels
+}
+
+// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ListLabelsResponse) GetLabelsOk() ([]Label, bool) {
+ if o == nil || IsNil(o.Labels) {
+ return nil, false
+ }
+ return o.Labels, true
+}
+
+// HasLabels returns a boolean if a field has been set.
+func (o *ListLabelsResponse) HasLabels() bool {
+ if o != nil && !IsNil(o.Labels) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabels gets a reference to the given []Label and assigns it to the Labels field.
+func (o *ListLabelsResponse) SetLabels(v []Label) {
+ o.Labels = v
+}
+
+// GetMessage returns the Message field value if set, zero value otherwise.
+func (o *ListLabelsResponse) GetMessage() string {
+ if o == nil || IsNil(o.Message) {
+ var ret string
+ return ret
+ }
+ return *o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ListLabelsResponse) GetMessageOk() (*string, bool) {
+ if o == nil || IsNil(o.Message) {
+ return nil, false
+ }
+ return o.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (o *ListLabelsResponse) HasMessage() bool {
+ if o != nil && !IsNil(o.Message) {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage gets a reference to the given string and assigns it to the Message field.
+func (o *ListLabelsResponse) SetMessage(v string) {
+ o.Message = &v
+}
+
+func (o ListLabelsResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ListLabelsResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Labels) {
+ toSerialize["labels"] = o.Labels
+ }
+ if !IsNil(o.Message) {
+ toSerialize["message"] = o.Message
+ }
+ return toSerialize, nil
+}
+
+type NullableListLabelsResponse struct {
+ value *ListLabelsResponse
+ isSet bool
+}
+
+func (v NullableListLabelsResponse) Get() *ListLabelsResponse {
+ return v.value
+}
+
+func (v *NullableListLabelsResponse) Set(val *ListLabelsResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableListLabelsResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableListLabelsResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableListLabelsResponse(val *ListLabelsResponse) *NullableListLabelsResponse {
+ return &NullableListLabelsResponse{value: val, isSet: true}
+}
+
+func (v NullableListLabelsResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableListLabelsResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_list_record_sets_response.go b/services/dns/v1api/model_list_record_sets_response.go
new file mode 100644
index 000000000..34687746b
--- /dev/null
+++ b/services/dns/v1api/model_list_record_sets_response.go
@@ -0,0 +1,277 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ListRecordSetsResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ListRecordSetsResponse{}
+
+// ListRecordSetsResponse ResponseRRSetAll.
+type ListRecordSetsResponse struct {
+ ItemsPerPage int32 `json:"itemsPerPage"`
+ Message *string `json:"message,omitempty"`
+ RrSets []RecordSet `json:"rrSets"`
+ TotalItems int32 `json:"totalItems"`
+ TotalPages int32 `json:"totalPages"`
+}
+
+type _ListRecordSetsResponse ListRecordSetsResponse
+
+// NewListRecordSetsResponse instantiates a new ListRecordSetsResponse 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
+func NewListRecordSetsResponse(itemsPerPage int32, rrSets []RecordSet, totalItems int32, totalPages int32) *ListRecordSetsResponse {
+ this := ListRecordSetsResponse{}
+ this.ItemsPerPage = itemsPerPage
+ this.RrSets = rrSets
+ this.TotalItems = totalItems
+ this.TotalPages = totalPages
+ return &this
+}
+
+// NewListRecordSetsResponseWithDefaults instantiates a new ListRecordSetsResponse 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
+func NewListRecordSetsResponseWithDefaults() *ListRecordSetsResponse {
+ this := ListRecordSetsResponse{}
+ return &this
+}
+
+// GetItemsPerPage returns the ItemsPerPage field value
+func (o *ListRecordSetsResponse) GetItemsPerPage() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.ItemsPerPage
+}
+
+// GetItemsPerPageOk returns a tuple with the ItemsPerPage field value
+// and a boolean to check if the value has been set.
+func (o *ListRecordSetsResponse) GetItemsPerPageOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ItemsPerPage, true
+}
+
+// SetItemsPerPage sets field value
+func (o *ListRecordSetsResponse) SetItemsPerPage(v int32) {
+ o.ItemsPerPage = v
+}
+
+// GetMessage returns the Message field value if set, zero value otherwise.
+func (o *ListRecordSetsResponse) GetMessage() string {
+ if o == nil || IsNil(o.Message) {
+ var ret string
+ return ret
+ }
+ return *o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ListRecordSetsResponse) GetMessageOk() (*string, bool) {
+ if o == nil || IsNil(o.Message) {
+ return nil, false
+ }
+ return o.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (o *ListRecordSetsResponse) HasMessage() bool {
+ if o != nil && !IsNil(o.Message) {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage gets a reference to the given string and assigns it to the Message field.
+func (o *ListRecordSetsResponse) SetMessage(v string) {
+ o.Message = &v
+}
+
+// GetRrSets returns the RrSets field value
+func (o *ListRecordSetsResponse) GetRrSets() []RecordSet {
+ if o == nil {
+ var ret []RecordSet
+ return ret
+ }
+
+ return o.RrSets
+}
+
+// GetRrSetsOk returns a tuple with the RrSets field value
+// and a boolean to check if the value has been set.
+func (o *ListRecordSetsResponse) GetRrSetsOk() ([]RecordSet, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.RrSets, true
+}
+
+// SetRrSets sets field value
+func (o *ListRecordSetsResponse) SetRrSets(v []RecordSet) {
+ o.RrSets = v
+}
+
+// GetTotalItems returns the TotalItems field value
+func (o *ListRecordSetsResponse) GetTotalItems() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.TotalItems
+}
+
+// GetTotalItemsOk returns a tuple with the TotalItems field value
+// and a boolean to check if the value has been set.
+func (o *ListRecordSetsResponse) GetTotalItemsOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TotalItems, true
+}
+
+// SetTotalItems sets field value
+func (o *ListRecordSetsResponse) SetTotalItems(v int32) {
+ o.TotalItems = v
+}
+
+// GetTotalPages returns the TotalPages field value
+func (o *ListRecordSetsResponse) GetTotalPages() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.TotalPages
+}
+
+// GetTotalPagesOk returns a tuple with the TotalPages field value
+// and a boolean to check if the value has been set.
+func (o *ListRecordSetsResponse) GetTotalPagesOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TotalPages, true
+}
+
+// SetTotalPages sets field value
+func (o *ListRecordSetsResponse) SetTotalPages(v int32) {
+ o.TotalPages = v
+}
+
+func (o ListRecordSetsResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ListRecordSetsResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["itemsPerPage"] = o.ItemsPerPage
+ if !IsNil(o.Message) {
+ toSerialize["message"] = o.Message
+ }
+ toSerialize["rrSets"] = o.RrSets
+ toSerialize["totalItems"] = o.TotalItems
+ toSerialize["totalPages"] = o.TotalPages
+ return toSerialize, nil
+}
+
+func (o *ListRecordSetsResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "itemsPerPage",
+ "rrSets",
+ "totalItems",
+ "totalPages",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varListRecordSetsResponse := _ListRecordSetsResponse{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varListRecordSetsResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ListRecordSetsResponse(varListRecordSetsResponse)
+
+ return err
+}
+
+type NullableListRecordSetsResponse struct {
+ value *ListRecordSetsResponse
+ isSet bool
+}
+
+func (v NullableListRecordSetsResponse) Get() *ListRecordSetsResponse {
+ return v.value
+}
+
+func (v *NullableListRecordSetsResponse) Set(val *ListRecordSetsResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableListRecordSetsResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableListRecordSetsResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableListRecordSetsResponse(val *ListRecordSetsResponse) *NullableListRecordSetsResponse {
+ return &NullableListRecordSetsResponse{value: val, isSet: true}
+}
+
+func (v NullableListRecordSetsResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableListRecordSetsResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_list_zones_response.go b/services/dns/v1api/model_list_zones_response.go
new file mode 100644
index 000000000..c7f6bef4b
--- /dev/null
+++ b/services/dns/v1api/model_list_zones_response.go
@@ -0,0 +1,277 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ListZonesResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ListZonesResponse{}
+
+// ListZonesResponse ResponseZoneAll for filtered zones.
+type ListZonesResponse struct {
+ ItemsPerPage int32 `json:"itemsPerPage"`
+ Message *string `json:"message,omitempty"`
+ TotalItems int32 `json:"totalItems"`
+ TotalPages int32 `json:"totalPages"`
+ Zones []Zone `json:"zones"`
+}
+
+type _ListZonesResponse ListZonesResponse
+
+// NewListZonesResponse instantiates a new ListZonesResponse 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
+func NewListZonesResponse(itemsPerPage int32, totalItems int32, totalPages int32, zones []Zone) *ListZonesResponse {
+ this := ListZonesResponse{}
+ this.ItemsPerPage = itemsPerPage
+ this.TotalItems = totalItems
+ this.TotalPages = totalPages
+ this.Zones = zones
+ return &this
+}
+
+// NewListZonesResponseWithDefaults instantiates a new ListZonesResponse 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
+func NewListZonesResponseWithDefaults() *ListZonesResponse {
+ this := ListZonesResponse{}
+ return &this
+}
+
+// GetItemsPerPage returns the ItemsPerPage field value
+func (o *ListZonesResponse) GetItemsPerPage() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.ItemsPerPage
+}
+
+// GetItemsPerPageOk returns a tuple with the ItemsPerPage field value
+// and a boolean to check if the value has been set.
+func (o *ListZonesResponse) GetItemsPerPageOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ItemsPerPage, true
+}
+
+// SetItemsPerPage sets field value
+func (o *ListZonesResponse) SetItemsPerPage(v int32) {
+ o.ItemsPerPage = v
+}
+
+// GetMessage returns the Message field value if set, zero value otherwise.
+func (o *ListZonesResponse) GetMessage() string {
+ if o == nil || IsNil(o.Message) {
+ var ret string
+ return ret
+ }
+ return *o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ListZonesResponse) GetMessageOk() (*string, bool) {
+ if o == nil || IsNil(o.Message) {
+ return nil, false
+ }
+ return o.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (o *ListZonesResponse) HasMessage() bool {
+ if o != nil && !IsNil(o.Message) {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage gets a reference to the given string and assigns it to the Message field.
+func (o *ListZonesResponse) SetMessage(v string) {
+ o.Message = &v
+}
+
+// GetTotalItems returns the TotalItems field value
+func (o *ListZonesResponse) GetTotalItems() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.TotalItems
+}
+
+// GetTotalItemsOk returns a tuple with the TotalItems field value
+// and a boolean to check if the value has been set.
+func (o *ListZonesResponse) GetTotalItemsOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TotalItems, true
+}
+
+// SetTotalItems sets field value
+func (o *ListZonesResponse) SetTotalItems(v int32) {
+ o.TotalItems = v
+}
+
+// GetTotalPages returns the TotalPages field value
+func (o *ListZonesResponse) GetTotalPages() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.TotalPages
+}
+
+// GetTotalPagesOk returns a tuple with the TotalPages field value
+// and a boolean to check if the value has been set.
+func (o *ListZonesResponse) GetTotalPagesOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TotalPages, true
+}
+
+// SetTotalPages sets field value
+func (o *ListZonesResponse) SetTotalPages(v int32) {
+ o.TotalPages = v
+}
+
+// GetZones returns the Zones field value
+func (o *ListZonesResponse) GetZones() []Zone {
+ if o == nil {
+ var ret []Zone
+ return ret
+ }
+
+ return o.Zones
+}
+
+// GetZonesOk returns a tuple with the Zones field value
+// and a boolean to check if the value has been set.
+func (o *ListZonesResponse) GetZonesOk() ([]Zone, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Zones, true
+}
+
+// SetZones sets field value
+func (o *ListZonesResponse) SetZones(v []Zone) {
+ o.Zones = v
+}
+
+func (o ListZonesResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ListZonesResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["itemsPerPage"] = o.ItemsPerPage
+ if !IsNil(o.Message) {
+ toSerialize["message"] = o.Message
+ }
+ toSerialize["totalItems"] = o.TotalItems
+ toSerialize["totalPages"] = o.TotalPages
+ toSerialize["zones"] = o.Zones
+ return toSerialize, nil
+}
+
+func (o *ListZonesResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "itemsPerPage",
+ "totalItems",
+ "totalPages",
+ "zones",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varListZonesResponse := _ListZonesResponse{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varListZonesResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ListZonesResponse(varListZonesResponse)
+
+ return err
+}
+
+type NullableListZonesResponse struct {
+ value *ListZonesResponse
+ isSet bool
+}
+
+func (v NullableListZonesResponse) Get() *ListZonesResponse {
+ return v.value
+}
+
+func (v *NullableListZonesResponse) Set(val *ListZonesResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableListZonesResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableListZonesResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableListZonesResponse(val *ListZonesResponse) *NullableListZonesResponse {
+ return &NullableListZonesResponse{value: val, isSet: true}
+}
+
+func (v NullableListZonesResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableListZonesResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_message.go b/services/dns/v1api/model_message.go
new file mode 100644
index 000000000..51147cff3
--- /dev/null
+++ b/services/dns/v1api/model_message.go
@@ -0,0 +1,125 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the Message type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &Message{}
+
+// Message struct for Message
+type Message struct {
+ Message *string `json:"message,omitempty"`
+}
+
+// NewMessage instantiates a new Message 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
+func NewMessage() *Message {
+ this := Message{}
+ return &this
+}
+
+// NewMessageWithDefaults instantiates a new Message 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
+func NewMessageWithDefaults() *Message {
+ this := Message{}
+ return &this
+}
+
+// GetMessage returns the Message field value if set, zero value otherwise.
+func (o *Message) GetMessage() string {
+ if o == nil || IsNil(o.Message) {
+ var ret string
+ return ret
+ }
+ return *o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Message) GetMessageOk() (*string, bool) {
+ if o == nil || IsNil(o.Message) {
+ return nil, false
+ }
+ return o.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (o *Message) HasMessage() bool {
+ if o != nil && !IsNil(o.Message) {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage gets a reference to the given string and assigns it to the Message field.
+func (o *Message) SetMessage(v string) {
+ o.Message = &v
+}
+
+func (o Message) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o Message) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Message) {
+ toSerialize["message"] = o.Message
+ }
+ return toSerialize, nil
+}
+
+type NullableMessage struct {
+ value *Message
+ isSet bool
+}
+
+func (v NullableMessage) Get() *Message {
+ return v.value
+}
+
+func (v *NullableMessage) Set(val *Message) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableMessage) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableMessage) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableMessage(val *Message) *NullableMessage {
+ return &NullableMessage{value: val, isSet: true}
+}
+
+func (v NullableMessage) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableMessage) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_move_code_response.go b/services/dns/v1api/model_move_code_response.go
new file mode 100644
index 000000000..fa291749d
--- /dev/null
+++ b/services/dns/v1api/model_move_code_response.go
@@ -0,0 +1,224 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the MoveCodeResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &MoveCodeResponse{}
+
+// MoveCodeResponse struct for MoveCodeResponse
+type MoveCodeResponse struct {
+ // code to move the zone. It is one time shown so better keep it.
+ Code string `json:"code"`
+ // when the code expires
+ ExpiresAt string `json:"expiresAt"`
+ // human readable message
+ Message *string `json:"message,omitempty"`
+}
+
+type _MoveCodeResponse MoveCodeResponse
+
+// NewMoveCodeResponse instantiates a new MoveCodeResponse 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
+func NewMoveCodeResponse(code string, expiresAt string) *MoveCodeResponse {
+ this := MoveCodeResponse{}
+ this.Code = code
+ this.ExpiresAt = expiresAt
+ return &this
+}
+
+// NewMoveCodeResponseWithDefaults instantiates a new MoveCodeResponse 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
+func NewMoveCodeResponseWithDefaults() *MoveCodeResponse {
+ this := MoveCodeResponse{}
+ return &this
+}
+
+// GetCode returns the Code field value
+func (o *MoveCodeResponse) GetCode() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Code
+}
+
+// GetCodeOk returns a tuple with the Code field value
+// and a boolean to check if the value has been set.
+func (o *MoveCodeResponse) GetCodeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Code, true
+}
+
+// SetCode sets field value
+func (o *MoveCodeResponse) SetCode(v string) {
+ o.Code = v
+}
+
+// GetExpiresAt returns the ExpiresAt field value
+func (o *MoveCodeResponse) GetExpiresAt() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ExpiresAt
+}
+
+// GetExpiresAtOk returns a tuple with the ExpiresAt field value
+// and a boolean to check if the value has been set.
+func (o *MoveCodeResponse) GetExpiresAtOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ExpiresAt, true
+}
+
+// SetExpiresAt sets field value
+func (o *MoveCodeResponse) SetExpiresAt(v string) {
+ o.ExpiresAt = v
+}
+
+// GetMessage returns the Message field value if set, zero value otherwise.
+func (o *MoveCodeResponse) GetMessage() string {
+ if o == nil || IsNil(o.Message) {
+ var ret string
+ return ret
+ }
+ return *o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *MoveCodeResponse) GetMessageOk() (*string, bool) {
+ if o == nil || IsNil(o.Message) {
+ return nil, false
+ }
+ return o.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (o *MoveCodeResponse) HasMessage() bool {
+ if o != nil && !IsNil(o.Message) {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage gets a reference to the given string and assigns it to the Message field.
+func (o *MoveCodeResponse) SetMessage(v string) {
+ o.Message = &v
+}
+
+func (o MoveCodeResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o MoveCodeResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["code"] = o.Code
+ toSerialize["expiresAt"] = o.ExpiresAt
+ if !IsNil(o.Message) {
+ toSerialize["message"] = o.Message
+ }
+ return toSerialize, nil
+}
+
+func (o *MoveCodeResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "code",
+ "expiresAt",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varMoveCodeResponse := _MoveCodeResponse{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varMoveCodeResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = MoveCodeResponse(varMoveCodeResponse)
+
+ return err
+}
+
+type NullableMoveCodeResponse struct {
+ value *MoveCodeResponse
+ isSet bool
+}
+
+func (v NullableMoveCodeResponse) Get() *MoveCodeResponse {
+ return v.value
+}
+
+func (v *NullableMoveCodeResponse) Set(val *MoveCodeResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableMoveCodeResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableMoveCodeResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableMoveCodeResponse(val *MoveCodeResponse) *NullableMoveCodeResponse {
+ return &NullableMoveCodeResponse{value: val, isSet: true}
+}
+
+func (v NullableMoveCodeResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableMoveCodeResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_move_zone_payload.go b/services/dns/v1api/model_move_zone_payload.go
new file mode 100644
index 000000000..4915641aa
--- /dev/null
+++ b/services/dns/v1api/model_move_zone_payload.go
@@ -0,0 +1,187 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the MoveZonePayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &MoveZonePayload{}
+
+// MoveZonePayload body to move zone from one project to another.
+type MoveZonePayload struct {
+ // Code to move the zone. It must be valid, not expired and belong
+ Code string `json:"code"`
+ // ZoneDnsName is the dns name of the zone to move
+ ZoneDnsName string `json:"zoneDnsName"`
+}
+
+type _MoveZonePayload MoveZonePayload
+
+// NewMoveZonePayload instantiates a new MoveZonePayload 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
+func NewMoveZonePayload(code string, zoneDnsName string) *MoveZonePayload {
+ this := MoveZonePayload{}
+ this.Code = code
+ this.ZoneDnsName = zoneDnsName
+ return &this
+}
+
+// NewMoveZonePayloadWithDefaults instantiates a new MoveZonePayload 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
+func NewMoveZonePayloadWithDefaults() *MoveZonePayload {
+ this := MoveZonePayload{}
+ return &this
+}
+
+// GetCode returns the Code field value
+func (o *MoveZonePayload) GetCode() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Code
+}
+
+// GetCodeOk returns a tuple with the Code field value
+// and a boolean to check if the value has been set.
+func (o *MoveZonePayload) GetCodeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Code, true
+}
+
+// SetCode sets field value
+func (o *MoveZonePayload) SetCode(v string) {
+ o.Code = v
+}
+
+// GetZoneDnsName returns the ZoneDnsName field value
+func (o *MoveZonePayload) GetZoneDnsName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ZoneDnsName
+}
+
+// GetZoneDnsNameOk returns a tuple with the ZoneDnsName field value
+// and a boolean to check if the value has been set.
+func (o *MoveZonePayload) GetZoneDnsNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ZoneDnsName, true
+}
+
+// SetZoneDnsName sets field value
+func (o *MoveZonePayload) SetZoneDnsName(v string) {
+ o.ZoneDnsName = v
+}
+
+func (o MoveZonePayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o MoveZonePayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["code"] = o.Code
+ toSerialize["zoneDnsName"] = o.ZoneDnsName
+ return toSerialize, nil
+}
+
+func (o *MoveZonePayload) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "code",
+ "zoneDnsName",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varMoveZonePayload := _MoveZonePayload{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varMoveZonePayload)
+
+ if err != nil {
+ return err
+ }
+
+ *o = MoveZonePayload(varMoveZonePayload)
+
+ return err
+}
+
+type NullableMoveZonePayload struct {
+ value *MoveZonePayload
+ isSet bool
+}
+
+func (v NullableMoveZonePayload) Get() *MoveZonePayload {
+ return v.value
+}
+
+func (v *NullableMoveZonePayload) Set(val *MoveZonePayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableMoveZonePayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableMoveZonePayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableMoveZonePayload(val *MoveZonePayload) *NullableMoveZonePayload {
+ return &NullableMoveZonePayload{value: val, isSet: true}
+}
+
+func (v NullableMoveZonePayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableMoveZonePayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_partial_update_record_payload.go b/services/dns/v1api/model_partial_update_record_payload.go
new file mode 100644
index 000000000..a362780b2
--- /dev/null
+++ b/services/dns/v1api/model_partial_update_record_payload.go
@@ -0,0 +1,186 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the PartialUpdateRecordPayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PartialUpdateRecordPayload{}
+
+// PartialUpdateRecordPayload RecordPatch for record patch in record set.
+type PartialUpdateRecordPayload struct {
+ Action string `json:"action"`
+ // records
+ Records []RecordPayload `json:"records"`
+}
+
+type _PartialUpdateRecordPayload PartialUpdateRecordPayload
+
+// NewPartialUpdateRecordPayload instantiates a new PartialUpdateRecordPayload 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
+func NewPartialUpdateRecordPayload(action string, records []RecordPayload) *PartialUpdateRecordPayload {
+ this := PartialUpdateRecordPayload{}
+ this.Action = action
+ this.Records = records
+ return &this
+}
+
+// NewPartialUpdateRecordPayloadWithDefaults instantiates a new PartialUpdateRecordPayload 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
+func NewPartialUpdateRecordPayloadWithDefaults() *PartialUpdateRecordPayload {
+ this := PartialUpdateRecordPayload{}
+ return &this
+}
+
+// GetAction returns the Action field value
+func (o *PartialUpdateRecordPayload) GetAction() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Action
+}
+
+// GetActionOk returns a tuple with the Action field value
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateRecordPayload) GetActionOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Action, true
+}
+
+// SetAction sets field value
+func (o *PartialUpdateRecordPayload) SetAction(v string) {
+ o.Action = v
+}
+
+// GetRecords returns the Records field value
+func (o *PartialUpdateRecordPayload) GetRecords() []RecordPayload {
+ if o == nil {
+ var ret []RecordPayload
+ return ret
+ }
+
+ return o.Records
+}
+
+// GetRecordsOk returns a tuple with the Records field value
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateRecordPayload) GetRecordsOk() ([]RecordPayload, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Records, true
+}
+
+// SetRecords sets field value
+func (o *PartialUpdateRecordPayload) SetRecords(v []RecordPayload) {
+ o.Records = v
+}
+
+func (o PartialUpdateRecordPayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PartialUpdateRecordPayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["action"] = o.Action
+ toSerialize["records"] = o.Records
+ return toSerialize, nil
+}
+
+func (o *PartialUpdateRecordPayload) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "action",
+ "records",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varPartialUpdateRecordPayload := _PartialUpdateRecordPayload{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varPartialUpdateRecordPayload)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PartialUpdateRecordPayload(varPartialUpdateRecordPayload)
+
+ return err
+}
+
+type NullablePartialUpdateRecordPayload struct {
+ value *PartialUpdateRecordPayload
+ isSet bool
+}
+
+func (v NullablePartialUpdateRecordPayload) Get() *PartialUpdateRecordPayload {
+ return v.value
+}
+
+func (v *NullablePartialUpdateRecordPayload) Set(val *PartialUpdateRecordPayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePartialUpdateRecordPayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePartialUpdateRecordPayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePartialUpdateRecordPayload(val *PartialUpdateRecordPayload) *NullablePartialUpdateRecordPayload {
+ return &NullablePartialUpdateRecordPayload{value: val, isSet: true}
+}
+
+func (v NullablePartialUpdateRecordPayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePartialUpdateRecordPayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_partial_update_record_set_payload.go b/services/dns/v1api/model_partial_update_record_set_payload.go
new file mode 100644
index 000000000..a7c239a59
--- /dev/null
+++ b/services/dns/v1api/model_partial_update_record_set_payload.go
@@ -0,0 +1,237 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the PartialUpdateRecordSetPayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PartialUpdateRecordSetPayload{}
+
+// PartialUpdateRecordSetPayload RRSetPatch for rr patch set info.
+type PartialUpdateRecordSetPayload struct {
+ // user comment
+ Comment *string `json:"comment,omitempty"`
+ // rfc1035 Section 2.3.4
+ Name *string `json:"name,omitempty"`
+ // records
+ Records []RecordPayload `json:"records,omitempty"`
+ // time to live
+ Ttl *int32 `json:"ttl,omitempty"`
+}
+
+// NewPartialUpdateRecordSetPayload instantiates a new PartialUpdateRecordSetPayload 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
+func NewPartialUpdateRecordSetPayload() *PartialUpdateRecordSetPayload {
+ this := PartialUpdateRecordSetPayload{}
+ return &this
+}
+
+// NewPartialUpdateRecordSetPayloadWithDefaults instantiates a new PartialUpdateRecordSetPayload 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
+func NewPartialUpdateRecordSetPayloadWithDefaults() *PartialUpdateRecordSetPayload {
+ this := PartialUpdateRecordSetPayload{}
+ return &this
+}
+
+// GetComment returns the Comment field value if set, zero value otherwise.
+func (o *PartialUpdateRecordSetPayload) GetComment() string {
+ if o == nil || IsNil(o.Comment) {
+ var ret string
+ return ret
+ }
+ return *o.Comment
+}
+
+// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateRecordSetPayload) GetCommentOk() (*string, bool) {
+ if o == nil || IsNil(o.Comment) {
+ return nil, false
+ }
+ return o.Comment, true
+}
+
+// HasComment returns a boolean if a field has been set.
+func (o *PartialUpdateRecordSetPayload) HasComment() bool {
+ if o != nil && !IsNil(o.Comment) {
+ return true
+ }
+
+ return false
+}
+
+// SetComment gets a reference to the given string and assigns it to the Comment field.
+func (o *PartialUpdateRecordSetPayload) SetComment(v string) {
+ o.Comment = &v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PartialUpdateRecordSetPayload) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateRecordSetPayload) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *PartialUpdateRecordSetPayload) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *PartialUpdateRecordSetPayload) SetName(v string) {
+ o.Name = &v
+}
+
+// GetRecords returns the Records field value if set, zero value otherwise.
+func (o *PartialUpdateRecordSetPayload) GetRecords() []RecordPayload {
+ if o == nil || IsNil(o.Records) {
+ var ret []RecordPayload
+ return ret
+ }
+ return o.Records
+}
+
+// GetRecordsOk returns a tuple with the Records field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateRecordSetPayload) GetRecordsOk() ([]RecordPayload, bool) {
+ if o == nil || IsNil(o.Records) {
+ return nil, false
+ }
+ return o.Records, true
+}
+
+// HasRecords returns a boolean if a field has been set.
+func (o *PartialUpdateRecordSetPayload) HasRecords() bool {
+ if o != nil && !IsNil(o.Records) {
+ return true
+ }
+
+ return false
+}
+
+// SetRecords gets a reference to the given []RecordPayload and assigns it to the Records field.
+func (o *PartialUpdateRecordSetPayload) SetRecords(v []RecordPayload) {
+ o.Records = v
+}
+
+// GetTtl returns the Ttl field value if set, zero value otherwise.
+func (o *PartialUpdateRecordSetPayload) GetTtl() int32 {
+ if o == nil || IsNil(o.Ttl) {
+ var ret int32
+ return ret
+ }
+ return *o.Ttl
+}
+
+// GetTtlOk returns a tuple with the Ttl field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateRecordSetPayload) GetTtlOk() (*int32, bool) {
+ if o == nil || IsNil(o.Ttl) {
+ return nil, false
+ }
+ return o.Ttl, true
+}
+
+// HasTtl returns a boolean if a field has been set.
+func (o *PartialUpdateRecordSetPayload) HasTtl() bool {
+ if o != nil && !IsNil(o.Ttl) {
+ return true
+ }
+
+ return false
+}
+
+// SetTtl gets a reference to the given int32 and assigns it to the Ttl field.
+func (o *PartialUpdateRecordSetPayload) SetTtl(v int32) {
+ o.Ttl = &v
+}
+
+func (o PartialUpdateRecordSetPayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PartialUpdateRecordSetPayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Comment) {
+ toSerialize["comment"] = o.Comment
+ }
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Records) {
+ toSerialize["records"] = o.Records
+ }
+ if !IsNil(o.Ttl) {
+ toSerialize["ttl"] = o.Ttl
+ }
+ return toSerialize, nil
+}
+
+type NullablePartialUpdateRecordSetPayload struct {
+ value *PartialUpdateRecordSetPayload
+ isSet bool
+}
+
+func (v NullablePartialUpdateRecordSetPayload) Get() *PartialUpdateRecordSetPayload {
+ return v.value
+}
+
+func (v *NullablePartialUpdateRecordSetPayload) Set(val *PartialUpdateRecordSetPayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePartialUpdateRecordSetPayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePartialUpdateRecordSetPayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePartialUpdateRecordSetPayload(val *PartialUpdateRecordSetPayload) *NullablePartialUpdateRecordSetPayload {
+ return &NullablePartialUpdateRecordSetPayload{value: val, isSet: true}
+}
+
+func (v NullablePartialUpdateRecordSetPayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePartialUpdateRecordSetPayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_partial_update_zone_payload.go b/services/dns/v1api/model_partial_update_zone_payload.go
new file mode 100644
index 000000000..7179309e7
--- /dev/null
+++ b/services/dns/v1api/model_partial_update_zone_payload.go
@@ -0,0 +1,520 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the PartialUpdateZonePayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PartialUpdateZonePayload{}
+
+// PartialUpdateZonePayload struct for PartialUpdateZonePayload
+type PartialUpdateZonePayload struct {
+ // access control list
+ Acl *string `json:"acl,omitempty"`
+ // contact e-mail for the zone
+ ContactEmail *string `json:"contactEmail,omitempty"`
+ // default time to live
+ DefaultTTL *int32 `json:"defaultTTL,omitempty"`
+ // description of the zone
+ Description *string `json:"description,omitempty"`
+ // expire time
+ ExpireTime *int32 `json:"expireTime,omitempty"`
+ // optional extensions
+ Extensions *ZoneExtensions `json:"extensions,omitempty"`
+ // user given name
+ Name *string `json:"name,omitempty"`
+ // negative caching
+ NegativeCache *int32 `json:"negativeCache,omitempty"`
+ // primary name server for secondary zone
+ Primaries []string `json:"primaries,omitempty"`
+ // refresh time
+ RefreshTime *int32 `json:"refreshTime,omitempty"`
+ // retry time
+ RetryTime *int32 `json:"retryTime,omitempty"`
+}
+
+// NewPartialUpdateZonePayload instantiates a new PartialUpdateZonePayload 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
+func NewPartialUpdateZonePayload() *PartialUpdateZonePayload {
+ this := PartialUpdateZonePayload{}
+ var acl string = "0.0.0.0/0,::/0"
+ this.Acl = &acl
+ var contactEmail string = "hostmaster@stackit.cloud"
+ this.ContactEmail = &contactEmail
+ var defaultTTL int32 = 3600
+ this.DefaultTTL = &defaultTTL
+ var expireTime int32 = 1209600
+ this.ExpireTime = &expireTime
+ var refreshTime int32 = 3600
+ this.RefreshTime = &refreshTime
+ var retryTime int32 = 600
+ this.RetryTime = &retryTime
+ return &this
+}
+
+// NewPartialUpdateZonePayloadWithDefaults instantiates a new PartialUpdateZonePayload 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
+func NewPartialUpdateZonePayloadWithDefaults() *PartialUpdateZonePayload {
+ this := PartialUpdateZonePayload{}
+ var acl string = "0.0.0.0/0,::/0"
+ this.Acl = &acl
+ var contactEmail string = "hostmaster@stackit.cloud"
+ this.ContactEmail = &contactEmail
+ var defaultTTL int32 = 3600
+ this.DefaultTTL = &defaultTTL
+ var expireTime int32 = 1209600
+ this.ExpireTime = &expireTime
+ var refreshTime int32 = 3600
+ this.RefreshTime = &refreshTime
+ var retryTime int32 = 600
+ this.RetryTime = &retryTime
+ return &this
+}
+
+// GetAcl returns the Acl field value if set, zero value otherwise.
+func (o *PartialUpdateZonePayload) GetAcl() string {
+ if o == nil || IsNil(o.Acl) {
+ var ret string
+ return ret
+ }
+ return *o.Acl
+}
+
+// GetAclOk returns a tuple with the Acl field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateZonePayload) GetAclOk() (*string, bool) {
+ if o == nil || IsNil(o.Acl) {
+ return nil, false
+ }
+ return o.Acl, true
+}
+
+// HasAcl returns a boolean if a field has been set.
+func (o *PartialUpdateZonePayload) HasAcl() bool {
+ if o != nil && !IsNil(o.Acl) {
+ return true
+ }
+
+ return false
+}
+
+// SetAcl gets a reference to the given string and assigns it to the Acl field.
+func (o *PartialUpdateZonePayload) SetAcl(v string) {
+ o.Acl = &v
+}
+
+// GetContactEmail returns the ContactEmail field value if set, zero value otherwise.
+func (o *PartialUpdateZonePayload) GetContactEmail() string {
+ if o == nil || IsNil(o.ContactEmail) {
+ var ret string
+ return ret
+ }
+ return *o.ContactEmail
+}
+
+// GetContactEmailOk returns a tuple with the ContactEmail field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateZonePayload) GetContactEmailOk() (*string, bool) {
+ if o == nil || IsNil(o.ContactEmail) {
+ return nil, false
+ }
+ return o.ContactEmail, true
+}
+
+// HasContactEmail returns a boolean if a field has been set.
+func (o *PartialUpdateZonePayload) HasContactEmail() bool {
+ if o != nil && !IsNil(o.ContactEmail) {
+ return true
+ }
+
+ return false
+}
+
+// SetContactEmail gets a reference to the given string and assigns it to the ContactEmail field.
+func (o *PartialUpdateZonePayload) SetContactEmail(v string) {
+ o.ContactEmail = &v
+}
+
+// GetDefaultTTL returns the DefaultTTL field value if set, zero value otherwise.
+func (o *PartialUpdateZonePayload) GetDefaultTTL() int32 {
+ if o == nil || IsNil(o.DefaultTTL) {
+ var ret int32
+ return ret
+ }
+ return *o.DefaultTTL
+}
+
+// GetDefaultTTLOk returns a tuple with the DefaultTTL field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateZonePayload) GetDefaultTTLOk() (*int32, bool) {
+ if o == nil || IsNil(o.DefaultTTL) {
+ return nil, false
+ }
+ return o.DefaultTTL, true
+}
+
+// HasDefaultTTL returns a boolean if a field has been set.
+func (o *PartialUpdateZonePayload) HasDefaultTTL() bool {
+ if o != nil && !IsNil(o.DefaultTTL) {
+ return true
+ }
+
+ return false
+}
+
+// SetDefaultTTL gets a reference to the given int32 and assigns it to the DefaultTTL field.
+func (o *PartialUpdateZonePayload) SetDefaultTTL(v int32) {
+ o.DefaultTTL = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PartialUpdateZonePayload) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ var ret string
+ return ret
+ }
+ return *o.Description
+}
+
+// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateZonePayload) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
+ return nil, false
+ }
+ return o.Description, true
+}
+
+// HasDescription returns a boolean if a field has been set.
+func (o *PartialUpdateZonePayload) HasDescription() bool {
+ if o != nil && !IsNil(o.Description) {
+ return true
+ }
+
+ return false
+}
+
+// SetDescription gets a reference to the given string and assigns it to the Description field.
+func (o *PartialUpdateZonePayload) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetExpireTime returns the ExpireTime field value if set, zero value otherwise.
+func (o *PartialUpdateZonePayload) GetExpireTime() int32 {
+ if o == nil || IsNil(o.ExpireTime) {
+ var ret int32
+ return ret
+ }
+ return *o.ExpireTime
+}
+
+// GetExpireTimeOk returns a tuple with the ExpireTime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateZonePayload) GetExpireTimeOk() (*int32, bool) {
+ if o == nil || IsNil(o.ExpireTime) {
+ return nil, false
+ }
+ return o.ExpireTime, true
+}
+
+// HasExpireTime returns a boolean if a field has been set.
+func (o *PartialUpdateZonePayload) HasExpireTime() bool {
+ if o != nil && !IsNil(o.ExpireTime) {
+ return true
+ }
+
+ return false
+}
+
+// SetExpireTime gets a reference to the given int32 and assigns it to the ExpireTime field.
+func (o *PartialUpdateZonePayload) SetExpireTime(v int32) {
+ o.ExpireTime = &v
+}
+
+// GetExtensions returns the Extensions field value if set, zero value otherwise.
+func (o *PartialUpdateZonePayload) GetExtensions() ZoneExtensions {
+ if o == nil || IsNil(o.Extensions) {
+ var ret ZoneExtensions
+ return ret
+ }
+ return *o.Extensions
+}
+
+// GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateZonePayload) GetExtensionsOk() (*ZoneExtensions, bool) {
+ if o == nil || IsNil(o.Extensions) {
+ return nil, false
+ }
+ return o.Extensions, true
+}
+
+// HasExtensions returns a boolean if a field has been set.
+func (o *PartialUpdateZonePayload) HasExtensions() bool {
+ if o != nil && !IsNil(o.Extensions) {
+ return true
+ }
+
+ return false
+}
+
+// SetExtensions gets a reference to the given ZoneExtensions and assigns it to the Extensions field.
+func (o *PartialUpdateZonePayload) SetExtensions(v ZoneExtensions) {
+ o.Extensions = &v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PartialUpdateZonePayload) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateZonePayload) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *PartialUpdateZonePayload) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *PartialUpdateZonePayload) SetName(v string) {
+ o.Name = &v
+}
+
+// GetNegativeCache returns the NegativeCache field value if set, zero value otherwise.
+func (o *PartialUpdateZonePayload) GetNegativeCache() int32 {
+ if o == nil || IsNil(o.NegativeCache) {
+ var ret int32
+ return ret
+ }
+ return *o.NegativeCache
+}
+
+// GetNegativeCacheOk returns a tuple with the NegativeCache field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateZonePayload) GetNegativeCacheOk() (*int32, bool) {
+ if o == nil || IsNil(o.NegativeCache) {
+ return nil, false
+ }
+ return o.NegativeCache, true
+}
+
+// HasNegativeCache returns a boolean if a field has been set.
+func (o *PartialUpdateZonePayload) HasNegativeCache() bool {
+ if o != nil && !IsNil(o.NegativeCache) {
+ return true
+ }
+
+ return false
+}
+
+// SetNegativeCache gets a reference to the given int32 and assigns it to the NegativeCache field.
+func (o *PartialUpdateZonePayload) SetNegativeCache(v int32) {
+ o.NegativeCache = &v
+}
+
+// GetPrimaries returns the Primaries field value if set, zero value otherwise.
+func (o *PartialUpdateZonePayload) GetPrimaries() []string {
+ if o == nil || IsNil(o.Primaries) {
+ var ret []string
+ return ret
+ }
+ return o.Primaries
+}
+
+// GetPrimariesOk returns a tuple with the Primaries field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateZonePayload) GetPrimariesOk() ([]string, bool) {
+ if o == nil || IsNil(o.Primaries) {
+ return nil, false
+ }
+ return o.Primaries, true
+}
+
+// HasPrimaries returns a boolean if a field has been set.
+func (o *PartialUpdateZonePayload) HasPrimaries() bool {
+ if o != nil && !IsNil(o.Primaries) {
+ return true
+ }
+
+ return false
+}
+
+// SetPrimaries gets a reference to the given []string and assigns it to the Primaries field.
+func (o *PartialUpdateZonePayload) SetPrimaries(v []string) {
+ o.Primaries = v
+}
+
+// GetRefreshTime returns the RefreshTime field value if set, zero value otherwise.
+func (o *PartialUpdateZonePayload) GetRefreshTime() int32 {
+ if o == nil || IsNil(o.RefreshTime) {
+ var ret int32
+ return ret
+ }
+ return *o.RefreshTime
+}
+
+// GetRefreshTimeOk returns a tuple with the RefreshTime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateZonePayload) GetRefreshTimeOk() (*int32, bool) {
+ if o == nil || IsNil(o.RefreshTime) {
+ return nil, false
+ }
+ return o.RefreshTime, true
+}
+
+// HasRefreshTime returns a boolean if a field has been set.
+func (o *PartialUpdateZonePayload) HasRefreshTime() bool {
+ if o != nil && !IsNil(o.RefreshTime) {
+ return true
+ }
+
+ return false
+}
+
+// SetRefreshTime gets a reference to the given int32 and assigns it to the RefreshTime field.
+func (o *PartialUpdateZonePayload) SetRefreshTime(v int32) {
+ o.RefreshTime = &v
+}
+
+// GetRetryTime returns the RetryTime field value if set, zero value otherwise.
+func (o *PartialUpdateZonePayload) GetRetryTime() int32 {
+ if o == nil || IsNil(o.RetryTime) {
+ var ret int32
+ return ret
+ }
+ return *o.RetryTime
+}
+
+// GetRetryTimeOk returns a tuple with the RetryTime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PartialUpdateZonePayload) GetRetryTimeOk() (*int32, bool) {
+ if o == nil || IsNil(o.RetryTime) {
+ return nil, false
+ }
+ return o.RetryTime, true
+}
+
+// HasRetryTime returns a boolean if a field has been set.
+func (o *PartialUpdateZonePayload) HasRetryTime() bool {
+ if o != nil && !IsNil(o.RetryTime) {
+ return true
+ }
+
+ return false
+}
+
+// SetRetryTime gets a reference to the given int32 and assigns it to the RetryTime field.
+func (o *PartialUpdateZonePayload) SetRetryTime(v int32) {
+ o.RetryTime = &v
+}
+
+func (o PartialUpdateZonePayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PartialUpdateZonePayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Acl) {
+ toSerialize["acl"] = o.Acl
+ }
+ if !IsNil(o.ContactEmail) {
+ toSerialize["contactEmail"] = o.ContactEmail
+ }
+ if !IsNil(o.DefaultTTL) {
+ toSerialize["defaultTTL"] = o.DefaultTTL
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.ExpireTime) {
+ toSerialize["expireTime"] = o.ExpireTime
+ }
+ if !IsNil(o.Extensions) {
+ toSerialize["extensions"] = o.Extensions
+ }
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.NegativeCache) {
+ toSerialize["negativeCache"] = o.NegativeCache
+ }
+ if !IsNil(o.Primaries) {
+ toSerialize["primaries"] = o.Primaries
+ }
+ if !IsNil(o.RefreshTime) {
+ toSerialize["refreshTime"] = o.RefreshTime
+ }
+ if !IsNil(o.RetryTime) {
+ toSerialize["retryTime"] = o.RetryTime
+ }
+ return toSerialize, nil
+}
+
+type NullablePartialUpdateZonePayload struct {
+ value *PartialUpdateZonePayload
+ isSet bool
+}
+
+func (v NullablePartialUpdateZonePayload) Get() *PartialUpdateZonePayload {
+ return v.value
+}
+
+func (v *NullablePartialUpdateZonePayload) Set(val *PartialUpdateZonePayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePartialUpdateZonePayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePartialUpdateZonePayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePartialUpdateZonePayload(val *PartialUpdateZonePayload) *NullablePartialUpdateZonePayload {
+ return &NullablePartialUpdateZonePayload{value: val, isSet: true}
+}
+
+func (v NullablePartialUpdateZonePayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePartialUpdateZonePayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_record.go b/services/dns/v1api/model_record.go
new file mode 100644
index 000000000..6567aa0f1
--- /dev/null
+++ b/services/dns/v1api/model_record.go
@@ -0,0 +1,187 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the Record type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &Record{}
+
+// Record Record.
+type Record struct {
+ // content of the record
+ Content string `json:"content"`
+ // rr set id
+ Id string `json:"id"`
+}
+
+type _Record Record
+
+// NewRecord instantiates a new Record 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
+func NewRecord(content string, id string) *Record {
+ this := Record{}
+ this.Content = content
+ this.Id = id
+ return &this
+}
+
+// NewRecordWithDefaults instantiates a new Record 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
+func NewRecordWithDefaults() *Record {
+ this := Record{}
+ return &this
+}
+
+// GetContent returns the Content field value
+func (o *Record) GetContent() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Content
+}
+
+// GetContentOk returns a tuple with the Content field value
+// and a boolean to check if the value has been set.
+func (o *Record) GetContentOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Content, true
+}
+
+// SetContent sets field value
+func (o *Record) SetContent(v string) {
+ o.Content = v
+}
+
+// GetId returns the Id field value
+func (o *Record) GetId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *Record) GetIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *Record) SetId(v string) {
+ o.Id = v
+}
+
+func (o Record) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o Record) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["content"] = o.Content
+ toSerialize["id"] = o.Id
+ return toSerialize, nil
+}
+
+func (o *Record) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "content",
+ "id",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varRecord := _Record{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varRecord)
+
+ if err != nil {
+ return err
+ }
+
+ *o = Record(varRecord)
+
+ return err
+}
+
+type NullableRecord struct {
+ value *Record
+ isSet bool
+}
+
+func (v NullableRecord) Get() *Record {
+ return v.value
+}
+
+func (v *NullableRecord) Set(val *Record) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRecord) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRecord) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRecord(val *Record) *NullableRecord {
+ return &NullableRecord{value: val, isSet: true}
+}
+
+func (v NullableRecord) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRecord) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_record_data_exchange.go b/services/dns/v1api/model_record_data_exchange.go
new file mode 100644
index 000000000..dd43f0f11
--- /dev/null
+++ b/services/dns/v1api/model_record_data_exchange.go
@@ -0,0 +1,269 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the RecordDataExchange type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &RecordDataExchange{}
+
+// RecordDataExchange struct for RecordDataExchange
+type RecordDataExchange struct {
+ Comment *string `json:"comment,omitempty"`
+ Content []string `json:"content,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Ttl *int32 `json:"ttl,omitempty"`
+ Type *string `json:"type,omitempty"`
+}
+
+// NewRecordDataExchange instantiates a new RecordDataExchange 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
+func NewRecordDataExchange() *RecordDataExchange {
+ this := RecordDataExchange{}
+ return &this
+}
+
+// NewRecordDataExchangeWithDefaults instantiates a new RecordDataExchange 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
+func NewRecordDataExchangeWithDefaults() *RecordDataExchange {
+ this := RecordDataExchange{}
+ return &this
+}
+
+// GetComment returns the Comment field value if set, zero value otherwise.
+func (o *RecordDataExchange) GetComment() string {
+ if o == nil || IsNil(o.Comment) {
+ var ret string
+ return ret
+ }
+ return *o.Comment
+}
+
+// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RecordDataExchange) GetCommentOk() (*string, bool) {
+ if o == nil || IsNil(o.Comment) {
+ return nil, false
+ }
+ return o.Comment, true
+}
+
+// HasComment returns a boolean if a field has been set.
+func (o *RecordDataExchange) HasComment() bool {
+ if o != nil && !IsNil(o.Comment) {
+ return true
+ }
+
+ return false
+}
+
+// SetComment gets a reference to the given string and assigns it to the Comment field.
+func (o *RecordDataExchange) SetComment(v string) {
+ o.Comment = &v
+}
+
+// GetContent returns the Content field value if set, zero value otherwise.
+func (o *RecordDataExchange) GetContent() []string {
+ if o == nil || IsNil(o.Content) {
+ var ret []string
+ return ret
+ }
+ return o.Content
+}
+
+// GetContentOk returns a tuple with the Content field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RecordDataExchange) GetContentOk() ([]string, bool) {
+ if o == nil || IsNil(o.Content) {
+ return nil, false
+ }
+ return o.Content, true
+}
+
+// HasContent returns a boolean if a field has been set.
+func (o *RecordDataExchange) HasContent() bool {
+ if o != nil && !IsNil(o.Content) {
+ return true
+ }
+
+ return false
+}
+
+// SetContent gets a reference to the given []string and assigns it to the Content field.
+func (o *RecordDataExchange) SetContent(v []string) {
+ o.Content = v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *RecordDataExchange) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RecordDataExchange) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *RecordDataExchange) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *RecordDataExchange) SetName(v string) {
+ o.Name = &v
+}
+
+// GetTtl returns the Ttl field value if set, zero value otherwise.
+func (o *RecordDataExchange) GetTtl() int32 {
+ if o == nil || IsNil(o.Ttl) {
+ var ret int32
+ return ret
+ }
+ return *o.Ttl
+}
+
+// GetTtlOk returns a tuple with the Ttl field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RecordDataExchange) GetTtlOk() (*int32, bool) {
+ if o == nil || IsNil(o.Ttl) {
+ return nil, false
+ }
+ return o.Ttl, true
+}
+
+// HasTtl returns a boolean if a field has been set.
+func (o *RecordDataExchange) HasTtl() bool {
+ if o != nil && !IsNil(o.Ttl) {
+ return true
+ }
+
+ return false
+}
+
+// SetTtl gets a reference to the given int32 and assigns it to the Ttl field.
+func (o *RecordDataExchange) SetTtl(v int32) {
+ o.Ttl = &v
+}
+
+// GetType returns the Type field value if set, zero value otherwise.
+func (o *RecordDataExchange) GetType() string {
+ if o == nil || IsNil(o.Type) {
+ var ret string
+ return ret
+ }
+ return *o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RecordDataExchange) GetTypeOk() (*string, bool) {
+ if o == nil || IsNil(o.Type) {
+ return nil, false
+ }
+ return o.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (o *RecordDataExchange) HasType() bool {
+ if o != nil && !IsNil(o.Type) {
+ return true
+ }
+
+ return false
+}
+
+// SetType gets a reference to the given string and assigns it to the Type field.
+func (o *RecordDataExchange) SetType(v string) {
+ o.Type = &v
+}
+
+func (o RecordDataExchange) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o RecordDataExchange) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Comment) {
+ toSerialize["comment"] = o.Comment
+ }
+ if !IsNil(o.Content) {
+ toSerialize["content"] = o.Content
+ }
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Ttl) {
+ toSerialize["ttl"] = o.Ttl
+ }
+ if !IsNil(o.Type) {
+ toSerialize["type"] = o.Type
+ }
+ return toSerialize, nil
+}
+
+type NullableRecordDataExchange struct {
+ value *RecordDataExchange
+ isSet bool
+}
+
+func (v NullableRecordDataExchange) Get() *RecordDataExchange {
+ return v.value
+}
+
+func (v *NullableRecordDataExchange) Set(val *RecordDataExchange) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRecordDataExchange) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRecordDataExchange) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRecordDataExchange(val *RecordDataExchange) *NullableRecordDataExchange {
+ return &NullableRecordDataExchange{value: val, isSet: true}
+}
+
+func (v NullableRecordDataExchange) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRecordDataExchange) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_record_payload.go b/services/dns/v1api/model_record_payload.go
new file mode 100644
index 000000000..6fad85c28
--- /dev/null
+++ b/services/dns/v1api/model_record_payload.go
@@ -0,0 +1,158 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the RecordPayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &RecordPayload{}
+
+// RecordPayload RecordPost for rr set info.
+type RecordPayload struct {
+ // content of the record
+ Content string `json:"content"`
+}
+
+type _RecordPayload RecordPayload
+
+// NewRecordPayload instantiates a new RecordPayload 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
+func NewRecordPayload(content string) *RecordPayload {
+ this := RecordPayload{}
+ this.Content = content
+ return &this
+}
+
+// NewRecordPayloadWithDefaults instantiates a new RecordPayload 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
+func NewRecordPayloadWithDefaults() *RecordPayload {
+ this := RecordPayload{}
+ return &this
+}
+
+// GetContent returns the Content field value
+func (o *RecordPayload) GetContent() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Content
+}
+
+// GetContentOk returns a tuple with the Content field value
+// and a boolean to check if the value has been set.
+func (o *RecordPayload) GetContentOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Content, true
+}
+
+// SetContent sets field value
+func (o *RecordPayload) SetContent(v string) {
+ o.Content = v
+}
+
+func (o RecordPayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o RecordPayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["content"] = o.Content
+ return toSerialize, nil
+}
+
+func (o *RecordPayload) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "content",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varRecordPayload := _RecordPayload{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varRecordPayload)
+
+ if err != nil {
+ return err
+ }
+
+ *o = RecordPayload(varRecordPayload)
+
+ return err
+}
+
+type NullableRecordPayload struct {
+ value *RecordPayload
+ isSet bool
+}
+
+func (v NullableRecordPayload) Get() *RecordPayload {
+ return v.value
+}
+
+func (v *NullableRecordPayload) Set(val *RecordPayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRecordPayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRecordPayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRecordPayload(val *RecordPayload) *NullableRecordPayload {
+ return &NullableRecordPayload{value: val, isSet: true}
+}
+
+func (v NullableRecordPayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRecordPayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_record_set.go b/services/dns/v1api/model_record_set.go
new file mode 100644
index 000000000..07e08f557
--- /dev/null
+++ b/services/dns/v1api/model_record_set.go
@@ -0,0 +1,530 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the RecordSet type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &RecordSet{}
+
+// RecordSet RRSet.
+type RecordSet struct {
+ // if the record set is active or not
+ Active *bool `json:"active,omitempty"`
+ // comment
+ Comment *string `json:"comment,omitempty"`
+ // when record set creation finished
+ CreationFinished string `json:"creationFinished"`
+ // when record set creation started
+ CreationStarted string `json:"creationStarted"`
+ // Error shows error in case create/update/delete failed
+ Error *string `json:"error,omitempty"`
+ // rr set id
+ Id string `json:"id"`
+ // name of the record which should be a valid domain according to rfc1035 Section 2.3.4. For APEX records (same as zone name), the zone name itself has to be put in here.
+ Name string `json:"name"`
+ // records
+ Records []Record `json:"records"`
+ // record set state
+ State string `json:"state"`
+ // time to live
+ Ttl int32 `json:"ttl"`
+ // record set type
+ Type string `json:"type"`
+ // when record set update/deletion finished
+ UpdateFinished string `json:"updateFinished"`
+ // when record set update/deletion started
+ UpdateStarted string `json:"updateStarted"`
+}
+
+type _RecordSet RecordSet
+
+// NewRecordSet instantiates a new RecordSet 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
+func NewRecordSet(creationFinished string, creationStarted string, id string, name string, records []Record, state string, ttl int32, types string, updateFinished string, updateStarted string) *RecordSet {
+ this := RecordSet{}
+ this.CreationFinished = creationFinished
+ this.CreationStarted = creationStarted
+ this.Id = id
+ this.Name = name
+ this.Records = records
+ this.State = state
+ this.Ttl = ttl
+ this.Type = types
+ this.UpdateFinished = updateFinished
+ this.UpdateStarted = updateStarted
+ return &this
+}
+
+// NewRecordSetWithDefaults instantiates a new RecordSet 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
+func NewRecordSetWithDefaults() *RecordSet {
+ this := RecordSet{}
+ return &this
+}
+
+// GetActive returns the Active field value if set, zero value otherwise.
+func (o *RecordSet) GetActive() bool {
+ if o == nil || IsNil(o.Active) {
+ var ret bool
+ return ret
+ }
+ return *o.Active
+}
+
+// GetActiveOk returns a tuple with the Active field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RecordSet) GetActiveOk() (*bool, bool) {
+ if o == nil || IsNil(o.Active) {
+ return nil, false
+ }
+ return o.Active, true
+}
+
+// HasActive returns a boolean if a field has been set.
+func (o *RecordSet) HasActive() bool {
+ if o != nil && !IsNil(o.Active) {
+ return true
+ }
+
+ return false
+}
+
+// SetActive gets a reference to the given bool and assigns it to the Active field.
+func (o *RecordSet) SetActive(v bool) {
+ o.Active = &v
+}
+
+// GetComment returns the Comment field value if set, zero value otherwise.
+func (o *RecordSet) GetComment() string {
+ if o == nil || IsNil(o.Comment) {
+ var ret string
+ return ret
+ }
+ return *o.Comment
+}
+
+// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RecordSet) GetCommentOk() (*string, bool) {
+ if o == nil || IsNil(o.Comment) {
+ return nil, false
+ }
+ return o.Comment, true
+}
+
+// HasComment returns a boolean if a field has been set.
+func (o *RecordSet) HasComment() bool {
+ if o != nil && !IsNil(o.Comment) {
+ return true
+ }
+
+ return false
+}
+
+// SetComment gets a reference to the given string and assigns it to the Comment field.
+func (o *RecordSet) SetComment(v string) {
+ o.Comment = &v
+}
+
+// GetCreationFinished returns the CreationFinished field value
+func (o *RecordSet) GetCreationFinished() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.CreationFinished
+}
+
+// GetCreationFinishedOk returns a tuple with the CreationFinished field value
+// and a boolean to check if the value has been set.
+func (o *RecordSet) GetCreationFinishedOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CreationFinished, true
+}
+
+// SetCreationFinished sets field value
+func (o *RecordSet) SetCreationFinished(v string) {
+ o.CreationFinished = v
+}
+
+// GetCreationStarted returns the CreationStarted field value
+func (o *RecordSet) GetCreationStarted() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.CreationStarted
+}
+
+// GetCreationStartedOk returns a tuple with the CreationStarted field value
+// and a boolean to check if the value has been set.
+func (o *RecordSet) GetCreationStartedOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CreationStarted, true
+}
+
+// SetCreationStarted sets field value
+func (o *RecordSet) SetCreationStarted(v string) {
+ o.CreationStarted = v
+}
+
+// GetError returns the Error field value if set, zero value otherwise.
+func (o *RecordSet) GetError() string {
+ if o == nil || IsNil(o.Error) {
+ var ret string
+ return ret
+ }
+ return *o.Error
+}
+
+// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RecordSet) GetErrorOk() (*string, bool) {
+ if o == nil || IsNil(o.Error) {
+ return nil, false
+ }
+ return o.Error, true
+}
+
+// HasError returns a boolean if a field has been set.
+func (o *RecordSet) HasError() bool {
+ if o != nil && !IsNil(o.Error) {
+ return true
+ }
+
+ return false
+}
+
+// SetError gets a reference to the given string and assigns it to the Error field.
+func (o *RecordSet) SetError(v string) {
+ o.Error = &v
+}
+
+// GetId returns the Id field value
+func (o *RecordSet) GetId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *RecordSet) GetIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *RecordSet) SetId(v string) {
+ o.Id = v
+}
+
+// GetName returns the Name field value
+func (o *RecordSet) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *RecordSet) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *RecordSet) SetName(v string) {
+ o.Name = v
+}
+
+// GetRecords returns the Records field value
+func (o *RecordSet) GetRecords() []Record {
+ if o == nil {
+ var ret []Record
+ return ret
+ }
+
+ return o.Records
+}
+
+// GetRecordsOk returns a tuple with the Records field value
+// and a boolean to check if the value has been set.
+func (o *RecordSet) GetRecordsOk() ([]Record, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Records, true
+}
+
+// SetRecords sets field value
+func (o *RecordSet) SetRecords(v []Record) {
+ o.Records = v
+}
+
+// GetState returns the State field value
+func (o *RecordSet) GetState() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.State
+}
+
+// GetStateOk returns a tuple with the State field value
+// and a boolean to check if the value has been set.
+func (o *RecordSet) GetStateOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.State, true
+}
+
+// SetState sets field value
+func (o *RecordSet) SetState(v string) {
+ o.State = v
+}
+
+// GetTtl returns the Ttl field value
+func (o *RecordSet) GetTtl() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.Ttl
+}
+
+// GetTtlOk returns a tuple with the Ttl field value
+// and a boolean to check if the value has been set.
+func (o *RecordSet) GetTtlOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Ttl, true
+}
+
+// SetTtl sets field value
+func (o *RecordSet) SetTtl(v int32) {
+ o.Ttl = v
+}
+
+// GetType returns the Type field value
+func (o *RecordSet) GetType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *RecordSet) GetTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *RecordSet) SetType(v string) {
+ o.Type = v
+}
+
+// GetUpdateFinished returns the UpdateFinished field value
+func (o *RecordSet) GetUpdateFinished() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.UpdateFinished
+}
+
+// GetUpdateFinishedOk returns a tuple with the UpdateFinished field value
+// and a boolean to check if the value has been set.
+func (o *RecordSet) GetUpdateFinishedOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdateFinished, true
+}
+
+// SetUpdateFinished sets field value
+func (o *RecordSet) SetUpdateFinished(v string) {
+ o.UpdateFinished = v
+}
+
+// GetUpdateStarted returns the UpdateStarted field value
+func (o *RecordSet) GetUpdateStarted() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.UpdateStarted
+}
+
+// GetUpdateStartedOk returns a tuple with the UpdateStarted field value
+// and a boolean to check if the value has been set.
+func (o *RecordSet) GetUpdateStartedOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdateStarted, true
+}
+
+// SetUpdateStarted sets field value
+func (o *RecordSet) SetUpdateStarted(v string) {
+ o.UpdateStarted = v
+}
+
+func (o RecordSet) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o RecordSet) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Active) {
+ toSerialize["active"] = o.Active
+ }
+ if !IsNil(o.Comment) {
+ toSerialize["comment"] = o.Comment
+ }
+ toSerialize["creationFinished"] = o.CreationFinished
+ toSerialize["creationStarted"] = o.CreationStarted
+ if !IsNil(o.Error) {
+ toSerialize["error"] = o.Error
+ }
+ toSerialize["id"] = o.Id
+ toSerialize["name"] = o.Name
+ toSerialize["records"] = o.Records
+ toSerialize["state"] = o.State
+ toSerialize["ttl"] = o.Ttl
+ toSerialize["type"] = o.Type
+ toSerialize["updateFinished"] = o.UpdateFinished
+ toSerialize["updateStarted"] = o.UpdateStarted
+ return toSerialize, nil
+}
+
+func (o *RecordSet) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "creationFinished",
+ "creationStarted",
+ "id",
+ "name",
+ "records",
+ "state",
+ "ttl",
+ "type",
+ "updateFinished",
+ "updateStarted",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varRecordSet := _RecordSet{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varRecordSet)
+
+ if err != nil {
+ return err
+ }
+
+ *o = RecordSet(varRecordSet)
+
+ return err
+}
+
+type NullableRecordSet struct {
+ value *RecordSet
+ isSet bool
+}
+
+func (v NullableRecordSet) Get() *RecordSet {
+ return v.value
+}
+
+func (v *NullableRecordSet) Set(val *RecordSet) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRecordSet) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRecordSet) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRecordSet(val *RecordSet) *NullableRecordSet {
+ return &NullableRecordSet{value: val, isSet: true}
+}
+
+func (v NullableRecordSet) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRecordSet) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_record_set_response.go b/services/dns/v1api/model_record_set_response.go
new file mode 100644
index 000000000..80d770bd3
--- /dev/null
+++ b/services/dns/v1api/model_record_set_response.go
@@ -0,0 +1,193 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the RecordSetResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &RecordSetResponse{}
+
+// RecordSetResponse ResponseRRSet for rr set info.
+type RecordSetResponse struct {
+ Message *string `json:"message,omitempty"`
+ Rrset RecordSet `json:"rrset"`
+}
+
+type _RecordSetResponse RecordSetResponse
+
+// NewRecordSetResponse instantiates a new RecordSetResponse 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
+func NewRecordSetResponse(rrset RecordSet) *RecordSetResponse {
+ this := RecordSetResponse{}
+ this.Rrset = rrset
+ return &this
+}
+
+// NewRecordSetResponseWithDefaults instantiates a new RecordSetResponse 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
+func NewRecordSetResponseWithDefaults() *RecordSetResponse {
+ this := RecordSetResponse{}
+ return &this
+}
+
+// GetMessage returns the Message field value if set, zero value otherwise.
+func (o *RecordSetResponse) GetMessage() string {
+ if o == nil || IsNil(o.Message) {
+ var ret string
+ return ret
+ }
+ return *o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RecordSetResponse) GetMessageOk() (*string, bool) {
+ if o == nil || IsNil(o.Message) {
+ return nil, false
+ }
+ return o.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (o *RecordSetResponse) HasMessage() bool {
+ if o != nil && !IsNil(o.Message) {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage gets a reference to the given string and assigns it to the Message field.
+func (o *RecordSetResponse) SetMessage(v string) {
+ o.Message = &v
+}
+
+// GetRrset returns the Rrset field value
+func (o *RecordSetResponse) GetRrset() RecordSet {
+ if o == nil {
+ var ret RecordSet
+ return ret
+ }
+
+ return o.Rrset
+}
+
+// GetRrsetOk returns a tuple with the Rrset field value
+// and a boolean to check if the value has been set.
+func (o *RecordSetResponse) GetRrsetOk() (*RecordSet, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Rrset, true
+}
+
+// SetRrset sets field value
+func (o *RecordSetResponse) SetRrset(v RecordSet) {
+ o.Rrset = v
+}
+
+func (o RecordSetResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o RecordSetResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Message) {
+ toSerialize["message"] = o.Message
+ }
+ toSerialize["rrset"] = o.Rrset
+ return toSerialize, nil
+}
+
+func (o *RecordSetResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "rrset",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varRecordSetResponse := _RecordSetResponse{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varRecordSetResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = RecordSetResponse(varRecordSetResponse)
+
+ return err
+}
+
+type NullableRecordSetResponse struct {
+ value *RecordSetResponse
+ isSet bool
+}
+
+func (v NullableRecordSetResponse) Get() *RecordSetResponse {
+ return v.value
+}
+
+func (v *NullableRecordSetResponse) Set(val *RecordSetResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRecordSetResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRecordSetResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRecordSetResponse(val *RecordSetResponse) *NullableRecordSetResponse {
+ return &NullableRecordSetResponse{value: val, isSet: true}
+}
+
+func (v NullableRecordSetResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRecordSetResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_validate_move_code_payload.go b/services/dns/v1api/model_validate_move_code_payload.go
new file mode 100644
index 000000000..cac4f7264
--- /dev/null
+++ b/services/dns/v1api/model_validate_move_code_payload.go
@@ -0,0 +1,158 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ValidateMoveCodePayload type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ValidateMoveCodePayload{}
+
+// ValidateMoveCodePayload PostValidateMoveCodeRequest body to validate move code request.
+type ValidateMoveCodePayload struct {
+ // code that should be validated. It validates if it is valid, not expired and belongs to the zone.
+ Code string `json:"code"`
+}
+
+type _ValidateMoveCodePayload ValidateMoveCodePayload
+
+// NewValidateMoveCodePayload instantiates a new ValidateMoveCodePayload 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
+func NewValidateMoveCodePayload(code string) *ValidateMoveCodePayload {
+ this := ValidateMoveCodePayload{}
+ this.Code = code
+ return &this
+}
+
+// NewValidateMoveCodePayloadWithDefaults instantiates a new ValidateMoveCodePayload 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
+func NewValidateMoveCodePayloadWithDefaults() *ValidateMoveCodePayload {
+ this := ValidateMoveCodePayload{}
+ return &this
+}
+
+// GetCode returns the Code field value
+func (o *ValidateMoveCodePayload) GetCode() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Code
+}
+
+// GetCodeOk returns a tuple with the Code field value
+// and a boolean to check if the value has been set.
+func (o *ValidateMoveCodePayload) GetCodeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Code, true
+}
+
+// SetCode sets field value
+func (o *ValidateMoveCodePayload) SetCode(v string) {
+ o.Code = v
+}
+
+func (o ValidateMoveCodePayload) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ValidateMoveCodePayload) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["code"] = o.Code
+ return toSerialize, nil
+}
+
+func (o *ValidateMoveCodePayload) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "code",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varValidateMoveCodePayload := _ValidateMoveCodePayload{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varValidateMoveCodePayload)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ValidateMoveCodePayload(varValidateMoveCodePayload)
+
+ return err
+}
+
+type NullableValidateMoveCodePayload struct {
+ value *ValidateMoveCodePayload
+ isSet bool
+}
+
+func (v NullableValidateMoveCodePayload) Get() *ValidateMoveCodePayload {
+ return v.value
+}
+
+func (v *NullableValidateMoveCodePayload) Set(val *ValidateMoveCodePayload) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableValidateMoveCodePayload) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableValidateMoveCodePayload) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableValidateMoveCodePayload(val *ValidateMoveCodePayload) *NullableValidateMoveCodePayload {
+ return &NullableValidateMoveCodePayload{value: val, isSet: true}
+}
+
+func (v NullableValidateMoveCodePayload) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableValidateMoveCodePayload) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_zone.go b/services/dns/v1api/model_zone.go
new file mode 100644
index 000000000..ee3ca09d1
--- /dev/null
+++ b/services/dns/v1api/model_zone.go
@@ -0,0 +1,981 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the Zone type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &Zone{}
+
+// Zone Zone.
+type Zone struct {
+ // access control list
+ Acl string `json:"acl"`
+ Active *bool `json:"active,omitempty"`
+ // contact email from soa record
+ ContactEmail *string `json:"contactEmail,omitempty"`
+ // when zone creation finished
+ CreationFinished string `json:"creationFinished"`
+ // when zone creation started
+ CreationStarted string `json:"creationStarted"`
+ // default time to live
+ DefaultTTL int32 `json:"defaultTTL"`
+ // description of the zone
+ Description *string `json:"description,omitempty"`
+ // zone name
+ DnsName string `json:"dnsName"`
+ // Error shows error in case create/update/delete failed
+ Error *string `json:"error,omitempty"`
+ // expire time
+ ExpireTime int32 `json:"expireTime"`
+ Extensions *DomainExtensions `json:"extensions,omitempty"`
+ // zone id
+ Id string `json:"id"`
+ // if the zone is a reverse zone or not
+ IsReverseZone *bool `json:"isReverseZone,omitempty"`
+ Labels []Label `json:"labels,omitempty"`
+ // user given name
+ Name string `json:"name"`
+ // negative caching
+ NegativeCache int32 `json:"negativeCache"`
+ // primary name server for secondary zone
+ Primaries []string `json:"primaries,omitempty"`
+ // primary name server. FQDN
+ PrimaryNameServer string `json:"primaryNameServer"`
+ // record count how many records are in the zone
+ RecordCount *int32 `json:"recordCount,omitempty"`
+ // refresh time
+ RefreshTime int32 `json:"refreshTime"`
+ // retry time
+ RetryTime int32 `json:"retryTime"`
+ // serial number
+ SerialNumber int32 `json:"serialNumber"`
+ // zone state
+ State string `json:"state"`
+ // zone type
+ Type string `json:"type"`
+ // when zone update/deletion finished
+ UpdateFinished string `json:"updateFinished"`
+ // when zone update/deletion started
+ UpdateStarted string `json:"updateStarted"`
+ // visibility of the zone
+ Visibility string `json:"visibility"`
+}
+
+type _Zone Zone
+
+// NewZone instantiates a new Zone 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
+func NewZone(acl string, creationFinished string, creationStarted string, defaultTTL int32, dnsName string, expireTime int32, id string, name string, negativeCache int32, primaryNameServer string, refreshTime int32, retryTime int32, serialNumber int32, state string, types string, updateFinished string, updateStarted string, visibility string) *Zone {
+ this := Zone{}
+ this.Acl = acl
+ this.CreationFinished = creationFinished
+ this.CreationStarted = creationStarted
+ this.DefaultTTL = defaultTTL
+ this.DnsName = dnsName
+ this.ExpireTime = expireTime
+ this.Id = id
+ this.Name = name
+ this.NegativeCache = negativeCache
+ this.PrimaryNameServer = primaryNameServer
+ this.RefreshTime = refreshTime
+ this.RetryTime = retryTime
+ this.SerialNumber = serialNumber
+ this.State = state
+ this.Type = types
+ this.UpdateFinished = updateFinished
+ this.UpdateStarted = updateStarted
+ this.Visibility = visibility
+ return &this
+}
+
+// NewZoneWithDefaults instantiates a new Zone 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
+func NewZoneWithDefaults() *Zone {
+ this := Zone{}
+ return &this
+}
+
+// GetAcl returns the Acl field value
+func (o *Zone) GetAcl() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Acl
+}
+
+// GetAclOk returns a tuple with the Acl field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetAclOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Acl, true
+}
+
+// SetAcl sets field value
+func (o *Zone) SetAcl(v string) {
+ o.Acl = v
+}
+
+// GetActive returns the Active field value if set, zero value otherwise.
+func (o *Zone) GetActive() bool {
+ if o == nil || IsNil(o.Active) {
+ var ret bool
+ return ret
+ }
+ return *o.Active
+}
+
+// GetActiveOk returns a tuple with the Active field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Zone) GetActiveOk() (*bool, bool) {
+ if o == nil || IsNil(o.Active) {
+ return nil, false
+ }
+ return o.Active, true
+}
+
+// HasActive returns a boolean if a field has been set.
+func (o *Zone) HasActive() bool {
+ if o != nil && !IsNil(o.Active) {
+ return true
+ }
+
+ return false
+}
+
+// SetActive gets a reference to the given bool and assigns it to the Active field.
+func (o *Zone) SetActive(v bool) {
+ o.Active = &v
+}
+
+// GetContactEmail returns the ContactEmail field value if set, zero value otherwise.
+func (o *Zone) GetContactEmail() string {
+ if o == nil || IsNil(o.ContactEmail) {
+ var ret string
+ return ret
+ }
+ return *o.ContactEmail
+}
+
+// GetContactEmailOk returns a tuple with the ContactEmail field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Zone) GetContactEmailOk() (*string, bool) {
+ if o == nil || IsNil(o.ContactEmail) {
+ return nil, false
+ }
+ return o.ContactEmail, true
+}
+
+// HasContactEmail returns a boolean if a field has been set.
+func (o *Zone) HasContactEmail() bool {
+ if o != nil && !IsNil(o.ContactEmail) {
+ return true
+ }
+
+ return false
+}
+
+// SetContactEmail gets a reference to the given string and assigns it to the ContactEmail field.
+func (o *Zone) SetContactEmail(v string) {
+ o.ContactEmail = &v
+}
+
+// GetCreationFinished returns the CreationFinished field value
+func (o *Zone) GetCreationFinished() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.CreationFinished
+}
+
+// GetCreationFinishedOk returns a tuple with the CreationFinished field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetCreationFinishedOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CreationFinished, true
+}
+
+// SetCreationFinished sets field value
+func (o *Zone) SetCreationFinished(v string) {
+ o.CreationFinished = v
+}
+
+// GetCreationStarted returns the CreationStarted field value
+func (o *Zone) GetCreationStarted() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.CreationStarted
+}
+
+// GetCreationStartedOk returns a tuple with the CreationStarted field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetCreationStartedOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CreationStarted, true
+}
+
+// SetCreationStarted sets field value
+func (o *Zone) SetCreationStarted(v string) {
+ o.CreationStarted = v
+}
+
+// GetDefaultTTL returns the DefaultTTL field value
+func (o *Zone) GetDefaultTTL() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.DefaultTTL
+}
+
+// GetDefaultTTLOk returns a tuple with the DefaultTTL field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetDefaultTTLOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DefaultTTL, true
+}
+
+// SetDefaultTTL sets field value
+func (o *Zone) SetDefaultTTL(v int32) {
+ o.DefaultTTL = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *Zone) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ var ret string
+ return ret
+ }
+ return *o.Description
+}
+
+// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Zone) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
+ return nil, false
+ }
+ return o.Description, true
+}
+
+// HasDescription returns a boolean if a field has been set.
+func (o *Zone) HasDescription() bool {
+ if o != nil && !IsNil(o.Description) {
+ return true
+ }
+
+ return false
+}
+
+// SetDescription gets a reference to the given string and assigns it to the Description field.
+func (o *Zone) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetDnsName returns the DnsName field value
+func (o *Zone) GetDnsName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.DnsName
+}
+
+// GetDnsNameOk returns a tuple with the DnsName field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetDnsNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DnsName, true
+}
+
+// SetDnsName sets field value
+func (o *Zone) SetDnsName(v string) {
+ o.DnsName = v
+}
+
+// GetError returns the Error field value if set, zero value otherwise.
+func (o *Zone) GetError() string {
+ if o == nil || IsNil(o.Error) {
+ var ret string
+ return ret
+ }
+ return *o.Error
+}
+
+// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Zone) GetErrorOk() (*string, bool) {
+ if o == nil || IsNil(o.Error) {
+ return nil, false
+ }
+ return o.Error, true
+}
+
+// HasError returns a boolean if a field has been set.
+func (o *Zone) HasError() bool {
+ if o != nil && !IsNil(o.Error) {
+ return true
+ }
+
+ return false
+}
+
+// SetError gets a reference to the given string and assigns it to the Error field.
+func (o *Zone) SetError(v string) {
+ o.Error = &v
+}
+
+// GetExpireTime returns the ExpireTime field value
+func (o *Zone) GetExpireTime() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.ExpireTime
+}
+
+// GetExpireTimeOk returns a tuple with the ExpireTime field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetExpireTimeOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ExpireTime, true
+}
+
+// SetExpireTime sets field value
+func (o *Zone) SetExpireTime(v int32) {
+ o.ExpireTime = v
+}
+
+// GetExtensions returns the Extensions field value if set, zero value otherwise.
+func (o *Zone) GetExtensions() DomainExtensions {
+ if o == nil || IsNil(o.Extensions) {
+ var ret DomainExtensions
+ return ret
+ }
+ return *o.Extensions
+}
+
+// GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Zone) GetExtensionsOk() (*DomainExtensions, bool) {
+ if o == nil || IsNil(o.Extensions) {
+ return nil, false
+ }
+ return o.Extensions, true
+}
+
+// HasExtensions returns a boolean if a field has been set.
+func (o *Zone) HasExtensions() bool {
+ if o != nil && !IsNil(o.Extensions) {
+ return true
+ }
+
+ return false
+}
+
+// SetExtensions gets a reference to the given DomainExtensions and assigns it to the Extensions field.
+func (o *Zone) SetExtensions(v DomainExtensions) {
+ o.Extensions = &v
+}
+
+// GetId returns the Id field value
+func (o *Zone) GetId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *Zone) SetId(v string) {
+ o.Id = v
+}
+
+// GetIsReverseZone returns the IsReverseZone field value if set, zero value otherwise.
+func (o *Zone) GetIsReverseZone() bool {
+ if o == nil || IsNil(o.IsReverseZone) {
+ var ret bool
+ return ret
+ }
+ return *o.IsReverseZone
+}
+
+// GetIsReverseZoneOk returns a tuple with the IsReverseZone field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Zone) GetIsReverseZoneOk() (*bool, bool) {
+ if o == nil || IsNil(o.IsReverseZone) {
+ return nil, false
+ }
+ return o.IsReverseZone, true
+}
+
+// HasIsReverseZone returns a boolean if a field has been set.
+func (o *Zone) HasIsReverseZone() bool {
+ if o != nil && !IsNil(o.IsReverseZone) {
+ return true
+ }
+
+ return false
+}
+
+// SetIsReverseZone gets a reference to the given bool and assigns it to the IsReverseZone field.
+func (o *Zone) SetIsReverseZone(v bool) {
+ o.IsReverseZone = &v
+}
+
+// GetLabels returns the Labels field value if set, zero value otherwise.
+func (o *Zone) GetLabels() []Label {
+ if o == nil || IsNil(o.Labels) {
+ var ret []Label
+ return ret
+ }
+ return o.Labels
+}
+
+// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Zone) GetLabelsOk() ([]Label, bool) {
+ if o == nil || IsNil(o.Labels) {
+ return nil, false
+ }
+ return o.Labels, true
+}
+
+// HasLabels returns a boolean if a field has been set.
+func (o *Zone) HasLabels() bool {
+ if o != nil && !IsNil(o.Labels) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabels gets a reference to the given []Label and assigns it to the Labels field.
+func (o *Zone) SetLabels(v []Label) {
+ o.Labels = v
+}
+
+// GetName returns the Name field value
+func (o *Zone) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *Zone) SetName(v string) {
+ o.Name = v
+}
+
+// GetNegativeCache returns the NegativeCache field value
+func (o *Zone) GetNegativeCache() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.NegativeCache
+}
+
+// GetNegativeCacheOk returns a tuple with the NegativeCache field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetNegativeCacheOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.NegativeCache, true
+}
+
+// SetNegativeCache sets field value
+func (o *Zone) SetNegativeCache(v int32) {
+ o.NegativeCache = v
+}
+
+// GetPrimaries returns the Primaries field value if set, zero value otherwise.
+func (o *Zone) GetPrimaries() []string {
+ if o == nil || IsNil(o.Primaries) {
+ var ret []string
+ return ret
+ }
+ return o.Primaries
+}
+
+// GetPrimariesOk returns a tuple with the Primaries field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Zone) GetPrimariesOk() ([]string, bool) {
+ if o == nil || IsNil(o.Primaries) {
+ return nil, false
+ }
+ return o.Primaries, true
+}
+
+// HasPrimaries returns a boolean if a field has been set.
+func (o *Zone) HasPrimaries() bool {
+ if o != nil && !IsNil(o.Primaries) {
+ return true
+ }
+
+ return false
+}
+
+// SetPrimaries gets a reference to the given []string and assigns it to the Primaries field.
+func (o *Zone) SetPrimaries(v []string) {
+ o.Primaries = v
+}
+
+// GetPrimaryNameServer returns the PrimaryNameServer field value
+func (o *Zone) GetPrimaryNameServer() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.PrimaryNameServer
+}
+
+// GetPrimaryNameServerOk returns a tuple with the PrimaryNameServer field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetPrimaryNameServerOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PrimaryNameServer, true
+}
+
+// SetPrimaryNameServer sets field value
+func (o *Zone) SetPrimaryNameServer(v string) {
+ o.PrimaryNameServer = v
+}
+
+// GetRecordCount returns the RecordCount field value if set, zero value otherwise.
+func (o *Zone) GetRecordCount() int32 {
+ if o == nil || IsNil(o.RecordCount) {
+ var ret int32
+ return ret
+ }
+ return *o.RecordCount
+}
+
+// GetRecordCountOk returns a tuple with the RecordCount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Zone) GetRecordCountOk() (*int32, bool) {
+ if o == nil || IsNil(o.RecordCount) {
+ return nil, false
+ }
+ return o.RecordCount, true
+}
+
+// HasRecordCount returns a boolean if a field has been set.
+func (o *Zone) HasRecordCount() bool {
+ if o != nil && !IsNil(o.RecordCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetRecordCount gets a reference to the given int32 and assigns it to the RecordCount field.
+func (o *Zone) SetRecordCount(v int32) {
+ o.RecordCount = &v
+}
+
+// GetRefreshTime returns the RefreshTime field value
+func (o *Zone) GetRefreshTime() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.RefreshTime
+}
+
+// GetRefreshTimeOk returns a tuple with the RefreshTime field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetRefreshTimeOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.RefreshTime, true
+}
+
+// SetRefreshTime sets field value
+func (o *Zone) SetRefreshTime(v int32) {
+ o.RefreshTime = v
+}
+
+// GetRetryTime returns the RetryTime field value
+func (o *Zone) GetRetryTime() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.RetryTime
+}
+
+// GetRetryTimeOk returns a tuple with the RetryTime field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetRetryTimeOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.RetryTime, true
+}
+
+// SetRetryTime sets field value
+func (o *Zone) SetRetryTime(v int32) {
+ o.RetryTime = v
+}
+
+// GetSerialNumber returns the SerialNumber field value
+func (o *Zone) GetSerialNumber() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.SerialNumber
+}
+
+// GetSerialNumberOk returns a tuple with the SerialNumber field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetSerialNumberOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.SerialNumber, true
+}
+
+// SetSerialNumber sets field value
+func (o *Zone) SetSerialNumber(v int32) {
+ o.SerialNumber = v
+}
+
+// GetState returns the State field value
+func (o *Zone) GetState() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.State
+}
+
+// GetStateOk returns a tuple with the State field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetStateOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.State, true
+}
+
+// SetState sets field value
+func (o *Zone) SetState(v string) {
+ o.State = v
+}
+
+// GetType returns the Type field value
+func (o *Zone) GetType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Type, true
+}
+
+// SetType sets field value
+func (o *Zone) SetType(v string) {
+ o.Type = v
+}
+
+// GetUpdateFinished returns the UpdateFinished field value
+func (o *Zone) GetUpdateFinished() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.UpdateFinished
+}
+
+// GetUpdateFinishedOk returns a tuple with the UpdateFinished field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetUpdateFinishedOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdateFinished, true
+}
+
+// SetUpdateFinished sets field value
+func (o *Zone) SetUpdateFinished(v string) {
+ o.UpdateFinished = v
+}
+
+// GetUpdateStarted returns the UpdateStarted field value
+func (o *Zone) GetUpdateStarted() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.UpdateStarted
+}
+
+// GetUpdateStartedOk returns a tuple with the UpdateStarted field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetUpdateStartedOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdateStarted, true
+}
+
+// SetUpdateStarted sets field value
+func (o *Zone) SetUpdateStarted(v string) {
+ o.UpdateStarted = v
+}
+
+// GetVisibility returns the Visibility field value
+func (o *Zone) GetVisibility() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Visibility
+}
+
+// GetVisibilityOk returns a tuple with the Visibility field value
+// and a boolean to check if the value has been set.
+func (o *Zone) GetVisibilityOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Visibility, true
+}
+
+// SetVisibility sets field value
+func (o *Zone) SetVisibility(v string) {
+ o.Visibility = v
+}
+
+func (o Zone) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o Zone) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["acl"] = o.Acl
+ if !IsNil(o.Active) {
+ toSerialize["active"] = o.Active
+ }
+ if !IsNil(o.ContactEmail) {
+ toSerialize["contactEmail"] = o.ContactEmail
+ }
+ toSerialize["creationFinished"] = o.CreationFinished
+ toSerialize["creationStarted"] = o.CreationStarted
+ toSerialize["defaultTTL"] = o.DefaultTTL
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ toSerialize["dnsName"] = o.DnsName
+ if !IsNil(o.Error) {
+ toSerialize["error"] = o.Error
+ }
+ toSerialize["expireTime"] = o.ExpireTime
+ if !IsNil(o.Extensions) {
+ toSerialize["extensions"] = o.Extensions
+ }
+ toSerialize["id"] = o.Id
+ if !IsNil(o.IsReverseZone) {
+ toSerialize["isReverseZone"] = o.IsReverseZone
+ }
+ if !IsNil(o.Labels) {
+ toSerialize["labels"] = o.Labels
+ }
+ toSerialize["name"] = o.Name
+ toSerialize["negativeCache"] = o.NegativeCache
+ if !IsNil(o.Primaries) {
+ toSerialize["primaries"] = o.Primaries
+ }
+ toSerialize["primaryNameServer"] = o.PrimaryNameServer
+ if !IsNil(o.RecordCount) {
+ toSerialize["recordCount"] = o.RecordCount
+ }
+ toSerialize["refreshTime"] = o.RefreshTime
+ toSerialize["retryTime"] = o.RetryTime
+ toSerialize["serialNumber"] = o.SerialNumber
+ toSerialize["state"] = o.State
+ toSerialize["type"] = o.Type
+ toSerialize["updateFinished"] = o.UpdateFinished
+ toSerialize["updateStarted"] = o.UpdateStarted
+ toSerialize["visibility"] = o.Visibility
+ return toSerialize, nil
+}
+
+func (o *Zone) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "acl",
+ "creationFinished",
+ "creationStarted",
+ "defaultTTL",
+ "dnsName",
+ "expireTime",
+ "id",
+ "name",
+ "negativeCache",
+ "primaryNameServer",
+ "refreshTime",
+ "retryTime",
+ "serialNumber",
+ "state",
+ "type",
+ "updateFinished",
+ "updateStarted",
+ "visibility",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varZone := _Zone{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varZone)
+
+ if err != nil {
+ return err
+ }
+
+ *o = Zone(varZone)
+
+ return err
+}
+
+type NullableZone struct {
+ value *Zone
+ isSet bool
+}
+
+func (v NullableZone) Get() *Zone {
+ return v.value
+}
+
+func (v *NullableZone) Set(val *Zone) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableZone) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableZone) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableZone(val *Zone) *NullableZone {
+ return &NullableZone{value: val, isSet: true}
+}
+
+func (v NullableZone) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableZone) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_zone_data_exchange.go b/services/dns/v1api/model_zone_data_exchange.go
new file mode 100644
index 000000000..4d4a94729
--- /dev/null
+++ b/services/dns/v1api/model_zone_data_exchange.go
@@ -0,0 +1,125 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the ZoneDataExchange type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ZoneDataExchange{}
+
+// ZoneDataExchange struct for ZoneDataExchange
+type ZoneDataExchange struct {
+ RrSets []RecordDataExchange `json:"rrSets,omitempty"`
+}
+
+// NewZoneDataExchange instantiates a new ZoneDataExchange 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
+func NewZoneDataExchange() *ZoneDataExchange {
+ this := ZoneDataExchange{}
+ return &this
+}
+
+// NewZoneDataExchangeWithDefaults instantiates a new ZoneDataExchange 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
+func NewZoneDataExchangeWithDefaults() *ZoneDataExchange {
+ this := ZoneDataExchange{}
+ return &this
+}
+
+// GetRrSets returns the RrSets field value if set, zero value otherwise.
+func (o *ZoneDataExchange) GetRrSets() []RecordDataExchange {
+ if o == nil || IsNil(o.RrSets) {
+ var ret []RecordDataExchange
+ return ret
+ }
+ return o.RrSets
+}
+
+// GetRrSetsOk returns a tuple with the RrSets field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ZoneDataExchange) GetRrSetsOk() ([]RecordDataExchange, bool) {
+ if o == nil || IsNil(o.RrSets) {
+ return nil, false
+ }
+ return o.RrSets, true
+}
+
+// HasRrSets returns a boolean if a field has been set.
+func (o *ZoneDataExchange) HasRrSets() bool {
+ if o != nil && !IsNil(o.RrSets) {
+ return true
+ }
+
+ return false
+}
+
+// SetRrSets gets a reference to the given []RecordDataExchange and assigns it to the RrSets field.
+func (o *ZoneDataExchange) SetRrSets(v []RecordDataExchange) {
+ o.RrSets = v
+}
+
+func (o ZoneDataExchange) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ZoneDataExchange) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.RrSets) {
+ toSerialize["rrSets"] = o.RrSets
+ }
+ return toSerialize, nil
+}
+
+type NullableZoneDataExchange struct {
+ value *ZoneDataExchange
+ isSet bool
+}
+
+func (v NullableZoneDataExchange) Get() *ZoneDataExchange {
+ return v.value
+}
+
+func (v *NullableZoneDataExchange) Set(val *ZoneDataExchange) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableZoneDataExchange) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableZoneDataExchange) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableZoneDataExchange(val *ZoneDataExchange) *NullableZoneDataExchange {
+ return &NullableZoneDataExchange{value: val, isSet: true}
+}
+
+func (v NullableZoneDataExchange) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableZoneDataExchange) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_zone_extensions.go b/services/dns/v1api/model_zone_extensions.go
new file mode 100644
index 000000000..97a600e53
--- /dev/null
+++ b/services/dns/v1api/model_zone_extensions.go
@@ -0,0 +1,125 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the ZoneExtensions type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ZoneExtensions{}
+
+// ZoneExtensions struct for ZoneExtensions
+type ZoneExtensions struct {
+ ObservabilityExtension *ZoneObservabilityExtension `json:"observabilityExtension,omitempty"`
+}
+
+// NewZoneExtensions instantiates a new ZoneExtensions 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
+func NewZoneExtensions() *ZoneExtensions {
+ this := ZoneExtensions{}
+ return &this
+}
+
+// NewZoneExtensionsWithDefaults instantiates a new ZoneExtensions 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
+func NewZoneExtensionsWithDefaults() *ZoneExtensions {
+ this := ZoneExtensions{}
+ return &this
+}
+
+// GetObservabilityExtension returns the ObservabilityExtension field value if set, zero value otherwise.
+func (o *ZoneExtensions) GetObservabilityExtension() ZoneObservabilityExtension {
+ if o == nil || IsNil(o.ObservabilityExtension) {
+ var ret ZoneObservabilityExtension
+ return ret
+ }
+ return *o.ObservabilityExtension
+}
+
+// GetObservabilityExtensionOk returns a tuple with the ObservabilityExtension field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ZoneExtensions) GetObservabilityExtensionOk() (*ZoneObservabilityExtension, bool) {
+ if o == nil || IsNil(o.ObservabilityExtension) {
+ return nil, false
+ }
+ return o.ObservabilityExtension, true
+}
+
+// HasObservabilityExtension returns a boolean if a field has been set.
+func (o *ZoneExtensions) HasObservabilityExtension() bool {
+ if o != nil && !IsNil(o.ObservabilityExtension) {
+ return true
+ }
+
+ return false
+}
+
+// SetObservabilityExtension gets a reference to the given ZoneObservabilityExtension and assigns it to the ObservabilityExtension field.
+func (o *ZoneExtensions) SetObservabilityExtension(v ZoneObservabilityExtension) {
+ o.ObservabilityExtension = &v
+}
+
+func (o ZoneExtensions) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ZoneExtensions) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.ObservabilityExtension) {
+ toSerialize["observabilityExtension"] = o.ObservabilityExtension
+ }
+ return toSerialize, nil
+}
+
+type NullableZoneExtensions struct {
+ value *ZoneExtensions
+ isSet bool
+}
+
+func (v NullableZoneExtensions) Get() *ZoneExtensions {
+ return v.value
+}
+
+func (v *NullableZoneExtensions) Set(val *ZoneExtensions) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableZoneExtensions) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableZoneExtensions) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableZoneExtensions(val *ZoneExtensions) *NullableZoneExtensions {
+ return &NullableZoneExtensions{value: val, isSet: true}
+}
+
+func (v NullableZoneExtensions) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableZoneExtensions) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_zone_models_import_record_model.go b/services/dns/v1api/model_zone_models_import_record_model.go
new file mode 100644
index 000000000..0e934adbb
--- /dev/null
+++ b/services/dns/v1api/model_zone_models_import_record_model.go
@@ -0,0 +1,269 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the ZoneModelsImportRecordModel type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ZoneModelsImportRecordModel{}
+
+// ZoneModelsImportRecordModel struct for ZoneModelsImportRecordModel
+type ZoneModelsImportRecordModel struct {
+ Comment *string `json:"comment,omitempty"`
+ Content []string `json:"content,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Ttl *int32 `json:"ttl,omitempty"`
+ Type *string `json:"type,omitempty"`
+}
+
+// NewZoneModelsImportRecordModel instantiates a new ZoneModelsImportRecordModel 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
+func NewZoneModelsImportRecordModel() *ZoneModelsImportRecordModel {
+ this := ZoneModelsImportRecordModel{}
+ return &this
+}
+
+// NewZoneModelsImportRecordModelWithDefaults instantiates a new ZoneModelsImportRecordModel 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
+func NewZoneModelsImportRecordModelWithDefaults() *ZoneModelsImportRecordModel {
+ this := ZoneModelsImportRecordModel{}
+ return &this
+}
+
+// GetComment returns the Comment field value if set, zero value otherwise.
+func (o *ZoneModelsImportRecordModel) GetComment() string {
+ if o == nil || IsNil(o.Comment) {
+ var ret string
+ return ret
+ }
+ return *o.Comment
+}
+
+// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ZoneModelsImportRecordModel) GetCommentOk() (*string, bool) {
+ if o == nil || IsNil(o.Comment) {
+ return nil, false
+ }
+ return o.Comment, true
+}
+
+// HasComment returns a boolean if a field has been set.
+func (o *ZoneModelsImportRecordModel) HasComment() bool {
+ if o != nil && !IsNil(o.Comment) {
+ return true
+ }
+
+ return false
+}
+
+// SetComment gets a reference to the given string and assigns it to the Comment field.
+func (o *ZoneModelsImportRecordModel) SetComment(v string) {
+ o.Comment = &v
+}
+
+// GetContent returns the Content field value if set, zero value otherwise.
+func (o *ZoneModelsImportRecordModel) GetContent() []string {
+ if o == nil || IsNil(o.Content) {
+ var ret []string
+ return ret
+ }
+ return o.Content
+}
+
+// GetContentOk returns a tuple with the Content field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ZoneModelsImportRecordModel) GetContentOk() ([]string, bool) {
+ if o == nil || IsNil(o.Content) {
+ return nil, false
+ }
+ return o.Content, true
+}
+
+// HasContent returns a boolean if a field has been set.
+func (o *ZoneModelsImportRecordModel) HasContent() bool {
+ if o != nil && !IsNil(o.Content) {
+ return true
+ }
+
+ return false
+}
+
+// SetContent gets a reference to the given []string and assigns it to the Content field.
+func (o *ZoneModelsImportRecordModel) SetContent(v []string) {
+ o.Content = v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *ZoneModelsImportRecordModel) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ZoneModelsImportRecordModel) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *ZoneModelsImportRecordModel) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *ZoneModelsImportRecordModel) SetName(v string) {
+ o.Name = &v
+}
+
+// GetTtl returns the Ttl field value if set, zero value otherwise.
+func (o *ZoneModelsImportRecordModel) GetTtl() int32 {
+ if o == nil || IsNil(o.Ttl) {
+ var ret int32
+ return ret
+ }
+ return *o.Ttl
+}
+
+// GetTtlOk returns a tuple with the Ttl field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ZoneModelsImportRecordModel) GetTtlOk() (*int32, bool) {
+ if o == nil || IsNil(o.Ttl) {
+ return nil, false
+ }
+ return o.Ttl, true
+}
+
+// HasTtl returns a boolean if a field has been set.
+func (o *ZoneModelsImportRecordModel) HasTtl() bool {
+ if o != nil && !IsNil(o.Ttl) {
+ return true
+ }
+
+ return false
+}
+
+// SetTtl gets a reference to the given int32 and assigns it to the Ttl field.
+func (o *ZoneModelsImportRecordModel) SetTtl(v int32) {
+ o.Ttl = &v
+}
+
+// GetType returns the Type field value if set, zero value otherwise.
+func (o *ZoneModelsImportRecordModel) GetType() string {
+ if o == nil || IsNil(o.Type) {
+ var ret string
+ return ret
+ }
+ return *o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ZoneModelsImportRecordModel) GetTypeOk() (*string, bool) {
+ if o == nil || IsNil(o.Type) {
+ return nil, false
+ }
+ return o.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (o *ZoneModelsImportRecordModel) HasType() bool {
+ if o != nil && !IsNil(o.Type) {
+ return true
+ }
+
+ return false
+}
+
+// SetType gets a reference to the given string and assigns it to the Type field.
+func (o *ZoneModelsImportRecordModel) SetType(v string) {
+ o.Type = &v
+}
+
+func (o ZoneModelsImportRecordModel) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ZoneModelsImportRecordModel) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Comment) {
+ toSerialize["comment"] = o.Comment
+ }
+ if !IsNil(o.Content) {
+ toSerialize["content"] = o.Content
+ }
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Ttl) {
+ toSerialize["ttl"] = o.Ttl
+ }
+ if !IsNil(o.Type) {
+ toSerialize["type"] = o.Type
+ }
+ return toSerialize, nil
+}
+
+type NullableZoneModelsImportRecordModel struct {
+ value *ZoneModelsImportRecordModel
+ isSet bool
+}
+
+func (v NullableZoneModelsImportRecordModel) Get() *ZoneModelsImportRecordModel {
+ return v.value
+}
+
+func (v *NullableZoneModelsImportRecordModel) Set(val *ZoneModelsImportRecordModel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableZoneModelsImportRecordModel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableZoneModelsImportRecordModel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableZoneModelsImportRecordModel(val *ZoneModelsImportRecordModel) *NullableZoneModelsImportRecordModel {
+ return &NullableZoneModelsImportRecordModel{value: val, isSet: true}
+}
+
+func (v NullableZoneModelsImportRecordModel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableZoneModelsImportRecordModel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_zone_models_import_zone_json.go b/services/dns/v1api/model_zone_models_import_zone_json.go
new file mode 100644
index 000000000..c462b5ddf
--- /dev/null
+++ b/services/dns/v1api/model_zone_models_import_zone_json.go
@@ -0,0 +1,125 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "encoding/json"
+)
+
+// checks if the ZoneModelsImportZoneJson type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ZoneModelsImportZoneJson{}
+
+// ZoneModelsImportZoneJson struct for ZoneModelsImportZoneJson
+type ZoneModelsImportZoneJson struct {
+ RrSets []ZoneModelsImportRecordModel `json:"rrSets,omitempty"`
+}
+
+// NewZoneModelsImportZoneJson instantiates a new ZoneModelsImportZoneJson 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
+func NewZoneModelsImportZoneJson() *ZoneModelsImportZoneJson {
+ this := ZoneModelsImportZoneJson{}
+ return &this
+}
+
+// NewZoneModelsImportZoneJsonWithDefaults instantiates a new ZoneModelsImportZoneJson 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
+func NewZoneModelsImportZoneJsonWithDefaults() *ZoneModelsImportZoneJson {
+ this := ZoneModelsImportZoneJson{}
+ return &this
+}
+
+// GetRrSets returns the RrSets field value if set, zero value otherwise.
+func (o *ZoneModelsImportZoneJson) GetRrSets() []ZoneModelsImportRecordModel {
+ if o == nil || IsNil(o.RrSets) {
+ var ret []ZoneModelsImportRecordModel
+ return ret
+ }
+ return o.RrSets
+}
+
+// GetRrSetsOk returns a tuple with the RrSets field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ZoneModelsImportZoneJson) GetRrSetsOk() ([]ZoneModelsImportRecordModel, bool) {
+ if o == nil || IsNil(o.RrSets) {
+ return nil, false
+ }
+ return o.RrSets, true
+}
+
+// HasRrSets returns a boolean if a field has been set.
+func (o *ZoneModelsImportZoneJson) HasRrSets() bool {
+ if o != nil && !IsNil(o.RrSets) {
+ return true
+ }
+
+ return false
+}
+
+// SetRrSets gets a reference to the given []ZoneModelsImportRecordModel and assigns it to the RrSets field.
+func (o *ZoneModelsImportZoneJson) SetRrSets(v []ZoneModelsImportRecordModel) {
+ o.RrSets = v
+}
+
+func (o ZoneModelsImportZoneJson) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ZoneModelsImportZoneJson) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.RrSets) {
+ toSerialize["rrSets"] = o.RrSets
+ }
+ return toSerialize, nil
+}
+
+type NullableZoneModelsImportZoneJson struct {
+ value *ZoneModelsImportZoneJson
+ isSet bool
+}
+
+func (v NullableZoneModelsImportZoneJson) Get() *ZoneModelsImportZoneJson {
+ return v.value
+}
+
+func (v *NullableZoneModelsImportZoneJson) Set(val *ZoneModelsImportZoneJson) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableZoneModelsImportZoneJson) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableZoneModelsImportZoneJson) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableZoneModelsImportZoneJson(val *ZoneModelsImportZoneJson) *NullableZoneModelsImportZoneJson {
+ return &NullableZoneModelsImportZoneJson{value: val, isSet: true}
+}
+
+func (v NullableZoneModelsImportZoneJson) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableZoneModelsImportZoneJson) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_zone_observability_extension.go b/services/dns/v1api/model_zone_observability_extension.go
new file mode 100644
index 000000000..70be905d0
--- /dev/null
+++ b/services/dns/v1api/model_zone_observability_extension.go
@@ -0,0 +1,193 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ZoneObservabilityExtension type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ZoneObservabilityExtension{}
+
+// ZoneObservabilityExtension struct for ZoneObservabilityExtension
+type ZoneObservabilityExtension struct {
+ ObservabilityInstanceId string `json:"observabilityInstanceId"`
+ State *string `json:"state,omitempty"`
+}
+
+type _ZoneObservabilityExtension ZoneObservabilityExtension
+
+// NewZoneObservabilityExtension instantiates a new ZoneObservabilityExtension 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
+func NewZoneObservabilityExtension(observabilityInstanceId string) *ZoneObservabilityExtension {
+ this := ZoneObservabilityExtension{}
+ this.ObservabilityInstanceId = observabilityInstanceId
+ return &this
+}
+
+// NewZoneObservabilityExtensionWithDefaults instantiates a new ZoneObservabilityExtension 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
+func NewZoneObservabilityExtensionWithDefaults() *ZoneObservabilityExtension {
+ this := ZoneObservabilityExtension{}
+ return &this
+}
+
+// GetObservabilityInstanceId returns the ObservabilityInstanceId field value
+func (o *ZoneObservabilityExtension) GetObservabilityInstanceId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ObservabilityInstanceId
+}
+
+// GetObservabilityInstanceIdOk returns a tuple with the ObservabilityInstanceId field value
+// and a boolean to check if the value has been set.
+func (o *ZoneObservabilityExtension) GetObservabilityInstanceIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ObservabilityInstanceId, true
+}
+
+// SetObservabilityInstanceId sets field value
+func (o *ZoneObservabilityExtension) SetObservabilityInstanceId(v string) {
+ o.ObservabilityInstanceId = v
+}
+
+// GetState returns the State field value if set, zero value otherwise.
+func (o *ZoneObservabilityExtension) GetState() string {
+ if o == nil || IsNil(o.State) {
+ var ret string
+ return ret
+ }
+ return *o.State
+}
+
+// GetStateOk returns a tuple with the State field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ZoneObservabilityExtension) GetStateOk() (*string, bool) {
+ if o == nil || IsNil(o.State) {
+ return nil, false
+ }
+ return o.State, true
+}
+
+// HasState returns a boolean if a field has been set.
+func (o *ZoneObservabilityExtension) HasState() bool {
+ if o != nil && !IsNil(o.State) {
+ return true
+ }
+
+ return false
+}
+
+// SetState gets a reference to the given string and assigns it to the State field.
+func (o *ZoneObservabilityExtension) SetState(v string) {
+ o.State = &v
+}
+
+func (o ZoneObservabilityExtension) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ZoneObservabilityExtension) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["observabilityInstanceId"] = o.ObservabilityInstanceId
+ if !IsNil(o.State) {
+ toSerialize["state"] = o.State
+ }
+ return toSerialize, nil
+}
+
+func (o *ZoneObservabilityExtension) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "observabilityInstanceId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varZoneObservabilityExtension := _ZoneObservabilityExtension{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varZoneObservabilityExtension)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ZoneObservabilityExtension(varZoneObservabilityExtension)
+
+ return err
+}
+
+type NullableZoneObservabilityExtension struct {
+ value *ZoneObservabilityExtension
+ isSet bool
+}
+
+func (v NullableZoneObservabilityExtension) Get() *ZoneObservabilityExtension {
+ return v.value
+}
+
+func (v *NullableZoneObservabilityExtension) Set(val *ZoneObservabilityExtension) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableZoneObservabilityExtension) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableZoneObservabilityExtension) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableZoneObservabilityExtension(val *ZoneObservabilityExtension) *NullableZoneObservabilityExtension {
+ return &NullableZoneObservabilityExtension{value: val, isSet: true}
+}
+
+func (v NullableZoneObservabilityExtension) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableZoneObservabilityExtension) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/model_zone_response.go b/services/dns/v1api/model_zone_response.go
new file mode 100644
index 000000000..a25b69a78
--- /dev/null
+++ b/services/dns/v1api/model_zone_response.go
@@ -0,0 +1,193 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ZoneResponse type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ZoneResponse{}
+
+// ZoneResponse ResponseZone for user info.
+type ZoneResponse struct {
+ Message *string `json:"message,omitempty"`
+ Zone Zone `json:"zone"`
+}
+
+type _ZoneResponse ZoneResponse
+
+// NewZoneResponse instantiates a new ZoneResponse 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
+func NewZoneResponse(zone Zone) *ZoneResponse {
+ this := ZoneResponse{}
+ this.Zone = zone
+ return &this
+}
+
+// NewZoneResponseWithDefaults instantiates a new ZoneResponse 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
+func NewZoneResponseWithDefaults() *ZoneResponse {
+ this := ZoneResponse{}
+ return &this
+}
+
+// GetMessage returns the Message field value if set, zero value otherwise.
+func (o *ZoneResponse) GetMessage() string {
+ if o == nil || IsNil(o.Message) {
+ var ret string
+ return ret
+ }
+ return *o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ZoneResponse) GetMessageOk() (*string, bool) {
+ if o == nil || IsNil(o.Message) {
+ return nil, false
+ }
+ return o.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (o *ZoneResponse) HasMessage() bool {
+ if o != nil && !IsNil(o.Message) {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage gets a reference to the given string and assigns it to the Message field.
+func (o *ZoneResponse) SetMessage(v string) {
+ o.Message = &v
+}
+
+// GetZone returns the Zone field value
+func (o *ZoneResponse) GetZone() Zone {
+ if o == nil {
+ var ret Zone
+ return ret
+ }
+
+ return o.Zone
+}
+
+// GetZoneOk returns a tuple with the Zone field value
+// and a boolean to check if the value has been set.
+func (o *ZoneResponse) GetZoneOk() (*Zone, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Zone, true
+}
+
+// SetZone sets field value
+func (o *ZoneResponse) SetZone(v Zone) {
+ o.Zone = v
+}
+
+func (o ZoneResponse) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ZoneResponse) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Message) {
+ toSerialize["message"] = o.Message
+ }
+ toSerialize["zone"] = o.Zone
+ return toSerialize, nil
+}
+
+func (o *ZoneResponse) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "zone",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varZoneResponse := _ZoneResponse{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varZoneResponse)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ZoneResponse(varZoneResponse)
+
+ return err
+}
+
+type NullableZoneResponse struct {
+ value *ZoneResponse
+ isSet bool
+}
+
+func (v NullableZoneResponse) Get() *ZoneResponse {
+ return v.value
+}
+
+func (v *NullableZoneResponse) Set(val *ZoneResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableZoneResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableZoneResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableZoneResponse(val *ZoneResponse) *NullableZoneResponse {
+ return &NullableZoneResponse{value: val, isSet: true}
+}
+
+func (v NullableZoneResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableZoneResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/services/dns/v1api/response.go b/services/dns/v1api/response.go
new file mode 100644
index 000000000..4f765ce12
--- /dev/null
+++ b/services/dns/v1api/response.go
@@ -0,0 +1,48 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "net/http"
+)
+
+// APIResponse stores the API response returned by the server.
+type APIResponse struct {
+ *http.Response `json:"-"`
+ Message string `json:"message,omitempty"`
+ // Operation is the name of the OpenAPI operation.
+ Operation string `json:"operation,omitempty"`
+ // RequestURL is the request URL. This value is always available, even if the
+ // embedded *http.Response is nil.
+ RequestURL string `json:"url,omitempty"`
+ // Method is the HTTP method used for the request. This value is always
+ // available, even if the embedded *http.Response is nil.
+ Method string `json:"method,omitempty"`
+ // Payload holds the contents of the response body (which may be nil or empty).
+ // This is provided here as the raw response.Body() reader will have already
+ // been drained.
+ Payload []byte `json:"-"`
+}
+
+// NewAPIResponse returns a new APIResponse object.
+func NewAPIResponse(r *http.Response) *APIResponse {
+
+ response := &APIResponse{Response: r}
+ return response
+}
+
+// NewAPIResponseWithError returns a new APIResponse object with the provided error message.
+func NewAPIResponseWithError(errorMessage string) *APIResponse {
+
+ response := &APIResponse{Message: errorMessage}
+ return response
+}
diff --git a/services/dns/v1api/utils.go b/services/dns/v1api/utils.go
new file mode 100644
index 000000000..8bc0b8d18
--- /dev/null
+++ b/services/dns/v1api/utils.go
@@ -0,0 +1,362 @@
+/*
+STACKIT DNS API
+
+This api provides dns
+
+API version: 1.0
+Contact: dns@stackit.cloud
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package v1api
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "reflect"
+ "time"
+)
+
+// PtrBool is a helper routine that returns a pointer to given boolean value.
+func PtrBool(v bool) *bool { return &v }
+
+// PtrInt is a helper routine that returns a pointer to given integer value.
+func PtrInt(v int) *int { return &v }
+
+// PtrInt32 is a helper routine that returns a pointer to given integer value.
+func PtrInt32(v int32) *int32 { return &v }
+
+// PtrInt64 is a helper routine that returns a pointer to given integer value.
+func PtrInt64(v int64) *int64 { return &v }
+
+// PtrFloat32 is a helper routine that returns a pointer to given float value.
+func PtrFloat32(v float32) *float32 { return &v }
+
+// PtrFloat64 is a helper routine that returns a pointer to given float value.
+func PtrFloat64(v float64) *float64 { return &v }
+
+// PtrString is a helper routine that returns a pointer to given string value.
+func PtrString(v string) *string { return &v }
+
+// PtrTime is helper routine that returns a pointer to given Time value.
+func PtrTime(v time.Time) *time.Time { return &v }
+
+type NullableBool struct {
+ value *bool
+ isSet bool
+}
+
+func (v NullableBool) Get() *bool {
+ return v.value
+}
+
+func (v *NullableBool) Set(val *bool) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableBool) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableBool) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableBool(val *bool) *NullableBool {
+ return &NullableBool{value: val, isSet: true}
+}
+
+func (v NullableBool) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableBool) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableInt struct {
+ value *int
+ isSet bool
+}
+
+func (v NullableInt) Get() *int {
+ return v.value
+}
+
+func (v *NullableInt) Set(val *int) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInt) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInt) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInt(val *int) *NullableInt {
+ return &NullableInt{value: val, isSet: true}
+}
+
+func (v NullableInt) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInt) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableInt32 struct {
+ value *int32
+ isSet bool
+}
+
+func (v NullableInt32) Get() *int32 {
+ return v.value
+}
+
+func (v *NullableInt32) Set(val *int32) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInt32) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInt32) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInt32(val *int32) *NullableInt32 {
+ return &NullableInt32{value: val, isSet: true}
+}
+
+func (v NullableInt32) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInt32) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableInt64 struct {
+ value *int64
+ isSet bool
+}
+
+func (v NullableInt64) Get() *int64 {
+ return v.value
+}
+
+func (v *NullableInt64) Set(val *int64) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInt64) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInt64) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInt64(val *int64) *NullableInt64 {
+ return &NullableInt64{value: val, isSet: true}
+}
+
+func (v NullableInt64) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInt64) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableFloat32 struct {
+ value *float32
+ isSet bool
+}
+
+func (v NullableFloat32) Get() *float32 {
+ return v.value
+}
+
+func (v *NullableFloat32) Set(val *float32) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableFloat32) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableFloat32) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableFloat32(val *float32) *NullableFloat32 {
+ return &NullableFloat32{value: val, isSet: true}
+}
+
+func (v NullableFloat32) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableFloat32) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableFloat64 struct {
+ value *float64
+ isSet bool
+}
+
+func (v NullableFloat64) Get() *float64 {
+ return v.value
+}
+
+func (v *NullableFloat64) Set(val *float64) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableFloat64) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableFloat64) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableFloat64(val *float64) *NullableFloat64 {
+ return &NullableFloat64{value: val, isSet: true}
+}
+
+func (v NullableFloat64) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableFloat64) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableString struct {
+ value *string
+ isSet bool
+}
+
+func (v NullableString) Get() *string {
+ return v.value
+}
+
+func (v *NullableString) Set(val *string) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableString) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableString) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableString(val *string) *NullableString {
+ return &NullableString{value: val, isSet: true}
+}
+
+func (v NullableString) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableString) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+type NullableTime struct {
+ value *time.Time
+ isSet bool
+}
+
+func (v NullableTime) Get() *time.Time {
+ return v.value
+}
+
+func (v *NullableTime) Set(val *time.Time) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTime) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTime) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTime(val *time.Time) *NullableTime {
+ return &NullableTime{value: val, isSet: true}
+}
+
+func (v NullableTime) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTime) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+// IsNil checks if an input is nil
+func IsNil(i interface{}) bool {
+ if i == nil {
+ return true
+ }
+ switch reflect.TypeOf(i).Kind() {
+ case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice:
+ return reflect.ValueOf(i).IsNil()
+ case reflect.Array:
+ return reflect.ValueOf(i).IsZero()
+ }
+ return false
+}
+
+type MappedNullable interface {
+ ToMap() (map[string]interface{}, error)
+}
+
+// A wrapper for strict JSON decoding
+func newStrictDecoder(data []byte) *json.Decoder {
+ dec := json.NewDecoder(bytes.NewBuffer(data))
+ dec.DisallowUnknownFields()
+ return dec
+}
+
+// Prevent trying to import "fmt"
+func reportError(format string, a ...interface{}) error {
+ return fmt.Errorf(format, a...)
+}
diff --git a/services/dns/wait/deprecation.go b/services/dns/wait/deprecation.go
new file mode 100644
index 000000000..58f184c09
--- /dev/null
+++ b/services/dns/wait/deprecation.go
@@ -0,0 +1,2 @@
+// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
+package wait