Skip to content

Commit

Permalink
Merge pull request #61 from RachelTucker/5-0-remove-serial-id
Browse files Browse the repository at this point in the history
Updated API: Removing deprecated serial id
  • Loading branch information
rpmoore authored Mar 27, 2018
2 parents 83cf7c0 + 227da95 commit d7074aa
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions ds3/ds3Puts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion ds3/models/detailedTapePartition.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ type DetailedTapePartition struct {
MinimumWriteReservedDrives int
Name *string
Quiesced Quiesced
SerialId *string
SerialNumber *string
State TapePartitionState
TapeTypes []string
Expand Down
2 changes: 0 additions & 2 deletions ds3/models/detailedTapePartitionParser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
6 changes: 6 additions & 0 deletions ds3/models/modifyTapePartitionSpectraS3Request.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type ModifyTapePartitionSpectraS3Request struct {
MinimumReadReservedDrives *int
MinimumWriteReservedDrives *int
Quiesced Quiesced
SerialNumber *string
TapePartition string
}

Expand Down Expand Up @@ -47,3 +48,8 @@ func (modifyTapePartitionSpectraS3Request *ModifyTapePartitionSpectraS3Request)
return modifyTapePartitionSpectraS3Request
}

func (modifyTapePartitionSpectraS3Request *ModifyTapePartitionSpectraS3Request) WithSerialNumber(serialNumber string) *ModifyTapePartitionSpectraS3Request {
modifyTapePartitionSpectraS3Request.SerialNumber = &serialNumber
return modifyTapePartitionSpectraS3Request
}

1 change: 0 additions & 1 deletion ds3/models/namedDetailedTapePartition.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ type NamedDetailedTapePartition struct {
MinimumWriteReservedDrives int
Name *string
Quiesced Quiesced
SerialId *string
SerialNumber *string
State TapePartitionState
TapeTypes []string
Expand Down
2 changes: 0 additions & 2 deletions ds3/models/namedDetailedTapePartitionParser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
1 change: 0 additions & 1 deletion ds3/models/tapePartition.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ type TapePartition struct {
MinimumWriteReservedDrives int
Name *string
Quiesced Quiesced
SerialId *string
SerialNumber *string
State TapePartitionState
}
2 changes: 0 additions & 2 deletions ds3/models/tapePartitionParser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit d7074aa

Please sign in to comment.