Skip to content

Commit

Permalink
release 3.1.104 source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Jul 18, 2024
1 parent d45ed42 commit 8b219fc
Show file tree
Hide file tree
Showing 389 changed files with 26,640 additions and 1,588 deletions.
538 changes: 538 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

538 changes: 538 additions & 0 deletions CHANGELOG_CN.md

Large diffs are not rendered by default.

1,510 changes: 761 additions & 749 deletions HuaweiCloud.sln

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Services/Aad/Aad.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Aad</PackageId>
<Version>3.1.103</Version>
<Version>3.1.104</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/AntiDDoS/AntiDDoS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.AntiDDoS</PackageId>
<Version>3.1.103</Version>
<Version>3.1.104</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/Aom/Aom.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Aom</PackageId>
<Version>3.1.103</Version>
<Version>3.1.104</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/Aos/Aos.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Aos</PackageId>
<Version>3.1.103</Version>
<Version>3.1.104</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
2 changes: 1 addition & 1 deletion Services/As/As.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.As</PackageId>
<Version>3.1.103</Version>
<Version>3.1.104</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
6 changes: 6 additions & 0 deletions Services/As/V1/Model/CreateScalingPolicyV2Option.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,18 @@ public class ScalingPolicyTypeEnum
/// </summary>
public static readonly ScalingPolicyTypeEnum RECURRENCE = new ScalingPolicyTypeEnum("RECURRENCE");

/// <summary>
/// Enum INTERVAL_ALARM for value: INTERVAL_ALARM
/// </summary>
public static readonly ScalingPolicyTypeEnum INTERVAL_ALARM = new ScalingPolicyTypeEnum("INTERVAL_ALARM");

private static readonly Dictionary<string, ScalingPolicyTypeEnum> StaticFields =
new Dictionary<string, ScalingPolicyTypeEnum>()
{
{ "ALARM", ALARM },
{ "SCHEDULED", SCHEDULED },
{ "RECURRENCE", RECURRENCE },
{ "INTERVAL_ALARM", INTERVAL_ALARM },
};

private string _value;
Expand Down
18 changes: 16 additions & 2 deletions Services/As/V1/Model/IntervalAlarmActionsV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,19 @@ public class IntervalAlarmActionsV2
///
/// </summary>
[JsonProperty("lower_bound", NullValueHandling = NullValueHandling.Ignore)]
public int? LowerBound { get; set; }
public double? LowerBound { get; set; }

/// <summary>
///
/// </summary>
[JsonProperty("upper_bound", NullValueHandling = NullValueHandling.Ignore)]
public int? UpperBound { get; set; }
public double? UpperBound { get; set; }

/// <summary>
/// 操作百分比,取值为0到20000的整数。当scaling_resource_type为SCALING_GROUP时,size和instance_percentage参数均无配置,则size默认为1。当scaling_resource_type为BANDWIDTH时,不支持配置instance_percentage参数。
/// </summary>
[JsonProperty("percentage", NullValueHandling = NullValueHandling.Ignore)]
public int? Percentage { get; set; }



Expand All @@ -60,6 +66,7 @@ public override string ToString()
sb.Append(" size: ").Append(Size).Append("\n");
sb.Append(" lowerBound: ").Append(LowerBound).Append("\n");
sb.Append(" upperBound: ").Append(UpperBound).Append("\n");
sb.Append(" percentage: ").Append(Percentage).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -105,6 +112,11 @@ public bool Equals(IntervalAlarmActionsV2 input)
this.UpperBound == input.UpperBound ||
(this.UpperBound != null &&
this.UpperBound.Equals(input.UpperBound))
) &&
(
this.Percentage == input.Percentage ||
(this.Percentage != null &&
this.Percentage.Equals(input.Percentage))
);
}

Expand All @@ -126,6 +138,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.LowerBound.GetHashCode();
if (this.UpperBound != null)
hashCode = hashCode * 59 + this.UpperBound.GetHashCode();
if (this.Percentage != null)
hashCode = hashCode * 59 + this.Percentage.GetHashCode();
return hashCode;
}
}
Expand Down
6 changes: 6 additions & 0 deletions Services/As/V1/Model/ScalingAllPolicyDetail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,18 @@ public class ScalingPolicyTypeEnum
/// </summary>
public static readonly ScalingPolicyTypeEnum RECURRENCE = new ScalingPolicyTypeEnum("RECURRENCE");

