Skip to content

Commit

Permalink
osc-sdk-c v0.8.0
Browse files Browse the repository at this point in the history
Signed-off-by: Outscale Bot <[email protected]>
  • Loading branch information
Open-Source-Bot authored and outscale-mgo committed Mar 14, 2024
1 parent 61a0c0e commit 32cf4d7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 26 deletions.
15 changes: 7 additions & 8 deletions osc_sdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ static const char *calls_descriptions[] = {
,
"Usage: oapi-cli CreateListenerRule --VmIds=vmids --Listener=listener --ListenerRule=listenerrule [OPTIONS]\n" "Creates a rule for traffic redirection for the specified listener. Each rule \n" "must have either the `HostNamePattern` or `PathPattern` parameter specified. \n" "Rules are treated in priority order, from the highest value to the lowest \n" "value.\nOnce the rule is created, you need to register backend VMs with it. For \n" "more information, see the \n" "[RegisterVmsInLoadBalancer](#registervmsinloadbalancer) method.\nFor more \n" "information, see [About Load \n" "Balancers](https://docs.outscale.com/en/userguide/About-Load-Balancers.html).\n" "\nRequired Argument: VmIds, Listener, ListenerRule \n"
,
"Usage: oapi-cli CreateKeypair --KeypairName=keypairname [OPTIONS]\n" "Creates a keypair to use with your virtual machines (VMs).\nYou can use this \n" "method in two different ways:\n* **Creating a keypair**: In that case, 3DS \n" "OUTSCALE creates a 2048-bit RSA keypair, stores its public key in your account, \n" "and returns its private key in the response of the call so that you can save it \n" "in a file.\nWhen you save the returned private key, make sure you replace the \n" "`\\n` escape sequences with real line breaks.\n* **Importing a keypair created \n" "locally**: If you already have a keypair that you have created locally with a \n" "third-party tool, you can import its public key in your account. The following \n" "types of key can be imported: RSA (2048 bits or preferably 4096 bits), ECDSA \n" "(256 bits), and Ed25519. The following formats can be used: PEM, PKCS8, \n" "RFC4716, and OpenSSH.\n\nFor more information, see [About \n" "Keypairs](https://docs.outscale.com/en/userguide/About-Keypairs.html).\n" "\nRequired Argument: KeypairName \n"
"Usage: oapi-cli CreateKeypair --KeypairName=keypairname [OPTIONS]\n" "Creates a keypair to use with your virtual machines (VMs).\nYou can use this \n" "method in two different ways:\n* **Creating a keypair**: In that case, 3DS \n" "OUTSCALE creates a 2048-bit RSA keypair, stores its public key in your account, \n" "and returns its private key in the response of the call so that you can save it \n" "in a file.\nWhen you save the returned private key, make sure you replace the \n" "`\\n` escape sequences with real line breaks.\n* **Importing a keypair created \n" "locally**: If you already have a keypair that you have created locally with a \n" "third-party tool, you can import its public key in your account. The following \n" "types of key can be imported: RSA (2048 bits or preferably 4096 bits), Ed25519, \n" "and ECDSA (256 bits, 384 bits, or 521 bits). The following formats can be used: \n" "PEM, PKCS8, RFC4716, and OpenSSH.\n\nFor more information, see [About \n" "Keypairs](https://docs.outscale.com/en/userguide/About-Keypairs.html).\n" "\nRequired Argument: KeypairName \n"
,
"Usage: oapi-cli CreateInternetService [OPTIONS]\n" "Creates an Internet service you can use with a Net.\nAn Internet service \n" "enables your virtual machines (VMs) launched in a Net to connect to the \n" "Internet. By default, a Net includes an Internet service, and each Subnet is \n" "public. Every VM launched within a default Subnet has a private IP and a public \n" "IP.\nFor more information, see [About Internet \n" "Services](https://docs.outscale.com/en/userguide/About-Internet-Services.html).\n" "\nRequired Argument: \n"
,
Expand Down Expand Up @@ -2155,7 +2155,7 @@ static const char *calls_args_descriptions[] = {
" The path prefix you can use to filter the results, set to a \n"
" slash (`/`) by default.\n"
" -Scope: string\n"
" The scope to filter policies (`ALL` \\| `OWS` \\| `local`).\n"
" The scope to filter policies (`OWS` \\| `LOCAL`).\n"
"FirstItem: int\n"
" The item starting the list of policies requested.\n"
"ResultsPerPage: int\n"
Expand Down Expand Up @@ -2645,11 +2645,10 @@ static const char *calls_args_descriptions[] = {
" account that sends this request is a paying account) or returns nothing \n"
" (if the account that sends this request is a linked account).\n"
"ShowPrice: bool\n"
" By default or if false, returns only the consumption of the specific \n"
" account that sends this request. If true, returns the unit price of the \n"
" consumed resource, and the total price of the consumed resource during \n"
" the specified time period in the currency of the catalog of the Region \n"
" where the API method was used.\n"
" If true, the response also includes the unit price of the consumed \n"
" resource (`UnitPrice`) and the total price of the consumed resource \n"
" during the specified time period (`Price`), in the currency of the \n"
" Region's catalog.\n"
"ToDate: string\n"
" The end of the time period, in ISO 8601 date format (for example, \n"
" `2020-06-30`). The date-time format is also accepted, but only with a \n"
Expand Down Expand Up @@ -4115,7 +4114,7 @@ static const char *calls_args_descriptions[] = {
,
"Architecture: string\n"
" **(when registering from a snapshot, or from a bucket without using a \n"
" manifest file)** The architecture of the OMI (`i386` or `x84_64`).\n"
" manifest file)** The architecture of the OMI (`i386` or `x86_64`).\n"
"BlockDeviceMappings: array ref BlockDeviceMappingImage\n"
" **(when registering from a snapshot, or from a bucket without using a \n"
" manifest file)** One or more block device mappings.\n"
Expand Down
32 changes: 15 additions & 17 deletions osc_sdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ struct osc_str {

#define OSC_ENV_FREE_AK_SK (OSC_ENV_FREE_AK | OSC_ENV_FREE_SK)

#define OSC_API_VERSION "1.28.5"
#define OSC_SDK_VERSION 0X000700
#define OSC_API_VERSION "1.28.7"
#define OSC_SDK_VERSION 0X000800

enum osc_auth_method {
OSC_AKSK_METHOD,
Expand Down Expand Up @@ -621,7 +621,7 @@ struct catalog {
* The type of resource associated with the catalog entry.
* -UnitPrice: double
* The unit price of the catalog entry, in the currency of the
* catalog of the Region where the API method was used.
* Region's catalog.
*/
char *entries_str;
int nb_entries;
Expand Down Expand Up @@ -661,8 +661,8 @@ struct catalog_entry {
*/
char *type; /* string */
/*
* The unit price of the catalog entry, in the currency of the catalog
* of the Region where the API method was used.
* The unit price of the catalog entry, in the currency of the Region's
* catalog.
*/
int is_set_unit_price;
double unit_price; /* double */
Expand Down Expand Up @@ -691,7 +691,7 @@ struct catalogs {
* The type of resource associated with the catalog entry.
* -UnitPrice: double
* The unit price of the catalog entry, in the currency of the
* catalog of the Region where the API method was used.
* Region's catalog.
*/
char *entries_str;
int nb_entries;
Expand Down Expand Up @@ -775,8 +775,7 @@ struct consumption_entry {
char *paying_account_id; /* string */
/*
* The total price of the consumed resource during the specified time
* period, in the currency of the catalog of the Region where the API
* method was used.
* period, in the currency of the Region's catalog.
*/
int is_set_price;
double price; /* double */
Expand All @@ -803,7 +802,7 @@ struct consumption_entry {
char *type; /* string */
/*
* The unit price of the consumed resource, in the currency of the
* catalog of the Region where the API method was used.
* Region's catalog.
*/
int is_set_unit_price;
double unit_price; /* double */
Expand Down Expand Up @@ -5257,7 +5256,7 @@ struct read_policies_filters {
*/
char *path_prefix; /* string */
/*
* The scope to filter policies (`ALL` \\| `OWS` \\| `local`).
* The scope to filter policies (`OWS` \\| `LOCAL`).
*/
char *scope; /* string */
};
Expand Down Expand Up @@ -9183,7 +9182,7 @@ struct osc_read_policies_arg {
* The path prefix you can use to filter the results, set to a
* slash (`/`) by default.
* -Scope: string
* The scope to filter policies (`ALL` \\| `OWS` \\| `local`).
* The scope to filter policies (`OWS` \\| `LOCAL`).
*/
char *filters_str;
int is_set_filters;
Expand Down Expand Up @@ -9929,11 +9928,10 @@ struct osc_read_consumption_account_arg {
int is_set_overall;
int overall; /* bool */
/*
* By default or if false, returns only the consumption of the specific
* account that sends this request. If true, returns the unit price of
* the consumed resource, and the total price of the consumed resource
* during the specified time period in the currency of the catalog of
* the Region where the API method was used.
* If true, the response also includes the unit price of the consumed
* resource (`UnitPrice`) and the total price of the consumed resource
* during the specified time period (`Price`), in the currency of the
* Region's catalog.
*/
int is_set_show_price;
int show_price; /* bool */
Expand Down Expand Up @@ -12573,7 +12571,7 @@ struct osc_create_image_arg {
/* Required:none */
/*
* **(when registering from a snapshot, or from a bucket without using a
* manifest file)** The architecture of the OMI (`i386` or `x84_64`).
* manifest file)** The architecture of the OMI (`i386` or `x86_64`).
*/
char *architecture; /* string */
/*
Expand Down
2 changes: 1 addition & 1 deletion sdk_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.0
0.8.0

0 comments on commit 32cf4d7

Please sign in to comment.