Skip to content

Commit

Permalink
Generated from b7fa71077406ef102eee82870ab0165773076a8f
Browse files Browse the repository at this point in the history
Merge pull request #35 from leonardbf/ANF-440-2019-10-01

ANF-440 correct 2019-10-01 API
  • Loading branch information
SDK Automation committed Dec 5, 2019
1 parent a8607ef commit a000bc6
Show file tree
Hide file tree
Showing 10 changed files with 1,736 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ private void Initialize()
MountTargets = new MountTargetsOperations(this);
Snapshots = new SnapshotsOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
ApiVersion = "2019-08-01";
ApiVersion = "2019-10-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,170 @@ public partial interface IVolumesOperations
/// </exception>
Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Break volume replication
/// </summary>
/// <remarks>
/// Break the replication connection on the destination volume
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
/// <param name='poolName'>
/// The name of the capacity pool
/// </param>
/// <param name='volumeName'>
/// The name of the volume
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> BreakReplicationWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get volume replication status
/// </summary>
/// <remarks>
/// Get the status of the replication
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
/// <param name='poolName'>
/// The name of the capacity pool
/// </param>
/// <param name='volumeName'>
/// The name of the volume
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<ReplicationStatus>> ReplicationStatusMethodWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Resync volume replication
/// </summary>
/// <remarks>
/// Resync the connection on the destination volume. If the operation
/// is ran on the source volume it will reverse-resync the connection
/// and sync from source to destination.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
/// <param name='poolName'>
/// The name of the capacity pool
/// </param>
/// <param name='volumeName'>
/// The name of the volume
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> ResyncReplicationWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Delete volume replication
/// </summary>
/// <remarks>
/// Delete the replication connection on the destination volume, and
/// send release to the source replication
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
/// <param name='poolName'>
/// The name of the capacity pool
/// </param>
/// <param name='volumeName'>
/// The name of the volume
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> DeleteReplicationWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Authorize source volume replication
/// </summary>
/// <remarks>
/// Authorize the replication connection on the source volume
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
/// <param name='poolName'>
/// The name of the capacity pool
/// </param>
/// <param name='volumeName'>
/// The name of the volume
/// </param>
/// <param name='body'>
/// authorize request object supplied in the body of the operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> AuthorizeReplicationWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, AuthorizeRequest body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Create or Update a volume
/// </summary>
/// <remarks>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.NetApp.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Authorize request
/// </summary>
public partial class AuthorizeRequest : IResource
{
/// <summary>
/// Initializes a new instance of the AuthorizeRequest class.
/// </summary>
public AuthorizeRequest()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the AuthorizeRequest class.
/// </summary>
/// <param name="remoteVolumeResourceId">Resource id</param>
public AuthorizeRequest(string remoteVolumeResourceId = default(string))
{
RemoteVolumeResourceId = remoteVolumeResourceId;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets resource id
/// </summary>
[JsonProperty(PropertyName = "remoteVolumeResourceId")]
public string RemoteVolumeResourceId { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,24 @@ public ReplicationObject()
/// <summary>
/// Initializes a new instance of the ReplicationObject class.
/// </summary>
/// <param name="endpointType">endpointType</param>
/// <param name="replicationSchedule">replicationSchedule</param>
/// <param name="remoteVolumeResourceId">remoteVolumeResourceId</param>
/// <param name="replicationId">replicationId</param>
public ReplicationObject(string endpointType, string replicationSchedule, string remoteVolumeResourceId, string replicationId = default(string))
/// <param name="replicationSchedule">Schedule</param>
/// <param name="remoteVolumeResourceId">The resource ID of the remote
/// volume.</param>
/// <param name="replicationId">Id</param>
/// <param name="endpointType">Indicates whether the local volume is
/// the source or destination for the Volume Replication</param>
/// <param name="ownerId">Id used to identify the owner of the
/// resource</param>
/// <param name="remoteVolumeRegion">The remote region for the other
/// end of the Volume Replication.</param>
public ReplicationObject(string replicationSchedule, string remoteVolumeResourceId, string replicationId = default(string), string endpointType = default(string), string ownerId = default(string), string remoteVolumeRegion = default(string))
{
ReplicationId = replicationId;
EndpointType = endpointType;
ReplicationSchedule = replicationSchedule;
OwnerId = ownerId;
RemoteVolumeResourceId = remoteVolumeResourceId;
RemoteVolumeRegion = remoteVolumeRegion;
CustomInit();
}

Expand All @@ -49,42 +57,43 @@ public ReplicationObject()
partial void CustomInit();

/// <summary>
/// Gets or sets replicationId
/// Gets or sets id
/// </summary>
/// <remarks>
/// Id
/// </remarks>
[JsonProperty(PropertyName = "replicationId")]
public string ReplicationId { get; set; }

/// <summary>
/// Gets or sets endpointType
/// Gets or sets indicates whether the local volume is the source or
/// destination for the Volume Replication
/// </summary>
/// <remarks>
/// Indicates whether the local volume is the source or destination for
/// the Volume Replication
/// </remarks>
[JsonProperty(PropertyName = "endpointType")]
public string EndpointType { get; set; }

/// <summary>
/// Gets or sets replicationSchedule
/// Gets or sets schedule
/// </summary>
/// <remarks>
/// Schedule
/// </remarks>
[JsonProperty(PropertyName = "replicationSchedule")]
public string ReplicationSchedule { get; set; }

/// <summary>
/// Gets or sets remoteVolumeResourceId
/// Gets or sets id used to identify the owner of the resource
/// </summary>
[JsonProperty(PropertyName = "ownerId")]
public string OwnerId { get; set; }

/// <summary>
/// Gets or sets the resource ID of the remote volume.
/// </summary>
/// <remarks>
/// The resource ID of the remote volume.
/// </remarks>
[JsonProperty(PropertyName = "remoteVolumeResourceId")]
public string RemoteVolumeResourceId { get; set; }

/// <summary>
/// Gets or sets the remote region for the other end of the Volume
/// Replication.
/// </summary>
[JsonProperty(PropertyName = "remoteVolumeRegion")]
public string RemoteVolumeRegion { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand All @@ -93,10 +102,6 @@ public ReplicationObject()
/// </exception>
public virtual void Validate()
{
if (EndpointType == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "EndpointType");
}
if (ReplicationSchedule == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "ReplicationSchedule");
Expand Down
Loading

0 comments on commit a000bc6

Please sign in to comment.