Skip to content

Commit

Permalink
Introduce versionStatus field to take place of status field in EKS De…
Browse files Browse the repository at this point in the history
…scribeClusterVersions API
  • Loading branch information
aws-sdk-dotnet-automation committed Feb 7, 2025
1 parent 08c62a0 commit 304dceb
Show file tree
Hide file tree
Showing 22 changed files with 276 additions and 118 deletions.
17 changes: 17 additions & 0 deletions generator/ServiceModels/eks/eks-2017-11-01.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1406,6 +1406,7 @@
"endOfStandardSupportDate":{"shape":"Timestamp"},
"endOfExtendedSupportDate":{"shape":"Timestamp"},
"status":{"shape":"ClusterVersionStatus"},
"versionStatus":{"shape":"VersionStatus"},
"kubernetesPatchVersion":{"shape":"String"}
}
},
Expand Down Expand Up @@ -2110,8 +2111,16 @@
},
"status":{
"shape":"ClusterVersionStatus",
"deprecated":true,
"deprecatedMessage":"status has been replaced by versionStatus",
"deprecatedSince":"2025-02-15",
"location":"querystring",
"locationName":"status"
},
"versionStatus":{
"shape":"VersionStatus",
"location":"querystring",
"locationName":"versionStatus"
}
}
},
Expand Down Expand Up @@ -4059,6 +4068,14 @@
"supportType":{"shape":"SupportType"}
}
},
"VersionStatus":{
"type":"string",
"enum":[
"UNSUPPORTED",
"STANDARD_SUPPORT",
"EXTENDED_SUPPORT"
]
},
"VpcConfigRequest":{
"type":"structure",
"members":{
Expand Down
27 changes: 17 additions & 10 deletions generator/ServiceModels/eks/eks-2017-11-01.docs.json

Large diffs are not rendered by default.

39 changes: 30 additions & 9 deletions generator/ServiceModels/eks/eks-2017-11-01.normal.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public partial class ClusterVersionInformation
private string _kubernetesPatchVersion;
private DateTime? _releaseDate;
private ClusterVersionStatus _status;
private VersionStatus _versionStatus;

/// <summary>
/// Gets and sets the property ClusterType.
Expand Down Expand Up @@ -189,7 +190,12 @@ internal bool IsSetReleaseDate()
}

/// <summary>
/// Gets and sets the property Status.
/// Gets and sets the property Status. <important>
/// <para>
/// This field is deprecated. Use <c>versionStatus</c> instead, as that field matches
/// for input and output of this action.
/// </para>
/// </important>
/// <para>
/// Current status of this cluster version.
/// </para>
Expand All @@ -206,5 +212,23 @@ internal bool IsSetStatus()
return this._status != null;
}

/// <summary>
/// Gets and sets the property VersionStatus.
/// <para>
/// Current status of this cluster version.
/// </para>
/// </summary>
public VersionStatus VersionStatus
{
get { return this._versionStatus; }
set { this._versionStatus = value; }
}

// Check to see if VersionStatus property is set
internal bool IsSetVersionStatus()
{
return this._versionStatus != null;
}

}
}
3 changes: 2 additions & 1 deletion sdk/src/Services/EKS/Generated/Model/CreateAddonRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ internal bool IsSetPodIdentityAssociations()
/// <b>Preserve</b> – This is similar to the NONE option. If the self-managed version
/// of the add-on is installed on your cluster Amazon EKS doesn't change the add-on resource
/// properties. Creation of the add-on might fail if conflicts are detected. This option
/// works differently during the update operation. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_UpdateAddon.html">UpdateAddon</a>.
/// works differently during the update operation. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_UpdateAddon.html">
/// <c>UpdateAddon</c> </a>.
/// </para>
/// </li> </ul>
/// <para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public partial class DescribeClusterVersionsRequest : AmazonEKSRequest
private int? _maxResults;
private string _nextToken;
private ClusterVersionStatus _status;
private VersionStatus _versionStatus;

/// <summary>
/// Gets and sets the property ClusterType.
Expand Down Expand Up @@ -153,11 +154,17 @@ internal bool IsSetNextToken()
}

