Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/netapp/Azure.ResourceManager.NetApp/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "net",
"TagPrefix": "net/netapp/Azure.ResourceManager.NetApp",
"Tag": "net/netapp/Azure.ResourceManager.NetApp_f4f184ecbe"
"Tag": "net/netapp/Azure.ResourceManager.NetApp_f11eba174a"
}
Original file line number Diff line number Diff line change
Expand Up @@ -217,5 +217,138 @@ public static NetAppVolumeReplicationStatus NetAppVolumeReplicationStatus(bool?
totalProgress,
errorMessage);
}

/// <summary> Initializes a new instance of <see cref="NetApp.CapacityPoolData"/>. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="etag"> A unique read-only string that changes whenever the resource is updated. </param>
/// <param name="poolId"> UUID v4 used to identify the Pool. </param>
/// <param name="size"> Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). </param>
/// <param name="serviceLevel"> The service level of the file system. </param>
/// <param name="provisioningState"> Azure lifecycle management. </param>
/// <param name="totalThroughputMibps"> Total throughput of pool in MiB/s. </param>
/// <param name="utilizedThroughputMibps"> Utilized throughput of pool in MiB/s. </param>
/// <param name="customThroughputMibps"> Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. </param>
/// <param name="qosType"> The qos type of the pool. </param>
/// <param name="isCoolAccessEnabled"> If enabled (true) the pool can contain cool Access enabled volumes. </param>
/// <param name="encryptionType"> Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool. </param>
/// <returns> A new <see cref="NetApp.CapacityPoolData"/> instance for mocking. </returns>
public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary<string, string> tags = null, AzureLocation location = default, ETag? etag = null, Guid? poolId = null, long size = default, NetAppFileServiceLevel serviceLevel = default, string provisioningState = null, float? totalThroughputMibps = null, float? utilizedThroughputMibps = null, float? customThroughputMibps = null, CapacityPoolQosType? qosType = null, bool? isCoolAccessEnabled = null, CapacityPoolEncryptionType? encryptionType = null)
{
tags ??= new Dictionary<string, string>();

return ArmNetAppModelFactory.CapacityPoolData(
id,
name,
resourceType,
systemData,
tags,
location,
etag,
poolId,
size,
serviceLevel,
provisioningState,
totalThroughputMibps,
utilizedThroughputMibps,
customThroughputMibpsInt: customThroughputMibps.HasValue ? (int?)Convert.ToInt32(customThroughputMibps.Value) : null,
qosType,
isCoolAccessEnabled,
encryptionType);
}

/// <summary> Initializes a new instance of <see cref="Models.CapacityPoolPatch"/>. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="size"> Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). </param>
/// <param name="qosType"> The qos type of the pool. </param>
/// <param name="isCoolAccessEnabled"> If enabled (true) the pool can contain cool Access enabled volumes. </param>
/// <param name="customThroughputMibps"> Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. </param>
/// <returns> A new <see cref="Models.CapacityPoolPatch"/> instance for mocking. </returns>
public static CapacityPoolPatch CapacityPoolPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary<string, string> tags = null, AzureLocation location = default, long? size = null, CapacityPoolQosType? qosType = null, bool? isCoolAccessEnabled = null, float? customThroughputMibps = null)
{
tags ??= new Dictionary<string, string>();

return CapacityPoolPatch(
id,
name,
resourceType,
systemData,
tags,
location,
size,
qosType,
isCoolAccessEnabled,
customThroughputMibpsInt: customThroughputMibps.HasValue ? (int?)Convert.ToInt32(customThroughputMibps.Value) : null);
}

/// <summary> Initializes a new instance of <see cref="Models.NetAppVolumeBackupStatus"/>. </summary>
/// <param name="isHealthy"> Backup health status. </param>
/// <param name="relationshipStatus"> Status of the backup mirror relationship. </param>
/// <param name="mirrorState"> The mirror state property describes the current status of data replication for a backup. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. </param>
/// <param name="unhealthyReason"> Reason for the unhealthy backup relationship. </param>
/// <param name="errorMessage"> Displays error message if the backup is in an error state. </param>
/// <param name="lastTransferSize"> Displays the last transfer size. </param>
/// <param name="lastTransferType"> Displays the last transfer type. </param>
/// <param name="totalTransferBytes"> Displays the total bytes transferred. </param>
/// <param name="transferProgressBytes"> Displays the total number of bytes transferred for the ongoing operation. </param>
/// <returns> A new <see cref="Models.NetAppVolumeBackupStatus"/> instance for mocking. </returns>
public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy = null, NetAppRelationshipStatus? relationshipStatus = null, NetAppMirrorState? mirrorState = null, string unhealthyReason = null, string errorMessage = null, long? lastTransferSize = null, string lastTransferType = null, long? totalTransferBytes = null, long? transferProgressBytes = null)
{
VolumeBackupRelationshipStatus VolumeBackupRelationshipStatus = relationshipStatus.Value != null ? new VolumeBackupRelationshipStatus(relationshipStatus.ToString()) : null;
return ArmNetAppModelFactory.NetAppVolumeBackupStatus(
isHealthy,
VolumeBackupRelationshipStatus,
mirrorState,
unhealthyReason,
errorMessage,
lastTransferSize,
lastTransferType,
totalTransferBytes,
transferProgressBytes);
}

