Skip to content

Commit

Permalink
adding hyak generated .net client code for StorSimple phase 2
Browse files Browse the repository at this point in the history
  • Loading branch information
avirupch committed Mar 24, 2015
1 parent 9eb29ca commit 3ac1024
Show file tree
Hide file tree
Showing 61 changed files with 7,832 additions and 830 deletions.
8 changes: 4 additions & 4 deletions src/StorSimple/Generated/BackupOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public async Task<TaskResponse> BeginCreatingBackupAsync(string deviceId, string
url = url + "/resources/";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/~/";
url = url + "CiSVault";
url = url + "CisVault";
url = url + "/";
url = url + Uri.EscapeDataString(this.Client.ResourceName);
url = url + "/api/devices/";
Expand Down Expand Up @@ -323,7 +323,7 @@ public async Task<TaskResponse> BeginDeletingAsync(string deviceId, string backu
url = url + "/resources/";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/~/";
url = url + "CiSVault";
url = url + "CisVault";
url = url + "/";
url = url + Uri.EscapeDataString(this.Client.ResourceName);
url = url + "/api/devices/";
Expand Down Expand Up @@ -503,7 +503,7 @@ public async Task<TaskResponse> BeginRestoringAsync(string deviceId, RestoreBack
url = url + "/resources/";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/~/";
url = url + "CiSVault";
url = url + "CisVault";
url = url + "/";
url = url + Uri.EscapeDataString(this.Client.ResourceName);
url = url + "/api/devices/";
Expand Down Expand Up @@ -905,7 +905,7 @@ public async Task<GetBackupResponse> GetAsync(string deviceId, string filterType
url = url + "/resources/";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/~/";
url = url + "CiSVault";
url = url + "CisVault";
url = url + "/";
url = url + Uri.EscapeDataString(this.Client.ResourceName);
url = url + "/api/devices/";
Expand Down
10 changes: 5 additions & 5 deletions src/StorSimple/Generated/BackupPolicyOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public async Task<TaskResponse> BeginCreatingBackupPolicyAsync(string deviceId,
url = url + "/resources/";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/~/";
url = url + "CiSVault";
url = url + "CisVault";
url = url + "/";
url = url + Uri.EscapeDataString(this.Client.ResourceName);
url = url + "/api/devices/";
Expand Down Expand Up @@ -383,7 +383,7 @@ public async Task<TaskResponse> BeginDeletingAsync(string deviceId, string polic
url = url + "/resources/";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/~/";
url = url + "CiSVault";
url = url + "CisVault";
url = url + "/";
url = url + Uri.EscapeDataString(this.Client.ResourceName);
url = url + "/api/devices/";
Expand Down Expand Up @@ -605,7 +605,7 @@ public async Task<TaskResponse> BeginUpdatingBackupPolicyAsync(string deviceId,
url = url + "/resources/";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/~/";
url = url + "CiSVault";
url = url + "CisVault";
url = url + "/";
url = url + Uri.EscapeDataString(this.Client.ResourceName);
url = url + "/api/devices/";
Expand Down Expand Up @@ -1114,7 +1114,7 @@ public async Task<GetBackupPolicyDetailsResponse> GetBackupPolicyDetailsByNameAs
url = url + "/resources/";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/~/";
url = url + "CiSVault";
url = url + "CisVault";
url = url + "/";
url = url + Uri.EscapeDataString(this.Client.ResourceName);
url = url + "/api/devices/";
Expand Down Expand Up @@ -1469,7 +1469,7 @@ public async Task<BackupPolicyListResponse> ListAsync(string deviceId, CustomReq
url = url + "/resources/";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/~/";
url = url + "CiSVault";
url = url + "CisVault";
url = url + "/";
url = url + Uri.EscapeDataString(this.Client.ResourceName);
url = url + "/api/devices/";
Expand Down
401 changes: 401 additions & 0 deletions src/StorSimple/Generated/CloneVolumeOperations.cs

Large diffs are not rendered by default.

90 changes: 90 additions & 0 deletions src/StorSimple/Generated/CloneVolumeOperationsExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
//
// Copyright (c) Microsoft and contributors. 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.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License 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.
//

// Warning: This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Management.StorSimple;
using Microsoft.WindowsAzure.Management.StorSimple.Models;

namespace Microsoft.WindowsAzure.Management.StorSimple
{
/// <summary>
/// This is an RESTFul API to manage you StorSimple Objects
/// </summary>
public static partial class CloneVolumeOperationsExtensions
{
/// <summary>
/// Clone a backup element.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.StorSimple.ICloneVolumeOperations.
/// </param>
/// <param name='sourceDeviceId'>
/// Required. The identifier of the source device from which clone is
/// to be triggered
/// </param>
/// <param name='triggerCloneRequest'>
/// Required. The parameters required for clone operation
/// </param>
/// <param name='customRequestHeaders'>
/// Required. The Custom Request Headers which client must use
/// </param>
/// <returns>
/// This is the Job Response for all Device Job Related Calls
/// </returns>
public static JobResponse Trigger(this ICloneVolumeOperations operations, string sourceDeviceId, TriggerCloneRequest triggerCloneRequest, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((ICloneVolumeOperations)s).TriggerAsync(sourceDeviceId, triggerCloneRequest, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}

/// <summary>
/// Clone a backup element.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.StorSimple.ICloneVolumeOperations.
/// </param>
/// <param name='sourceDeviceId'>
/// Required. The identifier of the source device from which clone is
/// to be triggered
/// </param>
/// <param name='triggerCloneRequest'>
/// Required. The parameters required for clone operation
/// </param>
/// <param name='customRequestHeaders'>
/// Required. The Custom Request Headers which client must use
/// </param>
/// <returns>
/// This is the Job Response for all Device Job Related Calls
/// </returns>
public static Task<JobResponse> TriggerAsync(this ICloneVolumeOperations operations, string sourceDeviceId, TriggerCloneRequest triggerCloneRequest, CustomRequestHeaders customRequestHeaders)
{
return operations.TriggerAsync(sourceDeviceId, triggerCloneRequest, customRequestHeaders, CancellationToken.None);
}
}
}
8 changes: 4 additions & 4 deletions src/StorSimple/Generated/DataContainerOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public async Task<TaskResponse> BeginCreatingAsync(string deviceId, DataContaine
url = url + "/resources/";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/~/";
url = url + "CiSVault";
url = url + "CisVault";
url = url + "/";
url = url + Uri.EscapeDataString(this.Client.ResourceName);
url = url + "/api/devices/";
Expand Down Expand Up @@ -451,7 +451,7 @@ public async Task<TaskResponse> BeginDeletingAsync(string deviceId, string dataC
url = url + "/resources/";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/~/";
url = url + "CiSVault";
url = url + "CisVault";
url = url + "/";
url = url + Uri.EscapeDataString(this.Client.ResourceName);
url = url + "/api/devices/";
Expand Down Expand Up @@ -783,7 +783,7 @@ public async Task<DataContainerGetResponse> GetAsync(string deviceId, string dat
url = url + "/resources/";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/~/";
url = url + "CiSVault";
url = url + "CisVault";
url = url + "/";
url = url + Uri.EscapeDataString(this.Client.ResourceName);
url = url + "/api/devices/";
Expand Down Expand Up @@ -1116,7 +1116,7 @@ public async Task<DataContainerListResponse> ListAsync(string deviceId, CustomRe
url = url + "/resources/";
url = url + Uri.EscapeDataString(this.Client.ResourceNamespace);
url = url + "/~/";
url = url + "CiSVault";
url = url + "CisVault";
url = url + "/";
url = url + Uri.EscapeDataString(this.Client.ResourceName);
url = url + "/api/devices/";
Expand Down
Loading

0 comments on commit 3ac1024

Please sign in to comment.