/// <summary> /// <para> Returns a description of the settings for the specified configuration set, that is, either a configuration template or the /// configuration set associated with a running environment. </para> <para> When describing the settings for the configuration set associated /// with a running environment, it is possible to receive two sets of setting descriptions. One is the deployed configuration set, and the other /// is a draft configuration of an environment that is either in the process of deployment or that failed to deploy. </para> <para>Related /// Topics</para> /// <ul> /// <li> DeleteEnvironmentConfiguration </li> /// /// </ul> /// </summary> /// /// <param name="describeConfigurationSettingsRequest">Container for the necessary parameters to execute the DescribeConfigurationSettings /// service method on AmazonElasticBeanstalk.</param> /// /// <returns>The response from the DescribeConfigurationSettings service method, as returned by AmazonElasticBeanstalk.</returns> /// public DescribeConfigurationSettingsResponse DescribeConfigurationSettings(DescribeConfigurationSettingsRequest describeConfigurationSettingsRequest) { IRequest <DescribeConfigurationSettingsRequest> request = new DescribeConfigurationSettingsRequestMarshaller().Marshall(describeConfigurationSettingsRequest); DescribeConfigurationSettingsResponse response = Invoke <DescribeConfigurationSettingsRequest, DescribeConfigurationSettingsResponse> (request, this.signer, DescribeConfigurationSettingsResponseUnmarshaller.GetInstance()); return(response); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DescribeConfigurationSettingsResponse response = new DescribeConfigurationSettingsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if (context.TestExpression("DescribeConfigurationSettingsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return(response); }
private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeConfigurationSettingsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ConfigurationSettings/member", targetDepth)) { var unmarshaller = ConfigurationSettingsDescriptionUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.ConfigurationSettings.Add(item); continue; } } } return; }
private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeConfigurationSettingsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ConfigurationSettings/member", targetDepth)) { response.ConfigurationSettings.Add(ConfigurationSettingsDescriptionUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return; } } return; }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DescribeConfigurationSettingsResponse response = new DescribeConfigurationSettingsResponse(); while (context.Read()) { if (context.IsStartElement) { if (context.TestExpression("DescribeConfigurationSettingsResult", 2)) { response.DescribeConfigurationSettingsResult = DescribeConfigurationSettingsResultUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context); } } } return(response); }