Skip to content

Commit

Permalink
osc-sdk-java v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-mdr authored and jerome-jutteau committed Apr 12, 2023
1 parent 3a63ad7 commit 402353f
Show file tree
Hide file tree
Showing 1,215 changed files with 15,449 additions and 1,317 deletions.
217 changes: 63 additions & 154 deletions .osc-api-patches/outscale-yaml.patch
Original file line number Diff line number Diff line change
@@ -1,182 +1,91 @@
diff --git a/outscale.yaml b/outscale.yaml
index 8d912fe..17586a0 100644
index 1016bea..47eb28c 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:
@@ -506,11 +506,8 @@ 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
description: The date and time, or the date, at which you want the access key to expire, in ISO 8601 format (for example, `2020-06-14T00:00:00.000Z`, or `2020-06-14`). To remove an existing expiration date, use the method without specifying this parameter.
- oneOf:
- - format: date-time
- type: string
- - format: date
- type: string
+ format: date-time
+ type: string
type: object
CreateAccessKeyResponse:
@@ -2669,11 +2669,11 @@ components:
additionalProperties: false
@@ -2846,18 +2843,12 @@ components:
type: array
QueryDateAfter:
description: The date after which you want to retrieve logged calls, in ISO 8601 format (for example, `2020-06-14`). By default, this date is set to 48 hours before the `QueryDateBefore` parameter value.
- format: date
+ format: date-time
type: string
description: The date and time, or the date, after which you want to retrieve logged calls, in ISO 8601 format (for example, `2020-06-14T00:00:00.000Z` or `2020-06-14`). By default, this date is set to 48 hours before the `QueryDateBefore` parameter value.
- oneOf:
- - format: date-time
- type: string
- - format: date
- type: string
+ format: date-time
+ type: string
QueryDateBefore:
description: The date before which you want to retrieve logged calls, in ISO 8601 format (for example, `2020-06-30`). By default, this date is set to now, or 48 hours after the `QueryDateAfter` parameter value.
- format: date
+ format: date-time
type: string
description: The date and time, or the date, before which you want to retrieve logged calls, in ISO 8601 format (for example, `2020-06-30T00:00:00.000Z` or `2020-06-14`). By default, this date is set to now, or 48 hours after the `QueryDateAfter` parameter value.
- oneOf:
- - format: date-time
- type: string
- - format: date
- type: string
+ format: date-time
+ type: string
QueryIpAddresses:
description: The IPs used for the logged calls.
@@ -4024,7 +4024,7 @@ components:
CreationDates:
description: The dates and times of creation of the volumes.
items:
- format: date
+ format: date-time
type: string
type: array
LinkVolumeDeleteOnVmDeletion:
@@ -4038,7 +4038,7 @@ components:
LinkVolumeLinkDates:
description: The dates and times of creation of the volumes.
items:
- format: date
+ format: date-time
type: string
@@ -4583,7 +4574,7 @@ components:
type: array
LinkVolumeLinkStates:
@@ -4990,7 +4990,7 @@ components:
type: string
QueryDate:
description: The date of the logged call, in ISO 8601 format.
- format: date
+ format: date-time
CreationDate:
description: The date and time of creation of the OMI, in ISO 8601 date-time format.
- format: date-time
+ format: date
type: string
QueryHeaderRaw:
description: The raw header of the HTTP request of the logged call.
@@ -5815,7 +5815,7 @@ components:
Description:
description: The description of the OMI.
@@ -6171,22 +6162,16 @@ 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
description: The beginning of the time period, in ISO 8601 date format (for example, `2020-06-14`). The date-time format is also accepted, but only with a time set to midnight (for example, `2020-06-14T00:00:00.000Z`).
- oneOf:
- - format: date
- type: string
- - format: date-time
- type: string
+ format: date-time
+ type: string
Overall:
default: false
@@ -5823,7 +5823,7 @@ components:
description: By default or if false, returns only the consumption of the specific account that sends this request. If true, returns either the overall consumption of your paying account and all linked accounts (if the account that sends this request is a paying account) or returns nothing (if the account that sends this request is a linked account).
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
description: The end of the time period, in ISO 8601 date format (for example, `2020-06-30`). The date-time format is also accepted, but only with a time set to midnight (for example, `2020-06-30T00:00:00.000Z`).
- oneOf:
- - format: date
- type: string
- - format: date-time
- type: string
+ 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:
- ToDate
@@ -7901,11 +7886,8 @@ 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
description: The date and time, or the date, at which you want the access key to expire, in ISO 8601 format (for example, `2020-06-14T00:00:00.000Z` or `2020-06-14`). If not specified, the access key is set to not expire.
- oneOf:
- - format: date-time
- type: string
- - format: date
- type: string
+ 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 of creation of the VM.
- 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 />
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# osc-sdk-java

