Skip to content

Commit

Permalink
Patch the osc-api for date type format
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-mdr committed Dec 2, 2022
1 parent 8a1112e commit e68ff2b
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 1 deletion.
141 changes: 141 additions & 0 deletions .osc-api-patches/outscale-yaml.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
diff --git a/outscale.yaml b/outscale.yaml
index bee31f9..a92b298 100644
--- a/outscale.yaml
+++ b/outscale.yaml
@@ -43,15 +43,15 @@ components:
type: string
CreationDate:
description: The date and time (UTC) of creation of the access key.
- format: datetime
+ format: date-time
type: string
ExpirationDate:
description: The date (UTC) at which the access key expires.
- format: datetime
+ format: date-time
type: string
LastModificationDate:
description: The date and time (UTC) of the last modification of the access key.
- format: datetime
+ format: date-time
type: string
State:
description: The state of the access key (`ACTIVE` if the key is valid for API calls, or `INACTIVE` if not).
@@ -66,15 +66,15 @@ components:
type: string
CreationDate:
description: The date and time (UTC) of creation of the access key.
- format: datetime
+ format: date-time
type: string
ExpirationDate:
description: The date and time (UTC) at which the access key expires.
- format: datetime
+ format: date-time
type: string
LastModificationDate:
description: The date and time (UTC) of the last modification of the access key.
- format: datetime
+ format: date-time
type: string
SecretKey:
description: The access key that enables you to send requests.
@@ -285,7 +285,7 @@ components:
type: boolean
LinkDate:
description: The time and date of attachment of the volume to the VM.
- format: date
+ format: date-time
type: string
State:
description: The state of the volume.
@@ -445,7 +445,7 @@ components:
type: string
FromDate:
description: The beginning of the time period.
- format: datetime
+ format: date-time
type: string
Operation:
description: The API call that triggered the resource consumption (for example, `RunInstances` or `CreateVolume`).
@@ -464,7 +464,7 @@ components:
type: string
ToDate:
description: The end of the time period.
- format: datetime
+ format: date-time
type: string
Type:
description: The type of resource, depending on the API call.
@@ -482,7 +482,7 @@ components:
type: boolean
ExpirationDate:
description: The date and time at which you want the access key to expire, in ISO 8601 format (for example, `2017-06-14` or `2017-06-14T00:00:00Z`). To remove an existing expiration date, use the method without specifying this parameter.
- format: datetime
+ format: date-time
type: string
type: object
CreateAccessKeyResponse:
@@ -5815,7 +5815,7 @@ components:
type: boolean
FromDate:
description: The beginning of the time period, in ISO 8601 date-time format (for example, `2017-06-14` or `2017-06-14T00:00:00Z`).
- format: datetime
+ format: date-time
type: string
Overall:
default: false
@@ -5823,7 +5823,7 @@ components:
type: boolean
ToDate:
description: The end of the time period, in ISO 8601 date-time format (for example, `2017-06-30` or `2017-06-30T00:00:00Z`).
- format: datetime
+ format: date-time
type: string
required:
- FromDate
@@ -7042,7 +7042,7 @@ components:
type: string
CreationDate:
description: The date and time of creation of the snapshot.
- format: datetime
+ format: date-time
type: string
Description:
description: The description of the snapshot.
@@ -7454,7 +7454,7 @@ components:
type: boolean
ExpirationDate:
description: The date and time at which you want the access key to expire, in ISO 8601 format (for example, `2017-06-14` or `2017-06-14T00:00:00Z`). If not specified, the access key is set to not expire.
- format: datetime
+ format: date-time
type: string
State:
description: The new state for the access key (`ACTIVE` \| `INACTIVE`). When set to `ACTIVE`, the access key is enabled and can be used to send requests. When set to `INACTIVE`, the access key is disabled.
@@ -8116,7 +8116,7 @@ components:
type: integer
LastStateChangeDate:
description: The date and time (UTC) of the latest state update.
- format: datetime
+ format: date-time
type: string
OutsideIpAddress:
description: The IP on the OUTSCALE side of the tunnel.
@@ -8172,7 +8172,7 @@ components:
type: string
CreationDate:
description: The date and time at which the VM was created.
- format: datetime
+ format: date-time
type: string
DeletionProtection:
description: If true, you cannot delete the VM unless you change this parameter back to false.
@@ -8335,7 +8335,7 @@ components:
properties:
CreationDate:
description: The date and time of creation of the volume.
- format: datetime
+ format: date-time
type: string
Iops:
description: 'The number of I/O operations per second (IOPS):<br />
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ API_VERSION=$(shell cat api_version)
SDK_VERSION=$(shell cat sdk_version)
USER_ID=$(shell id -u)
GROUP_ID=$(shell id -g)
OPENAPI_IMG=openapitools/openapi-generator:cli-latest-release
#OPENAPI_IMG=openapitools/openapi-generator:cli-latest-release
OPENAPI_IMG=outscale/openapi-generator:java-awsv4-signature
SHELL := /bin/bash

all: help
Expand Down Expand Up @@ -34,6 +35,7 @@ osc-generate: osc-api/outscale.yaml
osc-api/outscale.yaml:
@echo getting osc-api description...
git clone https://github.com/outscale/osc-api.git && cd osc-api && git checkout -b $(API_VERSION) $(API_VERSION)
cd osc-api && git apply ../.osc-api-patches/outscale-yaml.patch

.PHONY: clean
clean:
Expand Down

0 comments on commit e68ff2b

Please sign in to comment.