-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #346 from RachelTucker/BP-API-5-3
Generated 5.3.x BP API from contract commit 1996817.
- Loading branch information
Showing
18 changed files
with
239 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* ****************************************************************************** | ||
* Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved. | ||
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use | ||
* this file except in compliance with the License. A copy of the License is located at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* or in the "license" file accompanying this file. | ||
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | ||
* CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
* **************************************************************************** | ||
*/ | ||
|
||
// This code is auto-generated, do not modify | ||
using Ds3.Models; | ||
using System; | ||
using System.Net; | ||
|
||
namespace Ds3.Calls | ||
{ | ||
public class MarkTapeForCompactionSpectraS3Request : Ds3Request | ||
{ | ||
|
||
public string TapeId { get; private set; } | ||
|
||
|
||
|
||
|
||
|
||
public MarkTapeForCompactionSpectraS3Request(Guid tapeId) | ||
{ | ||
this.TapeId = tapeId.ToString(); | ||
this.QueryParams.Add("operation", "mark_for_compaction"); | ||
|
||
} | ||
|
||
|
||
public MarkTapeForCompactionSpectraS3Request(string tapeId) | ||
{ | ||
this.TapeId = tapeId; | ||
this.QueryParams.Add("operation", "mark_for_compaction"); | ||
|
||
} | ||
|
||
internal override HttpVerb Verb | ||
{ | ||
get | ||
{ | ||
return HttpVerb.PUT; | ||
} | ||
} | ||
|
||
internal override string Path | ||
{ | ||
get | ||
{ | ||
return "/_rest_/tape/" + TapeId; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* ****************************************************************************** | ||
* Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved. | ||
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use | ||
* this file except in compliance with the License. A copy of the License is located at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* or in the "license" file accompanying this file. | ||
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | ||
* CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
* **************************************************************************** | ||
*/ | ||
|
||
// This code is auto-generated, do not modify | ||
using Ds3.Models; | ||
|
||
namespace Ds3.Calls | ||
{ | ||
public class MarkTapeForCompactionSpectraS3Response | ||
{ | ||
public Tape ResponsePayload { get; private set; } | ||
|
||
public MarkTapeForCompactionSpectraS3Response(Tape responsePayload) | ||
{ | ||
this.ResponsePayload = responsePayload; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
Ds3/ResponseParsers/MarkTapeForCompactionSpectraS3ResponseParser.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* ****************************************************************************** | ||
* Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved. | ||
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use | ||
* this file except in compliance with the License. A copy of the License is located at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* or in the "license" file accompanying this file. | ||
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | ||
* CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
* **************************************************************************** | ||
*/ | ||
|
||
// This code is auto-generated, do not modify | ||
|
||
using Ds3.Calls; | ||
using Ds3.Models; | ||
using Ds3.Runtime; | ||
using System.Linq; | ||
using System.Net; | ||
using System.Xml.Linq; | ||
|
||
namespace Ds3.ResponseParsers | ||
{ | ||
internal class MarkTapeForCompactionSpectraS3ResponseParser : IResponseParser<MarkTapeForCompactionSpectraS3Request, MarkTapeForCompactionSpectraS3Response> | ||
{ | ||
public MarkTapeForCompactionSpectraS3Response Parse(MarkTapeForCompactionSpectraS3Request request, IWebResponse response) | ||
{ | ||
using (response) | ||
{ | ||
ResponseParseUtilities.HandleStatusCode(response, (HttpStatusCode)200); | ||
using (var stream = response.GetResponseStream()) | ||
{ | ||
return new MarkTapeForCompactionSpectraS3Response( | ||
ModelParsers.ParseTape( | ||
XmlExtensions.ReadDocument(stream).ElementOrThrow("Data")) | ||
); | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.