-
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 #341 from RachelTucker/update-5-2-api
Updating to BP API 5.2 commit 1755379
- Loading branch information
Showing
40 changed files
with
1,743 additions
and
5 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,103 @@ | ||
/* | ||
* ****************************************************************************** | ||
* 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 CompleteBlobRequest : Ds3Request | ||
{ | ||
|
||
public string BucketName { get; private set; } | ||
|
||
public string ObjectName { get; private set; } | ||
|
||
public string Blob { get; private set; } | ||
|
||
public string Job { get; private set; } | ||
|
||
|
||
private long? _size; | ||
public long? Size | ||
{ | ||
get { return _size; } | ||
set { WithSize(value); } | ||
} | ||
|
||
|
||
public CompleteBlobRequest WithSize(long? size) | ||
{ | ||
this._size = size; | ||
if (size != null) | ||
{ | ||
this.QueryParams.Add("size", size.ToString()); | ||
} | ||
else | ||
{ | ||
this.QueryParams.Remove("size"); | ||
} | ||
return this; | ||
} | ||
|
||
|
||
|
||
|
||
public CompleteBlobRequest(string bucketName, string objectName, Guid blob, Guid job) | ||
{ | ||
this.BucketName = bucketName; | ||
this.ObjectName = objectName; | ||
this.Blob = blob.ToString(); | ||
this.Job = job.ToString(); | ||
|
||
this.QueryParams.Add("blob", blob.ToString()); | ||
|
||
this.QueryParams.Add("job", job.ToString()); | ||
|
||
} | ||
|
||
|
||
public CompleteBlobRequest(string bucketName, string objectName, string blob, string job) | ||
{ | ||
this.BucketName = bucketName; | ||
this.ObjectName = objectName; | ||
this.Blob = blob; | ||
this.Job = job; | ||
|
||
this.QueryParams.Add("blob", blob); | ||
|
||
this.QueryParams.Add("job", job); | ||
|
||
} | ||
|
||
internal override HttpVerb Verb | ||
{ | ||
get | ||
{ | ||
return HttpVerb.POST; | ||
} | ||
} | ||
|
||
internal override string Path | ||
{ | ||
get | ||
{ | ||
return "/" + BucketName + "/" + ObjectName; | ||
} | ||
} | ||
} | ||
} |
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
54 changes: 54 additions & 0 deletions
54
Ds3/Calls/DeleteBucketChangesNotificationRegistrationSpectraS3Request.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,54 @@ | ||
/* | ||
* ****************************************************************************** | ||
* 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 DeleteBucketChangesNotificationRegistrationSpectraS3Request : Ds3Request | ||
{ | ||
|
||
public string BucketChangesNotificationRegistration { get; private set; } | ||
|
||
|
||
|
||
|
||
|
||
public DeleteBucketChangesNotificationRegistrationSpectraS3Request(string bucketChangesNotificationRegistration) | ||
{ | ||
this.BucketChangesNotificationRegistration = bucketChangesNotificationRegistration; | ||
|
||
} | ||
|
||
internal override HttpVerb Verb | ||
{ | ||
get | ||
{ | ||
return HttpVerb.DELETE; | ||
} | ||
} | ||
|
||
internal override string Path | ||
{ | ||
get | ||
{ | ||
return "/_rest_/bucket_changes_notification_registration/" + BucketChangesNotificationRegistration; | ||
} | ||
} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
Ds3/Calls/GetBucketChangesNotificationRegistrationSpectraS3Request.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,54 @@ | ||
/* | ||
* ****************************************************************************** | ||
* 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 GetBucketChangesNotificationRegistrationSpectraS3Request : Ds3Request | ||
{ | ||
|
||
public string BucketChangesNotificationRegistration { get; private set; } | ||
|
||
|
||
|
||
|
||
|
||
public GetBucketChangesNotificationRegistrationSpectraS3Request(string bucketChangesNotificationRegistration) | ||
{ | ||
this.BucketChangesNotificationRegistration = bucketChangesNotificationRegistration; | ||
|
||
} | ||
|
||
internal override HttpVerb Verb | ||
{ | ||
get | ||
{ | ||
return HttpVerb.GET; | ||
} | ||
} | ||
|
||
internal override string Path | ||
{ | ||
get | ||
{ | ||
return "/_rest_/bucket_changes_notification_registration/" + BucketChangesNotificationRegistration; | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
Ds3/Calls/GetBucketChangesNotificationRegistrationSpectraS3Response.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,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 GetBucketChangesNotificationRegistrationSpectraS3Response | ||
{ | ||
public BucketChangesNotificationRegistration ResponsePayload { get; private set; } | ||
|
||
public GetBucketChangesNotificationRegistrationSpectraS3Response(BucketChangesNotificationRegistration responsePayload) | ||
{ | ||
this.ResponsePayload = responsePayload; | ||
} | ||
} | ||
} |
Oops, something went wrong.