From 383c31692c28894881eb6c804bd8e516451b84da Mon Sep 17 00:00:00 2001 From: Fabiano da Rosa Gomes Date: Wed, 23 Aug 2023 17:01:48 -0300 Subject: [PATCH 1/6] [ENG-26941] chore: Updated contract, added websocket param in edge_app (#114) --- edgeapplications.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/edgeapplications.yaml b/edgeapplications.yaml index abba79e0..5af15f1b 100644 --- a/edgeapplications.yaml +++ b/edgeapplications.yaml @@ -2453,6 +2453,8 @@ components: type: boolean http3: type: boolean + websocket: + type: boolean required: - name type: object @@ -2632,6 +2634,8 @@ components: type: boolean web_application_firewall: type: boolean + websocket: + type: boolean type: object ApplicationUpdateResponse: additionalProperties: false @@ -2813,6 +2817,8 @@ components: type: boolean http3: type: boolean + websocket: + type: boolean supported_ciphers: type: string required: From 220b2e5e66ec9b6e705ab43315c571ed96f414c4 Mon Sep 17 00:00:00 2001 From: diegoazion <114952459+diegoazion@users.noreply.github.com> Date: Fri, 25 Aug 2023 08:45:05 -0300 Subject: [PATCH 2/6] fix: adjusting the post/put endpoint for receive a response (#116) --- edgefirewall.yaml | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/edgefirewall.yaml b/edgefirewall.yaml index ce9c8443..a088bcfc 100644 --- a/edgefirewall.yaml +++ b/edgefirewall.yaml @@ -22,6 +22,7 @@ paths: explode: true schema: type: integer + format: int64 - name: page_size in: query required: false @@ -29,6 +30,7 @@ paths: explode: true schema: type: integer + format: int64 - name: sort in: query required: false @@ -63,6 +65,10 @@ paths: responses: "201": description: Edge firewall created + content: + application/json: + schema: + $ref: '#/components/schemas/EdgeFirewallResponse' "400": description: Bad Request "500": @@ -111,7 +117,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ListEdgeFirewallResponse' + $ref: '#/components/schemas/EdgeFirewallResponse' "400": description: Bad Request "404": @@ -157,7 +163,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ListEdgeFirewallResponse' + $ref: '#/components/schemas/EdgeFirewallResponse' "400": description: Bad Request "404": @@ -204,6 +210,7 @@ components: type: array items: type: integer + format: int64 example: is_active: true last_editor: last_editor @@ -276,6 +283,7 @@ components: type: array items: type: integer + format: int64 is_active: type: boolean edge_functions_enabled: @@ -307,7 +315,23 @@ components: last_modified: last_modified debug_rules: true UpdateEdgeFirewallRequest: - $ref: '#/components/schemas/ListEdgeFirewallResponse' + type: object + properties: + name: + type: string + domains: + type: array + items: + type: integer + format: int64 + is_active: + type: boolean + edge_functions_enabled: + type: boolean + network_protection_enabled: + type: boolean + waf_enabled: + type: boolean securitySchemes: tokenAuth: type: apiKey From 2a44e15fa10d66d6aa6324dfcc4ba210ea58e42a Mon Sep 17 00:00:00 2001 From: diegoazion <114952459+diegoazion@users.noreply.github.com> Date: Wed, 30 Aug 2023 10:31:53 -0300 Subject: [PATCH 3/6] fix: change the endpoint for production (#117) --- variables.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variables.yaml b/variables.yaml index 5c947efd..e7870ec5 100644 --- a/variables.yaml +++ b/variables.yaml @@ -6,8 +6,8 @@ info: name: MIT url: https://github.com/aziontech/azionapi-openapi/blob/main/LICENSE.md servers: -- description: Stage - url: https://stage-api.azion.net/variables +- description: Production + url: https://api.azionapi.net/variables security: - tokenAuth: [] paths: From ae586273cc82295434cb723be8d24d19ed8780b2 Mon Sep 17 00:00:00 2001 From: PatrickMenoti <82882574+PatrickMenoti@users.noreply.github.com> Date: Wed, 30 Aug 2023 16:22:29 -0300 Subject: [PATCH 4/6] chore: update generator name --- .github/workflows/generate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index e12d9676..a2d1e940 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -12,7 +12,7 @@ jobs: image: ubuntu:22.04 strategy: matrix: - types: [ "go", "php", "csharp-netcore", "typescript-node", "java", "rust", "python", "javascript" ] + types: [ "go", "php", "csharp", "typescript-node", "java", "rust", "python", "javascript" ] steps: - name: Setup Env run: apt-get update && apt-get install -y npm curl git From 542c6befea6548d0a185e59be4adf408de748b9d Mon Sep 17 00:00:00 2001 From: Vander Vieira Date: Fri, 1 Sep 2023 16:00:06 -0300 Subject: [PATCH 5/6] chore: add additionalProperties false on request schemas (#119) * add additionalProperties false on refs * add description to fix lint * add blank end line --- data_streaming.yaml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/data_streaming.yaml b/data_streaming.yaml index eb5a5609..0469d980 100644 --- a/data_streaming.yaml +++ b/data_streaming.yaml @@ -53,10 +53,7 @@ paths: tags: - Data Streaming summary: Create a new data streaming - description: | - - - + description: Create a new data streaming. operationId: CreateNewDataStreaming requestBody: required: true @@ -464,7 +461,8 @@ components: Note: * `Range` - From 0 to 100. * `To use:` [Contact the sales team](https://www.azion.com/en/contact-sales/) to activate this feature in your account. - + additionalProperties: false + StandardDataStreamingPostBody: type: object properties: @@ -521,7 +519,8 @@ components: description: > Note: * Field not used with the rtm_activity data source. - + additionalProperties: false + CustomDataStreamingPostBody: type: object properties: @@ -550,9 +549,8 @@ components: type: boolean nullable: true default: true - - - + additionalProperties: false + CreateDataStreamingResponse: type: object properties: @@ -1072,4 +1070,4 @@ components: description: | You must inform a token to auth. Usage format: `Token ` - \ No newline at end of file + From 1a83d7831282e9b582b40059ac1087b564688a94 Mon Sep 17 00:00:00 2001 From: diegoazion <114952459+diegoazion@users.noreply.github.com> Date: Tue, 12 Sep 2023 11:23:56 -0300 Subject: [PATCH 6/6] fix: put a new field in edg_app Main Settings (#120) --- edgeapplications.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/edgeapplications.yaml b/edgeapplications.yaml index 5af15f1b..9f0dd72b 100644 --- a/edgeapplications.yaml +++ b/edgeapplications.yaml @@ -2413,6 +2413,7 @@ components: cdn_cache_settings: cdn_cache_settings origin_protocol_policy: origin_protocol_policy name: name + minimum_tls_version: minimum_tls_version delivery_protocol: delivery_protocol browser_cache_settings_maximum_ttl: 0 origin_type: origin_type @@ -2429,6 +2430,8 @@ components: type: string address: type: string + minimum_tls_version: + type: string origin_protocol_policy: type: string host_header: