From 61c7de4b38ba0571a31da8489987d5dde2aa329d Mon Sep 17 00:00:00 2001 From: Azion Github Automation Date: Mon, 11 Mar 2024 12:39:47 +0000 Subject: [PATCH] chore: Auto-Generated Edge-api OpenAPI Schema --- edge.yml | 396 +++++++++++++++++++------------------------------------ 1 file changed, 139 insertions(+), 257 deletions(-) diff --git a/edge.yml b/edge.yml index bb09981..3fd6171 100644 --- a/edge.yml +++ b/edge.yml @@ -14,18 +14,28 @@ paths: schema: type: string required: true + - in: query + name: order_by + schema: + type: string + description: A string value that indicates which field will be ordened. - name: page required: false in: query description: A page number within the paginated result set. schema: type: integer - - name: page_size - required: false - in: query - description: Number of results to return per page. + - in: query + name: page_size schema: type: integer + description: A numeric value that indicates the number of items per page. + - in: query + name: sort + schema: + type: string + description: A string value that indicates ascending and descending values + sorted. tags: - applications security: @@ -196,102 +206,35 @@ paths: schema: $ref: '#/components/schemas/ResponseErrorResponses' description: '' - /v4/edge/certificates/revocations: + /v4/edge/firewall: get: - operationId: certificatesRevocationsList + operationId: firewallList description: '' parameters: + - in: query + name: order_by + schema: + type: string + description: A string value that indicates which field will be ordened. - name: page required: false in: query description: A page number within the paginated result set. schema: type: integer - - name: page_size - required: false - in: query - description: Number of results to return per page. + - in: query + name: page_size schema: type: integer - tags: - - certificates - security: - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedCertificateRevocationListList' - description: '' - '400': - description: Bad Request - '404': - description: Not Found - '406': - description: Not Acceptable - '429': - description: Too Many Requests - '401': - description: Unauthorized - '403': - description: Forbidden - post: - operationId: certificatesRevocationsCreate - description: '' - tags: - - certificates - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CertificateRevocationListRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/CertificateRevocationListRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/CertificateRevocationListRequest' - required: true - security: - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ResponseCertificateRevocationList' - description: '' - '400': - description: Bad Request - '404': - description: Not Found - '406': - description: Not Acceptable - '429': - description: Too Many Requests - '401': - description: Unauthorized - '403': - description: Forbidden - '202': - content: - application/json: - schema: - $ref: '#/components/schemas/ResponseCertificateRevocationList' - description: '' - /v4/edge/certificates/revocations/{id}: - get: - operationId: certificatesRevocationsRetrieve - description: '' - parameters: - - in: path - name: id + description: A numeric value that indicates the number of items per page. + - in: query + name: sort schema: type: string - required: true + description: A string value that indicates ascending and descending values + sorted. tags: - - certificates + - firewall security: - tokenAuth: [] responses: @@ -299,7 +242,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ResponseCertificateRevocationList' + $ref: '#/components/schemas/PaginatedEdgeFirewallList' description: '' '400': description: Bad Request @@ -313,8 +256,9 @@ paths: description: Unauthorized '403': description: Forbidden - put: - operationId: certificatesRevocationsUpdate + /v4/edge/firewall/{id}: + get: + operationId: firewallRetrieve description: '' parameters: - in: path @@ -323,19 +267,7 @@ paths: type: string required: true tags: - - certificates - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CertificateRevocationListRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/CertificateRevocationListRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/CertificateRevocationListRequest' - required: true + - firewall security: - tokenAuth: [] responses: @@ -343,7 +275,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ResponseCertificateRevocationList' + $ref: '#/components/schemas/ResponseEdgeFirewall' description: '' '400': description: Bad Request @@ -357,14 +289,9 @@ paths: description: Unauthorized '403': description: Forbidden - '202': - content: - application/json: - schema: - $ref: '#/components/schemas/ResponseCertificateRevocationList' - description: '' - patch: - operationId: certificatesRevocationsPartialUpdate + /v4/edge/firewall/{id}/clone: + post: + operationId: firewallCloneCreate description: '' parameters: - in: path @@ -373,64 +300,27 @@ paths: type: string required: true tags: - - certificates + - firewall requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedCertificateRevocationListRequest' + $ref: '#/components/schemas/EdgeFirewallRequest' application/x-www-form-urlencoded: schema: - $ref: '#/components/schemas/PatchedCertificateRevocationListRequest' + $ref: '#/components/schemas/EdgeFirewallRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCertificateRevocationListRequest' - security: - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ResponseCertificateRevocationList' - description: '' - '400': - description: Bad Request - '404': - description: Not Found - '406': - description: Not Acceptable - '429': - description: Too Many Requests - '401': - description: Unauthorized - '403': - description: Forbidden - '202': - content: - application/json: - schema: - $ref: '#/components/schemas/ResponseCertificateRevocationList' - description: '' - delete: - operationId: certificatesRevocationsDestroy - description: '' - parameters: - - in: path - name: id - schema: - type: string + $ref: '#/components/schemas/EdgeFirewallRequest' required: true - tags: - - certificates security: - tokenAuth: [] responses: - '200': + '201': content: application/json: schema: - $ref: '#/components/schemas/ResponseDeleteCertificateRevocationList' + $ref: '#/components/schemas/ResponseEdgeFirewall' description: '' '400': description: Bad Request @@ -448,7 +338,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ResponseCertificateRevocationList' + $ref: '#/components/schemas/ResponseEdgeFirewall' description: '' /v4/edge/purge/{purgeType}: post: @@ -511,18 +401,28 @@ paths: operationId: wafAllowedRulesList description: '' parameters: + - in: query + name: order_by + schema: + type: string + description: A string value that indicates which field will be ordened. - name: page required: false in: query description: A page number within the paginated result set. schema: type: integer - - name: page_size - required: false - in: query - description: Number of results to return per page. + - in: query + name: page_size schema: type: integer + description: A numeric value that indicates the number of items per page. + - in: query + name: sort + schema: + type: string + description: A string value that indicates ascending and descending values + sorted. - in: path name: wafId schema: @@ -773,6 +673,12 @@ paths: schema: $ref: '#/components/schemas/ResponseDeleteWAFRule' description: '' + '202': + content: + application/json: + schema: + $ref: '#/components/schemas/ResponseDeleteWAFRule' + description: '' '400': description: Bad Request '404': @@ -785,19 +691,39 @@ paths: description: Unauthorized '403': description: Forbidden - '202': - content: - application/json: - schema: - $ref: '#/components/schemas/ResponseWAFRule' - description: '' components: schemas: BlankEnum: enum: - '' additionalProperties: false - CertificateRevocationList: + CodeEnum: + enum: + - 400 + - 401 + - 403 + - 404 + - 405 + - 406 + - 408 + - 409 + - 410 + - 411 + - 414 + - 415 + - 416 + - 426 + - 429 + - 431 + - 500 + - 501 + - 502 + - 503 + - 504 + - 505 + - any + additionalProperties: false + EdgeFirewall: type: object properties: id: @@ -808,37 +734,37 @@ components: pattern: .* maxLength: 250 minLength: 1 - issuer: - type: string - readOnly: true - minLength: 1 - last_update: + edge_functions_enabled: + type: boolean + default: false + network_protection_enabled: + type: boolean + default: true + waf_enabled: + type: boolean + default: false + debug_rules: + type: boolean + default: false + is_active: + type: boolean + default: true + last_editor: type: string - format: date-time readOnly: true - next_update: + pattern: .* + maxLength: 250 + last_modified: type: string format: date-time readOnly: true - revoked_certificates: - type: object - additionalProperties: {} - readOnly: true - raw_crl: - type: string - pattern: .* - maxLength: 30720000 - minLength: 1 required: - id - - issuer - - last_update + - last_editor + - last_modified - name - - next_update - - raw_crl - - revoked_certificates additionalProperties: false - CertificateRevocationListRequest: + EdgeFirewallRequest: type: object properties: name: @@ -846,40 +772,23 @@ components: pattern: .* maxLength: 250 minLength: 1 - raw_crl: - type: string - pattern: .* - maxLength: 30720000 - minLength: 1 + edge_functions_enabled: + type: boolean + default: false + network_protection_enabled: + type: boolean + default: true + waf_enabled: + type: boolean + default: false + debug_rules: + type: boolean + default: false + is_active: + type: boolean + default: true required: - name - - raw_crl - additionalProperties: false - CodeEnum: - enum: - - 400 - - 401 - - 403 - - 404 - - 405 - - 406 - - 408 - - 409 - - 410 - - 411 - - 414 - - 415 - - 416 - - 426 - - 429 - - 431 - - 500 - - 501 - - 502 - - 503 - - 504 - - 505 - - any additionalProperties: false ErrorResponses: type: object @@ -921,8 +830,8 @@ components: additionalProperties: false LayerEnum: enum: - - edge_caching - - l2_caching + - edge_cache + - tiered_cache type: string additionalProperties: false MatchZone: @@ -1029,7 +938,7 @@ components: enum: - null additionalProperties: false - PaginatedCertificateRevocationListList: + PaginatedEdgeFirewallList: type: object properties: count: @@ -1048,7 +957,7 @@ components: results: type: array items: - $ref: '#/components/schemas/CertificateRevocationList' + $ref: '#/components/schemas/EdgeFirewall' additionalProperties: false PaginatedErrorResponsesList: type: object @@ -1092,20 +1001,6 @@ components: items: $ref: '#/components/schemas/WAFRule' additionalProperties: false - PatchedCertificateRevocationListRequest: - type: object - properties: - name: - type: string - pattern: .* - maxLength: 250 - minLength: 1 - raw_crl: - type: string - pattern: .* - maxLength: 30720000 - minLength: 1 - additionalProperties: false PatchedErrorResponsesRequest: type: object properties: @@ -1221,7 +1116,7 @@ components: layer: allOf: - $ref: '#/components/schemas/LayerEnum' - default: edge_caching + default: edge_cache required: - items additionalProperties: false @@ -1236,43 +1131,30 @@ components: layer: allOf: - $ref: '#/components/schemas/LayerEnum' - default: edge_caching + default: edge_cache required: - items additionalProperties: false - ResponseCertificateRevocationList: - type: object - properties: - state: - $ref: '#/components/schemas/StateEnum' - data: - $ref: '#/components/schemas/CertificateRevocationList' - required: - - data - - state - additionalProperties: false - ResponseDeleteCertificateRevocationList: + ResponseDeleteWAFRule: type: object properties: state: $ref: '#/components/schemas/StateEnum' data: allOf: - - $ref: '#/components/schemas/CertificateRevocationList' + - $ref: '#/components/schemas/WAFRule' nullable: true required: - data - state additionalProperties: false - ResponseDeleteWAFRule: + ResponseEdgeFirewall: type: object properties: state: $ref: '#/components/schemas/StateEnum' data: - allOf: - - $ref: '#/components/schemas/WAFRule' - nullable: true + $ref: '#/components/schemas/EdgeFirewall' required: - data - state