/// <summary>
/// Enum INTERVAL_ALARM for value: INTERVAL_ALARM
/// </summary>
public static readonly ScalingPolicyTypeEnum INTERVAL_ALARM = new ScalingPolicyTypeEnum("INTERVAL_ALARM");

private static readonly Dictionary<string, ScalingPolicyTypeEnum> StaticFields =
new Dictionary<string, ScalingPolicyTypeEnum>()
{
{ "ALARM", ALARM },
{ "SCHEDULED", SCHEDULED },
{ "RECURRENCE", RECURRENCE },
{ "INTERVAL_ALARM", INTERVAL_ALARM },
};

private string _value;
Expand Down
6 changes: 6 additions & 0 deletions Services/As/V1/Model/ScalingPoliciesV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,18 @@ public class ScalingPolicyTypeEnum
/// </summary>
public static readonly ScalingPolicyTypeEnum RECURRENCE = new ScalingPolicyTypeEnum("RECURRENCE");

/// <summary>
/// Enum INTERVAL_ALARM for value: INTERVAL_ALARM
/// </summary>
public static readonly ScalingPolicyTypeEnum INTERVAL_ALARM = new ScalingPolicyTypeEnum("INTERVAL_ALARM");

private static readonly Dictionary<string, ScalingPolicyTypeEnum> StaticFields =
new Dictionary<string, ScalingPolicyTypeEnum>()
{
{ "ALARM", ALARM },
{ "SCHEDULED", SCHEDULED },
{ "RECURRENCE", RECURRENCE },
{ "INTERVAL_ALARM", INTERVAL_ALARM },
};

private string _value;
Expand Down
6 changes: 6 additions & 0 deletions Services/As/V1/Model/ScalingV2PolicyDetail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,18 @@ public class ScalingPolicyTypeEnum
/// </summary>
public static readonly ScalingPolicyTypeEnum RECURRENCE = new ScalingPolicyTypeEnum("RECURRENCE");

/// <summary>
/// Enum INTERVAL_ALARM for value: INTERVAL_ALARM
/// </summary>
public static readonly ScalingPolicyTypeEnum INTERVAL_ALARM = new ScalingPolicyTypeEnum("INTERVAL_ALARM");

private static readonly Dictionary<string, ScalingPolicyTypeEnum> StaticFields =
new Dictionary<string, ScalingPolicyTypeEnum>()
{
{ "ALARM", ALARM },
{ "SCHEDULED", SCHEDULED },
{ "RECURRENCE", RECURRENCE },
{ "INTERVAL_ALARM", INTERVAL_ALARM },
};

private string _value;
Expand Down
6 changes: 6 additions & 0 deletions Services/As/V1/Model/UpdateScalingV2PolicyOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,18 @@ public class ScalingPolicyTypeEnum
/// </summary>
public static readonly ScalingPolicyTypeEnum RECURRENCE = new ScalingPolicyTypeEnum("RECURRENCE");

/// <summary>
/// Enum INTERVAL_ALARM for value: INTERVAL_ALARM
/// </summary>
public static readonly ScalingPolicyTypeEnum INTERVAL_ALARM = new ScalingPolicyTypeEnum("INTERVAL_ALARM");

private static readonly Dictionary<string, ScalingPolicyTypeEnum> StaticFields =
new Dictionary<string, ScalingPolicyTypeEnum>()
{
{ "ALARM", ALARM },
{ "SCHEDULED", SCHEDULED },
{ "RECURRENCE", RECURRENCE },
{ "INTERVAL_ALARM", INTERVAL_ALARM },
};

private string _value;
Expand Down
2 changes: 1 addition & 1 deletion Services/Bms/Bms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<PackageId>HuaweiCloud.SDK.Bms</PackageId>
<Version>3.1.103</Version>
<Version>3.1.104</Version>
<Authors>HuaweiCloud</Authors>
<Copyright>Copyright 2023 Huawei Technologies Co., Ltd.</Copyright>
<Company>Huawei Technologies Co., Ltd.</Company>
Expand Down
105 changes: 105 additions & 0 deletions Services/Bms/V1/Model/ASICAcceleratorInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Runtime.Serialization;

