-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Form Recognizer] Add misc properties on models (#34363)
- Loading branch information
Showing
26 changed files
with
693 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
...java/com/azure/ai/formrecognizer/documentanalysis/administration/models/QuotaDetails.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.ai.formrecognizer.documentanalysis.administration.models; | ||
|
||
import com.azure.ai.formrecognizer.documentanalysis.implementation.util.QuotaDetailsHelper; | ||
import com.azure.core.annotation.Immutable; | ||
|
||
import java.time.OffsetDateTime; | ||
|
||
/** Quota used, limit, and next reset date/time. */ | ||
@Immutable | ||
public final class QuotaDetails { | ||
/* | ||
* Amount of the resource quota used. | ||
*/ | ||
private int used; | ||
|
||
/* | ||
* Resource quota limit. | ||
*/ | ||
private int quota; | ||
|
||
/* | ||
* Date/time when the resource quota usage will be reset. | ||
*/ | ||
private OffsetDateTime quotaResetDateTime; | ||
|
||
|
||
/** | ||
* Get the used property: Amount of the resource quota used. | ||
* | ||
* @return the used value. | ||
*/ | ||
public int getUsed() { | ||
return this.used; | ||
} | ||
|
||
/** | ||
* Get the quota property: Resource quota limit. | ||
* | ||
* @return the quota value. | ||
*/ | ||
public int getQuota() { | ||
return this.quota; | ||
} | ||
|
||
/** | ||
* Get the quotaResetDateTime property: Date/time when the resource quota usage will be reset. | ||
* | ||
* @return the quotaResetDateTime value. | ||
*/ | ||
public OffsetDateTime getQuotaResetDateTime() { | ||
return this.quotaResetDateTime; | ||
} | ||
|
||
private void setUsed(int used) { | ||
this.used = used; | ||
} | ||
|
||
private void setQuota(int quota) { | ||
this.quota = quota; | ||
} | ||
|
||
private void setQuotaResetDateTime(OffsetDateTime quotaResetDateTime) { | ||
this.quotaResetDateTime = quotaResetDateTime; | ||
} | ||
|
||
static { | ||
QuotaDetailsHelper.setAccessor(new QuotaDetailsHelper.QuotaDetailsAccessor() { | ||
@Override | ||
public void setUsed( | ||
QuotaDetails quotaDetails, int used) { | ||
quotaDetails.setUsed(used); | ||
} | ||
|
||
@Override | ||
public void setQuota( | ||
QuotaDetails quotaDetails, int quota) { | ||
quotaDetails.setQuota(quota); | ||
} | ||
|
||
@Override | ||
public void setQuotaResetDateTime( | ||
QuotaDetails quotaDetails, OffsetDateTime quotaResetDateTime) { | ||
quotaDetails.setQuotaResetDateTime(quotaResetDateTime); | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 0 additions & 52 deletions
52
...e/ai/formrecognizer/documentanalysis/documentanalysis/models/DocumentAnalysisFeature.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...va/com/azure/ai/formrecognizer/documentanalysis/documentanalysis/models/package-info.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.