From 6e5eb25c050ced7007342e5a2a11a80742df3e01 Mon Sep 17 00:00:00 2001 From: Praveen Rewar <8457124+praveenrewar@users.noreply.github.com> Date: Wed, 16 Sep 2026 16:19:58 +0530 Subject: [PATCH] Add int64 format annnotation for log_rate_limit_in_bytes_per_second In 32-bit systems and in languages like java, int primitive is 32 bits, and a value larger than 2G will cause integer overflow, hence any java client should use int64 explicitly for this field Signed-off-by: Praveen Rewar <8457124+praveenrewar@users.noreply.github.com> --- .../requestBodies/OrganizationQuotaCreateRequestBody.yaml | 1 + .../requestBodies/OrganizationQuotaUpdateRequestBody.yaml | 1 + .../cf/latest/components/requestBodies/SpaceQuotaCreate.yaml | 1 + .../cf/latest/components/requestBodies/SpaceQuotaUpdate.yaml | 1 + .../latest/components/requestBodies/TaskCreateRequestBody.yaml | 1 + docs/openapi/apis/cf/latest/components/schemas/Deployment.yaml | 1 + .../apis/cf/latest/components/schemas/OrganizationQuota.yaml | 1 + docs/openapi/apis/cf/latest/components/schemas/Process.yaml | 1 + docs/openapi/apis/cf/latest/components/schemas/SpaceQuota.yaml | 1 + .../apis/cf/latest/components/schemas/SpaceQuotaUpdate.yaml | 1 + docs/openapi/apis/cf/latest/paths/Deployments.yaml | 1 + docs/openapi/apis/cf/latest/paths/Processes.yaml | 2 ++ 12 files changed, 13 insertions(+) diff --git a/docs/openapi/apis/cf/latest/components/requestBodies/OrganizationQuotaCreateRequestBody.yaml b/docs/openapi/apis/cf/latest/components/requestBodies/OrganizationQuotaCreateRequestBody.yaml index 79284632c38..273bf722bd6 100644 --- a/docs/openapi/apis/cf/latest/components/requestBodies/OrganizationQuotaCreateRequestBody.yaml +++ b/docs/openapi/apis/cf/latest/components/requestBodies/OrganizationQuotaCreateRequestBody.yaml @@ -31,6 +31,7 @@ content: type: - integer - 'null' + format: int64 description: Total log rate limit allowed for all the started processes and running tasks in an organization per_app_tasks: type: diff --git a/docs/openapi/apis/cf/latest/components/requestBodies/OrganizationQuotaUpdateRequestBody.yaml b/docs/openapi/apis/cf/latest/components/requestBodies/OrganizationQuotaUpdateRequestBody.yaml index 00d1402d878..efc6c59288f 100644 --- a/docs/openapi/apis/cf/latest/components/requestBodies/OrganizationQuotaUpdateRequestBody.yaml +++ b/docs/openapi/apis/cf/latest/components/requestBodies/OrganizationQuotaUpdateRequestBody.yaml @@ -23,6 +23,7 @@ content: description: Total instances of all the started processes allowed in an organization log_rate_limit_in_bytes_per_second: type: [integer, "null"] + format: int64 description: Total log rate limit allowed for all the started processes and running tasks in an organization per_app_tasks: type: [integer, "null"] diff --git a/docs/openapi/apis/cf/latest/components/requestBodies/SpaceQuotaCreate.yaml b/docs/openapi/apis/cf/latest/components/requestBodies/SpaceQuotaCreate.yaml index bbc75bdc035..a768ce002e5 100644 --- a/docs/openapi/apis/cf/latest/components/requestBodies/SpaceQuotaCreate.yaml +++ b/docs/openapi/apis/cf/latest/components/requestBodies/SpaceQuotaCreate.yaml @@ -18,6 +18,7 @@ content: description: Maximum memory per process in MB log_rate_limit_in_bytes_per_second: type: integer + format: int64 description: Log rate limit in bytes per second total_instances: type: integer diff --git a/docs/openapi/apis/cf/latest/components/requestBodies/SpaceQuotaUpdate.yaml b/docs/openapi/apis/cf/latest/components/requestBodies/SpaceQuotaUpdate.yaml index fcbd6a31ce9..9e66246ec57 100644 --- a/docs/openapi/apis/cf/latest/components/requestBodies/SpaceQuotaUpdate.yaml +++ b/docs/openapi/apis/cf/latest/components/requestBodies/SpaceQuotaUpdate.yaml @@ -18,6 +18,7 @@ content: description: Maximum memory per process in MB log_rate_limit_in_bytes_per_second: type: integer + format: int64 description: Log rate limit in bytes per second total_instances: type: integer diff --git a/docs/openapi/apis/cf/latest/components/requestBodies/TaskCreateRequestBody.yaml b/docs/openapi/apis/cf/latest/components/requestBodies/TaskCreateRequestBody.yaml index a71aba038b1..17ad0c2329f 100644 --- a/docs/openapi/apis/cf/latest/components/requestBodies/TaskCreateRequestBody.yaml +++ b/docs/openapi/apis/cf/latest/components/requestBodies/TaskCreateRequestBody.yaml @@ -19,6 +19,7 @@ content: description: Amount of disk to allocate for the task in MB log_rate_limit_in_bytes_per_second: type: integer + format: int64 description: Amount of log rate limit to allocate for the task in bytes per second droplet_guid: type: string diff --git a/docs/openapi/apis/cf/latest/components/schemas/Deployment.yaml b/docs/openapi/apis/cf/latest/components/schemas/Deployment.yaml index ce00d593125..d3cb4b35093 100644 --- a/docs/openapi/apis/cf/latest/components/schemas/Deployment.yaml +++ b/docs/openapi/apis/cf/latest/components/schemas/Deployment.yaml @@ -55,6 +55,7 @@ allOf: description: The amount of disk space in megabytes to allocate for the web process log_rate_limit_in_bytes_per_second: type: integer + format: int64 description: The log rate limit in bytes per second for the web process. A value of -1 indicates unlimited, 0 prevents any logs from being emitted. canary: type: object diff --git a/docs/openapi/apis/cf/latest/components/schemas/OrganizationQuota.yaml b/docs/openapi/apis/cf/latest/components/schemas/OrganizationQuota.yaml index 5118f0cc408..79582f654f3 100644 --- a/docs/openapi/apis/cf/latest/components/schemas/OrganizationQuota.yaml +++ b/docs/openapi/apis/cf/latest/components/schemas/OrganizationQuota.yaml @@ -20,6 +20,7 @@ allOf: description: Total instances of all the started processes allowed in an organization log_rate_limit_in_bytes_per_second: type: [integer, "null"] + format: int64 description: Total log rate limit allowed for all the started processes and running tasks in an organization per_app_tasks: type: [integer, "null"] diff --git a/docs/openapi/apis/cf/latest/components/schemas/Process.yaml b/docs/openapi/apis/cf/latest/components/schemas/Process.yaml index f00637fe749..ea813b69829 100644 --- a/docs/openapi/apis/cf/latest/components/schemas/Process.yaml +++ b/docs/openapi/apis/cf/latest/components/schemas/Process.yaml @@ -26,6 +26,7 @@ allOf: description: The disk in MB allocated per instance log_rate_limit_in_bytes_per_second: type: integer + format: int64 description: The log rate in bytes per second allocated per instance health_check: $ref: './HealthCheck.yaml' diff --git a/docs/openapi/apis/cf/latest/components/schemas/SpaceQuota.yaml b/docs/openapi/apis/cf/latest/components/schemas/SpaceQuota.yaml index f51caf4ca63..218cae59c8f 100644 --- a/docs/openapi/apis/cf/latest/components/schemas/SpaceQuota.yaml +++ b/docs/openapi/apis/cf/latest/components/schemas/SpaceQuota.yaml @@ -16,6 +16,7 @@ allOf: description: Maximum memory per process in MB log_rate_limit_in_bytes_per_second: type: [integer, 'null'] + format: int64 description: Log rate limit in bytes per second total_instances: type: [integer, 'null'] diff --git a/docs/openapi/apis/cf/latest/components/schemas/SpaceQuotaUpdate.yaml b/docs/openapi/apis/cf/latest/components/schemas/SpaceQuotaUpdate.yaml index 9cb34fe6b46..83d2d2197ac 100644 --- a/docs/openapi/apis/cf/latest/components/schemas/SpaceQuotaUpdate.yaml +++ b/docs/openapi/apis/cf/latest/components/schemas/SpaceQuotaUpdate.yaml @@ -14,6 +14,7 @@ properties: description: Maximum memory per process in MB log_rate_limit_in_bytes_per_second: type: [integer, "null"] + format: int64 description: Log rate limit in bytes per second total_instances: type: [integer, "null"] diff --git a/docs/openapi/apis/cf/latest/paths/Deployments.yaml b/docs/openapi/apis/cf/latest/paths/Deployments.yaml index c79e34ae9c6..62b952a804e 100644 --- a/docs/openapi/apis/cf/latest/paths/Deployments.yaml +++ b/docs/openapi/apis/cf/latest/paths/Deployments.yaml @@ -161,6 +161,7 @@ description: The amount of disk space in megabytes to allocate for the web process log_rate_limit_in_bytes_per_second: type: integer + format: int64 description: The log rate limit in bytes per second for the web process. A value of -1 indicates unlimited, 0 prevents any logs from being emitted. canary: type: object diff --git a/docs/openapi/apis/cf/latest/paths/Processes.yaml b/docs/openapi/apis/cf/latest/paths/Processes.yaml index 278fa7f5eed..193027dc40a 100644 --- a/docs/openapi/apis/cf/latest/paths/Processes.yaml +++ b/docs/openapi/apis/cf/latest/paths/Processes.yaml @@ -379,6 +379,7 @@ type: - integer - 'null' + format: int64 description: The log rate limit in bytes per second per instance examples: default: @@ -592,6 +593,7 @@ type: - integer - 'null' + format: int64 description: The log rate limit in bytes per second per instance responses: '202':