/// <summary>
/// Gets and sets the property Status.
/// Gets and sets the property Status. <important>
/// <para>
/// This field is deprecated. Use <c>versionStatus</c> instead, as that field matches
/// for input and output of this action.
/// </para>
/// </important>
/// <para>
/// Filter versions by their current status.
/// </para>
/// </summary>
[Obsolete("status has been replaced by versionStatus")]
public ClusterVersionStatus Status
{
get { return this._status; }
Expand All @@ -170,5 +177,23 @@ internal bool IsSetStatus()
return this._status != null;
}

/// <summary>
/// Gets and sets the property VersionStatus.
/// <para>
/// Filter versions by their current status.
/// </para>
/// </summary>
public VersionStatus VersionStatus
{
get { return this._versionStatus; }
set { this._versionStatus = value; }
}

// Check to see if VersionStatus property is set
internal bool IsSetVersionStatus()
{
return this._versionStatus != null;
}

}
}
6 changes: 3 additions & 3 deletions sdk/src/Services/EKS/Generated/Model/DescribeUpdateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ namespace Amazon.EKS.Model
///
///
/// <para>
/// When the status of the update is <c>Succeeded</c>, the update is complete. If an update
/// fails, the status is <c>Failed</c>, and an error detail explains the reason for the
/// failure.
/// When the status of the update is <c>Successful</c>, the update is complete. If an
/// update fails, the status is <c>Failed</c>, and an error detail explains the reason
/// for the failure.
/// </para>
/// </summary>
public partial class DescribeUpdateRequest : AmazonEKSRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ public ClusterVersionInformation Unmarshall(JsonUnmarshallerContext context)
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("versionStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.VersionStatus = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public IRequest Marshall(DescribeClusterVersionsRequest publicRequest)

if (publicRequest.IsSetStatus())
request.Parameters.Add("status", StringUtils.FromString(publicRequest.Status));

if (publicRequest.IsSetVersionStatus())
request.Parameters.Add("versionStatus", StringUtils.FromString(publicRequest.VersionStatus));
request.ResourcePath = "/cluster-versions";
request.UseQueryString = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public partial class ListPodIdentityAssociationsResponse : AmazonWebServiceRespo
/// </para>
///
/// <para>
/// Each summary is simplified by removing these fields compared to the full <c> <a>PodIdentityAssociation</a>
/// </c>:
/// Each summary is simplified by removing these fields compared to the full <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_PodIdentityAssociation.html">
/// <c>PodIdentityAssociation</c> </a>:
/// </para>
/// <ul> <li>
/// <para>
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/Services/EKS/Generated/Model/NodegroupUpdateConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ internal bool IsSetMaxUnavailablePercentage()
/// <para>
/// The configuration for the behavior to follow during a node group version update of
/// this managed node group. You choose between two possible strategies for replacing
/// nodes during an <a href="https://docs.aws.amazon.com/latest/APIReference/API_UpdateNodegroupVersion.html">UpdateNodegroupVersion</a>
/// action.
/// nodes during an <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_UpdateNodegroupVersion.html">
/// <c>UpdateNodegroupVersion</c> </a> action.
/// </para>
///
/// <para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ namespace Amazon.EKS.Model
///
///
/// <para>
/// Each summary is simplified by removing these fields compared to the full <c> <a>PodIdentityAssociation</a>
/// </c>:
/// Each summary is simplified by removing these fields compared to the full <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_PodIdentityAssociation.html">
/// <c>PodIdentityAssociation</c> </a>:
/// </para>
/// <ul> <li>
/// <para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ namespace Amazon.EKS.Model
/// </para>
///
/// <para>
/// Cluster connection requires two steps. First, send a <c> <a>RegisterClusterRequest</a>
/// </c> to add it to the Amazon EKS control plane.
/// Cluster connection requires two steps. First, send a <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_RegisterClusterRequest.html">
/// <c>RegisterClusterRequest</c> </a> to add it to the Amazon EKS control plane.
/// </para>
///
/// <para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ namespace Amazon.EKS.Model
/// Container for the parameters to the UpdateClusterVersion operation.
/// Updates an Amazon EKS cluster to the specified Kubernetes version. Your cluster continues
/// to function during the update. The response output includes an update ID that you
/// can use to track the status of your cluster update with the <a>DescribeUpdate</a>
/// API operation.
/// can use to track the status of your cluster update with the <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeUpdate.html">
/// <c>DescribeUpdate</c> </a> API operation.
///
///
/// <para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ namespace Amazon.EKS.Model
/// Container for the parameters to the UpdateNodegroupConfig operation.
/// Updates an Amazon EKS managed node group configuration. Your node group continues
/// to function during the update. The response output includes an update ID that you
/// can use to track the status of your node group update with the <a>DescribeUpdate</a>
/// API operation. You can update the Kubernetes labels and taints for a node group and
/// the scaling and version update configuration.
/// can use to track the status of your node group update with the <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeUpdate.html">
/// <c>DescribeUpdate</c> </a> API operation. You can update the Kubernetes labels and
/// taints for a node group and the scaling and version update configuration.
/// </summary>
public partial class UpdateNodegroupConfigRequest : AmazonEKSRequest
{
Expand Down
54 changes: 54 additions & 0 deletions sdk/src/Services/EKS/Generated/ServiceEnumerations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2215,4 +2215,58 @@ public static implicit operator UpdateType(string value)
}
}