3DS OUTSCALE API
- API version: 1.25.0
- API version: 1.26.0

Welcome to the OUTSCALE API documentation.<br />
The OUTSCALE API enables you to manage your resources in the OUTSCALE Cloud. This documentation describes the different actions available along with code examples.<br /><br />
Expand Down Expand Up @@ -46,7 +46,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>io.github.outscale</groupId>
<artifactId>osc-sdk-java</artifactId>
<version>0.2.0</version>
<version>0.3.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -62,7 +62,7 @@ Add this dependency to your project's build file:
}
dependencies {
implementation "io.github.outscale:osc-sdk-java:0.2.0"
implementation "io.github.outscale:osc-sdk-java:0.3.0"
}
```

Expand All @@ -76,7 +76,7 @@ mvn clean package

Then manually install the following JARs:

* `target/osc-sdk-java-0.2.0.jar`
* `target/osc-sdk-java-0.3.0.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down
2 changes: 1 addition & 1 deletion api_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.25.0
1.26.0
2 changes: 1 addition & 1 deletion docs/BsuCreated.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Information about the created BSU volume.
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**deleteOnVmDeletion** | **Boolean** | If true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM. | [optional] |
|**linkDate** | **OffsetDateTime** | The time and date of attachment of the volume to the VM. | [optional] |
|**linkDate** | **OffsetDateTime** | The date and time of attachment of the volume to the VM, in ISO 8601 date-time format. | [optional] |
|**state** | **String** | The state of the volume. | [optional] |
|**volumeId** | **String** | The ID of the volume. | [optional] |

Expand Down
70 changes: 70 additions & 0 deletions docs/CatalogApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All URIs are relative to *https://api.eu-west-2.outscale.com/api/v1*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**readCatalog**](CatalogApi.md#readCatalog) | **POST** /ReadCatalog | |
| [**readCatalogs**](CatalogApi.md#readCatalogs) | **POST** /ReadCatalogs | |


<a name="readCatalog"></a>
Expand Down Expand Up @@ -76,3 +77,72 @@ public class Example {
|-------------|-------------|------------------|
| **200** | The HTTP 200 response (OK). | - |

<a name="readCatalogs"></a>
# **readCatalogs**
> ReadCatalogsResponse readCatalogs(readCatalogsRequest)


### Example
```java
// Import classes:
import io.github.outscale.osc_sdk_java.client.ApiClient;
import io.github.outscale.osc_sdk_java.client.ApiException;
import io.github.outscale.osc_sdk_java.client.Configuration;
import io.github.outscale.osc_sdk_java.client.auth.*;
import io.github.outscale.osc_sdk_java.client.models.*;
import io.github.outscale.osc_sdk_java.client.api.CatalogApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.eu-west-2.outscale.com/api/v1");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")

// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");

CatalogApi apiInstance = new CatalogApi(defaultClient);
ReadCatalogsRequest readCatalogsRequest = new ReadCatalogsRequest(); // ReadCatalogsRequest |
try {
ReadCatalogsResponse result = apiInstance.readCatalogs(readCatalogsRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CatalogApi#readCatalogs");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **readCatalogsRequest** | [**ReadCatalogsRequest**](ReadCatalogsRequest.md)| | [optional] |

### Return type

[**ReadCatalogsResponse**](ReadCatalogsResponse.md)

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | The HTTP 200 response (OK). | - |

Loading

0 comments on commit 402353f

Please sign in to comment.