Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoPr-RecoveryServices.SiteRecovery-hitesh715-REST Spec PrNumber 6006 #6313

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
// <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.RecoveryServices.SiteRecovery
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// ReplicationVaultSettingOperations operations.
/// </summary>
public partial interface IReplicationVaultSettingOperations
{
/// <summary>
/// Gets the list of vault setting.
/// </summary>
/// <remarks>
/// Gets the list of vault setting. This includes the Migration Hub
/// connection settings.
/// </remarks>
/// <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<IPage<VaultSetting>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets the vault setting.
/// </summary>
/// <remarks>
/// Gets the vault setting. This includes the Migration Hub connection
/// settings.
/// </remarks>
/// <param name='vaultSettingName'>
/// Vault setting name.
/// </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<VaultSetting>> GetWithHttpMessagesAsync(string vaultSettingName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Updates vault setting. A vault setting object is a singleton per
/// vault and it is always present by default.
/// </summary>
/// <remarks>
/// The operation to configure vault setting.
/// </remarks>
/// <param name='vaultSettingName'>
/// Vault setting name.
/// </param>
/// <param name='input'>
/// Vault setting creation input.
/// </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<VaultSetting>> CreateWithHttpMessagesAsync(string vaultSettingName, VaultSettingCreationInput input, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets the list of vault setting.
/// </summary>
/// <remarks>
/// Gets the list of vault setting. This includes the Migration Hub
/// connection settings.
/// </remarks>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List 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.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<VaultSetting>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,10 @@ public partial interface ISiteRecoveryManagementClient : System.IDisposable
/// </summary>
IReplicationVaultHealthOperations ReplicationVaultHealth { get; }

/// <summary>
/// Gets the IReplicationVaultSettingOperations.
/// </summary>
IReplicationVaultSettingOperations ReplicationVaultSetting { get; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ public VMwareV2FabricSpecificDetails()
/// <param name="migrationSolutionId">The Migration solution ARM
/// Id.</param>
/// <param name="serviceEndpoint">The service endpoint.</param>
public VMwareV2FabricSpecificDetails(string vmwareSiteId = default(string), string migrationSolutionId = default(string), string serviceEndpoint = default(string))
/// <param name="serviceResourceId">The service resource Id.</param>
public VMwareV2FabricSpecificDetails(string vmwareSiteId = default(string), string migrationSolutionId = default(string), string serviceEndpoint = default(string), string serviceResourceId = default(string))
{
VmwareSiteId = vmwareSiteId;
MigrationSolutionId = migrationSolutionId;
ServiceEndpoint = serviceEndpoint;
ServiceResourceId = serviceResourceId;
CustomInit();
}

Expand All @@ -67,5 +69,11 @@ public VMwareV2FabricSpecificDetails()
[JsonProperty(PropertyName = "serviceEndpoint")]
public string ServiceEndpoint { get; private set; }

/// <summary>
/// Gets the service resource Id.
/// </summary>
[JsonProperty(PropertyName = "serviceResourceId")]
public string ServiceResourceId { get; private set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// <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.RecoveryServices.SiteRecovery.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Vault setting.
/// </summary>
public partial class VaultSetting : Resource
{
/// <summary>
/// Initializes a new instance of the VaultSetting class.
/// </summary>
public VaultSetting()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the VaultSetting class.
/// </summary>
/// <param name="id">Resource Id</param>
/// <param name="name">Resource Name</param>
/// <param name="type">Resource Type</param>
/// <param name="location">Resource Location</param>
/// <param name="properties">The vault setting properties.</param>
public VaultSetting(string id = default(string), string name = default(string), string type = default(string), string location = default(string), VaultSettingProperties properties = default(VaultSettingProperties))
: base(id, name, type, location)
{
Properties = properties;
CustomInit();
}

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

/// <summary>
/// Gets or sets the vault setting properties.
/// </summary>
[JsonProperty(PropertyName = "properties")]
public VaultSettingProperties Properties { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
// <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.RecoveryServices.SiteRecovery.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Input to create vault setting.
/// </summary>
public partial class VaultSettingCreationInput
{
/// <summary>
/// Initializes a new instance of the VaultSettingCreationInput class.
/// </summary>
public VaultSettingCreationInput()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the VaultSettingCreationInput class.
/// </summary>
/// <param name="properties">Vault setting creation input
/// properties.</param>
public VaultSettingCreationInput(VaultSettingCreationInputProperties properties)
{
Properties = properties;
CustomInit();
}

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

/// <summary>
/// Gets or sets vault setting creation input properties.
/// </summary>
[JsonProperty(PropertyName = "properties")]
public VaultSettingCreationInputProperties Properties { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Properties == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Properties");
}
if (Properties != null)
{
Properties.Validate();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// <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.RecoveryServices.SiteRecovery.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Input to create vault setting.
/// </summary>
public partial class VaultSettingCreationInputProperties
{
/// <summary>
/// Initializes a new instance of the
/// VaultSettingCreationInputProperties class.
/// </summary>
public VaultSettingCreationInputProperties()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// VaultSettingCreationInputProperties class.
/// </summary>
/// <param name="migrationSolutionId">The migration solution
/// Id.</param>
public VaultSettingCreationInputProperties(string migrationSolutionId)
{
MigrationSolutionId = migrationSolutionId;
CustomInit();
}

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

/// <summary>
/// Gets or sets the migration solution Id.
/// </summary>
[JsonProperty(PropertyName = "migrationSolutionId")]
public string MigrationSolutionId { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (MigrationSolutionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "MigrationSolutionId");
}
}
}
}
Loading