/// <summary>
/// Constants used for properties of type VersionStatus.
/// </summary>
public class VersionStatus : ConstantClass
{

/// <summary>
/// Constant EXTENDED_SUPPORT for VersionStatus
/// </summary>
public static readonly VersionStatus EXTENDED_SUPPORT = new VersionStatus("EXTENDED_SUPPORT");
/// <summary>
/// Constant STANDARD_SUPPORT for VersionStatus
/// </summary>
public static readonly VersionStatus STANDARD_SUPPORT = new VersionStatus("STANDARD_SUPPORT");
/// <summary>
/// Constant UNSUPPORTED for VersionStatus
/// </summary>
public static readonly VersionStatus UNSUPPORTED = new VersionStatus("UNSUPPORTED");

/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public VersionStatus(string value)
: base(value)
{
}

/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static VersionStatus FindValue(string value)
{
return FindValue<VersionStatus>(value);
}

/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator VersionStatus(string value)
{
return FindValue(value);
}
}

}
20 changes: 10 additions & 10 deletions sdk/src/Services/EKS/Generated/_bcl35/AmazonEKSClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2737,9 +2737,9 @@ public virtual DescribePodIdentityAssociationResponse EndDescribePodIdentityAsso
///
///
/// <para>
/// When the status of the update is <c>Succeeded</c>, the update is complete. If an update
/// fails, the status is <c>Failed</c>, and an error detail explains the reason for the
/// failure.
/// When the status of the update is <c>Successful</c>, the update is complete. If an
/// update fails, the status is <c>Failed</c>, and an error detail explains the reason
/// for the failure.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeUpdate service method.</param>
Expand Down Expand Up @@ -3874,8 +3874,8 @@ public virtual ListUpdatesResponse EndListUpdates(IAsyncResult asyncResult)
/// </para>
///
/// <para>
/// Cluster connection requires two steps. First, send a <c> <a>RegisterClusterRequest</a>
/// </c> to add it to the Amazon EKS control plane.
/// Cluster connection requires two steps. First, send a <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_RegisterClusterRequest.html">
/// <c>RegisterClusterRequest</c> </a> to add it to the Amazon EKS control plane.
/// </para>
///
/// <para>
Expand Down Expand Up @@ -4374,8 +4374,8 @@ public virtual UpdateClusterConfigResponse EndUpdateClusterConfig(IAsyncResult a
/// <summary>
/// Updates an Amazon EKS cluster to the specified Kubernetes version. Your cluster continues
/// to function during the update. The response output includes an update ID that you
/// can use to track the status of your cluster update with the <a>DescribeUpdate</a>
/// API operation.
/// can use to track the status of your cluster update with the <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeUpdate.html">
/// <c>DescribeUpdate</c> </a> API operation.
///
///
/// <para>
Expand Down Expand Up @@ -4545,9 +4545,9 @@ public virtual UpdateEksAnywhereSubscriptionResponse EndUpdateEksAnywhereSubscri
/// <summary>
/// Updates an Amazon EKS managed node group configuration. Your node group continues
/// to function during the update. The response output includes an update ID that you
/// can use to track the status of your node group update with the <a>DescribeUpdate</a>
/// API operation. You can update the Kubernetes labels and taints for a node group and
/// the scaling and version update configuration.
/// can use to track the status of your node group update with the <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeUpdate.html">
/// <c>DescribeUpdate</c> </a> API operation. You can update the Kubernetes labels and
/// taints for a node group and the scaling and version update configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateNodegroupConfig service method.</param>
///
Expand Down
Loading

0 comments on commit 304dceb

Please sign in to comment.