Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions eng/emitter-package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions eng/emitter-package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"main": "dist/src/index.js",
"dependencies": {
"@azure-tools/typespec-java": "0.19.1"
"@azure-tools/typespec-java": "/mnt/vss/_work/1/s/autorest.java/typespec-extension/azure-tools-typespec-java-0.19.2.tgz"
},
"devDependencies": {
"@azure-tools/typespec-autorest": "0.45.0",
"@azure-tools/typespec-azure-core": "0.45.0",
"@azure-tools/typespec-azure-resource-manager": "0.45.0",
"@azure-tools/typespec-azure-rulesets": "0.45.0",
"@azure-tools/typespec-client-generator-core": "0.45.1",
"@typespec/compiler": "0.59.0",
"@typespec/http": "0.59.0",
"@azure-tools/typespec-client-generator-core": "0.45.4",
"@typespec/compiler": "0.59.1",
"@typespec/http": "0.59.1",
"@typespec/openapi": "0.59.0",
"@typespec/rest": "0.59.0",
"@typespec/rest": "0.59.1",
"@typespec/versioning": "0.59.0",
"@typespec/xml": "0.59.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
@Fluent
public final class BestWorkerMode extends DistributionMode {

/*
* The type discriminator describing a sub-type of DistributionMode.
*/
@Generated
private DistributionModeKind kind = DistributionModeKind.BEST_WORKER;

/*
* Define a scoring rule to use, when calculating a score to determine the best worker. If not set, will use a
* default scoring formula that uses the number of job labels that the worker labels match, as well as the number of
Expand All @@ -51,17 +45,7 @@ public final class BestWorkerMode extends DistributionMode {
*/
@Generated
public BestWorkerMode() {
}

/**
* Get the kind property: The type discriminator describing a sub-type of DistributionMode.
*
* @return the kind value.
*/
@Generated
@Override
public DistributionModeKind getKind() {
return this.kind;
this.kind = DistributionModeKind.BEST_WORKER;
}

/**
Expand Down Expand Up @@ -232,17 +216,8 @@ public static BestWorkerMode fromJson(JsonReader jsonReader) throws IOException
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("minConcurrentOffers".equals(fieldName)) {
JsonMergePatchHelper.getDistributionModeAccessor()
.setMinConcurrentOffers(deserializedBestWorkerMode, reader.getNullable(JsonReader::getInt));
} else if ("maxConcurrentOffers".equals(fieldName)) {
JsonMergePatchHelper.getDistributionModeAccessor()
.setMaxConcurrentOffers(deserializedBestWorkerMode, reader.getNullable(JsonReader::getInt));
} else if ("bypassSelectors".equals(fieldName)) {
JsonMergePatchHelper.getDistributionModeAccessor()
.setBypassSelectors(deserializedBestWorkerMode, reader.getNullable(JsonReader::getBoolean));
} else if ("kind".equals(fieldName)) {
deserializedBestWorkerMode.kind = DistributionModeKind.fromString(reader.getString());
if (DistributionMode.fromJsonShared(reader, fieldName, deserializedBestWorkerMode)) {
continue;
} else if ("scoringRule".equals(fieldName)) {
deserializedBestWorkerMode.scoringRule = RouterRule.fromJson(reader);
} else if ("scoringRuleOptions".equals(fieldName)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
@Fluent
public final class CancelExceptionAction extends ExceptionAction {

/*
* The type discriminator describing a sub-type of ExceptionAction.
*/
@Generated
private ExceptionActionKind kind = ExceptionActionKind.CANCEL;

/*
* A note that will be appended to a job's notes collection with the current timestamp.
*/
Expand All @@ -48,17 +42,7 @@ public final class CancelExceptionAction extends ExceptionAction {
*/
@Generated
public CancelExceptionAction() {
}

/**
* Get the kind property: The type discriminator describing a sub-type of ExceptionAction.
*
* @return the kind value.
*/
@Generated
@Override
public ExceptionActionKind getKind() {
return this.kind;
this.kind = ExceptionActionKind.CANCEL;
}

/**
Expand Down Expand Up @@ -181,11 +165,8 @@ public static CancelExceptionAction fromJson(JsonReader jsonReader) throws IOExc
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("id".equals(fieldName)) {
JsonMergePatchHelper.getExceptionActionAccessor()
.setId(deserializedCancelExceptionAction, reader.getString());
} else if ("kind".equals(fieldName)) {
deserializedCancelExceptionAction.kind = ExceptionActionKind.fromString(reader.getString());
if (ExceptionAction.fromJsonShared(reader, fieldName, deserializedCancelExceptionAction)) {
continue;
} else if ("note".equals(fieldName)) {
deserializedCancelExceptionAction.note = reader.getString();
} else if ("dispositionCode".equals(fieldName)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
@Fluent
public final class ConditionalQueueSelectorAttachment extends QueueSelectorAttachment {

/*
* The type discriminator describing a sub-type of QueueSelectorAttachment.
*/
@Generated
private QueueSelectorAttachmentKind kind = QueueSelectorAttachmentKind.CONDITIONAL;

/*
* The condition that must be true for the queue selectors to be attached.
*/
Expand All @@ -49,17 +43,7 @@ public final class ConditionalQueueSelectorAttachment extends QueueSelectorAttac
*/
@Generated
public ConditionalQueueSelectorAttachment() {
}

/**
* Get the kind property: The type discriminator describing a sub-type of QueueSelectorAttachment.
*
* @return the kind value.
*/
@Generated
@Override
public QueueSelectorAttachmentKind getKind() {
return this.kind;
this.kind = QueueSelectorAttachmentKind.CONDITIONAL;
}

/**
Expand Down Expand Up @@ -168,9 +152,9 @@ public static ConditionalQueueSelectorAttachment fromJson(JsonReader jsonReader)
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("kind".equals(fieldName)) {
deserializedConditionalQueueSelectorAttachment.kind
= QueueSelectorAttachmentKind.fromString(reader.getString());
if (QueueSelectorAttachment.fromJsonShared(reader, fieldName,
deserializedConditionalQueueSelectorAttachment)) {
continue;
} else if ("condition".equals(fieldName)) {
deserializedConditionalQueueSelectorAttachment.condition = RouterRule.fromJson(reader);
} else if ("queueSelectors".equals(fieldName)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
@Fluent
public final class ConditionalWorkerSelectorAttachment extends WorkerSelectorAttachment {

/*
* The type discriminator describing a sub-type of WorkerSelectorAttachment.
*/
@Generated
private WorkerSelectorAttachmentKind kind = WorkerSelectorAttachmentKind.CONDITIONAL;

/*
* The condition that must be true for the worker selectors to be attached.
*/
Expand All @@ -49,17 +43,7 @@ public final class ConditionalWorkerSelectorAttachment extends WorkerSelectorAtt
*/
@Generated
public ConditionalWorkerSelectorAttachment() {
}

/**
* Get the kind property: The type discriminator describing a sub-type of WorkerSelectorAttachment.
*
* @return the kind value.
*/
@Generated
@Override
public WorkerSelectorAttachmentKind getKind() {
return this.kind;
this.kind = WorkerSelectorAttachmentKind.CONDITIONAL;
}

/**
Expand Down Expand Up @@ -168,9 +152,9 @@ public static ConditionalWorkerSelectorAttachment fromJson(JsonReader jsonReader
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("kind".equals(fieldName)) {
deserializedConditionalWorkerSelectorAttachment.kind
= WorkerSelectorAttachmentKind.fromString(reader.getString());
if (WorkerSelectorAttachment.fromJsonShared(reader, fieldName,
deserializedConditionalWorkerSelectorAttachment)) {
continue;
} else if ("condition".equals(fieldName)) {
deserializedConditionalWorkerSelectorAttachment.condition = RouterRule.fromJson(reader);
} else if ("workerSelectors".equals(fieldName)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ public RouterRuleKind getKind() {
return RouterRuleKind.DIRECT_MAP;
}

/*
* The type discriminator describing a sub-type of RouterRule
*/
@Generated
private RouterRuleKind kind = RouterRuleKind.DIRECT_MAP;

/**
* Stores updated model property, the value is property name, not serialized name.
*/
Expand Down Expand Up @@ -83,8 +77,8 @@ public static DirectMapRouterRule fromJson(JsonReader jsonReader) throws IOExcep
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("kind".equals(fieldName)) {
deserializedDirectMapRouterRule.kind = RouterRuleKind.fromString(reader.getString());
if (RouterRule.fromJsonShared(reader, fieldName, deserializedDirectMapRouterRule)) {
continue;
} else {
reader.skipChildren();
}
Expand Down
Loading