/// <summary> Initializes a new instance of NetAppVolumeBackupStatus. </summary>
/// <param name="isHealthy"> Backup health status. </param>
/// <param name="relationshipStatus"> Status of the backup mirror relationship. </param>
/// <param name="mirrorState"> The status of the backup. </param>
/// <param name="unhealthyReason"> Reason for the unhealthy backup relationship. </param>
/// <param name="errorMessage"> Displays error message if the backup is in an error state. </param>
/// <param name="lastTransferSize"> Displays the last transfer size. </param>
/// <param name="lastTransferType"> Displays the last transfer type. </param>
/// <param name="totalTransferBytes"> Displays the total bytes transferred. </param>
/// <returns> A new <see cref="T:Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupStatus" /> instance for mocking. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy, NetAppRelationshipStatus? relationshipStatus, NetAppMirrorState? mirrorState, string unhealthyReason, string errorMessage, long? lastTransferSize, string lastTransferType, long? totalTransferBytes)
{
return NetAppVolumeBackupStatus(isHealthy: isHealthy, relationshipStatus: relationshipStatus, mirrorState: mirrorState, unhealthyReason: unhealthyReason, errorMessage: errorMessage, lastTransferSize: lastTransferSize, lastTransferType: lastTransferType, totalTransferBytes: totalTransferBytes, transferProgressBytes: default);
}