using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using HuaweiCloud.SDK.Core;

namespace HuaweiCloud.SDK.Bms.V1.Model
{
/// <summary>
///
/// </summary>
public class ASICAcceleratorInfo
{

/// <summary>
/// ASIC设备名称。
/// </summary>
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
public string Name { get; set; }

/// <summary>
/// ASIC设备数量。
/// </summary>
[JsonProperty("count", NullValueHandling = NullValueHandling.Ignore)]
public int? Count { get; set; }

/// <summary>
/// ASIC设备的内存,单位为MB。
/// </summary>
[JsonProperty("memory_mb", NullValueHandling = NullValueHandling.Ignore)]
public int? MemoryMb { get; set; }



/// <summary>
/// Get the string
/// </summary>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class ASICAcceleratorInfo {\n");
sb.Append(" name: ").Append(Name).Append("\n");
sb.Append(" count: ").Append(Count).Append("\n");
sb.Append(" memoryMb: ").Append(MemoryMb).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

/// <summary>
/// Returns true if objects are equal
/// </summary>
public override bool Equals(object input)
{
return this.Equals(input as ASICAcceleratorInfo);
}

/// <summary>
/// Returns true if objects are equal
/// </summary>
public bool Equals(ASICAcceleratorInfo input)
{
if (input == null)
return false;

return
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.Count == input.Count ||
(this.Count != null &&
this.Count.Equals(input.Count))
) &&
(
this.MemoryMb == input.MemoryMb ||
(this.MemoryMb != null &&
this.MemoryMb.Equals(input.MemoryMb))
);
}

/// <summary>
/// Get hash code
/// </summary>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Name != null)
hashCode = hashCode * 59 + this.Name.GetHashCode();
if (this.Count != null)
hashCode = hashCode * 59 + this.Count.GetHashCode();
if (this.MemoryMb != null)
hashCode = hashCode * 59 + this.MemoryMb.GetHashCode();
return hashCode;
}
}
}
}
30 changes: 30 additions & 0 deletions Services/Bms/V1/Model/FlavorInfos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@ public class FlavorInfos
[JsonProperty("ram", NullValueHandling = NullValueHandling.Ignore)]
public string Ram { get; set; }

/// <summary>
/// 该裸金属服务器规格对应的GPU设备。
/// </summary>
[JsonProperty("gpus", NullValueHandling = NullValueHandling.Ignore)]
public List<GpuInfo> Gpus { get; set; }

/// <summary>
/// 该裸金属服务器规格对应的ASIC设备。
/// </summary>
[JsonProperty("asic_accelerators", NullValueHandling = NullValueHandling.Ignore)]
public List<ASICAcceleratorInfo> AsicAccelerators { get; set; }



/// <summary>
Expand All @@ -60,6 +72,8 @@ public override string ToString()
sb.Append(" disk: ").Append(Disk).Append("\n");
sb.Append(" vcpus: ").Append(Vcpus).Append("\n");
sb.Append(" ram: ").Append(Ram).Append("\n");
sb.Append(" gpus: ").Append(Gpus).Append("\n");
sb.Append(" asicAccelerators: ").Append(AsicAccelerators).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -105,6 +119,18 @@ public bool Equals(FlavorInfos input)
this.Ram == input.Ram ||
(this.Ram != null &&
this.Ram.Equals(input.Ram))
) &&
(
this.Gpus == input.Gpus ||
this.Gpus != null &&
input.Gpus != null &&
this.Gpus.SequenceEqual(input.Gpus)
) &&
(
this.AsicAccelerators == input.AsicAccelerators ||
this.AsicAccelerators != null &&
input.AsicAccelerators != null &&
this.AsicAccelerators.SequenceEqual(input.AsicAccelerators)
);
}

Expand All @@ -126,6 +152,10 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.Vcpus.GetHashCode();
if (this.Ram != null)
hashCode = hashCode * 59 + this.Ram.GetHashCode();
if (this.Gpus != null)
hashCode = hashCode * 59 + this.Gpus.GetHashCode();
if (this.AsicAccelerators != null)
hashCode = hashCode * 59 + this.AsicAccelerators.GetHashCode();
return hashCode;
}
}
Expand Down
Loading

0 comments on commit 8b219fc

Please sign in to comment.