Skip to content

Commit

Permalink
- This release adds support for state detail for Amazon Lightsail con…
Browse files Browse the repository at this point in the history
…tainer services.
  • Loading branch information
aws-sdk-dotnet-automation committed Apr 1, 2021
1 parent e147a5d commit 186e68b
Show file tree
Hide file tree
Showing 8 changed files with 438 additions and 13 deletions.
25 changes: 24 additions & 1 deletion generator/ServiceModels/lightsail/lightsail-2016-11-28.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -3056,6 +3056,7 @@
"power":{"shape":"ContainerServicePowerName"},
"powerId":{"shape":"string"},
"state":{"shape":"ContainerServiceState"},
"stateDetail":{"shape":"ContainerServiceStateDetail"},
"scale":{"shape":"ContainerServiceScale"},
"currentDeployment":{"shape":"ContainerServiceDeployment"},
"nextDeployment":{"shape":"ContainerServiceDeployment"},
Expand Down Expand Up @@ -3218,7 +3219,29 @@
"RUNNING",
"UPDATING",
"DELETING",
"DISABLED"
"DISABLED",
"DEPLOYING"
]
},
"ContainerServiceStateDetail":{
"type":"structure",
"members":{
"code":{"shape":"ContainerServiceStateDetailCode"},
"message":{"shape":"string"}
}
},
"ContainerServiceStateDetailCode":{
"type":"string",
"enum":[
"CREATING_SYSTEM_RESOURCES",
"CREATING_NETWORK_INFRASTRUCTURE",
"PROVISIONING_CERTIFICATE",
"PROVISIONING_SERVICE",
"CREATING_DEPLOYMENT",
"EVALUATING_HEALTH_CHECK",
"ACTIVATING_DEPLOYMENT",
"CERTIFICATE_LIMIT_EXCEEDED",
"UNKNOWN_ERROR"
]
},
"ContainerServicesListResult":{
Expand Down
15 changes: 14 additions & 1 deletion generator/ServiceModels/lightsail/lightsail-2016-11-28.docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,19 @@
"ContainerServiceState": {
"base": null,
"refs": {
"ContainerService$state": "<p>The current state of the container service.</p> <p>The state can be:</p> <ul> <li> <p> <code>Pending</code> - The container service is being created.</p> </li> <li> <p> <code>Ready</code> - The container service is created but does not have a container deployment.</p> </li> <li> <p> <code>Disabled</code> - The container service is disabled.</p> </li> <li> <p> <code>Updating</code> - The container service capacity or other setting is being updated.</p> </li> <li> <p> <code>Deploying</code> - The container service is launching a container deployment.</p> </li> <li> <p> <code>Running</code> - The container service is created and it has a container deployment.</p> </li> </ul>"
"ContainerService$state": "<p>The current state of the container service.</p> <p>The following container service states are possible:</p> <ul> <li> <p> <code>PENDING</code> - The container service is being created.</p> </li> <li> <p> <code>READY</code> - The container service is running but it does not have an active container deployment.</p> </li> <li> <p> <code>DEPLOYING</code> - The container service is launching a container deployment.</p> </li> <li> <p> <code>RUNNING</code> - The container service is running and it has an active container deployment.</p> </li> <li> <p> <code>UPDATING</code> - The container service capacity or its custom domains are being updated.</p> </li> <li> <p> <code>DELETING</code> - The container service is being deleted.</p> </li> <li> <p> <code>DISABLED</code> - The container service is disabled, and its active deployment and containers, if any, are shut down.</p> </li> </ul>"
}
},
"ContainerServiceStateDetail": {
"base": "<p>Describes the current state of a container service.</p>",
"refs": {
"ContainerService$stateDetail": "<p>An object that describes the current state of the container service.</p> <note> <p>The state detail is populated only when a container service is in a <code>PENDING</code>, <code>DEPLOYING</code>, or <code>UPDATING</code> state.</p> </note>"
}
},
"ContainerServiceStateDetailCode": {
"base": null,
"refs": {
"ContainerServiceStateDetail$code": "<p>The state code of the container service.</p> <p>The following state codes are possible:</p> <ul> <li> <p>The following state codes are possible if your container service is in a <code>DEPLOYING</code> or <code>UPDATING</code> state:</p> <ul> <li> <p> <code>CREATING_SYSTEM_RESOURCES</code> - The system resources for your container service are being created.</p> </li> <li> <p> <code>CREATING_NETWORK_INFRASTRUCTURE</code> - The network infrastructure for your container service are being created.</p> </li> <li> <p> <code>PROVISIONING_CERTIFICATE</code> - The SSL/TLS certificate for your container service is being created.</p> </li> <li> <p> <code>PROVISIONING_SERVICE</code> - Your container service is being provisioned.</p> </li> <li> <p> <code>CREATING_DEPLOYMENT</code> - Your deployment is being created on your container service.</p> </li> <li> <p> <code>EVALUATING_HEALTH_CHECK</code> - The health of your deployment is being evaluated.</p> </li> <li> <p> <code>ACTIVATING_DEPLOYMENT</code> - Your deployment is being activated.</p> </li> </ul> </li> <li> <p>The following state codes are possible if your container service is in a <code>PENDING</code> state:</p> <ul> <li> <p> <code>CERTIFICATE_LIMIT_EXCEEDED</code> - The SSL/TLS certificate required for your container service exceeds the maximum number of certificates allowed for your account.</p> </li> <li> <p> <code>UNKNOWN_ERROR</code> - An error was experienced when your container service was being created.</p> </li> </ul> </li> </ul>"
}
},
"ContainerServicesListResult": {
Expand Down Expand Up @@ -3929,6 +3941,7 @@
"ContainerServiceRegistryLogin$username": "<p>The container service registry username to use to push container images to the container image registry of a Lightsail account.</p>",
"ContainerServiceRegistryLogin$password": "<p>The container service registry password to use to push container images to the container image registry of a Lightsail account</p>",
"ContainerServiceRegistryLogin$registry": "<p>The address to use to push container images to the container image registry of a Lightsail account.</p>",
"ContainerServiceStateDetail$message": "<p>A message that provides more information for the state code.</p> <note> <p>The state detail is populated only when a container service is in a <code>PENDING</code>, <code>DEPLOYING</code>, or <code>UPDATING</code> state.</p> </note>",
"CopySnapshotRequest$sourceResourceName": "<p>The name of the source instance or disk from which the source automatic snapshot was created.</p> <p>Constraint:</p> <ul> <li> <p>Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the <a href=\"https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-keeping-automatic-snapshots\">Lightsail Dev Guide</a>.</p> </li> </ul>",
"CopySnapshotRequest$restoreDate": "<p>The date of the source automatic snapshot to copy. Use the <code>get auto snapshots</code> operation to identify the dates of the available automatic snapshots.</p> <p>Constraints:</p> <ul> <li> <p>Must be specified in <code>YYYY-MM-DD</code> format.</p> </li> <li> <p>This parameter cannot be defined together with the <code>use latest restorable auto snapshot</code> parameter. The <code>restore date</code> and <code>use latest restorable auto snapshot</code> parameters are mutually exclusive.</p> </li> <li> <p>Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the <a href=\"https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-keeping-automatic-snapshots\">Lightsail Dev Guide</a>.</p> </li> </ul>",
"CreateDiskFromSnapshotRequest$sourceDiskName": "<p>The name of the source disk from which the source automatic snapshot was created.</p> <p>Constraints:</p> <ul> <li> <p>This parameter cannot be defined together with the <code>disk snapshot name</code> parameter. The <code>source disk name</code> and <code>disk snapshot name</code> parameters are mutually exclusive.</p> </li> <li> <p>Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the <a href=\"https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configuring-automatic-snapshots\">Lightsail Dev Guide</a>.</p> </li> </ul>",
Expand Down
37 changes: 35 additions & 2 deletions generator/ServiceModels/lightsail/lightsail-2016-11-28.normal.json
Original file line number Diff line number Diff line change
Expand Up @@ -3670,7 +3670,11 @@
},
"state":{
"shape":"ContainerServiceState",
"documentation":"<p>The current state of the container service.</p> <p>The state can be:</p> <ul> <li> <p> <code>Pending</code> - The container service is being created.</p> </li> <li> <p> <code>Ready</code> - The container service is created but does not have a container deployment.</p> </li> <li> <p> <code>Disabled</code> - The container service is disabled.</p> </li> <li> <p> <code>Updating</code> - The container service capacity or other setting is being updated.</p> </li> <li> <p> <code>Deploying</code> - The container service is launching a container deployment.</p> </li> <li> <p> <code>Running</code> - The container service is created and it has a container deployment.</p> </li> </ul>"
"documentation":"<p>The current state of the container service.</p> <p>The following container service states are possible:</p> <ul> <li> <p> <code>PENDING</code> - The container service is being created.</p> </li> <li> <p> <code>READY</code> - The container service is running but it does not have an active container deployment.</p> </li> <li> <p> <code>DEPLOYING</code> - The container service is launching a container deployment.</p> </li> <li> <p> <code>RUNNING</code> - The container service is running and it has an active container deployment.</p> </li> <li> <p> <code>UPDATING</code> - The container service capacity or its custom domains are being updated.</p> </li> <li> <p> <code>DELETING</code> - The container service is being deleted.</p> </li> <li> <p> <code>DISABLED</code> - The container service is disabled, and its active deployment and containers, if any, are shut down.</p> </li> </ul>"
},
"stateDetail":{
"shape":"ContainerServiceStateDetail",
"documentation":"<p>An object that describes the current state of the container service.</p> <note> <p>The state detail is populated only when a container service is in a <code>PENDING</code>, <code>DEPLOYING</code>, or <code>UPDATING</code> state.</p> </note>"
},
"scale":{
"shape":"ContainerServiceScale",
Expand Down Expand Up @@ -3950,7 +3954,36 @@
"RUNNING",
"UPDATING",
"DELETING",
"DISABLED"
"DISABLED",
"DEPLOYING"
]
},
"ContainerServiceStateDetail":{
"type":"structure",
"members":{
"code":{
"shape":"ContainerServiceStateDetailCode",
"documentation":"<p>The state code of the container service.</p> <p>The following state codes are possible:</p> <ul> <li> <p>The following state codes are possible if your container service is in a <code>DEPLOYING</code> or <code>UPDATING</code> state:</p> <ul> <li> <p> <code>CREATING_SYSTEM_RESOURCES</code> - The system resources for your container service are being created.</p> </li> <li> <p> <code>CREATING_NETWORK_INFRASTRUCTURE</code> - The network infrastructure for your container service are being created.</p> </li> <li> <p> <code>PROVISIONING_CERTIFICATE</code> - The SSL/TLS certificate for your container service is being created.</p> </li> <li> <p> <code>PROVISIONING_SERVICE</code> - Your container service is being provisioned.</p> </li> <li> <p> <code>CREATING_DEPLOYMENT</code> - Your deployment is being created on your container service.</p> </li> <li> <p> <code>EVALUATING_HEALTH_CHECK</code> - The health of your deployment is being evaluated.</p> </li> <li> <p> <code>ACTIVATING_DEPLOYMENT</code> - Your deployment is being activated.</p> </li> </ul> </li> <li> <p>The following state codes are possible if your container service is in a <code>PENDING</code> state:</p> <ul> <li> <p> <code>CERTIFICATE_LIMIT_EXCEEDED</code> - The SSL/TLS certificate required for your container service exceeds the maximum number of certificates allowed for your account.</p> </li> <li> <p> <code>UNKNOWN_ERROR</code> - An error was experienced when your container service was being created.</p> </li> </ul> </li> </ul>"
},
"message":{
"shape":"string",
"documentation":"<p>A message that provides more information for the state code.</p> <note> <p>The state detail is populated only when a container service is in a <code>PENDING</code>, <code>DEPLOYING</code>, or <code>UPDATING</code> state.</p> </note>"
}
},
"documentation":"<p>Describes the current state of a container service.</p>"
},
"ContainerServiceStateDetailCode":{
"type":"string",
"enum":[
"CREATING_SYSTEM_RESOURCES",
"CREATING_NETWORK_INFRASTRUCTURE",
"PROVISIONING_CERTIFICATE",
"PROVISIONING_SERVICE",
"CREATING_DEPLOYMENT",
"EVALUATING_HEALTH_CHECK",
"ACTIVATING_DEPLOYMENT",
"CERTIFICATE_LIMIT_EXCEEDED",
"UNKNOWN_ERROR"
]
},
"ContainerServicesListResult":{
Expand Down
49 changes: 40 additions & 9 deletions sdk/src/Services/Lightsail/Generated/Model/ContainerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public partial class ContainerService
private ResourceType _resourceType;
private int? _scale;
private ContainerServiceState _state;
private ContainerServiceStateDetail _stateDetail;
private List<Tag> _tags = new List<Tag>();
private string _url;

Expand Down Expand Up @@ -363,33 +364,39 @@ internal bool IsSetScale()
/// </para>
///
/// <para>
/// The state can be:
/// The following container service states are possible:
/// </para>
/// <ul> <li>
/// <para>
/// <code>Pending</code> - The container service is being created.
/// <code>PENDING</code> - The container service is being created.
/// </para>
/// </li> <li>
/// <para>
/// <code>Ready</code> - The container service is created but does not have a container
/// deployment.
/// <code>READY</code> - The container service is running but it does not have an active
/// container deployment.
/// </para>
/// </li> <li>
/// <para>
/// <code>Disabled</code> - The container service is disabled.
/// <code>DEPLOYING</code> - The container service is launching a container deployment.
/// </para>
/// </li> <li>
/// <para>
/// <code>RUNNING</code> - The container service is running and it has an active container
/// deployment.
/// </para>
/// </li> <li>
/// <para>
/// <code>Updating</code> - The container service capacity or other setting is being
/// updated.
/// <code>UPDATING</code> - The container service capacity or its custom domains are
/// being updated.
/// </para>
/// </li> <li>
/// <para>
/// <code>Deploying</code> - The container service is launching a container deployment.
/// <code>DELETING</code> - The container service is being deleted.
/// </para>
/// </li> <li>
/// <para>
/// <code>Running</code> - The container service is created and it has a container deployment.
/// <code>DISABLED</code> - The container service is disabled, and its active deployment
/// and containers, if any, are shut down.
/// </para>
/// </li> </ul>
/// </summary>
Expand All @@ -405,6 +412,30 @@ internal bool IsSetState()
return this._state != null;
}

/// <summary>
/// Gets and sets the property StateDetail.
/// <para>
/// An object that describes the current state of the container service.
/// </para>
/// <note>
/// <para>
/// The state detail is populated only when a container service is in a <code>PENDING</code>,
/// <code>DEPLOYING</code>, or <code>UPDATING</code> state.
/// </para>
/// </note>
/// </summary>
public ContainerServiceStateDetail StateDetail
{
get { return this._stateDetail; }
set { this._stateDetail = value; }
}

// Check to see if StateDetail property is set
internal bool IsSetStateDetail()
{
return this._stateDetail != null;
}

/// <summary>
/// Gets and sets the property Tags.
/// <para>
Expand Down
Loading

0 comments on commit 186e68b

Please sign in to comment.