Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Linting
  • Loading branch information
williamzhao87 committed May 2, 2024
commit a0f374a01f1024fef643c5e9b54e8804351cda83
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public BestWorkerMode() {}
* Returns kind discriminator.
* @return kind.
*/
public DistributionModeKind getKind() { return DistributionModeKind.BEST_WORKER; }
public DistributionModeKind getKind() {
return DistributionModeKind.BEST_WORKER;
}

/**
* Get the scoringRule property: Define a scoring rule to use, when calculating a score to determine the best
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public CancelExceptionAction() {}
* Returns kind discriminator.
* @return kind.
*/
public ExceptionActionKind getKind() { return ExceptionActionKind.CANCEL; }
public ExceptionActionKind getKind() {
return ExceptionActionKind.CANCEL;
}

/**
* Get the note property: (Optional) A note that will be appended to the jobs' Notes collection with the current
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public ConditionalQueueSelectorAttachment(
* Returns kind discriminator.
* @return kind.
*/
public QueueSelectorAttachmentKind getKind() { return QueueSelectorAttachmentKind.CONDITIONAL; }
public QueueSelectorAttachmentKind getKind() {
return QueueSelectorAttachmentKind.CONDITIONAL;
}

/**
* Get the condition property: A rule of one of the following types:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public ConditionalWorkerSelectorAttachment(
* Returns kind discriminator.
* @return kind.
*/
public WorkerSelectorAttachmentKind getKind() { return WorkerSelectorAttachmentKind.CONDITIONAL; }
public WorkerSelectorAttachmentKind getKind() {
return WorkerSelectorAttachmentKind.CONDITIONAL;
}

