Show / Hide Table of Contents

Class Quota

Quota policy for a usage plan.

Inheritance
object
Quota
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ApigatewayService.Models
Assembly: OCI.DotNetSDK.Apigateway.dll
Syntax
public class Quota

Properties

OperationOnBreach

Declaration
[Required(ErrorMessage = "OperationOnBreach is required.")]
[JsonProperty(PropertyName = "operationOnBreach")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Quota.OperationOnBreachEnum? OperationOnBreach { get; set; }
Property Value
Type Description
Quota.OperationOnBreachEnum?

What the usage plan will do when a quota is breached: REJECT will allow no further requests ALLOW will continue to allow further requests

Remarks

Required

ResetPolicy

Declaration
[Required(ErrorMessage = "ResetPolicy is required.")]
[JsonProperty(PropertyName = "resetPolicy")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Quota.ResetPolicyEnum? ResetPolicy { get; set; }
Property Value
Type Description
Quota.ResetPolicyEnum?

The policy that controls when quotas will reset. Example: CALENDAR

Remarks

Required

Unit

Declaration
[Required(ErrorMessage = "Unit is required.")]
[JsonProperty(PropertyName = "unit")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Quota.UnitEnum? Unit { get; set; }
Property Value
Type Description
Quota.UnitEnum?

The unit of time over which quotas are calculated. Example: MINUTE or MONTH

Remarks

Required

Value

Declaration
[Required(ErrorMessage = "Value is required.")]
[JsonProperty(PropertyName = "value")]
public int? Value { get; set; }
Property Value
Type Description
int?

The number of requests that can be made per time period.

Remarks

Required

In this article
Back to top