Skip to content

Commit

Permalink
Merge pull request Azure#109 from MabOneSdk/mkherani-dev2
Browse files Browse the repository at this point in the history
get\set storagevault type
  • Loading branch information
mkherani committed Dec 21, 2015
2 parents 9f97509 + 1414629 commit 0f36773
Show file tree
Hide file tree
Showing 8 changed files with 862 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Azure;
using Microsoft.Azure.Management.RecoveryServices.Models;

namespace Microsoft.Azure.Management.RecoveryServices
Expand Down Expand Up @@ -151,5 +152,43 @@ public partial interface IVaultOperations
/// The response model for Vault.
/// </returns>
Task<VaultListResponse> GetAsync(string resourceGroupName, CustomRequestHeaders customRequestHeaders, CancellationToken cancellationToken);

/// <summary>
/// Fetches resource storage config.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of resource group to which vault belongs
/// </param>
/// <param name='resourceName'>
/// The name of the vault
/// </param>
/// <param name='customRequestHeaders'>
/// Request header parameters.
/// </param>
/// <param name='cancellationToken'>
/// Cancellation token.
/// </param>
/// <returns>
/// The definition of a get resource storage config response.
/// </returns>
Task<GetResourceStorageConfigResponse> GetResourceStorageConfigAsync(string resourceGroupName, string resourceName, CustomRequestHeaders customRequestHeaders, CancellationToken cancellationToken);

/// <summary>
/// Updates vault storage model type.
/// </summary>
/// <param name='updateVaultStorageTypeRequest'>
/// Update Vault Storage Type Request
/// </param>
/// <param name='customRequestHeaders'>
/// Request header parameters.
/// </param>
/// <param name='cancellationToken'>
/// Cancellation token.
/// </param>
/// <returns>
/// A standard service response including an HTTP status code and
/// request ID.
/// </returns>
Task<AzureOperationResponse> UpdateStorageTypeAsync(string resourceGroupName, string resourceName, UpdateVaultStorageTypeRequest updateVaultStorageTypeRequest, CustomRequestHeaders customRequestHeaders, CancellationToken cancellationToken);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
//
// 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 Microsoft.Azure;
using Microsoft.Azure.Management.RecoveryServices.Models;

namespace Microsoft.Azure.Management.RecoveryServices.Models
{
/// <summary>
/// The definition of a get resource storage config response.
/// </summary>
public partial class GetResourceStorageConfigResponse : AzureOperationResponse
{
private string _eTags;

/// <summary>
/// Optional. ETag of the Vault.
/// </summary>
public string ETags
{
get { return this._eTags; }
set { this._eTags = value; }
}

private long _id;

/// <summary>
/// Optional. Gets or sets the resource ID.
/// </summary>
public long Id
{
get { return this._id; }
set { this._id = value; }
}

private long _name;

/// <summary>
/// Optional. Gets or sets the resource Name.
/// </summary>
public long Name
{
get { return this._name; }
set { this._name = value; }
}

private StorageDetails _storageDetails;

/// <summary>
/// Optional. The resource storage details.
/// </summary>
public StorageDetails StorageDetails
{
get { return this._storageDetails; }
set { this._storageDetails = value; }
}

private long _type;

/// <summary>
/// Optional. Gets or sets the resource Type.
/// </summary>
public long Type
{
get { return this._type; }
set { this._type = value; }
}

/// <summary>
/// Initializes a new instance of the GetResourceStorageConfigResponse
/// class.
/// </summary>
public GetResourceStorageConfigResponse()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
//
// 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;

namespace Microsoft.Azure.Management.RecoveryServices.Models
{
/// <summary>
/// The resource storage details.
/// </summary>
public partial class StorageDetails
{
private string _storageType;

/// <summary>
/// Optional. Gets or sets the storage type.
/// </summary>
public string StorageType
{
get { return this._storageType; }
set { this._storageType = value; }
}

private string _storageTypeState;

/// <summary>
/// Optional. Gets or sets the storage type state.
/// </summary>
public string StorageTypeState
{
get { return this._storageTypeState; }
set { this._storageTypeState = value; }
}

/// <summary>
/// Initializes a new instance of the StorageDetails class.
/// </summary>
public StorageDetails()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
//
// 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;

namespace Microsoft.Azure.Management.RecoveryServices.Models
{
/// <summary>
/// Model for storage type properties.
/// </summary>
public partial class StorageTypeProperties
{
private string _storageModelType;

/// <summary>
/// Optional. Gets or sets the storage model type.
/// </summary>
public string StorageModelType
{
get { return this._storageModelType; }
set { this._storageModelType = value; }
}

/// <summary>
/// Initializes a new instance of the StorageTypeProperties class.
/// </summary>
public StorageTypeProperties()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
//
// 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 Microsoft.Azure.Management.RecoveryServices.Models;

namespace Microsoft.Azure.Management.RecoveryServices.Models
{
/// <summary>
/// The request model for the update vault storage type operation.
/// </summary>
public partial class UpdateVaultStorageTypeRequest
{
private StorageTypeProperties _storageTypeProperties;

/// <summary>
/// Required. Storage type properties.
/// </summary>
public StorageTypeProperties StorageTypeProperties
{
get { return this._storageTypeProperties; }
set { this._storageTypeProperties = value; }
}

/// <summary>
/// Initializes a new instance of the UpdateVaultStorageTypeRequest
/// class.
/// </summary>
public UpdateVaultStorageTypeRequest()
{
}

/// <summary>
/// Initializes a new instance of the UpdateVaultStorageTypeRequest
/// class with required arguments.
/// </summary>
public UpdateVaultStorageTypeRequest(StorageTypeProperties storageTypeProperties)
: this()
{
if (storageTypeProperties == null)
{
throw new ArgumentNullException("storageTypeProperties");
}
this.StorageTypeProperties = storageTypeProperties;
}
}
}
Loading

0 comments on commit 0f36773

Please sign in to comment.