/**
* Get the condition property: A rule of one of the following types:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ public DirectMapRouterRule() {}
* Returns kind discriminator.
* @return kind.
*/
public RouterRuleKind getKind() { return RouterRuleKind.DIRECT_MAP; }
public RouterRuleKind getKind() {
return RouterRuleKind.DIRECT_MAP;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public ExpressionRouterRule(@JsonProperty(value = "expression") String expressio
* Returns kind discriminator.
* @return kind.
*/
public RouterRuleKind getKind() { return RouterRuleKind.EXPRESSION; }
public RouterRuleKind getKind() {
return RouterRuleKind.EXPRESSION;
}

/**
* Get the language property: The expression language to compile to and execute.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public FunctionRouterRule(@JsonProperty(value = "functionUri") String functionUr
* Returns kind discriminator.
* @return kind.
*/
public RouterRuleKind getKind() { return RouterRuleKind.FUNCTION; }
public RouterRuleKind getKind() {
return RouterRuleKind.FUNCTION;
}

/**
* Get the functionUri property: URL for Azure Function.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ public LongestIdleMode() {}
* Returns kind discriminator.
* @return kind.
*/
public DistributionModeKind getKind() { return DistributionModeKind.LONGEST_IDLE; }
public DistributionModeKind getKind() {
return DistributionModeKind.LONGEST_IDLE;
}

/** {@inheritDoc} */
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public ManualReclassifyExceptionAction() {}
* Returns kind discriminator.
* @return kind.
*/
public ExceptionActionKind getKind() { return ExceptionActionKind.MANUAL_RECLASSIFY; }
public ExceptionActionKind getKind() {
return ExceptionActionKind.MANUAL_RECLASSIFY;
}

/**
* Get the queueId property: Updated QueueId.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ public PassThroughQueueSelectorAttachment(
* Returns kind discriminator.
* @return kind.
*/
public QueueSelectorAttachmentKind getKind() { return QueueSelectorAttachmentKind.PASS_THROUGH; }
public QueueSelectorAttachmentKind getKind() {
return QueueSelectorAttachmentKind.PASS_THROUGH;
}

/**
* Get the key property: The label key to query against.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ public PassThroughWorkerSelectorAttachment(
* Returns kind discriminator.
* @return kind.
*/
public WorkerSelectorAttachmentKind getKind() { return WorkerSelectorAttachmentKind.PASS_THROUGH; }
public WorkerSelectorAttachmentKind getKind() {
return WorkerSelectorAttachmentKind.PASS_THROUGH;
}

/**
* Get the key property: The label key to query against.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public QueueLengthExceptionTrigger(@JsonProperty(value = "threshold") int thresh
* Returns kind discriminator.
* @return kind.
*/
public ExceptionTriggerKind getKind() { return ExceptionTriggerKind.QUEUE_LENGTH; }
public ExceptionTriggerKind getKind() {
return ExceptionTriggerKind.QUEUE_LENGTH;
}

/**
* Get the threshold property: Threshold of number of jobs ahead in the queue to for this trigger to fire.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public ReclassifyExceptionAction() {}
* Returns kind discriminator.
* @return kind.
*/
public ExceptionActionKind getKind() { return ExceptionActionKind.RECLASSIFY; }
public ExceptionActionKind getKind() {
return ExceptionActionKind.RECLASSIFY;
}

/**
* Get the classificationPolicyId property: (optional) The new classification policy that will determine queue,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public RoundRobinMode() {}
* Returns kind discriminator.
* @return kind.
*/
public DistributionModeKind getKind() { return DistributionModeKind.ROUND_ROBIN; }
public DistributionModeKind getKind() {
return DistributionModeKind.ROUND_ROBIN;
}

/** {@inheritDoc} */
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public RuleEngineQueueSelectorAttachment(@JsonProperty(value = "rule") RouterRul
* Returns kind discriminator.
* @return kind.
*/
public QueueSelectorAttachmentKind getKind() { return QueueSelectorAttachmentKind.RULE_ENGINE; }
public QueueSelectorAttachmentKind getKind() {
return QueueSelectorAttachmentKind.RULE_ENGINE;
}

/**
* Get the rule property: A rule of one of the following types:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public RuleEngineWorkerSelectorAttachment(@JsonProperty(value = "rule") RouterRu
* Returns kind discriminator.
* @return kind.
*/
public WorkerSelectorAttachmentKind getKind() { return WorkerSelectorAttachmentKind.RULE_ENGINE; }
public WorkerSelectorAttachmentKind getKind() {
return WorkerSelectorAttachmentKind.RULE_ENGINE;
}

/**
* Get the rule property: A rule of one of the following types:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public StaticQueueSelectorAttachment(@JsonProperty(value = "queueSelector") Rout
* Returns kind discriminator.
* @return kind.
*/
public QueueSelectorAttachmentKind getKind() { return QueueSelectorAttachmentKind.STATIC; }
public QueueSelectorAttachmentKind getKind() {
return QueueSelectorAttachmentKind.STATIC;
}

/**
* Get the queueSelector property: Describes a condition that must be met against a set of labels for queue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public StaticRouterRule() {}
* Returns kind discriminator.
* @return kind.
*/
public RouterRuleKind getKind() { return RouterRuleKind.STATIC; }
public RouterRuleKind getKind() {
return RouterRuleKind.STATIC;
}

/**
* Get the value property: The static value this rule always returns.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public StaticWorkerSelectorAttachment(@JsonProperty(value = "workerSelector") Ro
* Returns kind discriminator.
* @return kind.
*/
public WorkerSelectorAttachmentKind getKind() { return WorkerSelectorAttachmentKind.STATIC; }
public WorkerSelectorAttachmentKind getKind() {
return WorkerSelectorAttachmentKind.STATIC;
}

/**
* Get the workerSelector property: Describes a condition that must be met against a set of labels for worker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public WaitTimeExceptionTrigger(@JsonProperty(value = "thresholdSeconds") Durati
* Returns kind discriminator.
* @return kind.
*/
public ExceptionTriggerKind getKind() { return ExceptionTriggerKind.WAIT_TIME; }
public ExceptionTriggerKind getKind() {
return ExceptionTriggerKind.WAIT_TIME;
}

/**
* Get the thresholdSeconds property: Threshold for wait time for this trigger.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public WebhookRouterRule() {}
* Returns kind discriminator.
* @return kind.
*/
public RouterRuleKind getKind() { return RouterRuleKind.WEBHOOK; }
public RouterRuleKind getKind() {
return RouterRuleKind.WEBHOOK;
}

/**
* Get the authorizationServerUrl property: Url for Authorization Server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public WeightedAllocationQueueSelectorAttachment(
* Returns kind discriminator.
* @return kind.
*/
public QueueSelectorAttachmentKind getKind() { return QueueSelectorAttachmentKind.WEIGHTED_ALLOCATION; }
public QueueSelectorAttachmentKind getKind() {
return QueueSelectorAttachmentKind.WEIGHTED_ALLOCATION;
}

/**
* Get the allocations property: A collection of percentage based weighted allocations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public WeightedAllocationWorkerSelectorAttachment(
* Returns kind discriminator.
* @return kind.
*/
public WorkerSelectorAttachmentKind getKind() { return WorkerSelectorAttachmentKind.WEIGHTED_ALLOCATION; }
public WorkerSelectorAttachmentKind getKind() {
return WorkerSelectorAttachmentKind.WEIGHTED_ALLOCATION;
}

/**
* Get the allocations property: A collection of percentage based weighted allocations.
Expand Down