From 227da957c759361d60d47f24e554afe6d16bf34f Mon Sep 17 00:00:00 2001 From: Rachel Tucker Date: Tue, 27 Mar 2018 13:13:51 -0600 Subject: [PATCH] Removing deprecated serial id --- ds3/ds3Puts.go | 1 + ds3/models/detailedTapePartition.go | 1 - ds3/models/detailedTapePartitionParser.go | 2 -- ds3/models/modifyTapePartitionSpectraS3Request.go | 6 ++++++ ds3/models/namedDetailedTapePartition.go | 1 - ds3/models/namedDetailedTapePartitionParser.go | 2 -- ds3/models/tapePartition.go | 1 - ds3/models/tapePartitionParser.go | 2 -- 8 files changed, 7 insertions(+), 9 deletions(-) diff --git a/ds3/ds3Puts.go b/ds3/ds3Puts.go index 9a137bd..a054d02 100644 --- a/ds3/ds3Puts.go +++ b/ds3/ds3Puts.go @@ -2068,6 +2068,7 @@ func (client *Client) ModifyTapePartitionSpectraS3(request *models.ModifyTapePar WithOptionalQueryParam("minimum_read_reserved_drives", networking.IntPtrToStrPtr(request.MinimumReadReservedDrives)). WithOptionalQueryParam("minimum_write_reserved_drives", networking.IntPtrToStrPtr(request.MinimumWriteReservedDrives)). WithOptionalQueryParam("quiesced", networking.InterfaceToStrPtr(request.Quiesced)). + WithOptionalQueryParam("serial_number", request.SerialNumber). Build(client.connectionInfo) if err != nil { diff --git a/ds3/models/detailedTapePartition.go b/ds3/models/detailedTapePartition.go index 1439885..47ff3a7 100644 --- a/ds3/models/detailedTapePartition.go +++ b/ds3/models/detailedTapePartition.go @@ -25,7 +25,6 @@ type DetailedTapePartition struct { MinimumWriteReservedDrives int Name *string Quiesced Quiesced - SerialId *string SerialNumber *string State TapePartitionState TapeTypes []string diff --git a/ds3/models/detailedTapePartitionParser.go b/ds3/models/detailedTapePartitionParser.go index 1c137e0..e465bd9 100644 --- a/ds3/models/detailedTapePartitionParser.go +++ b/ds3/models/detailedTapePartitionParser.go @@ -44,8 +44,6 @@ func (detailedTapePartition *DetailedTapePartition) parse(xmlNode *XmlNode, aggE detailedTapePartition.Name = parseNullableString(child.Content) case "Quiesced": parseEnum(child.Content, &detailedTapePartition.Quiesced, aggErr) - case "SerialId": - detailedTapePartition.SerialId = parseNullableString(child.Content) case "SerialNumber": detailedTapePartition.SerialNumber = parseNullableString(child.Content) case "State": diff --git a/ds3/models/modifyTapePartitionSpectraS3Request.go b/ds3/models/modifyTapePartitionSpectraS3Request.go index 5a5644d..26c03d1 100644 --- a/ds3/models/modifyTapePartitionSpectraS3Request.go +++ b/ds3/models/modifyTapePartitionSpectraS3Request.go @@ -18,6 +18,7 @@ type ModifyTapePartitionSpectraS3Request struct { MinimumReadReservedDrives *int MinimumWriteReservedDrives *int Quiesced Quiesced + SerialNumber *string TapePartition string } @@ -47,3 +48,8 @@ func (modifyTapePartitionSpectraS3Request *ModifyTapePartitionSpectraS3Request) return modifyTapePartitionSpectraS3Request } +func (modifyTapePartitionSpectraS3Request *ModifyTapePartitionSpectraS3Request) WithSerialNumber(serialNumber string) *ModifyTapePartitionSpectraS3Request { + modifyTapePartitionSpectraS3Request.SerialNumber = &serialNumber + return modifyTapePartitionSpectraS3Request +} + diff --git a/ds3/models/namedDetailedTapePartition.go b/ds3/models/namedDetailedTapePartition.go index bb9e485..8e54da7 100644 --- a/ds3/models/namedDetailedTapePartition.go +++ b/ds3/models/namedDetailedTapePartition.go @@ -25,7 +25,6 @@ type NamedDetailedTapePartition struct { MinimumWriteReservedDrives int Name *string Quiesced Quiesced - SerialId *string SerialNumber *string State TapePartitionState TapeTypes []string diff --git a/ds3/models/namedDetailedTapePartitionParser.go b/ds3/models/namedDetailedTapePartitionParser.go index fd14ef6..ef5c2a7 100644 --- a/ds3/models/namedDetailedTapePartitionParser.go +++ b/ds3/models/namedDetailedTapePartitionParser.go @@ -44,8 +44,6 @@ func (namedDetailedTapePartition *NamedDetailedTapePartition) parse(xmlNode *Xml namedDetailedTapePartition.Name = parseNullableString(child.Content) case "Quiesced": parseEnum(child.Content, &namedDetailedTapePartition.Quiesced, aggErr) - case "SerialId": - namedDetailedTapePartition.SerialId = parseNullableString(child.Content) case "SerialNumber": namedDetailedTapePartition.SerialNumber = parseNullableString(child.Content) case "State": diff --git a/ds3/models/tapePartition.go b/ds3/models/tapePartition.go index 330d500..d6a4c45 100644 --- a/ds3/models/tapePartition.go +++ b/ds3/models/tapePartition.go @@ -24,7 +24,6 @@ type TapePartition struct { MinimumWriteReservedDrives int Name *string Quiesced Quiesced - SerialId *string SerialNumber *string State TapePartitionState } \ No newline at end of file diff --git a/ds3/models/tapePartitionParser.go b/ds3/models/tapePartitionParser.go index 11c2020..18af06d 100644 --- a/ds3/models/tapePartitionParser.go +++ b/ds3/models/tapePartitionParser.go @@ -40,8 +40,6 @@ func (tapePartition *TapePartition) parse(xmlNode *XmlNode, aggErr *AggregateErr tapePartition.Name = parseNullableString(child.Content) case "Quiesced": parseEnum(child.Content, &tapePartition.Quiesced, aggErr) - case "SerialId": - tapePartition.SerialId = parseNullableString(child.Content) case "SerialNumber": tapePartition.SerialNumber = parseNullableString(child.Content) case "State":