Skip to content

Commit

Permalink
Regenerate ServiceBus Admin with source version of Autorest (#40154)
Browse files Browse the repository at this point in the history
Regenerate ServiceBus Admin with source version of Autorest
  • Loading branch information
alzimmermsft committed May 14, 2024
1 parent 2fcd786 commit 6a341f6
Show file tree
Hide file tree
Showing 31 changed files with 283 additions and 181 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public final class EntitiesImpl {
}

/**
* The interface defining all the services for ServiceBusManagementClientEntities to be used by the proxy service
* to perform REST calls.
* The interface defining all the services for ServiceBusManagementClientEntities to be used by the proxy service to
* perform REST calls.
*/
@Host("https://{endpoint}")
@ServiceInterface(name = "ServiceBusManagement")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ public ServiceBusManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapt
}

/**
* The interface defining all the services for ServiceBusManagementClient to be used by the proxy service to
* perform REST calls.
* The interface defining all the services for ServiceBusManagementClient to be used by the proxy service to perform
* REST calls.
*/
@Host("https://{endpoint}")
@ServiceInterface(name = "ServiceBusManagement")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

package com.azure.messaging.servicebus.administration.implementation.models;

import com.azure.messaging.servicebus.administration.implementation.EntityHelper;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.CoreUtils;
import com.azure.messaging.servicebus.administration.implementation.EntityHelper;
import com.azure.messaging.servicebus.administration.models.AccessRights;
import com.azure.xml.XmlReader;
import com.azure.xml.XmlSerializable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ public final class CorrelationFilterImpl extends RuleFilterImpl {
private static final String WWW_W3_ORG_TWO_ZERO_ZERO_ONE_XMLSCHEMA_INSTANCE
= "http://www.w3.org/2001/XMLSchema-instance";

/*
* The type property.
*/
private String type = "CorrelationFilter";

/*
* The correlationId property.
*/
Expand Down Expand Up @@ -76,6 +81,16 @@ public final class CorrelationFilterImpl extends RuleFilterImpl {
public CorrelationFilterImpl() {
}

/**
* Get the type property: The type property.
*
* @return the type value.
*/
@Override
public String getType() {
return this.type;
}

/**
* Get the correlationId property: The correlationId property.
*
Expand Down Expand Up @@ -270,7 +285,7 @@ public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) throws XMLSt
xmlWriter.writeStartElement(rootElementName);
xmlWriter.writeNamespace(SCHEMAS_MICROSOFT_COM_SERVICEBUS_CONNECT);
xmlWriter.writeNamespace("xsi", WWW_W3_ORG_TWO_ZERO_ZERO_ONE_XMLSCHEMA_INSTANCE);
xmlWriter.writeStringAttribute(WWW_W3_ORG_TWO_ZERO_ZERO_ONE_XMLSCHEMA_INSTANCE, "type", "CorrelationFilter");
xmlWriter.writeStringAttribute(WWW_W3_ORG_TWO_ZERO_ZERO_ONE_XMLSCHEMA_INSTANCE, "type", this.type);
xmlWriter.writeStringElement(SCHEMAS_MICROSOFT_COM_SERVICEBUS_CONNECT, "CorrelationId", this.correlationId);
xmlWriter.writeStringElement(SCHEMAS_MICROSOFT_COM_SERVICEBUS_CONNECT, "MessageId", this.messageId);
xmlWriter.writeStringElement(SCHEMAS_MICROSOFT_COM_SERVICEBUS_CONNECT, "To", this.to);
Expand All @@ -296,7 +311,7 @@ public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) throws XMLSt
* @param xmlReader The XmlReader being read.
* @return An instance of CorrelationFilter if the XmlReader was pointing to an instance of it, or null if it was
* pointing to XML null.
* @throws IllegalStateException If the deserialized XML object was missing the polymorphic discriminator.
* @throws IllegalStateException If the deserialized XML object has an invalid polymorphic discriminator value.
* @throws XMLStreamException If an error occurs while reading the CorrelationFilter.
*/
public static CorrelationFilterImpl fromXml(XmlReader xmlReader) throws XMLStreamException {
Expand All @@ -311,7 +326,7 @@ public static CorrelationFilterImpl fromXml(XmlReader xmlReader) throws XMLStrea
* cases where the model can deserialize from different root element names.
* @return An instance of CorrelationFilter if the XmlReader was pointing to an instance of it, or null if it was
* pointing to XML null.
* @throws IllegalStateException If the deserialized XML object was missing the polymorphic discriminator.
* @throws IllegalStateException If the deserialized XML object has an invalid polymorphic discriminator value.
* @throws XMLStreamException If an error occurs while reading the CorrelationFilter.
*/
public static CorrelationFilterImpl fromXml(XmlReader xmlReader, String rootElementName) throws XMLStreamException {
Expand All @@ -325,6 +340,7 @@ public static CorrelationFilterImpl fromXml(XmlReader xmlReader, String rootElem
"'type' was expected to be non-null and equal to 'CorrelationFilter'. The found 'type' was '"
+ discriminatorValue + "'.");
}
deserializedCorrelationFilter.type = discriminatorValue;
while (reader.nextElement() != XmlToken.END_ELEMENT) {
QName elementName = reader.getElementName();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,27 @@ public final class EmptyRuleActionImpl extends RuleActionImpl {
private static final String WWW_W3_ORG_TWO_ZERO_ZERO_ONE_XMLSCHEMA_INSTANCE
= "http://www.w3.org/2001/XMLSchema-instance";

/*
* The type property.
*/
private String type = "EmptyRuleAction";

/**
* Creates an instance of EmptyRuleAction class.
*/
public EmptyRuleActionImpl() {
}

/**
* Get the type property: The type property.
*
* @return the type value.
*/
@Override
public String getType() {
return this.type;
}

@Override
public XmlWriter toXml(XmlWriter xmlWriter) throws XMLStreamException {
return toXml(xmlWriter, null);
Expand All @@ -39,7 +54,7 @@ public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) throws XMLSt
xmlWriter.writeStartElement(rootElementName);
xmlWriter.writeNamespace(SCHEMAS_MICROSOFT_COM_SERVICEBUS_CONNECT);
xmlWriter.writeNamespace("xsi", WWW_W3_ORG_TWO_ZERO_ZERO_ONE_XMLSCHEMA_INSTANCE);
xmlWriter.writeStringAttribute(WWW_W3_ORG_TWO_ZERO_ZERO_ONE_XMLSCHEMA_INSTANCE, "type", "EmptyRuleAction");
xmlWriter.writeStringAttribute(WWW_W3_ORG_TWO_ZERO_ZERO_ONE_XMLSCHEMA_INSTANCE, "type", this.type);
return xmlWriter.writeEndElement();
}

Expand All @@ -49,7 +64,7 @@ public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) throws XMLSt
* @param xmlReader The XmlReader being read.
* @return An instance of EmptyRuleAction if the XmlReader was pointing to an instance of it, or null if it was
* pointing to XML null.
* @throws IllegalStateException If the deserialized XML object was missing the polymorphic discriminator.
* @throws IllegalStateException If the deserialized XML object has an invalid polymorphic discriminator value.
* @throws XMLStreamException If an error occurs while reading the EmptyRuleAction.
*/
public static EmptyRuleActionImpl fromXml(XmlReader xmlReader) throws XMLStreamException {
Expand All @@ -64,7 +79,7 @@ public static EmptyRuleActionImpl fromXml(XmlReader xmlReader) throws XMLStreamE
* cases where the model can deserialize from different root element names.
* @return An instance of EmptyRuleAction if the XmlReader was pointing to an instance of it, or null if it was
* pointing to XML null.
* @throws IllegalStateException If the deserialized XML object was missing the polymorphic discriminator.
* @throws IllegalStateException If the deserialized XML object has an invalid polymorphic discriminator value.
* @throws XMLStreamException If an error occurs while reading the EmptyRuleAction.
*/
public static EmptyRuleActionImpl fromXml(XmlReader xmlReader, String rootElementName) throws XMLStreamException {
Expand All @@ -78,6 +93,7 @@ public static EmptyRuleActionImpl fromXml(XmlReader xmlReader, String rootElemen
"'type' was expected to be non-null and equal to 'EmptyRuleAction'. The found 'type' was '"
+ discriminatorValue + "'.");
}
deserializedEmptyRuleAction.type = discriminatorValue;
while (reader.nextElement() != XmlToken.END_ELEMENT) {
reader.skipElement();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,27 @@ public final class FalseFilterImpl extends SqlFilterImpl {
private static final String WWW_W3_ORG_TWO_ZERO_ZERO_ONE_XMLSCHEMA_INSTANCE
= "http://www.w3.org/2001/XMLSchema-instance";

/*
* The type property.
*/
private String type = "FalseFilter";

/**
* Creates an instance of FalseFilter class.
*/
public FalseFilterImpl() {
}

/**
* Get the type property: The type property.
*
* @return the type value.
*/
@Override
public String getType() {
return this.type;
}

/**
* {@inheritDoc}
*/
Expand Down Expand Up @@ -78,7 +93,7 @@ public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) throws XMLSt
xmlWriter.writeStartElement(rootElementName);
xmlWriter.writeNamespace(SCHEMAS_MICROSOFT_COM_SERVICEBUS_CONNECT);
xmlWriter.writeNamespace("xsi", WWW_W3_ORG_TWO_ZERO_ZERO_ONE_XMLSCHEMA_INSTANCE);
xmlWriter.writeStringAttribute(WWW_W3_ORG_TWO_ZERO_ZERO_ONE_XMLSCHEMA_INSTANCE, "type", "FalseFilter");
xmlWriter.writeStringAttribute(WWW_W3_ORG_TWO_ZERO_ZERO_ONE_XMLSCHEMA_INSTANCE, "type", this.type);
xmlWriter.writeStringElement(SCHEMAS_MICROSOFT_COM_SERVICEBUS_CONNECT, "SqlExpression", getSqlExpression());
xmlWriter.writeStringElement(SCHEMAS_MICROSOFT_COM_SERVICEBUS_CONNECT, "CompatibilityLevel",
getCompatibilityLevel());
Expand All @@ -100,7 +115,7 @@ public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) throws XMLSt
* @param xmlReader The XmlReader being read.
* @return An instance of FalseFilter if the XmlReader was pointing to an instance of it, or null if it was pointing
* to XML null.
* @throws IllegalStateException If the deserialized XML object was missing the polymorphic discriminator.
* @throws IllegalStateException If the deserialized XML object has an invalid polymorphic discriminator value.
* @throws XMLStreamException If an error occurs while reading the FalseFilter.
*/
public static FalseFilterImpl fromXml(XmlReader xmlReader) throws XMLStreamException {
Expand All @@ -115,7 +130,7 @@ public static FalseFilterImpl fromXml(XmlReader xmlReader) throws XMLStreamExcep
* cases where the model can deserialize from different root element names.
* @return An instance of FalseFilter if the XmlReader was pointing to an instance of it, or null if it was pointing
* to XML null.
* @throws IllegalStateException If the deserialized XML object was missing the polymorphic discriminator.
* @throws IllegalStateException If the deserialized XML object has an invalid polymorphic discriminator value.
* @throws XMLStreamException If an error occurs while reading the FalseFilter.
*/
public static FalseFilterImpl fromXml(XmlReader xmlReader, String rootElementName) throws XMLStreamException {
Expand All @@ -129,6 +144,7 @@ public static FalseFilterImpl fromXml(XmlReader xmlReader, String rootElementNam
"'type' was expected to be non-null and equal to 'FalseFilter'. The found 'type' was '"
+ discriminatorValue + "'.");
}
deserializedFalseFilter.type = discriminatorValue;
while (reader.nextElement() != XmlToken.END_ELEMENT) {
QName elementName = reader.getElementName();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) throws XMLSt
* @param xmlReader The XmlReader being read.
* @return An instance of NamespacePropertiesEntryContent if the XmlReader was pointing to an instance of it, or
* null if it was pointing to XML null.
* @throws IllegalStateException If the deserialized XML object was missing any required properties.
* @throws XMLStreamException If an error occurs while reading the NamespacePropertiesEntryContent.
*/
public static NamespacePropertiesEntryContentImpl fromXml(XmlReader xmlReader) throws XMLStreamException {
Expand All @@ -117,7 +116,6 @@ public static NamespacePropertiesEntryContentImpl fromXml(XmlReader xmlReader) t
* cases where the model can deserialize from different root element names.
* @return An instance of NamespacePropertiesEntryContent if the XmlReader was pointing to an instance of it, or
* null if it was pointing to XML null.
* @throws IllegalStateException If the deserialized XML object was missing any required properties.
* @throws XMLStreamException If an error occurs while reading the NamespacePropertiesEntryContent.
*/
public static NamespacePropertiesEntryContentImpl fromXml(XmlReader xmlReader, String rootElementName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

package com.azure.messaging.servicebus.administration.implementation.models;

import com.azure.messaging.servicebus.administration.implementation.EntityHelper;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.CoreUtils;
import com.azure.messaging.servicebus.administration.implementation.EntityHelper;
import com.azure.xml.XmlReader;
import com.azure.xml.XmlSerializable;
import com.azure.xml.XmlToken;
Expand Down Expand Up @@ -205,7 +206,6 @@ public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) throws XMLSt
* @param xmlReader The XmlReader being read.
* @return An instance of NamespacePropertiesEntry if the XmlReader was pointing to an instance of it, or null if it
* was pointing to XML null.
* @throws IllegalStateException If the deserialized XML object was missing any required properties.
* @throws XMLStreamException If an error occurs while reading the NamespacePropertiesEntry.
*/
public static NamespacePropertiesEntryImpl fromXml(XmlReader xmlReader) throws XMLStreamException {
Expand All @@ -220,7 +220,6 @@ public static NamespacePropertiesEntryImpl fromXml(XmlReader xmlReader) throws X
* cases where the model can deserialize from different root element names.
* @return An instance of NamespacePropertiesEntry if the XmlReader was pointing to an instance of it, or null if it
* was pointing to XML null.
* @throws IllegalStateException If the deserialized XML object was missing any required properties.
* @throws XMLStreamException If an error occurs while reading the NamespacePropertiesEntry.
*/
public static NamespacePropertiesEntryImpl fromXml(XmlReader xmlReader, String rootElementName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) throws XMLSt
* @param xmlReader The XmlReader being read.
* @return An instance of QueueDescriptionEntryContent if the XmlReader was pointing to an instance of it, or null
* if it was pointing to XML null.
* @throws IllegalStateException If the deserialized XML object was missing any required properties.
* @throws XMLStreamException If an error occurs while reading the QueueDescriptionEntryContent.
*/
public static QueueDescriptionEntryContentImpl fromXml(XmlReader xmlReader) throws XMLStreamException {
Expand All @@ -115,7 +114,6 @@ public static QueueDescriptionEntryContentImpl fromXml(XmlReader xmlReader) thro
* cases where the model can deserialize from different root element names.
* @return An instance of QueueDescriptionEntryContent if the XmlReader was pointing to an instance of it, or null
* if it was pointing to XML null.
* @throws IllegalStateException If the deserialized XML object was missing any required properties.
* @throws XMLStreamException If an error occurs while reading the QueueDescriptionEntryContent.
*/
public static QueueDescriptionEntryContentImpl fromXml(XmlReader xmlReader, String rootElementName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

package com.azure.messaging.servicebus.administration.implementation.models;

import com.azure.messaging.servicebus.administration.implementation.EntityHelper;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.CoreUtils;
import com.azure.messaging.servicebus.administration.implementation.EntityHelper;
import com.azure.xml.XmlReader;
import com.azure.xml.XmlSerializable;
import com.azure.xml.XmlToken;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

package com.azure.messaging.servicebus.administration.implementation.models;

import com.azure.messaging.servicebus.administration.implementation.EntityHelper;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.CoreUtils;
import com.azure.messaging.servicebus.administration.implementation.EntityHelper;
import com.azure.xml.XmlReader;
import com.azure.xml.XmlSerializable;
import com.azure.xml.XmlToken;
Expand Down

0 comments on commit 6a341f6

Please sign in to comment.