/// <summary> Initializes a new instance of <see cref="Models.NetAppRestoreStatus"/>. </summary>
/// <param name="isHealthy"> Restore health status. </param>
/// <param name="relationshipStatus"> Status of the restore SnapMirror relationship. </param>
/// <param name="mirrorState"> The mirror state property describes the current status of data replication for a restore. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. </param>
/// <param name="unhealthyReason"> Reason for the unhealthy restore relationship. </param>
/// <param name="errorMessage"> Displays error message if the restore is in an error state. </param>
/// <param name="totalTransferBytes"> Displays the total bytes transferred. </param>
/// <returns> A new <see cref="Models.NetAppRestoreStatus"/> instance for mocking. </returns>
public static NetAppRestoreStatus NetAppRestoreStatus(bool? isHealthy = null, NetAppRelationshipStatus? relationshipStatus = null, NetAppMirrorState? mirrorState = null, string unhealthyReason = null, string errorMessage = null, long? totalTransferBytes = null)
{
return ArmNetAppModelFactory.NetAppRestoreStatus(
isHealthy,
relationshipStatus,
mirrorState,
unhealthyReason,
errorMessage,
totalTransferBytes);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable disable

using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.NetApp.Models;

namespace Azure.ResourceManager.NetApp
{
/// <summary>
/// A class representing the CapacityPool data model.
/// Capacity pool resource
/// </summary>
public partial class CapacityPoolData : TrackedResourceData
{
/// <summary> Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. </summary>
public float? CustomThroughputMibps
{
get
{
return CustomThroughputMibpsInt.HasValue ? (float?)CustomThroughputMibpsInt.Value : null;
}
set
{
CustomThroughputMibpsInt = value.HasValue ? (int)value.Value : null;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable disable

using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.Models;

namespace Azure.ResourceManager.NetApp.Models
{
/// <summary> Capacity pool patch resource. </summary>
public partial class CapacityPoolPatch : TrackedResourceData
{
/// <summary> Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. </summary>
public float? CustomThroughputMibps
{
get
{
return CustomThroughputMibpsInt.HasValue ? (float?)CustomThroughputMibpsInt.Value : null;
}
set
{
CustomThroughputMibpsInt = value.HasValue ? (int)value.Value : null;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,93 +1,23 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

//#nullable disable
#nullable disable

//using System.Collections.Generic;
//using System;
//using System.ComponentModel;
using System.Collections.Generic;
using System;
using System.ComponentModel;

//namespace Azure.ResourceManager.NetApp.Models
//{
// /// <summary> Backup status. </summary>
// [EditorBrowsable(EditorBrowsableState.Never)]
// public partial class NetAppVolumeBackupStatus
// {
// /// <summary>
// /// Keeps track of any properties unknown to the library.
// /// <para>
// /// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
// /// </para>
// /// <para>
// /// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>.
// /// </para>
// /// <para>
// /// Examples:
// /// <list type="bullet">
// /// <item>
// /// <term>BinaryData.FromObjectAsJson("foo")</term>
// /// <description>Creates a payload of "foo".</description>
// /// </item>
// /// <item>
// /// <term>BinaryData.FromString("\"foo\"")</term>
// /// <description>Creates a payload of "foo".</description>
// /// </item>
// /// <item>
// /// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
// /// <description>Creates a payload of { "key": "value" }.</description>
// /// </item>
// /// <item>
// /// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
// /// <description>Creates a payload of { "key": "value" }.</description>
// /// </item>
// /// </list>
// /// </para>
// /// </summary>
// private IDictionary<string, BinaryData> _serializedAdditionalRawData;

// /// <summary> Initializes a new instance of <see cref="NetAppVolumeBackupStatus"/>. </summary>
// internal NetAppVolumeBackupStatus()
// {
// }

// /// <summary> Initializes a new instance of <see cref="NetAppVolumeBackupStatus"/>. </summary>
// /// <param name="isHealthy"> Backup health status. </param>
// /// <param name="relationshipStatus"> Status of the backup mirror relationship. </param>
// /// <param name="mirrorState"> The status of the backup. </param>
// /// <param name="unhealthyReason"> Reason for the unhealthy backup relationship. </param>
// /// <param name="errorMessage"> Displays error message if the backup is in an error state. </param>
// /// <param name="lastTransferSize"> Displays the last transfer size. </param>
// /// <param name="lastTransferType"> Displays the last transfer type. </param>
// /// <param name="totalTransferBytes"> Displays the total bytes transferred. </param>
// /// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
// internal NetAppVolumeBackupStatus(bool? isHealthy, NetAppRelationshipStatus? relationshipStatus, NetAppMirrorState? mirrorState, string unhealthyReason, string errorMessage, long? lastTransferSize, string lastTransferType, long? totalTransferBytes, IDictionary<string, BinaryData> serializedAdditionalRawData)
// {
// IsHealthy = isHealthy;
// RelationshipStatus = relationshipStatus;
// MirrorState = mirrorState;
// UnhealthyReason = unhealthyReason;
// ErrorMessage = errorMessage;
// LastTransferSize = lastTransferSize;
// LastTransferType = lastTransferType;
// TotalTransferBytes = totalTransferBytes;
// _serializedAdditionalRawData = serializedAdditionalRawData;
// }

// /// <summary> Backup health status. </summary>
// public bool? IsHealthy { get; }
// /// <summary> Status of the backup mirror relationship. </summary>
// public NetAppRelationshipStatus? RelationshipStatus { get; }
// /// <summary> The status of the backup. </summary>
// public NetAppMirrorState? MirrorState { get; }
// /// <summary> Reason for the unhealthy backup relationship. </summary>
// public string UnhealthyReason { get; }
// /// <summary> Displays error message if the backup is in an error state. </summary>
// public string ErrorMessage { get; }
// /// <summary> Displays the last transfer size. </summary>
// public long? LastTransferSize { get; }
// /// <summary> Displays the last transfer type. </summary>
// public string LastTransferType { get; }
// /// <summary> Displays the total bytes transferred. </summary>
// public long? TotalTransferBytes { get; }
// }
//}
namespace Azure.ResourceManager.NetApp.Models
{
/// <summary> Backup status. </summary>
public partial class NetAppVolumeBackupStatus
{
/// <summary> Gets or sets the relationship status. </summary>
public virtual NetAppRelationshipStatus? RelationshipStatus
{
get => VolumeBackupRelationshipStatus.HasValue
? new NetAppRelationshipStatus(VolumeBackupRelationshipStatus.Value.ToString())
: null;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable disable

using System;
using System.Collections.Generic;

namespace Azure.ResourceManager.NetApp.Models
{
/// <summary> Restore status. </summary>
public partial class NetAppRestoreStatus
{
/// <summary> Gets or sets the relationship status. </summary>
public virtual NetAppRelationshipStatus? RelationshipStatus
{
get => VolumeRestoreRelationshipStatus.HasValue
? new NetAppRelationshipStatus(VolumeRestoreRelationshipStatus.Value.ToString())
: null;
}
}
}
Loading
Loading