diff --git a/COGNAC b/COGNAC index fbca4c2..0f02d8c 160000 --- a/COGNAC +++ b/COGNAC @@ -1 +1 @@ -Subproject commit fbca4c23f6323889146ee42bd4d11281b96231ac +Subproject commit 0f02d8c37dd453d094d84b2a41a9a80c64e75c63 diff --git a/main.c b/main.c index b7b582a..6a4e463 100644 --- a/main.c +++ b/main.c @@ -47,7 +47,7 @@ #define OAPI_RAW_OUTPUT 1 -#define OAPI_CLI_VERSION "DEV-VERSION" +#define OAPI_CLI_VERSION "0.10.0" #define OAPI_CLI_UAGENT "oapi-cli/"OAPI_CLI_VERSION"; osc-sdk-c/" @@ -63,17 +63,17 @@ #define META_ARGS(else_cnd) \ if (!strcmp(aa, "--file")) { \ - TRY(i + 3 >= ac, "file name require"); \ + TRY(i + 3 >= ac, "file name required"); \ ++incr; \ aa = read_file(files_cnt, av[i + 3], 0); \ STRY(!aa); \ } else if (!strcmp(aa, "--jsonstr-file")) { \ - TRY(i + 3 >= ac, "file name require"); \ + TRY(i + 3 >= ac, "file name required"); \ ++incr; \ aa = read_file(files_cnt, av[i + 3], 1); \ STRY(!aa); \ } else if (!strcmp(aa, "--var")) { \ - TRY(i + 3 >= ac, "var name require"); \ + TRY(i + 3 >= ac, "variable name required"); \ int var_found = 0; \ for (int j = 0; j < nb_cli_vars; ++j) { \ if (!strcmp(cli_vars[j].name, av[i + 3])) { \ @@ -159,14 +159,14 @@ static int parse_variable(json_object *jobj, char **av, int ac, int i) { const char *tmp = av[i + 1]; const char *tmp2; - TRY(nb_cli_vars >= VAR_ARRAY_SIZE, "variable asignement fail: too much variables"); + TRY(nb_cli_vars >= VAR_ARRAY_SIZE, "variable asignement fail: too many variables"); struct cli_var *var = &cli_vars[nb_cli_vars++]; json_object *j = jobj; char buf[512]; tmp2 = strchr(tmp, '='); TRY(!tmp2, "variable asignement fail (missing '='))\n"); - TRY((uintptr_t)(tmp2 - tmp) >= VAR_NAME_SIZE, "var name too long"); + TRY((uintptr_t)(tmp2 - tmp) >= VAR_NAME_SIZE, "variable name is too long"); strncpy(var->name, tmp, tmp2 - tmp); var->name[tmp2 - tmp] = 0; tmp = tmp2 + 1; @@ -184,7 +184,7 @@ static int parse_variable(json_object *jobj, char **av, int ac, int i) buf[tmp2 - tmp] = 0; j = json_object_object_get(j, buf); } - TRY(!j, "variable asignement fail (not found)"); + TRY(!j, "variable asignement fail (variable not found)"); tmp = tmp2 + 1; } tmp2 = tmp + strlen(tmp); @@ -198,7 +198,7 @@ static int parse_variable(json_object *jobj, char **av, int ac, int i) } else { tmp = json_object_to_json_string_ext(j, JSON_C_TO_STRING_PLAIN); } - TRY(strlen(tmp) >= VAR_VAL_SIZE, "variable asignement fail: value too big"); + TRY(strlen(tmp) >= VAR_VAL_SIZE, "variable asignement fail: value is too long"); strcpy(var->val, tmp); return 0; @@ -216,12 +216,12 @@ char *read_file(char *files_cnt[static MAX_FILES_PER_CMD], char *file_name, } } if (dest < 0) { - fprintf(stderr, "%s option used too much", call_name); + fprintf(stderr, "too many options %s", call_name); return NULL; } FILE *f = fopen(file_name, "rb"); if (!f) { - fprintf(stderr, "%s fail to open %s", call_name, file_name); + fprintf(stderr, "%s failed to open %s", call_name, file_name); return NULL; } if (fseek(f, 0, SEEK_END) < 0) { @@ -442,7 +442,7 @@ int accepter_net_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'AccepterNet'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'AccepterNet'\n", str); return -1; } return 0; @@ -482,7 +482,7 @@ int access_key_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'AccessKey'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'AccessKey'\n", str); return -1; } return 0; @@ -527,7 +527,7 @@ int access_key_secret_key_parser(void *v_s, char *str, char *aa, struct ptr_arra } else { - fprintf(stderr, "'%s' not an argumemt of 'AccessKeySecretKey'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'AccessKeySecretKey'\n", str); return -1; } return 0; @@ -562,7 +562,7 @@ int access_log_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { s->publication_interval = atoll(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'AccessLog'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'AccessLog'\n", str); return -1; } return 0; @@ -649,6 +649,16 @@ int account_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { s->mobile_number = aa; // string string } else + if ((aret = argcmp(str, "OutscaleLoginAllowed")) == 0 || aret == '=' || aret == '.') { + s->is_set_outscale_login_allowed = 1; + if (!aa || !strcasecmp(aa, "true")) { + s->outscale_login_allowed = 1; + } else if (!strcasecmp(aa, "false")) { + s->outscale_login_allowed = 0; + } else { + BAD_RET("OutscaleLoginAllowed require true/false\n"); + } + } else if ((aret = argcmp(str, "PhoneNumber")) == 0 || aret == '=' || aret == '.') { TRY(!aa, "PhoneNumber argument missing\n"); s->phone_number = aa; // string string @@ -670,7 +680,7 @@ int account_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Account'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Account'\n", str); return -1; } return 0; @@ -685,7 +695,7 @@ int actions_on_next_boot_parser(void *v_s, char *str, char *aa, struct ptr_array } else { - fprintf(stderr, "'%s' not an argumemt of 'ActionsOnNextBoot'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ActionsOnNextBoot'\n", str); return -1; } return 0; @@ -710,7 +720,7 @@ int api_access_policy_parser(void *v_s, char *str, char *aa, struct ptr_array *p } } else { - fprintf(stderr, "'%s' not an argumemt of 'ApiAccessPolicy'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ApiAccessPolicy'\n", str); return -1; } return 0; @@ -814,7 +824,7 @@ int api_access_rule_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) SET_NEXT(s->ip_ranges, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'ApiAccessRule'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ApiAccessRule'\n", str); return -1; } return 0; @@ -834,7 +844,7 @@ int application_sticky_cookie_policy_parser(void *v_s, char *str, char *aa, stru } else { - fprintf(stderr, "'%s' not an argumemt of 'ApplicationStickyCookiePolicy'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ApplicationStickyCookiePolicy'\n", str); return -1; } return 0; @@ -864,7 +874,7 @@ int backend_vm_health_parser(void *v_s, char *str, char *aa, struct ptr_array *p } else { - fprintf(stderr, "'%s' not an argumemt of 'BackendVmHealth'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'BackendVmHealth'\n", str); return -1; } return 0; @@ -896,7 +906,7 @@ int block_device_mapping_created_parser(void *v_s, char *str, char *aa, struct p } else { - fprintf(stderr, "'%s' not an argumemt of 'BlockDeviceMappingCreated'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'BlockDeviceMappingCreated'\n", str); return -1; } return 0; @@ -933,7 +943,7 @@ int block_device_mapping_image_parser(void *v_s, char *str, char *aa, struct ptr } else { - fprintf(stderr, "'%s' not an argumemt of 'BlockDeviceMappingImage'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'BlockDeviceMappingImage'\n", str); return -1; } return 0; @@ -975,7 +985,7 @@ int block_device_mapping_vm_creation_parser(void *v_s, char *str, char *aa, stru } else { - fprintf(stderr, "'%s' not an argumemt of 'BlockDeviceMappingVmCreation'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'BlockDeviceMappingVmCreation'\n", str); return -1; } return 0; @@ -1017,7 +1027,7 @@ int block_device_mapping_vm_update_parser(void *v_s, char *str, char *aa, struct } else { - fprintf(stderr, "'%s' not an argumemt of 'BlockDeviceMappingVmUpdate'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'BlockDeviceMappingVmUpdate'\n", str); return -1; } return 0; @@ -1052,7 +1062,7 @@ int bsu_created_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'BsuCreated'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'BsuCreated'\n", str); return -1; } return 0; @@ -1092,7 +1102,7 @@ int bsu_to_create_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'BsuToCreate'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'BsuToCreate'\n", str); return -1; } return 0; @@ -1117,7 +1127,7 @@ int bsu_to_update_vm_parser(void *v_s, char *str, char *aa, struct ptr_array *pa } else { - fprintf(stderr, "'%s' not an argumemt of 'BsuToUpdateVm'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'BsuToUpdateVm'\n", str); return -1; } return 0; @@ -1142,7 +1152,7 @@ int ca_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Ca'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Ca'\n", str); return -1; } return 0; @@ -1163,7 +1173,7 @@ int catalog_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Entries' require an index (example array ref CatalogEntry.Entries.0)\n"); else if (*endptr != '.') - BAD_RET("'Entries' require a .\n"); + BAD_RET("'Entries' require a '.'\n"); TRY_ALLOC_AT(s,entries, pa, pos, sizeof(*s->entries)); cascade_struct = &s->entries[pos]; cascade_parser = catalog_entry_parser; @@ -1177,7 +1187,7 @@ int catalog_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } } else { - fprintf(stderr, "'%s' not an argumemt of 'Catalog'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Catalog'\n", str); return -1; } return 0; @@ -1227,7 +1237,7 @@ int catalog_entry_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { s->unit_price = atof(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'CatalogEntry'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'CatalogEntry'\n", str); return -1; } return 0; @@ -1248,7 +1258,7 @@ int catalogs_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Entries' require an index (example array ref CatalogEntry.Entries.0)\n"); else if (*endptr != '.') - BAD_RET("'Entries' require a .\n"); + BAD_RET("'Entries' require a '.'\n"); TRY_ALLOC_AT(s,entries, pa, pos, sizeof(*s->entries)); cascade_struct = &s->entries[pos]; cascade_parser = catalog_entry_parser; @@ -1277,7 +1287,7 @@ int catalogs_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Catalogs'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Catalogs'\n", str); return -1; } return 0; @@ -1323,7 +1333,7 @@ int client_gateway_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -1337,7 +1347,7 @@ int client_gateway_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) } } else { - fprintf(stderr, "'%s' not an argumemt of 'ClientGateway'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ClientGateway'\n", str); return -1; } return 0; @@ -1412,7 +1422,7 @@ int consumption_entry_parser(void *v_s, char *str, char *aa, struct ptr_array *p s->value = atof(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'ConsumptionEntry'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ConsumptionEntry'\n", str); return -1; } return 0; @@ -1503,7 +1513,7 @@ int dedicated_group_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) SET_NEXT(s->vm_ids, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'DedicatedGroup'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'DedicatedGroup'\n", str); return -1; } return 0; @@ -1628,7 +1638,7 @@ int dhcp_options_set_parser(void *v_s, char *str, char *aa, struct ptr_array *pa if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -1642,7 +1652,7 @@ int dhcp_options_set_parser(void *v_s, char *str, char *aa, struct ptr_array *pa } } else { - fprintf(stderr, "'%s' not an argumemt of 'DhcpOptionsSet'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'DhcpOptionsSet'\n", str); return -1; } return 0; @@ -1687,7 +1697,7 @@ int direct_link_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'DirectLink'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'DirectLink'\n", str); return -1; } return 0; @@ -1732,7 +1742,7 @@ int direct_link_interface_parser(void *v_s, char *str, char *aa, struct ptr_arra s->vlan = atoll(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'DirectLinkInterface'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'DirectLinkInterface'\n", str); return -1; } return 0; @@ -1812,7 +1822,7 @@ int direct_link_interfaces_parser(void *v_s, char *str, char *aa, struct ptr_arr s->vlan = atoll(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'DirectLinkInterfaces'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'DirectLinkInterfaces'\n", str); return -1; } return 0; @@ -1837,7 +1847,7 @@ int errors_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Errors'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Errors'\n", str); return -1; } return 0; @@ -1903,7 +1913,7 @@ int filters_access_keys_parser(void *v_s, char *str, char *aa, struct ptr_array SET_NEXT(s->states, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersAccessKeys'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersAccessKeys'\n", str); return -1; } return 0; @@ -2053,7 +2063,7 @@ int filters_api_access_rule_parser(void *v_s, char *str, char *aa, struct ptr_ar SET_NEXT(s->ip_ranges, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersApiAccessRule'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersApiAccessRule'\n", str); return -1; } return 0; @@ -2269,7 +2279,7 @@ int filters_api_log_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) SET_NEXT(s->response_status_codes, atoi(aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersApiLog'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersApiLog'\n", str); return -1; } return 0; @@ -2363,7 +2373,7 @@ int filters_ca_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { SET_NEXT(s->descriptions, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersCa'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersCa'\n", str); return -1; } return 0; @@ -2393,7 +2403,7 @@ int filters_catalogs_parser(void *v_s, char *str, char *aa, struct ptr_array *pa } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersCatalogs'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersCatalogs'\n", str); return -1; } return 0; @@ -2627,7 +2637,7 @@ int filters_client_gateway_parser(void *v_s, char *str, char *aa, struct ptr_arr SET_NEXT(s->tags, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersClientGateway'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersClientGateway'\n", str); return -1; } return 0; @@ -2749,7 +2759,7 @@ int filters_dedicated_group_parser(void *v_s, char *str, char *aa, struct ptr_ar SET_NEXT(s->subregion_names, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersDedicatedGroup'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersDedicatedGroup'\n", str); return -1; } return 0; @@ -2993,7 +3003,7 @@ int filters_dhcp_options_parser(void *v_s, char *str, char *aa, struct ptr_array SET_NEXT(s->tags, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersDhcpOptions'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersDhcpOptions'\n", str); return -1; } return 0; @@ -3031,7 +3041,7 @@ int filters_direct_link_parser(void *v_s, char *str, char *aa, struct ptr_array SET_NEXT(s->direct_link_ids, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersDirectLink'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersDirectLink'\n", str); return -1; } return 0; @@ -3097,7 +3107,7 @@ int filters_direct_link_interface_parser(void *v_s, char *str, char *aa, struct SET_NEXT(s->direct_link_interface_ids, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersDirectLinkInterface'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersDirectLinkInterface'\n", str); return -1; } return 0; @@ -3135,7 +3145,7 @@ int filters_export_task_parser(void *v_s, char *str, char *aa, struct ptr_array SET_NEXT(s->task_ids, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersExportTask'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersExportTask'\n", str); return -1; } return 0; @@ -3323,7 +3333,7 @@ int filters_flexible_gpu_parser(void *v_s, char *str, char *aa, struct ptr_array SET_NEXT(s->vm_ids, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersFlexibleGpu'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersFlexibleGpu'\n", str); return -1; } return 0; @@ -4007,7 +4017,7 @@ int filters_image_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { SET_NEXT(s->virtualization_types, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersImage'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersImage'\n", str); return -1; } return 0; @@ -4185,7 +4195,7 @@ int filters_internet_service_parser(void *v_s, char *str, char *aa, struct ptr_a SET_NEXT(s->tags, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersInternetService'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersInternetService'\n", str); return -1; } return 0; @@ -4391,7 +4401,7 @@ int filters_keypair_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) SET_NEXT(s->tags, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersKeypair'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersKeypair'\n", str); return -1; } return 0; @@ -4429,7 +4439,7 @@ int filters_listener_rule_parser(void *v_s, char *str, char *aa, struct ptr_arra SET_NEXT(s->listener_rule_names, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersListenerRule'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersListenerRule'\n", str); return -1; } return 0; @@ -4467,7 +4477,7 @@ int filters_load_balancer_parser(void *v_s, char *str, char *aa, struct ptr_arra SET_NEXT(s->load_balancer_names, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersLoadBalancer'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersLoadBalancer'\n", str); return -1; } return 0; @@ -4701,7 +4711,7 @@ int filters_nat_service_parser(void *v_s, char *str, char *aa, struct ptr_array SET_NEXT(s->tags, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersNatService'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersNatService'\n", str); return -1; } return 0; @@ -4917,7 +4927,7 @@ int filters_net_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { SET_NEXT(s->tags, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersNet'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersNet'\n", str); return -1; } return 0; @@ -5123,7 +5133,7 @@ int filters_net_access_point_parser(void *v_s, char *str, char *aa, struct ptr_a SET_NEXT(s->tags, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersNetAccessPoint'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersNetAccessPoint'\n", str); return -1; } return 0; @@ -5497,7 +5507,7 @@ int filters_net_peering_parser(void *v_s, char *str, char *aa, struct ptr_array SET_NEXT(s->tags, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersNetPeering'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersNetPeering'\n", str); return -1; } return 0; @@ -6265,7 +6275,7 @@ int filters_nic_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { SET_NEXT(s->tags, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersNic'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersNic'\n", str); return -1; } return 0; @@ -6303,7 +6313,7 @@ int filters_product_type_parser(void *v_s, char *str, char *aa, struct ptr_array SET_NEXT(s->product_type_ids, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersProductType'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersProductType'\n", str); return -1; } return 0; @@ -6621,7 +6631,7 @@ int filters_public_ip_parser(void *v_s, char *str, char *aa, struct ptr_array *p SET_NEXT(s->vm_ids, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersPublicIp'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersPublicIp'\n", str); return -1; } return 0; @@ -6743,7 +6753,7 @@ int filters_quota_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { SET_NEXT(s->short_descriptions, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersQuota'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersQuota'\n", str); return -1; } return 0; @@ -7211,7 +7221,7 @@ int filters_route_table_parser(void *v_s, char *str, char *aa, struct ptr_array SET_NEXT(s->tags, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersRouteTable'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersRouteTable'\n", str); return -1; } return 0; @@ -7809,7 +7819,7 @@ int filters_security_group_parser(void *v_s, char *str, char *aa, struct ptr_arr SET_NEXT(s->tags, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersSecurityGroup'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersSecurityGroup'\n", str); return -1; } return 0; @@ -7847,7 +7857,7 @@ int filters_server_certificate_parser(void *v_s, char *str, char *aa, struct ptr SET_NEXT(s->paths, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersServerCertificate'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersServerCertificate'\n", str); return -1; } return 0; @@ -7913,7 +7923,7 @@ int filters_service_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) SET_NEXT(s->service_names, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersService'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersService'\n", str); return -1; } return 0; @@ -8307,7 +8317,7 @@ int filters_snapshot_parser(void *v_s, char *str, char *aa, struct ptr_array *pa SET_NEXT(s->volume_sizes, atoi(aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersSnapshot'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersSnapshot'\n", str); return -1; } return 0; @@ -8569,7 +8579,7 @@ int filters_subnet_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) SET_NEXT(s->tags, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersSubnet'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersSubnet'\n", str); return -1; } return 0; @@ -8663,7 +8673,7 @@ int filters_subregion_parser(void *v_s, char *str, char *aa, struct ptr_array *p SET_NEXT(s->subregion_names, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersSubregion'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersSubregion'\n", str); return -1; } return 0; @@ -8785,7 +8795,7 @@ int filters_tag_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { SET_NEXT(s->values, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersTag'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersTag'\n", str); return -1; } return 0; @@ -8828,7 +8838,7 @@ int filters_user_group_parser(void *v_s, char *str, char *aa, struct ptr_array * SET_NEXT(s->user_group_ids, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersUserGroup'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersUserGroup'\n", str); return -1; } return 0; @@ -8866,7 +8876,7 @@ int filters_users_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { SET_NEXT(s->user_ids, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersUsers'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersUsers'\n", str); return -1; } return 0; @@ -9100,7 +9110,7 @@ int filters_virtual_gateway_parser(void *v_s, char *str, char *aa, struct ptr_ar SET_NEXT(s->virtual_gateway_ids, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersVirtualGateway'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersVirtualGateway'\n", str); return -1; } return 0; @@ -10840,7 +10850,7 @@ int filters_vm_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { SET_NEXT(s->vm_types, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersVm'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersVm'\n", str); return -1; } return 0; @@ -11130,7 +11140,7 @@ int filters_vm_group_parser(void *v_s, char *str, char *aa, struct ptr_array *pa SET_NEXT(s->vm_template_ids, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersVmGroup'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersVmGroup'\n", str); return -1; } return 0; @@ -11476,7 +11486,7 @@ int filters_vm_template_parser(void *v_s, char *str, char *aa, struct ptr_array SET_NEXT(s->vm_template_names, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersVmTemplate'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersVmTemplate'\n", str); return -1; } return 0; @@ -11720,7 +11730,7 @@ int filters_vm_type_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) SET_NEXT(s->volume_sizes, atoi(aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersVmType'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersVmType'\n", str); return -1; } return 0; @@ -11926,7 +11936,7 @@ int filters_vms_state_parser(void *v_s, char *str, char *aa, struct ptr_array *p SET_NEXT(s->vm_states, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersVmsState'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersVmsState'\n", str); return -1; } return 0; @@ -12366,7 +12376,7 @@ int filters_volume_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) SET_NEXT(s->volume_types, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersVolume'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersVolume'\n", str); return -1; } return 0; @@ -12666,7 +12676,7 @@ int filters_vpn_connection_parser(void *v_s, char *str, char *aa, struct ptr_arr SET_NEXT(s->vpn_connection_ids, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FiltersVpnConnection'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FiltersVpnConnection'\n", str); return -1; } return 0; @@ -12716,7 +12726,7 @@ int flexible_gpu_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'FlexibleGpu'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FlexibleGpu'\n", str); return -1; } return 0; @@ -12774,7 +12784,7 @@ int flexible_gpu_catalog_parser(void *v_s, char *str, char *aa, struct ptr_array s->vram = atoll(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'FlexibleGpuCatalog'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'FlexibleGpuCatalog'\n", str); return -1; } return 0; @@ -12819,7 +12829,7 @@ int health_check_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { s->unhealthy_threshold = atoll(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'HealthCheck'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'HealthCheck'\n", str); return -1; } return 0; @@ -12855,7 +12865,7 @@ int image_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'BlockDeviceMappings' require an index (example array ref BlockDeviceMappingImage.BlockDeviceMappings.0)\n"); else if (*endptr != '.') - BAD_RET("'BlockDeviceMappings' require a .\n"); + BAD_RET("'BlockDeviceMappings' require a '.'\n"); TRY_ALLOC_AT(s,block_device_mappings, pa, pos, sizeof(*s->block_device_mappings)); cascade_struct = &s->block_device_mappings[pos]; cascade_parser = block_device_mapping_image_parser; @@ -13025,7 +13035,7 @@ int image_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -13039,7 +13049,7 @@ int image_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } } else { - fprintf(stderr, "'%s' not an argumemt of 'Image'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Image'\n", str); return -1; } return 0; @@ -13097,7 +13107,7 @@ int image_export_task_parser(void *v_s, char *str, char *aa, struct ptr_array *p if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -13116,7 +13126,7 @@ int image_export_task_parser(void *v_s, char *str, char *aa, struct ptr_array *p } else { - fprintf(stderr, "'%s' not an argumemt of 'ImageExportTask'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ImageExportTask'\n", str); return -1; } return 0; @@ -13136,7 +13146,7 @@ int inline_policy_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'InlinePolicy'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'InlinePolicy'\n", str); return -1; } return 0; @@ -13172,7 +13182,7 @@ int internet_service_parser(void *v_s, char *str, char *aa, struct ptr_array *pa if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -13186,7 +13196,7 @@ int internet_service_parser(void *v_s, char *str, char *aa, struct ptr_array *pa } } else { - fprintf(stderr, "'%s' not an argumemt of 'InternetService'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'InternetService'\n", str); return -1; } return 0; @@ -13227,7 +13237,7 @@ int keypair_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -13241,7 +13251,7 @@ int keypair_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } } else { - fprintf(stderr, "'%s' not an argumemt of 'Keypair'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Keypair'\n", str); return -1; } return 0; @@ -13287,7 +13297,7 @@ int keypair_created_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -13301,7 +13311,7 @@ int keypair_created_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) } } else { - fprintf(stderr, "'%s' not an argumemt of 'KeypairCreated'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'KeypairCreated'\n", str); return -1; } return 0; @@ -13346,7 +13356,7 @@ int link_nic_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'LinkNic'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'LinkNic'\n", str); return -1; } return 0; @@ -13381,7 +13391,7 @@ int link_nic_light_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) } else { - fprintf(stderr, "'%s' not an argumemt of 'LinkNicLight'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'LinkNicLight'\n", str); return -1; } return 0; @@ -13406,7 +13416,7 @@ int link_nic_to_update_parser(void *v_s, char *str, char *aa, struct ptr_array * } else { - fprintf(stderr, "'%s' not an argumemt of 'LinkNicToUpdate'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'LinkNicToUpdate'\n", str); return -1; } return 0; @@ -13441,7 +13451,7 @@ int link_public_ip_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) } else { - fprintf(stderr, "'%s' not an argumemt of 'LinkPublicIp'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'LinkPublicIp'\n", str); return -1; } return 0; @@ -13466,7 +13476,7 @@ int link_public_ip_light_for_vm_parser(void *v_s, char *str, char *aa, struct pt } else { - fprintf(stderr, "'%s' not an argumemt of 'LinkPublicIpLightForVm'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'LinkPublicIpLightForVm'\n", str); return -1; } return 0; @@ -13506,7 +13516,7 @@ int link_route_table_parser(void *v_s, char *str, char *aa, struct ptr_array *pa } else { - fprintf(stderr, "'%s' not an argumemt of 'LinkRouteTable'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'LinkRouteTable'\n", str); return -1; } return 0; @@ -13541,7 +13551,7 @@ int linked_policy_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'LinkedPolicy'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'LinkedPolicy'\n", str); return -1; } return 0; @@ -13581,7 +13591,7 @@ int linked_volume_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'LinkedVolume'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'LinkedVolume'\n", str); return -1; } return 0; @@ -13644,7 +13654,7 @@ int listener_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Listener'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Listener'\n", str); return -1; } return 0; @@ -13679,7 +13689,7 @@ int listener_for_creation_parser(void *v_s, char *str, char *aa, struct ptr_arra } else { - fprintf(stderr, "'%s' not an argumemt of 'ListenerForCreation'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ListenerForCreation'\n", str); return -1; } return 0; @@ -13752,7 +13762,7 @@ int listener_rule_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { SET_NEXT(s->vm_ids, (aa), pa); } else { - fprintf(stderr, "'%s' not an argumemt of 'ListenerRule'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ListenerRule'\n", str); return -1; } return 0; @@ -13787,7 +13797,7 @@ int listener_rule_for_creation_parser(void *v_s, char *str, char *aa, struct ptr s->priority = atoll(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'ListenerRuleForCreation'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ListenerRuleForCreation'\n", str); return -1; } return 0; @@ -13825,7 +13835,7 @@ int load_balancer_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'ApplicationStickyCookiePolicies' require an index (example array ref ApplicationStickyCookiePolicy.ApplicationStickyCookiePolicies.0)\n"); else if (*endptr != '.') - BAD_RET("'ApplicationStickyCookiePolicies' require a .\n"); + BAD_RET("'ApplicationStickyCookiePolicies' require a '.'\n"); TRY_ALLOC_AT(s,application_sticky_cookie_policies, pa, pos, sizeof(*s->application_sticky_cookie_policies)); cascade_struct = &s->application_sticky_cookie_policies[pos]; cascade_parser = application_sticky_cookie_policy_parser; @@ -13928,7 +13938,7 @@ int load_balancer_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Listeners' require an index (example array ref Listener.Listeners.0)\n"); else if (*endptr != '.') - BAD_RET("'Listeners' require a .\n"); + BAD_RET("'Listeners' require a '.'\n"); TRY_ALLOC_AT(s,listeners, pa, pos, sizeof(*s->listeners)); cascade_struct = &s->listeners[pos]; cascade_parser = listener_parser; @@ -13958,7 +13968,7 @@ int load_balancer_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'LoadBalancerStickyCookiePolicies' require an index (example array ref LoadBalancerStickyCookiePolicy.LoadBalancerStickyCookiePolicies.0)\n"); else if (*endptr != '.') - BAD_RET("'LoadBalancerStickyCookiePolicies' require a .\n"); + BAD_RET("'LoadBalancerStickyCookiePolicies' require a '.'\n"); TRY_ALLOC_AT(s,load_balancer_sticky_cookie_policies, pa, pos, sizeof(*s->load_balancer_sticky_cookie_policies)); cascade_struct = &s->load_balancer_sticky_cookie_policies[pos]; cascade_parser = load_balancer_sticky_cookie_policy_parser; @@ -14109,7 +14119,7 @@ int load_balancer_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -14123,7 +14133,7 @@ int load_balancer_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } } else { - fprintf(stderr, "'%s' not an argumemt of 'LoadBalancer'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'LoadBalancer'\n", str); return -1; } return 0; @@ -14143,7 +14153,7 @@ int load_balancer_light_parser(void *v_s, char *str, char *aa, struct ptr_array s->load_balancer_port = atoll(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'LoadBalancerLight'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'LoadBalancerLight'\n", str); return -1; } return 0; @@ -14163,7 +14173,7 @@ int load_balancer_sticky_cookie_policy_parser(void *v_s, char *str, char *aa, st } else { - fprintf(stderr, "'%s' not an argumemt of 'LoadBalancerStickyCookiePolicy'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'LoadBalancerStickyCookiePolicy'\n", str); return -1; } return 0; @@ -14188,7 +14198,7 @@ int load_balancer_tag_parser(void *v_s, char *str, char *aa, struct ptr_array *p } else { - fprintf(stderr, "'%s' not an argumemt of 'LoadBalancerTag'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'LoadBalancerTag'\n", str); return -1; } return 0; @@ -14208,7 +14218,7 @@ int location_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Location'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Location'\n", str); return -1; } return 0; @@ -14298,7 +14308,7 @@ int log_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { s->response_status_code = atoll(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'Log'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Log'\n", str); return -1; } return 0; @@ -14328,7 +14338,7 @@ int maintenance_event_parser(void *v_s, char *str, char *aa, struct ptr_array *p } else { - fprintf(stderr, "'%s' not an argumemt of 'MaintenanceEvent'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'MaintenanceEvent'\n", str); return -1; } return 0; @@ -14353,7 +14363,7 @@ int minimal_policy_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) } else { - fprintf(stderr, "'%s' not an argumemt of 'MinimalPolicy'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'MinimalPolicy'\n", str); return -1; } return 0; @@ -14389,7 +14399,7 @@ int nat_service_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'PublicIps' require an index (example array ref PublicIpLight.PublicIps.0)\n"); else if (*endptr != '.') - BAD_RET("'PublicIps' require a .\n"); + BAD_RET("'PublicIps' require a '.'\n"); TRY_ALLOC_AT(s,public_ips, pa, pos, sizeof(*s->public_ips)); cascade_struct = &s->public_ips[pos]; cascade_parser = public_ip_light_parser; @@ -14424,7 +14434,7 @@ int nat_service_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -14438,7 +14448,7 @@ int nat_service_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } } else { - fprintf(stderr, "'%s' not an argumemt of 'NatService'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'NatService'\n", str); return -1; } return 0; @@ -14479,7 +14489,7 @@ int net_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -14498,7 +14508,7 @@ int net_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Net'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Net'\n", str); return -1; } return 0; @@ -14567,7 +14577,7 @@ int net_access_point_parser(void *v_s, char *str, char *aa, struct ptr_array *pa if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -14581,7 +14591,7 @@ int net_access_point_parser(void *v_s, char *str, char *aa, struct ptr_array *pa } } else { - fprintf(stderr, "'%s' not an argumemt of 'NetAccessPoint'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'NetAccessPoint'\n", str); return -1; } return 0; @@ -14663,7 +14673,7 @@ int net_peering_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -14677,7 +14687,7 @@ int net_peering_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } } else { - fprintf(stderr, "'%s' not an argumemt of 'NetPeering'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'NetPeering'\n", str); return -1; } return 0; @@ -14697,7 +14707,7 @@ int net_peering_state_parser(void *v_s, char *str, char *aa, struct ptr_array *p } else { - fprintf(stderr, "'%s' not an argumemt of 'NetPeeringState'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'NetPeeringState'\n", str); return -1; } return 0; @@ -14717,7 +14727,7 @@ int net_to_virtual_gateway_link_parser(void *v_s, char *str, char *aa, struct pt } else { - fprintf(stderr, "'%s' not an argumemt of 'NetToVirtualGatewayLink'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'NetToVirtualGatewayLink'\n", str); return -1; } return 0; @@ -14812,7 +14822,7 @@ int nic_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'PrivateIps' require an index (example array ref PrivateIp.PrivateIps.0)\n"); else if (*endptr != '.') - BAD_RET("'PrivateIps' require a .\n"); + BAD_RET("'PrivateIps' require a '.'\n"); TRY_ALLOC_AT(s,private_ips, pa, pos, sizeof(*s->private_ips)); cascade_struct = &s->private_ips[pos]; cascade_parser = private_ip_parser; @@ -14837,7 +14847,7 @@ int nic_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'SecurityGroups' require an index (example array ref SecurityGroupLight.SecurityGroups.0)\n"); else if (*endptr != '.') - BAD_RET("'SecurityGroups' require a .\n"); + BAD_RET("'SecurityGroups' require a '.'\n"); TRY_ALLOC_AT(s,security_groups, pa, pos, sizeof(*s->security_groups)); cascade_struct = &s->security_groups[pos]; cascade_parser = security_group_light_parser; @@ -14877,7 +14887,7 @@ int nic_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -14891,7 +14901,7 @@ int nic_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } } else { - fprintf(stderr, "'%s' not an argumemt of 'Nic'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Nic'\n", str); return -1; } return 0; @@ -14937,7 +14947,7 @@ int nic_for_vm_creation_parser(void *v_s, char *str, char *aa, struct ptr_array if (endptr == dot_pos) BAD_RET("'PrivateIps' require an index (example array ref PrivateIpLight.PrivateIps.0)\n"); else if (*endptr != '.') - BAD_RET("'PrivateIps' require a .\n"); + BAD_RET("'PrivateIps' require a '.'\n"); TRY_ALLOC_AT(s,private_ips, pa, pos, sizeof(*s->private_ips)); cascade_struct = &s->private_ips[pos]; cascade_parser = private_ip_light_parser; @@ -14989,7 +14999,7 @@ int nic_for_vm_creation_parser(void *v_s, char *str, char *aa, struct ptr_array } else { - fprintf(stderr, "'%s' not an argumemt of 'NicForVmCreation'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'NicForVmCreation'\n", str); return -1; } return 0; @@ -15084,7 +15094,7 @@ int nic_light_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'PrivateIps' require an index (example array ref PrivateIpLightForVm.PrivateIps.0)\n"); else if (*endptr != '.') - BAD_RET("'PrivateIps' require a .\n"); + BAD_RET("'PrivateIps' require a '.'\n"); TRY_ALLOC_AT(s,private_ips, pa, pos, sizeof(*s->private_ips)); cascade_struct = &s->private_ips[pos]; cascade_parser = private_ip_light_for_vm_parser; @@ -15109,7 +15119,7 @@ int nic_light_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'SecurityGroups' require an index (example array ref SecurityGroupLight.SecurityGroups.0)\n"); else if (*endptr != '.') - BAD_RET("'SecurityGroups' require a .\n"); + BAD_RET("'SecurityGroups' require a '.'\n"); TRY_ALLOC_AT(s,security_groups, pa, pos, sizeof(*s->security_groups)); cascade_struct = &s->security_groups[pos]; cascade_parser = security_group_light_parser; @@ -15133,7 +15143,7 @@ int nic_light_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'NicLight'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'NicLight'\n", str); return -1; } return 0; @@ -15153,7 +15163,7 @@ int osu_api_key_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'OsuApiKey'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'OsuApiKey'\n", str); return -1; } return 0; @@ -15183,7 +15193,7 @@ int osu_export_image_export_task_parser(void *v_s, char *str, char *aa, struct p } else { - fprintf(stderr, "'%s' not an argumemt of 'OsuExportImageExportTask'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'OsuExportImageExportTask'\n", str); return -1; } return 0; @@ -15208,7 +15218,7 @@ int osu_export_snapshot_export_task_parser(void *v_s, char *str, char *aa, struc } else { - fprintf(stderr, "'%s' not an argumemt of 'OsuExportSnapshotExportTask'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'OsuExportSnapshotExportTask'\n", str); return -1; } return 0; @@ -15255,7 +15265,7 @@ int osu_export_to_create_parser(void *v_s, char *str, char *aa, struct ptr_array } else { - fprintf(stderr, "'%s' not an argumemt of 'OsuExportToCreate'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'OsuExportToCreate'\n", str); return -1; } return 0; @@ -15303,7 +15313,7 @@ int permissions_on_resource_parser(void *v_s, char *str, char *aa, struct ptr_ar } } else { - fprintf(stderr, "'%s' not an argumemt of 'PermissionsOnResource'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'PermissionsOnResource'\n", str); return -1; } return 0; @@ -15347,7 +15357,7 @@ int permissions_on_resource_creation_parser(void *v_s, char *str, char *aa, stru } } else { - fprintf(stderr, "'%s' not an argumemt of 'PermissionsOnResourceCreation'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'PermissionsOnResourceCreation'\n", str); return -1; } return 0; @@ -15494,7 +15504,7 @@ int phase1_options_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) } else { - fprintf(stderr, "'%s' not an argumemt of 'Phase1Options'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Phase1Options'\n", str); return -1; } return 0; @@ -15598,7 +15608,7 @@ int phase2_options_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) } else { - fprintf(stderr, "'%s' not an argumemt of 'Phase2Options'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Phase2Options'\n", str); return -1; } return 0; @@ -15618,7 +15628,7 @@ int placement_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Placement'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Placement'\n", str); return -1; } return 0; @@ -15683,7 +15693,7 @@ int policy_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { s->resources_count = atoll(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'Policy'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Policy'\n", str); return -1; } return 0; @@ -15704,7 +15714,7 @@ int policy_entities_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) if (endptr == dot_pos) BAD_RET("'Accounts' require an index (example array ref MinimalPolicy.Accounts.0)\n"); else if (*endptr != '.') - BAD_RET("'Accounts' require a .\n"); + BAD_RET("'Accounts' require a '.'\n"); TRY_ALLOC_AT(s,accounts, pa, pos, sizeof(*s->accounts)); cascade_struct = &s->accounts[pos]; cascade_parser = minimal_policy_parser; @@ -15729,7 +15739,7 @@ int policy_entities_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) if (endptr == dot_pos) BAD_RET("'Groups' require an index (example array ref MinimalPolicy.Groups.0)\n"); else if (*endptr != '.') - BAD_RET("'Groups' require a .\n"); + BAD_RET("'Groups' require a '.'\n"); TRY_ALLOC_AT(s,groups, pa, pos, sizeof(*s->groups)); cascade_struct = &s->groups[pos]; cascade_parser = minimal_policy_parser; @@ -15784,7 +15794,7 @@ int policy_entities_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) if (endptr == dot_pos) BAD_RET("'Users' require an index (example array ref MinimalPolicy.Users.0)\n"); else if (*endptr != '.') - BAD_RET("'Users' require a .\n"); + BAD_RET("'Users' require a '.'\n"); TRY_ALLOC_AT(s,users, pa, pos, sizeof(*s->users)); cascade_struct = &s->users[pos]; cascade_parser = minimal_policy_parser; @@ -15798,7 +15808,7 @@ int policy_entities_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) } } else { - fprintf(stderr, "'%s' not an argumemt of 'PolicyEntities'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'PolicyEntities'\n", str); return -1; } return 0; @@ -15833,7 +15843,7 @@ int policy_version_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) } else { - fprintf(stderr, "'%s' not an argumemt of 'PolicyVersion'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'PolicyVersion'\n", str); return -1; } return 0; @@ -15880,7 +15890,7 @@ int private_ip_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'PrivateIp'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'PrivateIp'\n", str); return -1; } return 0; @@ -15905,7 +15915,7 @@ int private_ip_light_parser(void *v_s, char *str, char *aa, struct ptr_array *pa } else { - fprintf(stderr, "'%s' not an argumemt of 'PrivateIpLight'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'PrivateIpLight'\n", str); return -1; } return 0; @@ -15952,7 +15962,7 @@ int private_ip_light_for_vm_parser(void *v_s, char *str, char *aa, struct ptr_ar } else { - fprintf(stderr, "'%s' not an argumemt of 'PrivateIpLightForVm'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'PrivateIpLightForVm'\n", str); return -1; } return 0; @@ -15977,7 +15987,7 @@ int product_type_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'ProductType'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ProductType'\n", str); return -1; } return 0; @@ -16028,7 +16038,7 @@ int public_ip_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -16047,7 +16057,7 @@ int public_ip_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'PublicIp'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'PublicIp'\n", str); return -1; } return 0; @@ -16067,7 +16077,7 @@ int public_ip_light_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) } else { - fprintf(stderr, "'%s' not an argumemt of 'PublicIpLight'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'PublicIpLight'\n", str); return -1; } return 0; @@ -16112,7 +16122,7 @@ int quota_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { s->used_value = atoll(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'Quota'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Quota'\n", str); return -1; } return 0; @@ -16138,7 +16148,7 @@ int quota_types_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Quotas' require an index (example array ref Quota.Quotas.0)\n"); else if (*endptr != '.') - BAD_RET("'Quotas' require a .\n"); + BAD_RET("'Quotas' require a '.'\n"); TRY_ALLOC_AT(s,quotas, pa, pos, sizeof(*s->quotas)); cascade_struct = &s->quotas[pos]; cascade_parser = quota_parser; @@ -16152,7 +16162,7 @@ int quota_types_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } } else { - fprintf(stderr, "'%s' not an argumemt of 'QuotaTypes'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'QuotaTypes'\n", str); return -1; } return 0; @@ -16167,7 +16177,7 @@ int read_linked_policies_filters_parser(void *v_s, char *str, char *aa, struct p } else { - fprintf(stderr, "'%s' not an argumemt of 'ReadLinkedPoliciesFilters'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ReadLinkedPoliciesFilters'\n", str); return -1; } return 0; @@ -16197,7 +16207,7 @@ int read_policies_filters_parser(void *v_s, char *str, char *aa, struct ptr_arra } else { - fprintf(stderr, "'%s' not an argumemt of 'ReadPoliciesFilters'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ReadPoliciesFilters'\n", str); return -1; } return 0; @@ -16217,7 +16227,7 @@ int region_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Region'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Region'\n", str); return -1; } return 0; @@ -16232,7 +16242,7 @@ int resource_load_balancer_tag_parser(void *v_s, char *str, char *aa, struct ptr } else { - fprintf(stderr, "'%s' not an argumemt of 'ResourceLoadBalancerTag'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ResourceLoadBalancerTag'\n", str); return -1; } return 0; @@ -16252,7 +16262,7 @@ int resource_tag_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'ResourceTag'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ResourceTag'\n", str); return -1; } return 0; @@ -16317,7 +16327,7 @@ int route_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Route'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Route'\n", str); return -1; } return 0; @@ -16342,7 +16352,7 @@ int route_light_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'RouteLight'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'RouteLight'\n", str); return -1; } return 0; @@ -16357,7 +16367,7 @@ int route_propagating_virtual_gateway_parser(void *v_s, char *str, char *aa, str } else { - fprintf(stderr, "'%s' not an argumemt of 'RoutePropagatingVirtualGateway'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'RoutePropagatingVirtualGateway'\n", str); return -1; } return 0; @@ -16378,7 +16388,7 @@ int route_table_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'LinkRouteTables' require an index (example array ref LinkRouteTable.LinkRouteTables.0)\n"); else if (*endptr != '.') - BAD_RET("'LinkRouteTables' require a .\n"); + BAD_RET("'LinkRouteTables' require a '.'\n"); TRY_ALLOC_AT(s,link_route_tables, pa, pos, sizeof(*s->link_route_tables)); cascade_struct = &s->link_route_tables[pos]; cascade_parser = link_route_table_parser; @@ -16408,7 +16418,7 @@ int route_table_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'RoutePropagatingVirtualGateways' require an index (example array ref RoutePropagatingVirtualGateway.RoutePropagatingVirtualGateways.0)\n"); else if (*endptr != '.') - BAD_RET("'RoutePropagatingVirtualGateways' require a .\n"); + BAD_RET("'RoutePropagatingVirtualGateways' require a '.'\n"); TRY_ALLOC_AT(s,route_propagating_virtual_gateways, pa, pos, sizeof(*s->route_propagating_virtual_gateways)); cascade_struct = &s->route_propagating_virtual_gateways[pos]; cascade_parser = route_propagating_virtual_gateway_parser; @@ -16438,7 +16448,7 @@ int route_table_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Routes' require an index (example array ref Route.Routes.0)\n"); else if (*endptr != '.') - BAD_RET("'Routes' require a .\n"); + BAD_RET("'Routes' require a '.'\n"); TRY_ALLOC_AT(s,routes, pa, pos, sizeof(*s->routes)); cascade_struct = &s->routes[pos]; cascade_parser = route_parser; @@ -16463,7 +16473,7 @@ int route_table_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -16477,7 +16487,7 @@ int route_table_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } } else { - fprintf(stderr, "'%s' not an argumemt of 'RouteTable'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'RouteTable'\n", str); return -1; } return 0; @@ -16508,7 +16518,7 @@ int security_group_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) if (endptr == dot_pos) BAD_RET("'InboundRules' require an index (example array ref SecurityGroupRule.InboundRules.0)\n"); else if (*endptr != '.') - BAD_RET("'InboundRules' require a .\n"); + BAD_RET("'InboundRules' require a '.'\n"); TRY_ALLOC_AT(s,inbound_rules, pa, pos, sizeof(*s->inbound_rules)); cascade_struct = &s->inbound_rules[pos]; cascade_parser = security_group_rule_parser; @@ -16538,7 +16548,7 @@ int security_group_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) if (endptr == dot_pos) BAD_RET("'OutboundRules' require an index (example array ref SecurityGroupRule.OutboundRules.0)\n"); else if (*endptr != '.') - BAD_RET("'OutboundRules' require a .\n"); + BAD_RET("'OutboundRules' require a '.'\n"); TRY_ALLOC_AT(s,outbound_rules, pa, pos, sizeof(*s->outbound_rules)); cascade_struct = &s->outbound_rules[pos]; cascade_parser = security_group_rule_parser; @@ -16573,7 +16583,7 @@ int security_group_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -16587,7 +16597,7 @@ int security_group_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) } } else { - fprintf(stderr, "'%s' not an argumemt of 'SecurityGroup'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'SecurityGroup'\n", str); return -1; } return 0; @@ -16607,7 +16617,7 @@ int security_group_light_parser(void *v_s, char *str, char *aa, struct ptr_array } else { - fprintf(stderr, "'%s' not an argumemt of 'SecurityGroupLight'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'SecurityGroupLight'\n", str); return -1; } return 0; @@ -16666,7 +16676,7 @@ int security_group_rule_parser(void *v_s, char *str, char *aa, struct ptr_array if (endptr == dot_pos) BAD_RET("'SecurityGroupsMembers' require an index (example array ref SecurityGroupsMember.SecurityGroupsMembers.0)\n"); else if (*endptr != '.') - BAD_RET("'SecurityGroupsMembers' require a .\n"); + BAD_RET("'SecurityGroupsMembers' require a '.'\n"); TRY_ALLOC_AT(s,security_groups_members, pa, pos, sizeof(*s->security_groups_members)); cascade_struct = &s->security_groups_members[pos]; cascade_parser = security_groups_member_parser; @@ -16713,7 +16723,7 @@ int security_group_rule_parser(void *v_s, char *str, char *aa, struct ptr_array s->to_port_range = atoll(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'SecurityGroupRule'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'SecurityGroupRule'\n", str); return -1; } return 0; @@ -16738,7 +16748,7 @@ int security_groups_member_parser(void *v_s, char *str, char *aa, struct ptr_arr } else { - fprintf(stderr, "'%s' not an argumemt of 'SecurityGroupsMember'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'SecurityGroupsMember'\n", str); return -1; } return 0; @@ -16778,7 +16788,7 @@ int server_certificate_parser(void *v_s, char *str, char *aa, struct ptr_array * } else { - fprintf(stderr, "'%s' not an argumemt of 'ServerCertificate'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'ServerCertificate'\n", str); return -1; } return 0; @@ -16826,7 +16836,7 @@ int service_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Service'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Service'\n", str); return -1; } return 0; @@ -16904,7 +16914,7 @@ int snapshot_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -16928,7 +16938,7 @@ int snapshot_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { s->volume_size = atoll(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'Snapshot'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Snapshot'\n", str); return -1; } return 0; @@ -16986,7 +16996,7 @@ int snapshot_export_task_parser(void *v_s, char *str, char *aa, struct ptr_array if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -17005,7 +17015,7 @@ int snapshot_export_task_parser(void *v_s, char *str, char *aa, struct ptr_array } else { - fprintf(stderr, "'%s' not an argumemt of 'SnapshotExportTask'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'SnapshotExportTask'\n", str); return -1; } return 0; @@ -17030,7 +17040,7 @@ int source_net_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'SourceNet'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'SourceNet'\n", str); return -1; } return 0; @@ -17050,7 +17060,7 @@ int source_security_group_parser(void *v_s, char *str, char *aa, struct ptr_arra } else { - fprintf(stderr, "'%s' not an argumemt of 'SourceSecurityGroup'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'SourceSecurityGroup'\n", str); return -1; } return 0; @@ -17070,7 +17080,7 @@ int state_comment_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'StateComment'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'StateComment'\n", str); return -1; } return 0; @@ -17131,7 +17141,7 @@ int subnet_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -17145,7 +17155,7 @@ int subnet_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } } else { - fprintf(stderr, "'%s' not an argumemt of 'Subnet'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Subnet'\n", str); return -1; } return 0; @@ -17175,7 +17185,7 @@ int subregion_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Subregion'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Subregion'\n", str); return -1; } return 0; @@ -17205,7 +17215,7 @@ int tag_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Tag'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Tag'\n", str); return -1; } return 0; @@ -17245,7 +17255,7 @@ int unit_price_entry_parser(void *v_s, char *str, char *aa, struct ptr_array *pa s->unit_price = atof(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'UnitPriceEntry'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'UnitPriceEntry'\n", str); return -1; } return 0; @@ -17264,6 +17274,16 @@ int user_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { s->last_modification_date = aa; // string string } else + if ((aret = argcmp(str, "OutscaleLoginAllowed")) == 0 || aret == '=' || aret == '.') { + s->is_set_outscale_login_allowed = 1; + if (!aa || !strcasecmp(aa, "true")) { + s->outscale_login_allowed = 1; + } else if (!strcasecmp(aa, "false")) { + s->outscale_login_allowed = 0; + } else { + BAD_RET("OutscaleLoginAllowed require true/false\n"); + } + } else if ((aret = argcmp(str, "Path")) == 0 || aret == '=' || aret == '.') { TRY(!aa, "Path argument missing\n"); s->path = aa; // string string @@ -17285,7 +17305,7 @@ int user_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'User'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'User'\n", str); return -1; } return 0; @@ -17325,7 +17345,7 @@ int user_group_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'UserGroup'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'UserGroup'\n", str); return -1; } return 0; @@ -17360,7 +17380,7 @@ int vgw_telemetry_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'VgwTelemetry'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'VgwTelemetry'\n", str); return -1; } return 0; @@ -17386,7 +17406,7 @@ int virtual_gateway_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) if (endptr == dot_pos) BAD_RET("'NetToVirtualGatewayLinks' require an index (example array ref NetToVirtualGatewayLink.NetToVirtualGatewayLinks.0)\n"); else if (*endptr != '.') - BAD_RET("'NetToVirtualGatewayLinks' require a .\n"); + BAD_RET("'NetToVirtualGatewayLinks' require a '.'\n"); TRY_ALLOC_AT(s,net_to_virtual_gateway_links, pa, pos, sizeof(*s->net_to_virtual_gateway_links)); cascade_struct = &s->net_to_virtual_gateway_links[pos]; cascade_parser = net_to_virtual_gateway_link_parser; @@ -17416,7 +17436,7 @@ int virtual_gateway_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -17435,7 +17455,7 @@ int virtual_gateway_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) } else { - fprintf(stderr, "'%s' not an argumemt of 'VirtualGateway'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'VirtualGateway'\n", str); return -1; } return 0; @@ -17478,7 +17498,7 @@ int vm_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'BlockDeviceMappings' require an index (example array ref BlockDeviceMappingCreated.BlockDeviceMappings.0)\n"); else if (*endptr != '.') - BAD_RET("'BlockDeviceMappings' require a .\n"); + BAD_RET("'BlockDeviceMappings' require a '.'\n"); TRY_ALLOC_AT(s,block_device_mappings, pa, pos, sizeof(*s->block_device_mappings)); cascade_struct = &s->block_device_mappings[pos]; cascade_parser = block_device_mapping_created_parser; @@ -17583,7 +17603,7 @@ int vm_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Nics' require an index (example array ref NicLight.Nics.0)\n"); else if (*endptr != '.') - BAD_RET("'Nics' require a .\n"); + BAD_RET("'Nics' require a '.'\n"); TRY_ALLOC_AT(s,nics, pa, pos, sizeof(*s->nics)); cascade_struct = &s->nics[pos]; cascade_parser = nic_light_parser; @@ -17698,7 +17718,7 @@ int vm_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'SecurityGroups' require an index (example array ref SecurityGroupLight.SecurityGroups.0)\n"); else if (*endptr != '.') - BAD_RET("'SecurityGroups' require a .\n"); + BAD_RET("'SecurityGroups' require a '.'\n"); TRY_ALLOC_AT(s,security_groups, pa, pos, sizeof(*s->security_groups)); cascade_struct = &s->security_groups[pos]; cascade_parser = security_group_light_parser; @@ -17738,7 +17758,7 @@ int vm_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -17772,7 +17792,7 @@ int vm_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Vm'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Vm'\n", str); return -1; } return 0; @@ -17846,7 +17866,7 @@ int vm_group_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -17908,7 +17928,7 @@ int vm_group_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'VmGroup'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'VmGroup'\n", str); return -1; } return 0; @@ -17933,7 +17953,7 @@ int vm_state_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'VmState'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'VmState'\n", str); return -1; } return 0; @@ -17954,7 +17974,7 @@ int vm_states_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'MaintenanceEvents' require an index (example array ref MaintenanceEvent.MaintenanceEvents.0)\n"); else if (*endptr != '.') - BAD_RET("'MaintenanceEvents' require a .\n"); + BAD_RET("'MaintenanceEvents' require a '.'\n"); TRY_ALLOC_AT(s,maintenance_events, pa, pos, sizeof(*s->maintenance_events)); cascade_struct = &s->maintenance_events[pos]; cascade_parser = maintenance_event_parser; @@ -17983,7 +18003,7 @@ int vm_states_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'VmStates'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'VmStates'\n", str); return -1; } return 0; @@ -18044,7 +18064,7 @@ int vm_template_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -18068,7 +18088,7 @@ int vm_template_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'VmTemplate'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'VmTemplate'\n", str); return -1; } return 0; @@ -18133,7 +18153,7 @@ int vm_type_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { s->volume_size = atoll(aa); } else { - fprintf(stderr, "'%s' not an argumemt of 'VmType'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'VmType'\n", str); return -1; } return 0; @@ -18169,7 +18189,7 @@ int volume_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'LinkedVolumes' require an index (example array ref LinkedVolume.LinkedVolumes.0)\n"); else if (*endptr != '.') - BAD_RET("'LinkedVolumes' require a .\n"); + BAD_RET("'LinkedVolumes' require a '.'\n"); TRY_ALLOC_AT(s,linked_volumes, pa, pos, sizeof(*s->linked_volumes)); cascade_struct = &s->linked_volumes[pos]; cascade_parser = linked_volume_parser; @@ -18214,7 +18234,7 @@ int volume_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -18238,7 +18258,7 @@ int volume_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'Volume'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'Volume'\n", str); return -1; } return 0; @@ -18274,7 +18294,7 @@ int vpn_connection_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) if (endptr == dot_pos) BAD_RET("'Routes' require an index (example array ref RouteLight.Routes.0)\n"); else if (*endptr != '.') - BAD_RET("'Routes' require a .\n"); + BAD_RET("'Routes' require a '.'\n"); TRY_ALLOC_AT(s,routes, pa, pos, sizeof(*s->routes)); cascade_struct = &s->routes[pos]; cascade_parser = route_light_parser; @@ -18314,7 +18334,7 @@ int vpn_connection_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -18339,7 +18359,7 @@ int vpn_connection_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) if (endptr == dot_pos) BAD_RET("'VgwTelemetries' require an index (example array ref VgwTelemetry.VgwTelemetries.0)\n"); else if (*endptr != '.') - BAD_RET("'VgwTelemetries' require a .\n"); + BAD_RET("'VgwTelemetries' require a '.'\n"); TRY_ALLOC_AT(s,vgw_telemetries, pa, pos, sizeof(*s->vgw_telemetries)); cascade_struct = &s->vgw_telemetries[pos]; cascade_parser = vgw_telemetry_parser; @@ -18380,7 +18400,7 @@ int vpn_connection_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) } } else { - fprintf(stderr, "'%s' not an argumemt of 'VpnConnection'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'VpnConnection'\n", str); return -1; } return 0; @@ -18429,7 +18449,7 @@ int vpn_options_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } else { - fprintf(stderr, "'%s' not an argumemt of 'VpnOptions'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'VpnOptions'\n", str); return -1; } return 0; @@ -18599,7 +18619,7 @@ int with_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) { } } else { - fprintf(stderr, "'%s' not an argumemt of 'With'\n", str); + fprintf(stderr, "'%s' is not an argumemt of 'With'\n", str); return -1; } return 0; @@ -18673,7 +18693,7 @@ int main(int ac, char **av) auth_str = av[i+1]; ++i; } else { - fprintf(stderr, "--auth-method seems weirds\n"); + fprintf(stderr, "unexpected auth-method parameter\n"); return 1; } auth_m = str_auth_method_to_int(auth_str); @@ -18687,7 +18707,7 @@ int main(int ac, char **av) auth_str = av[i+1]; ++i; } else { - fprintf(stderr, "--authentication_method seems weirds\n"); + fprintf(stderr, "unexpected authentication_method parameter\n"); return 1; } auth_m = str_auth_method_to_int(auth_str); @@ -18701,7 +18721,7 @@ int main(int ac, char **av) cfg_str = av[i+1]; ++i; } else { - fprintf(stderr, "--config seems weirds\n"); + fprintf(stderr, "unexpected config parameter\n"); return 1; } osc_set_cfg_path(cfg_str); @@ -18713,7 +18733,7 @@ int main(int ac, char **av) profile = av[i+1]; ++i; } else { - fprintf(stderr, "--profile seems weirds"); + fprintf(stderr, "unexpected profile parameter"); return 1; } } else if (!argcmp2("--password", av[i], '=')) { @@ -18724,7 +18744,7 @@ int main(int ac, char **av) password = av[i+1]; ++i; } else { - fprintf(stderr, "--password seems weirds"); + fprintf(stderr, "unexpected password parameter"); return 1; } } else if (!argcmp2("--login", av[i], '=')) { @@ -18735,7 +18755,7 @@ int main(int ac, char **av) login = av[i+1]; ++i; } else { - fprintf(stderr, "--login seems weirds"); + fprintf(stderr, "unexpected login parameter"); return 1; } } @@ -18854,8 +18874,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -18908,7 +18927,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'AcceptNetPeering'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'AcceptNetPeering'\n", next_a); } i += incr; goto accept_net_peering_arg; @@ -18925,7 +18944,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called AcceptNetPeering (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called AcceptNetPeering (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -18965,8 +18984,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -19052,7 +19070,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'AddUserToUserGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'AddUserToUserGroup'\n", next_a); } i += incr; goto add_user_to_user_group_arg; @@ -19069,7 +19087,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called AddUserToUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called AddUserToUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -19109,8 +19127,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -19174,7 +19191,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CheckAuthentication'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CheckAuthentication'\n", next_a); } i += incr; goto check_authentication_arg; @@ -19191,7 +19208,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CheckAuthentication (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CheckAuthentication (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -19231,8 +19248,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -19307,7 +19323,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateAccessKey'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateAccessKey'\n", next_a); } i += incr; goto create_access_key_arg; @@ -19324,7 +19340,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateAccessKey (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateAccessKey (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -19364,8 +19380,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -19584,7 +19599,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateAccount'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateAccount'\n", next_a); } i += incr; goto create_account_arg; @@ -19601,7 +19616,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateAccount (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateAccount (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -19641,8 +19656,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -19797,7 +19811,7 @@ int main(int ac, char **av) SET_NEXT(s->ip_ranges, (aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'CreateApiAccessRule'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateApiAccessRule'\n", next_a); } i += incr; goto create_api_access_rule_arg; @@ -19814,7 +19828,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateApiAccessRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateApiAccessRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -19854,8 +19868,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -19919,7 +19932,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'CreateCa'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateCa'\n", next_a); } i += incr; goto create_ca_arg; @@ -19936,7 +19949,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateCa (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateCa (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -19976,8 +19989,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -20052,7 +20064,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateClientGateway'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateClientGateway'\n", next_a); } i += incr; goto create_client_gateway_arg; @@ -20069,7 +20081,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateClientGateway (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateClientGateway (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -20109,8 +20121,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -20185,7 +20196,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateDedicatedGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateDedicatedGroup'\n", next_a); } i += incr; goto create_dedicated_group_arg; @@ -20202,7 +20213,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateDedicatedGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateDedicatedGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -20242,8 +20253,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -20398,7 +20408,7 @@ int main(int ac, char **av) SET_NEXT(s->ntp_servers, (aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'CreateDhcpOptions'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateDhcpOptions'\n", next_a); } i += incr; goto create_dhcp_options_arg; @@ -20415,7 +20425,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateDhcpOptions (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateDhcpOptions (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -20455,8 +20465,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -20532,7 +20541,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'CreateDirectLinkInterface'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateDirectLinkInterface'\n", next_a); } i += incr; goto create_direct_link_interface_arg; @@ -20549,7 +20558,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateDirectLinkInterface (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateDirectLinkInterface (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -20589,8 +20598,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -20665,7 +20673,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateDirectLink'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateDirectLink'\n", next_a); } i += incr; goto create_direct_link_arg; @@ -20682,7 +20690,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateDirectLink (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateDirectLink (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -20722,8 +20730,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -20814,7 +20821,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateFlexibleGpu'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateFlexibleGpu'\n", next_a); } i += incr; goto create_flexible_gpu_arg; @@ -20831,7 +20838,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateFlexibleGpu (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateFlexibleGpu (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -20871,8 +20878,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -20948,7 +20954,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'CreateImageExportTask'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateImageExportTask'\n", next_a); } i += incr; goto create_image_export_task_arg; @@ -20965,7 +20971,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateImageExportTask (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateImageExportTask (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -21005,8 +21011,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -21060,7 +21065,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'BlockDeviceMappings' require an index (example array ref BlockDeviceMappingImage.BlockDeviceMappings.0)\n"); else if (*endptr != '.') - BAD_RET("'BlockDeviceMappings' require a .\n"); + BAD_RET("'BlockDeviceMappings' require a '.'\n"); TRY_ALLOC_AT(s,block_device_mappings, pa, pos, sizeof(*s->block_device_mappings)); cascade_struct = &s->block_device_mappings[pos]; cascade_parser = block_device_mapping_image_parser; @@ -21251,7 +21256,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateImage'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateImage'\n", next_a); } i += incr; goto create_image_arg; @@ -21268,7 +21273,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateImage (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateImage (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -21308,8 +21313,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -21351,7 +21355,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'CreateInternetService'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateInternetService'\n", next_a); } i += incr; goto create_internet_service_arg; @@ -21368,7 +21372,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateInternetService (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateInternetService (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -21408,8 +21412,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -21473,7 +21476,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateKeypair'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateKeypair'\n", next_a); } i += incr; goto create_keypair_arg; @@ -21490,7 +21493,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateKeypair (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateKeypair (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -21530,8 +21533,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -21653,7 +21655,7 @@ int main(int ac, char **av) SET_NEXT(s->vm_ids, (aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'CreateListenerRule'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateListenerRule'\n", next_a); } i += incr; goto create_listener_rule_arg; @@ -21670,7 +21672,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateListenerRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateListenerRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -21710,8 +21712,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -21770,7 +21771,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'Listeners' require an index (example array ref ListenerForCreation.Listeners.0)\n"); else if (*endptr != '.') - BAD_RET("'Listeners' require a .\n"); + BAD_RET("'Listeners' require a '.'\n"); TRY_ALLOC_AT(s,listeners, pa, pos, sizeof(*s->listeners)); cascade_struct = &s->listeners[pos]; cascade_parser = listener_for_creation_parser; @@ -21795,7 +21796,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateLoadBalancerListeners'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateLoadBalancerListeners'\n", next_a); } i += incr; goto create_load_balancer_listeners_arg; @@ -21812,7 +21813,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateLoadBalancerListeners (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateLoadBalancerListeners (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -21852,8 +21853,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -21950,7 +21950,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateLoadBalancerPolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateLoadBalancerPolicy'\n", next_a); } i += incr; goto create_load_balancer_policy_arg; @@ -21967,7 +21967,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateLoadBalancerPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateLoadBalancerPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -22007,8 +22007,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -22067,7 +22066,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'Listeners' require an index (example array ref ListenerForCreation.Listeners.0)\n"); else if (*endptr != '.') - BAD_RET("'Listeners' require a .\n"); + BAD_RET("'Listeners' require a '.'\n"); TRY_ALLOC_AT(s,listeners, pa, pos, sizeof(*s->listeners)); cascade_struct = &s->listeners[pos]; cascade_parser = listener_for_creation_parser; @@ -22233,7 +22232,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -22247,7 +22246,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'CreateLoadBalancer'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateLoadBalancer'\n", next_a); } i += incr; goto create_load_balancer_arg; @@ -22264,7 +22263,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateLoadBalancer (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateLoadBalancer (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -22304,8 +22303,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -22398,7 +22396,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -22412,7 +22410,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'CreateLoadBalancerTags'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateLoadBalancerTags'\n", next_a); } i += incr; goto create_load_balancer_tags_arg; @@ -22429,7 +22427,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateLoadBalancerTags (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateLoadBalancerTags (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -22469,8 +22467,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -22545,7 +22542,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateNatService'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateNatService'\n", next_a); } i += incr; goto create_nat_service_arg; @@ -22562,7 +22559,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateNatService (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateNatService (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -22602,8 +22599,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -22701,7 +22697,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateNetAccessPoint'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateNetAccessPoint'\n", next_a); } i += incr; goto create_net_access_point_arg; @@ -22718,7 +22714,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateNetAccessPoint (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateNetAccessPoint (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -22758,8 +22754,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -22834,7 +22829,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateNetPeering'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateNetPeering'\n", next_a); } i += incr; goto create_net_peering_arg; @@ -22851,7 +22846,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateNetPeering (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateNetPeering (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -22891,8 +22886,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -22956,7 +22950,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateNet'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateNet'\n", next_a); } i += incr; goto create_net_arg; @@ -22973,7 +22967,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateNet (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateNet (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -23013,8 +23007,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -23084,7 +23077,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'PrivateIps' require an index (example array ref PrivateIpLight.PrivateIps.0)\n"); else if (*endptr != '.') - BAD_RET("'PrivateIps' require a .\n"); + BAD_RET("'PrivateIps' require a '.'\n"); TRY_ALLOC_AT(s,private_ips, pa, pos, sizeof(*s->private_ips)); cascade_struct = &s->private_ips[pos]; cascade_parser = private_ip_light_parser; @@ -23143,7 +23136,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateNic'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateNic'\n", next_a); } i += incr; goto create_nic_arg; @@ -23160,7 +23153,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateNic (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateNic (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -23200,8 +23193,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -23287,7 +23279,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreatePolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreatePolicy'\n", next_a); } i += incr; goto create_policy_arg; @@ -23304,7 +23296,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreatePolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreatePolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -23344,8 +23336,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -23409,7 +23400,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'CreatePolicyVersion'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreatePolicyVersion'\n", next_a); } i += incr; goto create_policy_version_arg; @@ -23426,7 +23417,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreatePolicyVersion (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreatePolicyVersion (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -23466,8 +23457,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -23531,7 +23521,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateProductType'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateProductType'\n", next_a); } i += incr; goto create_product_type_arg; @@ -23548,7 +23538,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateProductType (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateProductType (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -23588,8 +23578,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -23631,7 +23620,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'CreatePublicIp'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreatePublicIp'\n", next_a); } i += incr; goto create_public_ip_arg; @@ -23648,7 +23637,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreatePublicIp (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreatePublicIp (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -23688,8 +23677,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -23808,7 +23796,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateRoute'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateRoute'\n", next_a); } i += incr; goto create_route_arg; @@ -23825,7 +23813,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateRoute (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateRoute (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -23865,8 +23853,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -23919,7 +23906,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateRouteTable'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateRouteTable'\n", next_a); } i += incr; goto create_route_table_arg; @@ -23936,7 +23923,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateRouteTable (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateRouteTable (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -23976,8 +23963,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -24052,7 +24038,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateSecurityGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateSecurityGroup'\n", next_a); } i += incr; goto create_security_group_arg; @@ -24069,7 +24055,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateSecurityGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateSecurityGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -24109,8 +24095,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -24213,7 +24198,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'Rules' require an index (example array ref SecurityGroupRule.Rules.0)\n"); else if (*endptr != '.') - BAD_RET("'Rules' require a .\n"); + BAD_RET("'Rules' require a '.'\n"); TRY_ALLOC_AT(s,rules, pa, pos, sizeof(*s->rules)); cascade_struct = &s->rules[pos]; cascade_parser = security_group_rule_parser; @@ -24271,7 +24256,7 @@ int main(int ac, char **av) s->to_port_range = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'CreateSecurityGroupRule'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateSecurityGroupRule'\n", next_a); } i += incr; goto create_security_group_rule_arg; @@ -24288,7 +24273,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateSecurityGroupRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateSecurityGroupRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -24328,8 +24313,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -24426,7 +24410,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateServerCertificate'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateServerCertificate'\n", next_a); } i += incr; goto create_server_certificate_arg; @@ -24443,7 +24427,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateServerCertificate (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateServerCertificate (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -24483,8 +24467,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -24560,7 +24543,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateSnapshotExportTask'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateSnapshotExportTask'\n", next_a); } i += incr; goto create_snapshot_export_task_arg; @@ -24577,7 +24560,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateSnapshotExportTask (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateSnapshotExportTask (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -24617,8 +24600,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -24737,7 +24719,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateSnapshot'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateSnapshot'\n", next_a); } i += incr; goto create_snapshot_arg; @@ -24754,7 +24736,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateSnapshot (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateSnapshot (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -24794,8 +24776,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -24870,7 +24851,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateSubnet'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateSubnet'\n", next_a); } i += incr; goto create_subnet_arg; @@ -24887,7 +24868,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateSubnet (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateSubnet (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -24927,8 +24908,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -25021,7 +25001,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -25035,7 +25015,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'CreateTags'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateTags'\n", next_a); } i += incr; goto create_tags_arg; @@ -25052,7 +25032,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateTags (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateTags (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -25092,8 +25072,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -25157,7 +25136,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateUserGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateUserGroup'\n", next_a); } i += incr; goto create_user_group_arg; @@ -25174,7 +25153,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -25214,8 +25193,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -25290,7 +25268,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateUser'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateUser'\n", next_a); } i += incr; goto create_user_arg; @@ -25307,7 +25285,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateUser (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateUser (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -25347,8 +25325,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -25401,7 +25378,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'CreateVirtualGateway'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateVirtualGateway'\n", next_a); } i += incr; goto create_virtual_gateway_arg; @@ -25418,7 +25395,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateVirtualGateway (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateVirtualGateway (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -25458,8 +25435,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -25585,7 +25561,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -25632,7 +25608,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateVmGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateVmGroup'\n", next_a); } i += incr; goto create_vm_group_arg; @@ -25649,7 +25625,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateVmGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateVmGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -25689,8 +25665,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -25826,7 +25801,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -25851,7 +25826,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateVmTemplate'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateVmTemplate'\n", next_a); } i += incr; goto create_vm_template_arg; @@ -25868,7 +25843,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateVmTemplate (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateVmTemplate (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -25908,8 +25883,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -25975,7 +25949,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'BlockDeviceMappings' require an index (example array ref BlockDeviceMappingVmCreation.BlockDeviceMappings.0)\n"); else if (*endptr != '.') - BAD_RET("'BlockDeviceMappings' require a .\n"); + BAD_RET("'BlockDeviceMappings' require a '.'\n"); TRY_ALLOC_AT(s,block_device_mappings, pa, pos, sizeof(*s->block_device_mappings)); cascade_struct = &s->block_device_mappings[pos]; cascade_parser = block_device_mapping_vm_creation_parser; @@ -26152,7 +26126,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'Nics' require an index (example array ref NicForVmCreation.Nics.0)\n"); else if (*endptr != '.') - BAD_RET("'Nics' require a .\n"); + BAD_RET("'Nics' require a '.'\n"); TRY_ALLOC_AT(s,nics, pa, pos, sizeof(*s->nics)); cascade_struct = &s->nics[pos]; cascade_parser = nic_for_vm_creation_parser; @@ -26346,7 +26320,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateVms'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateVms'\n", next_a); } i += incr; goto create_vms_arg; @@ -26363,7 +26337,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateVms (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateVms (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -26403,8 +26377,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -26512,7 +26485,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateVolume'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateVolume'\n", next_a); } i += incr; goto create_volume_arg; @@ -26529,7 +26502,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateVolume (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateVolume (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -26569,8 +26542,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -26661,7 +26633,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateVpnConnection'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateVpnConnection'\n", next_a); } i += incr; goto create_vpn_connection_arg; @@ -26678,7 +26650,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateVpnConnection (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateVpnConnection (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -26718,8 +26690,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -26783,7 +26754,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'CreateVpnConnectionRoute'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'CreateVpnConnectionRoute'\n", next_a); } i += incr; goto create_vpn_connection_route_arg; @@ -26800,7 +26771,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called CreateVpnConnectionRoute (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called CreateVpnConnectionRoute (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -26840,8 +26811,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -26905,7 +26875,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteAccessKey'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteAccessKey'\n", next_a); } i += incr; goto delete_access_key_arg; @@ -26922,7 +26892,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteAccessKey (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteAccessKey (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -26962,8 +26932,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -27016,7 +26985,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'DeleteApiAccessRule'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteApiAccessRule'\n", next_a); } i += incr; goto delete_api_access_rule_arg; @@ -27033,7 +27002,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteApiAccessRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteApiAccessRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -27073,8 +27042,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -27127,7 +27095,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'DeleteCa'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteCa'\n", next_a); } i += incr; goto delete_ca_arg; @@ -27144,7 +27112,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteCa (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteCa (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -27184,8 +27152,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -27238,7 +27205,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'DeleteClientGateway'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteClientGateway'\n", next_a); } i += incr; goto delete_client_gateway_arg; @@ -27255,7 +27222,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteClientGateway (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteClientGateway (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -27295,8 +27262,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -27365,7 +27331,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'DeleteDedicatedGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteDedicatedGroup'\n", next_a); } i += incr; goto delete_dedicated_group_arg; @@ -27382,7 +27348,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteDedicatedGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteDedicatedGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -27422,8 +27388,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -27476,7 +27441,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'DeleteDhcpOptions'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteDhcpOptions'\n", next_a); } i += incr; goto delete_dhcp_options_arg; @@ -27493,7 +27458,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteDhcpOptions (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteDhcpOptions (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -27533,8 +27498,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -27587,7 +27551,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'DeleteDirectLinkInterface'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteDirectLinkInterface'\n", next_a); } i += incr; goto delete_direct_link_interface_arg; @@ -27604,7 +27568,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteDirectLinkInterface (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteDirectLinkInterface (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -27644,8 +27608,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -27698,7 +27661,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'DeleteDirectLink'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteDirectLink'\n", next_a); } i += incr; goto delete_direct_link_arg; @@ -27715,7 +27678,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteDirectLink (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteDirectLink (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -27755,8 +27718,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -27809,7 +27771,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteExportTask'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteExportTask'\n", next_a); } i += incr; goto delete_export_task_arg; @@ -27826,7 +27788,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteExportTask (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteExportTask (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -27866,8 +27828,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -27920,7 +27881,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteFlexibleGpu'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteFlexibleGpu'\n", next_a); } i += incr; goto delete_flexible_gpu_arg; @@ -27937,7 +27898,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteFlexibleGpu (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteFlexibleGpu (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -27977,8 +27938,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -28031,7 +27991,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteImage'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteImage'\n", next_a); } i += incr; goto delete_image_arg; @@ -28048,7 +28008,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteImage (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteImage (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -28088,8 +28048,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -28142,7 +28101,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteInternetService'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteInternetService'\n", next_a); } i += incr; goto delete_internet_service_arg; @@ -28159,7 +28118,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteInternetService (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteInternetService (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -28199,8 +28158,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -28264,7 +28222,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteKeypair'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteKeypair'\n", next_a); } i += incr; goto delete_keypair_arg; @@ -28281,7 +28239,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteKeypair (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteKeypair (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -28321,8 +28279,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -28375,7 +28332,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteListenerRule'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteListenerRule'\n", next_a); } i += incr; goto delete_listener_rule_arg; @@ -28392,7 +28349,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteListenerRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteListenerRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -28432,8 +28389,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -28520,7 +28476,7 @@ int main(int ac, char **av) SET_NEXT(s->load_balancer_ports, atoi(aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'DeleteLoadBalancerListeners'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteLoadBalancerListeners'\n", next_a); } i += incr; goto delete_load_balancer_listeners_arg; @@ -28537,7 +28493,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteLoadBalancerListeners (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteLoadBalancerListeners (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -28577,8 +28533,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -28642,7 +28597,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteLoadBalancerPolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteLoadBalancerPolicy'\n", next_a); } i += incr; goto delete_load_balancer_policy_arg; @@ -28659,7 +28614,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteLoadBalancerPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteLoadBalancerPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -28699,8 +28654,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -28753,7 +28707,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteLoadBalancer'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteLoadBalancer'\n", next_a); } i += incr; goto delete_load_balancer_arg; @@ -28770,7 +28724,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteLoadBalancer (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteLoadBalancer (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -28810,8 +28764,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -28904,7 +28857,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceLoadBalancerTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_load_balancer_tag_parser; @@ -28918,7 +28871,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'DeleteLoadBalancerTags'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteLoadBalancerTags'\n", next_a); } i += incr; goto delete_load_balancer_tags_arg; @@ -28935,7 +28888,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteLoadBalancerTags (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteLoadBalancerTags (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -28975,8 +28928,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -29029,7 +28981,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteNatService'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteNatService'\n", next_a); } i += incr; goto delete_nat_service_arg; @@ -29046,7 +28998,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteNatService (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteNatService (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -29086,8 +29038,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -29140,7 +29091,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteNetAccessPoint'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteNetAccessPoint'\n", next_a); } i += incr; goto delete_net_access_point_arg; @@ -29157,7 +29108,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteNetAccessPoint (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteNetAccessPoint (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -29197,8 +29148,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -29251,7 +29201,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteNetPeering'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteNetPeering'\n", next_a); } i += incr; goto delete_net_peering_arg; @@ -29268,7 +29218,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteNetPeering (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteNetPeering (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -29308,8 +29258,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -29362,7 +29311,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteNet'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteNet'\n", next_a); } i += incr; goto delete_net_arg; @@ -29379,7 +29328,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteNet (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteNet (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -29419,8 +29368,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -29473,7 +29421,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteNic'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteNic'\n", next_a); } i += incr; goto delete_nic_arg; @@ -29490,7 +29438,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteNic (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteNic (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -29530,8 +29478,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -29584,7 +29531,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeletePolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeletePolicy'\n", next_a); } i += incr; goto delete_policy_arg; @@ -29601,7 +29548,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeletePolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeletePolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -29641,8 +29588,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -29690,7 +29636,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeletePolicyVersion'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeletePolicyVersion'\n", next_a); } i += incr; goto delete_policy_version_arg; @@ -29707,7 +29653,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeletePolicyVersion (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeletePolicyVersion (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -29747,8 +29693,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -29817,7 +29762,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteProductType'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteProductType'\n", next_a); } i += incr; goto delete_product_type_arg; @@ -29834,7 +29779,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteProductType (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteProductType (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -29874,8 +29819,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -29939,7 +29883,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeletePublicIp'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeletePublicIp'\n", next_a); } i += incr; goto delete_public_ip_arg; @@ -29956,7 +29900,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeletePublicIp (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeletePublicIp (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -29996,8 +29940,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -30061,7 +30004,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteRoute'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteRoute'\n", next_a); } i += incr; goto delete_route_arg; @@ -30078,7 +30021,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteRoute (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteRoute (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -30118,8 +30061,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -30172,7 +30114,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteRouteTable'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteRouteTable'\n", next_a); } i += incr; goto delete_route_table_arg; @@ -30189,7 +30131,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteRouteTable (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteRouteTable (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -30229,8 +30171,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -30294,7 +30235,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteSecurityGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteSecurityGroup'\n", next_a); } i += incr; goto delete_security_group_arg; @@ -30311,7 +30252,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteSecurityGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteSecurityGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -30351,8 +30292,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -30455,7 +30395,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'Rules' require an index (example array ref SecurityGroupRule.Rules.0)\n"); else if (*endptr != '.') - BAD_RET("'Rules' require a .\n"); + BAD_RET("'Rules' require a '.'\n"); TRY_ALLOC_AT(s,rules, pa, pos, sizeof(*s->rules)); cascade_struct = &s->rules[pos]; cascade_parser = security_group_rule_parser; @@ -30513,7 +30453,7 @@ int main(int ac, char **av) s->to_port_range = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'DeleteSecurityGroupRule'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteSecurityGroupRule'\n", next_a); } i += incr; goto delete_security_group_rule_arg; @@ -30530,7 +30470,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteSecurityGroupRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteSecurityGroupRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -30570,8 +30510,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -30624,7 +30563,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteServerCertificate'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteServerCertificate'\n", next_a); } i += incr; goto delete_server_certificate_arg; @@ -30641,7 +30580,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteServerCertificate (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteServerCertificate (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -30681,8 +30620,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -30735,7 +30673,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteSnapshot'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteSnapshot'\n", next_a); } i += incr; goto delete_snapshot_arg; @@ -30752,7 +30690,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteSnapshot (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteSnapshot (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -30792,8 +30730,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -30846,7 +30783,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteSubnet'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteSubnet'\n", next_a); } i += incr; goto delete_subnet_arg; @@ -30863,7 +30800,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteSubnet (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteSubnet (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -30903,8 +30840,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -30997,7 +30933,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -31011,7 +30947,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'DeleteTags'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteTags'\n", next_a); } i += incr; goto delete_tags_arg; @@ -31028,7 +30964,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteTags (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteTags (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -31068,8 +31004,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -31144,7 +31079,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteUserGroupPolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteUserGroupPolicy'\n", next_a); } i += incr; goto delete_user_group_policy_arg; @@ -31161,7 +31096,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteUserGroupPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteUserGroupPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -31201,8 +31136,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -31282,7 +31216,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteUserGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteUserGroup'\n", next_a); } i += incr; goto delete_user_group_arg; @@ -31299,7 +31233,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -31339,8 +31273,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -31404,7 +31337,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteUserPolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteUserPolicy'\n", next_a); } i += incr; goto delete_user_policy_arg; @@ -31421,7 +31354,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteUserPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteUserPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -31461,8 +31394,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -31515,7 +31447,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteUser'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteUser'\n", next_a); } i += incr; goto delete_user_arg; @@ -31532,7 +31464,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteUser (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteUser (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -31572,8 +31504,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -31626,7 +31557,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteVirtualGateway'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteVirtualGateway'\n", next_a); } i += incr; goto delete_virtual_gateway_arg; @@ -31643,7 +31574,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteVirtualGateway (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteVirtualGateway (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -31683,8 +31614,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -31737,7 +31667,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteVmGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteVmGroup'\n", next_a); } i += incr; goto delete_vm_group_arg; @@ -31754,7 +31684,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteVmGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteVmGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -31794,8 +31724,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -31848,7 +31777,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteVmTemplate'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteVmTemplate'\n", next_a); } i += incr; goto delete_vm_template_arg; @@ -31865,7 +31794,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteVmTemplate (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteVmTemplate (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -31905,8 +31834,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -31982,7 +31910,7 @@ int main(int ac, char **av) SET_NEXT(s->vm_ids, (aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'DeleteVms'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteVms'\n", next_a); } i += incr; goto delete_vms_arg; @@ -31999,7 +31927,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteVms (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteVms (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -32039,8 +31967,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -32093,7 +32020,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteVolume'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteVolume'\n", next_a); } i += incr; goto delete_volume_arg; @@ -32110,7 +32037,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteVolume (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteVolume (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -32150,8 +32077,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -32204,7 +32130,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteVpnConnection'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteVpnConnection'\n", next_a); } i += incr; goto delete_vpn_connection_arg; @@ -32221,7 +32147,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteVpnConnection (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteVpnConnection (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -32261,8 +32187,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -32326,7 +32251,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeleteVpnConnectionRoute'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeleteVpnConnectionRoute'\n", next_a); } i += incr; goto delete_vpn_connection_route_arg; @@ -32343,7 +32268,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeleteVpnConnectionRoute (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeleteVpnConnectionRoute (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -32383,8 +32308,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -32471,7 +32395,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'DeregisterVmsInLoadBalancer'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DeregisterVmsInLoadBalancer'\n", next_a); } i += incr; goto deregister_vms_in_load_balancer_arg; @@ -32488,7 +32412,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called DeregisterVmsInLoadBalancer (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DeregisterVmsInLoadBalancer (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -32509,27 +32433,26 @@ int main(int ac, char **av) } osc_deinit_str(&r); } else - if (!strcmp("LinkFlexibleGpu", av[i])) { + if (!strcmp("DisableOutscaleLoginForUsers", av[i])) { auto_osc_json_c json_object *jobj = NULL; auto_ptr_array struct ptr_array opa = {0}; struct ptr_array *pa = &opa; - struct osc_link_flexible_gpu_arg a = {0}; - struct osc_link_flexible_gpu_arg *s = &a; + struct osc_disable_outscale_login_for_users_arg a = {0}; + struct osc_disable_outscale_login_for_users_arg *s = &a; __attribute__((cleanup(files_cnt_cleanup))) char *files_cnt[MAX_FILES_PER_CMD] = {NULL}; int cret; cascade_struct = NULL; cascade_parser = NULL; - link_flexible_gpu_arg: + disable_outscale_login_for_users_arg: if (i + 1 < ac && av[i + 1][0] == '.' && av[i + 1][1] == '.') { char *next_a = &av[i + 1][2]; char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -32540,7 +32463,7 @@ int main(int ac, char **av) } STRY(cascade_parser(cascade_struct, next_a, aa, pa)); i += incr; - goto link_flexible_gpu_arg; + goto disable_outscale_login_for_users_arg; } if (i + 1 < ac && av[i + 1][0] == '-' && av[i + 1][1] == '-' && strcmp(av[i + 1] + 2, "set-var")) { @@ -32570,47 +32493,25 @@ int main(int ac, char **av) BAD_RET("DryRun require true/false\n"); } } else - if ((aret = argcmp(next_a, "FlexibleGpuId")) == 0 || aret == '=' || aret == '.') { - char *eq_ptr = strchr(next_a, '='); - if (eq_ptr) { - TRY((!*eq_ptr), "FlexibleGpuId argument missing\n"); - aa = eq_ptr + 1; - incr = 1; - } - TRY(!aa, "FlexibleGpuId argument missing\n"); - s->flexible_gpu_id = aa; // string string - - } else - if ((aret = argcmp(next_a, "VmId")) == 0 || aret == '=' || aret == '.') { - char *eq_ptr = strchr(next_a, '='); - if (eq_ptr) { - TRY((!*eq_ptr), "VmId argument missing\n"); - aa = eq_ptr + 1; - incr = 1; - } - TRY(!aa, "VmId argument missing\n"); - s->vm_id = aa; // string string - - } else { - BAD_RET("'%s' is not a valide argument for 'LinkFlexibleGpu'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DisableOutscaleLoginForUsers'\n", next_a); } i += incr; - goto link_flexible_gpu_arg; + goto disable_outscale_login_for_users_arg; } - cret = osc_link_flexible_gpu(&e, &r, &a); + cret = osc_disable_outscale_login_for_users(&e, &r, &a); jobj = NULL; if (program_flag & OAPI_RAW_OUTPUT) { if (r.buf) puts(r.buf); else if (cret) - fprintf(stderr, "fail to call LinkFlexibleGpu: %s", curl_easy_strerror(cret)); + fprintf(stderr, "fail to call DisableOutscaleLoginForUsers: %s", curl_easy_strerror(cret)); } else if (r.buf) { jobj = json_tokener_parse(r.buf); puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called LinkFlexibleGpu (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DisableOutscaleLoginForUsers (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -32631,27 +32532,26 @@ int main(int ac, char **av) } osc_deinit_str(&r); } else - if (!strcmp("LinkInternetService", av[i])) { + if (!strcmp("DisableOutscaleLoginPerUsers", av[i])) { auto_osc_json_c json_object *jobj = NULL; auto_ptr_array struct ptr_array opa = {0}; struct ptr_array *pa = &opa; - struct osc_link_internet_service_arg a = {0}; - struct osc_link_internet_service_arg *s = &a; + struct osc_disable_outscale_login_per_users_arg a = {0}; + struct osc_disable_outscale_login_per_users_arg *s = &a; __attribute__((cleanup(files_cnt_cleanup))) char *files_cnt[MAX_FILES_PER_CMD] = {NULL}; int cret; cascade_struct = NULL; cascade_parser = NULL; - link_internet_service_arg: + disable_outscale_login_per_users_arg: if (i + 1 < ac && av[i + 1][0] == '.' && av[i + 1][1] == '.') { char *next_a = &av[i + 1][2]; char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -32662,7 +32562,7 @@ int main(int ac, char **av) } STRY(cascade_parser(cascade_struct, next_a, aa, pa)); i += incr; - goto link_internet_service_arg; + goto disable_outscale_login_per_users_arg; } if (i + 1 < ac && av[i + 1][0] == '-' && av[i + 1][1] == '-' && strcmp(av[i + 1] + 2, "set-var")) { @@ -32692,47 +32592,59 @@ int main(int ac, char **av) BAD_RET("DryRun require true/false\n"); } } else - if ((aret = argcmp(next_a, "InternetServiceId")) == 0 || aret == '=' || aret == '.') { + if ((aret = argcmp(next_a, "UserNames")) == 0 || aret == '=' || aret == '.') { char *eq_ptr = strchr(next_a, '='); if (eq_ptr) { - TRY((!*eq_ptr), "InternetServiceId argument missing\n"); + TRY((!*eq_ptr), "UserNames argument missing\n"); aa = eq_ptr + 1; incr = 1; } - TRY(!aa, "InternetServiceId argument missing\n"); - s->internet_service_id = aa; // string string - - } else - if ((aret = argcmp(next_a, "NetId")) == 0 || aret == '=' || aret == '.') { - char *eq_ptr = strchr(next_a, '='); - if (eq_ptr) { - TRY((!*eq_ptr), "NetId argument missing\n"); - aa = eq_ptr + 1; - incr = 1; - } - TRY(!aa, "NetId argument missing\n"); - s->net_id = aa; // string string + if (aret == '.') { + int pos; + char *endptr; + int last = 0; + char *dot_pos = strchr(str, '.'); + TRY(!(dot_pos++), "UserNames argument missing\n"); + pos = strtoul(dot_pos, &endptr, 0); + TRY(endptr == dot_pos, "UserNames require an index\n"); + if (s->user_names) { + for (; s->user_names[last]; ++last); + } + if (pos < last) { + s->user_names[pos] = (aa); + } else { + for (int i = last; i < pos; ++i) + SET_NEXT(s->user_names, "", pa); + SET_NEXT(s->user_names, (aa), pa); + } + } else { + TRY(!aa, "UserNames argument missing\n"); + s->user_names_str = aa; + } + } else if (!(aret = argcmp(str, "UserNames[]")) || aret == '=') { + TRY(!aa, "UserNames[] argument missing\n"); + SET_NEXT(s->user_names, (aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'LinkInternetService'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DisableOutscaleLoginPerUsers'\n", next_a); } i += incr; - goto link_internet_service_arg; + goto disable_outscale_login_per_users_arg; } - cret = osc_link_internet_service(&e, &r, &a); + cret = osc_disable_outscale_login_per_users(&e, &r, &a); jobj = NULL; if (program_flag & OAPI_RAW_OUTPUT) { if (r.buf) puts(r.buf); else if (cret) - fprintf(stderr, "fail to call LinkInternetService: %s", curl_easy_strerror(cret)); + fprintf(stderr, "fail to call DisableOutscaleLoginPerUsers: %s", curl_easy_strerror(cret)); } else if (r.buf) { jobj = json_tokener_parse(r.buf); puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called LinkInternetService (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DisableOutscaleLoginPerUsers (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -32753,27 +32665,26 @@ int main(int ac, char **av) } osc_deinit_str(&r); } else - if (!strcmp("LinkLoadBalancerBackendMachines", av[i])) { + if (!strcmp("DisableOutscaleLogin", av[i])) { auto_osc_json_c json_object *jobj = NULL; auto_ptr_array struct ptr_array opa = {0}; struct ptr_array *pa = &opa; - struct osc_link_load_balancer_backend_machines_arg a = {0}; - struct osc_link_load_balancer_backend_machines_arg *s = &a; + struct osc_disable_outscale_login_arg a = {0}; + struct osc_disable_outscale_login_arg *s = &a; __attribute__((cleanup(files_cnt_cleanup))) char *files_cnt[MAX_FILES_PER_CMD] = {NULL}; int cret; cascade_struct = NULL; cascade_parser = NULL; - link_load_balancer_backend_machines_arg: + disable_outscale_login_arg: if (i + 1 < ac && av[i + 1][0] == '.' && av[i + 1][1] == '.') { char *next_a = &av[i + 1][2]; char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -32784,7 +32695,7 @@ int main(int ac, char **av) } STRY(cascade_parser(cascade_struct, next_a, aa, pa)); i += incr; - goto link_load_balancer_backend_machines_arg; + goto disable_outscale_login_arg; } if (i + 1 < ac && av[i + 1][0] == '-' && av[i + 1][1] == '-' && strcmp(av[i + 1] + 2, "set-var")) { @@ -32798,74 +32709,6 @@ int main(int ac, char **av) if (aa && aa[0] == '-' && aa[1] == '-' && aa[2] != '-') { META_ARGS({ aa = 0; incr = 1; }); } - if ((aret = argcmp(next_a, "BackendIps")) == 0 || aret == '=' || aret == '.') { - char *eq_ptr = strchr(next_a, '='); - if (eq_ptr) { - TRY((!*eq_ptr), "BackendIps argument missing\n"); - aa = eq_ptr + 1; - incr = 1; - } - if (aret == '.') { - int pos; - char *endptr; - int last = 0; - char *dot_pos = strchr(str, '.'); - - TRY(!(dot_pos++), "BackendIps argument missing\n"); - pos = strtoul(dot_pos, &endptr, 0); - TRY(endptr == dot_pos, "BackendIps require an index\n"); - if (s->backend_ips) { - for (; s->backend_ips[last]; ++last); - } - if (pos < last) { - s->backend_ips[pos] = (aa); - } else { - for (int i = last; i < pos; ++i) - SET_NEXT(s->backend_ips, "", pa); - SET_NEXT(s->backend_ips, (aa), pa); - } - } else { - TRY(!aa, "BackendIps argument missing\n"); - s->backend_ips_str = aa; - } - } else if (!(aret = argcmp(str, "BackendIps[]")) || aret == '=') { - TRY(!aa, "BackendIps[] argument missing\n"); - SET_NEXT(s->backend_ips, (aa), pa); - } else - if ((aret = argcmp(next_a, "BackendVmIds")) == 0 || aret == '=' || aret == '.') { - char *eq_ptr = strchr(next_a, '='); - if (eq_ptr) { - TRY((!*eq_ptr), "BackendVmIds argument missing\n"); - aa = eq_ptr + 1; - incr = 1; - } - if (aret == '.') { - int pos; - char *endptr; - int last = 0; - char *dot_pos = strchr(str, '.'); - - TRY(!(dot_pos++), "BackendVmIds argument missing\n"); - pos = strtoul(dot_pos, &endptr, 0); - TRY(endptr == dot_pos, "BackendVmIds require an index\n"); - if (s->backend_vm_ids) { - for (; s->backend_vm_ids[last]; ++last); - } - if (pos < last) { - s->backend_vm_ids[pos] = (aa); - } else { - for (int i = last; i < pos; ++i) - SET_NEXT(s->backend_vm_ids, "", pa); - SET_NEXT(s->backend_vm_ids, (aa), pa); - } - } else { - TRY(!aa, "BackendVmIds argument missing\n"); - s->backend_vm_ids_str = aa; - } - } else if (!(aret = argcmp(str, "BackendVmIds[]")) || aret == '=') { - TRY(!aa, "BackendVmIds[] argument missing\n"); - SET_NEXT(s->backend_vm_ids, (aa), pa); - } else if ((aret = argcmp(next_a, "DryRun")) == 0 || aret == '=' || aret == '.') { char *eq_ptr = strchr(next_a, '='); if (eq_ptr) { @@ -32882,36 +32725,776 @@ int main(int ac, char **av) BAD_RET("DryRun require true/false\n"); } } else - if ((aret = argcmp(next_a, "LoadBalancerName")) == 0 || aret == '=' || aret == '.') { - char *eq_ptr = strchr(next_a, '='); - if (eq_ptr) { - TRY((!*eq_ptr), "LoadBalancerName argument missing\n"); - aa = eq_ptr + 1; - incr = 1; - } - TRY(!aa, "LoadBalancerName argument missing\n"); - s->load_balancer_name = aa; // string string - - } else { - BAD_RET("'%s' is not a valide argument for 'LinkLoadBalancerBackendMachines'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'DisableOutscaleLogin'\n", next_a); } i += incr; - goto link_load_balancer_backend_machines_arg; + goto disable_outscale_login_arg; } - cret = osc_link_load_balancer_backend_machines(&e, &r, &a); + cret = osc_disable_outscale_login(&e, &r, &a); jobj = NULL; if (program_flag & OAPI_RAW_OUTPUT) { if (r.buf) puts(r.buf); else if (cret) - fprintf(stderr, "fail to call LinkLoadBalancerBackendMachines: %s", curl_easy_strerror(cret)); + fprintf(stderr, "fail to call DisableOutscaleLogin: %s", curl_easy_strerror(cret)); } else if (r.buf) { jobj = json_tokener_parse(r.buf); puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called LinkLoadBalancerBackendMachines (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called DisableOutscaleLogin (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + + if (cret) + return cret; + + while (i + 1 < ac && !strcmp(av[i + 1], "--set-var")) { + ++i; + TRY(i + 1 >= ac, "--set-var require an argument"); + if (!jobj) + jobj = json_tokener_parse(r.buf); + if (parse_variable(jobj, av, ac, i)) + return -1; + ++i; + } + + if (jobj) { + json_object_put(jobj); + jobj = NULL; + } + osc_deinit_str(&r); + } else + if (!strcmp("EnableOutscaleLoginForUsers", av[i])) { + auto_osc_json_c json_object *jobj = NULL; + auto_ptr_array struct ptr_array opa = {0}; + struct ptr_array *pa = &opa; + struct osc_enable_outscale_login_for_users_arg a = {0}; + struct osc_enable_outscale_login_for_users_arg *s = &a; + __attribute__((cleanup(files_cnt_cleanup))) char *files_cnt[MAX_FILES_PER_CMD] = {NULL}; + int cret; + + cascade_struct = NULL; + cascade_parser = NULL; + + enable_outscale_login_for_users_arg: + + if (i + 1 < ac && av[i + 1][0] == '.' && av[i + 1][1] == '.') { + char *next_a = &av[i + 1][2]; + char *aa = i + 2 < ac ? av[i + 2] : 0; + int incr = 2; + char *eq_ptr = strchr(next_a, '='); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); + if (eq_ptr) { + CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); + incr = 1; + aa = eq_ptr + 1; + } else { + CHK_BAD_RET(!aa, "cascade need an argument\n"); + META_ARGS({CHK_BAD_RET(aa[0] == '-', "cascade need an argument"); }) + } + STRY(cascade_parser(cascade_struct, next_a, aa, pa)); + i += incr; + goto enable_outscale_login_for_users_arg; + } + + if (i + 1 < ac && av[i + 1][0] == '-' && av[i + 1][1] == '-' && strcmp(av[i + 1] + 2, "set-var")) { + char *next_a = &av[i + 1][2]; + char *str = next_a; + char *aa = i + 2 < ac ? av[i + 2] : 0; + int aret = 0; + int incr = aa ? 2 : 1; + + (void)str; + if (aa && aa[0] == '-' && aa[1] == '-' && aa[2] != '-') { + META_ARGS({ aa = 0; incr = 1; }); + } + if ((aret = argcmp(next_a, "DryRun")) == 0 || aret == '=' || aret == '.') { + char *eq_ptr = strchr(next_a, '='); + if (eq_ptr) { + TRY((!*eq_ptr), "DryRun argument missing\n"); + aa = eq_ptr + 1; + incr = 1; + } + s->is_set_dry_run = 1; + if (!aa || !strcasecmp(aa, "true")) { + s->dry_run = 1; + } else if (!strcasecmp(aa, "false")) { + s->dry_run = 0; + } else { + BAD_RET("DryRun require true/false\n"); + } + } else + { + BAD_RET("'%s' is not a valid argument for 'EnableOutscaleLoginForUsers'\n", next_a); + } + i += incr; + goto enable_outscale_login_for_users_arg; + } + cret = osc_enable_outscale_login_for_users(&e, &r, &a); + jobj = NULL; + if (program_flag & OAPI_RAW_OUTPUT) { + if (r.buf) + puts(r.buf); + else if (cret) + fprintf(stderr, "fail to call EnableOutscaleLoginForUsers: %s", curl_easy_strerror(cret)); + } else if (r.buf) { + jobj = json_tokener_parse(r.buf); + puts(json_object_to_json_string_ext(jobj, + JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | + color_flag)); + } else fprintf(stderr, "called EnableOutscaleLoginForUsers (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + + if (cret) + return cret; + + while (i + 1 < ac && !strcmp(av[i + 1], "--set-var")) { + ++i; + TRY(i + 1 >= ac, "--set-var require an argument"); + if (!jobj) + jobj = json_tokener_parse(r.buf); + if (parse_variable(jobj, av, ac, i)) + return -1; + ++i; + } + + if (jobj) { + json_object_put(jobj); + jobj = NULL; + } + osc_deinit_str(&r); + } else + if (!strcmp("EnableOutscaleLoginPerUsers", av[i])) { + auto_osc_json_c json_object *jobj = NULL; + auto_ptr_array struct ptr_array opa = {0}; + struct ptr_array *pa = &opa; + struct osc_enable_outscale_login_per_users_arg a = {0}; + struct osc_enable_outscale_login_per_users_arg *s = &a; + __attribute__((cleanup(files_cnt_cleanup))) char *files_cnt[MAX_FILES_PER_CMD] = {NULL}; + int cret; + + cascade_struct = NULL; + cascade_parser = NULL; + + enable_outscale_login_per_users_arg: + + if (i + 1 < ac && av[i + 1][0] == '.' && av[i + 1][1] == '.') { + char *next_a = &av[i + 1][2]; + char *aa = i + 2 < ac ? av[i + 2] : 0; + int incr = 2; + char *eq_ptr = strchr(next_a, '='); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); + if (eq_ptr) { + CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); + incr = 1; + aa = eq_ptr + 1; + } else { + CHK_BAD_RET(!aa, "cascade need an argument\n"); + META_ARGS({CHK_BAD_RET(aa[0] == '-', "cascade need an argument"); }) + } + STRY(cascade_parser(cascade_struct, next_a, aa, pa)); + i += incr; + goto enable_outscale_login_per_users_arg; + } + + if (i + 1 < ac && av[i + 1][0] == '-' && av[i + 1][1] == '-' && strcmp(av[i + 1] + 2, "set-var")) { + char *next_a = &av[i + 1][2]; + char *str = next_a; + char *aa = i + 2 < ac ? av[i + 2] : 0; + int aret = 0; + int incr = aa ? 2 : 1; + + (void)str; + if (aa && aa[0] == '-' && aa[1] == '-' && aa[2] != '-') { + META_ARGS({ aa = 0; incr = 1; }); + } + if ((aret = argcmp(next_a, "DryRun")) == 0 || aret == '=' || aret == '.') { + char *eq_ptr = strchr(next_a, '='); + if (eq_ptr) { + TRY((!*eq_ptr), "DryRun argument missing\n"); + aa = eq_ptr + 1; + incr = 1; + } + s->is_set_dry_run = 1; + if (!aa || !strcasecmp(aa, "true")) { + s->dry_run = 1; + } else if (!strcasecmp(aa, "false")) { + s->dry_run = 0; + } else { + BAD_RET("DryRun require true/false\n"); + } + } else + if ((aret = argcmp(next_a, "UserNames")) == 0 || aret == '=' || aret == '.') { + char *eq_ptr = strchr(next_a, '='); + if (eq_ptr) { + TRY((!*eq_ptr), "UserNames argument missing\n"); + aa = eq_ptr + 1; + incr = 1; + } + if (aret == '.') { + int pos; + char *endptr; + int last = 0; + char *dot_pos = strchr(str, '.'); + + TRY(!(dot_pos++), "UserNames argument missing\n"); + pos = strtoul(dot_pos, &endptr, 0); + TRY(endptr == dot_pos, "UserNames require an index\n"); + if (s->user_names) { + for (; s->user_names[last]; ++last); + } + if (pos < last) { + s->user_names[pos] = (aa); + } else { + for (int i = last; i < pos; ++i) + SET_NEXT(s->user_names, "", pa); + SET_NEXT(s->user_names, (aa), pa); + } + } else { + TRY(!aa, "UserNames argument missing\n"); + s->user_names_str = aa; + } + } else if (!(aret = argcmp(str, "UserNames[]")) || aret == '=') { + TRY(!aa, "UserNames[] argument missing\n"); + SET_NEXT(s->user_names, (aa), pa); + } else + { + BAD_RET("'%s' is not a valid argument for 'EnableOutscaleLoginPerUsers'\n", next_a); + } + i += incr; + goto enable_outscale_login_per_users_arg; + } + cret = osc_enable_outscale_login_per_users(&e, &r, &a); + jobj = NULL; + if (program_flag & OAPI_RAW_OUTPUT) { + if (r.buf) + puts(r.buf); + else if (cret) + fprintf(stderr, "fail to call EnableOutscaleLoginPerUsers: %s", curl_easy_strerror(cret)); + } else if (r.buf) { + jobj = json_tokener_parse(r.buf); + puts(json_object_to_json_string_ext(jobj, + JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | + color_flag)); + } else fprintf(stderr, "called EnableOutscaleLoginPerUsers (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + + if (cret) + return cret; + + while (i + 1 < ac && !strcmp(av[i + 1], "--set-var")) { + ++i; + TRY(i + 1 >= ac, "--set-var require an argument"); + if (!jobj) + jobj = json_tokener_parse(r.buf); + if (parse_variable(jobj, av, ac, i)) + return -1; + ++i; + } + + if (jobj) { + json_object_put(jobj); + jobj = NULL; + } + osc_deinit_str(&r); + } else + if (!strcmp("EnableOutscaleLogin", av[i])) { + auto_osc_json_c json_object *jobj = NULL; + auto_ptr_array struct ptr_array opa = {0}; + struct ptr_array *pa = &opa; + struct osc_enable_outscale_login_arg a = {0}; + struct osc_enable_outscale_login_arg *s = &a; + __attribute__((cleanup(files_cnt_cleanup))) char *files_cnt[MAX_FILES_PER_CMD] = {NULL}; + int cret; + + cascade_struct = NULL; + cascade_parser = NULL; + + enable_outscale_login_arg: + + if (i + 1 < ac && av[i + 1][0] == '.' && av[i + 1][1] == '.') { + char *next_a = &av[i + 1][2]; + char *aa = i + 2 < ac ? av[i + 2] : 0; + int incr = 2; + char *eq_ptr = strchr(next_a, '='); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); + if (eq_ptr) { + CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); + incr = 1; + aa = eq_ptr + 1; + } else { + CHK_BAD_RET(!aa, "cascade need an argument\n"); + META_ARGS({CHK_BAD_RET(aa[0] == '-', "cascade need an argument"); }) + } + STRY(cascade_parser(cascade_struct, next_a, aa, pa)); + i += incr; + goto enable_outscale_login_arg; + } + + if (i + 1 < ac && av[i + 1][0] == '-' && av[i + 1][1] == '-' && strcmp(av[i + 1] + 2, "set-var")) { + char *next_a = &av[i + 1][2]; + char *str = next_a; + char *aa = i + 2 < ac ? av[i + 2] : 0; + int aret = 0; + int incr = aa ? 2 : 1; + + (void)str; + if (aa && aa[0] == '-' && aa[1] == '-' && aa[2] != '-') { + META_ARGS({ aa = 0; incr = 1; }); + } + if ((aret = argcmp(next_a, "DryRun")) == 0 || aret == '=' || aret == '.') { + char *eq_ptr = strchr(next_a, '='); + if (eq_ptr) { + TRY((!*eq_ptr), "DryRun argument missing\n"); + aa = eq_ptr + 1; + incr = 1; + } + s->is_set_dry_run = 1; + if (!aa || !strcasecmp(aa, "true")) { + s->dry_run = 1; + } else if (!strcasecmp(aa, "false")) { + s->dry_run = 0; + } else { + BAD_RET("DryRun require true/false\n"); + } + } else + { + BAD_RET("'%s' is not a valid argument for 'EnableOutscaleLogin'\n", next_a); + } + i += incr; + goto enable_outscale_login_arg; + } + cret = osc_enable_outscale_login(&e, &r, &a); + jobj = NULL; + if (program_flag & OAPI_RAW_OUTPUT) { + if (r.buf) + puts(r.buf); + else if (cret) + fprintf(stderr, "fail to call EnableOutscaleLogin: %s", curl_easy_strerror(cret)); + } else if (r.buf) { + jobj = json_tokener_parse(r.buf); + puts(json_object_to_json_string_ext(jobj, + JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | + color_flag)); + } else fprintf(stderr, "called EnableOutscaleLogin (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + + if (cret) + return cret; + + while (i + 1 < ac && !strcmp(av[i + 1], "--set-var")) { + ++i; + TRY(i + 1 >= ac, "--set-var require an argument"); + if (!jobj) + jobj = json_tokener_parse(r.buf); + if (parse_variable(jobj, av, ac, i)) + return -1; + ++i; + } + + if (jobj) { + json_object_put(jobj); + jobj = NULL; + } + osc_deinit_str(&r); + } else + if (!strcmp("LinkFlexibleGpu", av[i])) { + auto_osc_json_c json_object *jobj = NULL; + auto_ptr_array struct ptr_array opa = {0}; + struct ptr_array *pa = &opa; + struct osc_link_flexible_gpu_arg a = {0}; + struct osc_link_flexible_gpu_arg *s = &a; + __attribute__((cleanup(files_cnt_cleanup))) char *files_cnt[MAX_FILES_PER_CMD] = {NULL}; + int cret; + + cascade_struct = NULL; + cascade_parser = NULL; + + link_flexible_gpu_arg: + + if (i + 1 < ac && av[i + 1][0] == '.' && av[i + 1][1] == '.') { + char *next_a = &av[i + 1][2]; + char *aa = i + 2 < ac ? av[i + 2] : 0; + int incr = 2; + char *eq_ptr = strchr(next_a, '='); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); + if (eq_ptr) { + CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); + incr = 1; + aa = eq_ptr + 1; + } else { + CHK_BAD_RET(!aa, "cascade need an argument\n"); + META_ARGS({CHK_BAD_RET(aa[0] == '-', "cascade need an argument"); }) + } + STRY(cascade_parser(cascade_struct, next_a, aa, pa)); + i += incr; + goto link_flexible_gpu_arg; + } + + if (i + 1 < ac && av[i + 1][0] == '-' && av[i + 1][1] == '-' && strcmp(av[i + 1] + 2, "set-var")) { + char *next_a = &av[i + 1][2]; + char *str = next_a; + char *aa = i + 2 < ac ? av[i + 2] : 0; + int aret = 0; + int incr = aa ? 2 : 1; + + (void)str; + if (aa && aa[0] == '-' && aa[1] == '-' && aa[2] != '-') { + META_ARGS({ aa = 0; incr = 1; }); + } + if ((aret = argcmp(next_a, "DryRun")) == 0 || aret == '=' || aret == '.') { + char *eq_ptr = strchr(next_a, '='); + if (eq_ptr) { + TRY((!*eq_ptr), "DryRun argument missing\n"); + aa = eq_ptr + 1; + incr = 1; + } + s->is_set_dry_run = 1; + if (!aa || !strcasecmp(aa, "true")) { + s->dry_run = 1; + } else if (!strcasecmp(aa, "false")) { + s->dry_run = 0; + } else { + BAD_RET("DryRun require true/false\n"); + } + } else + if ((aret = argcmp(next_a, "FlexibleGpuId")) == 0 || aret == '=' || aret == '.') { + char *eq_ptr = strchr(next_a, '='); + if (eq_ptr) { + TRY((!*eq_ptr), "FlexibleGpuId argument missing\n"); + aa = eq_ptr + 1; + incr = 1; + } + TRY(!aa, "FlexibleGpuId argument missing\n"); + s->flexible_gpu_id = aa; // string string + + } else + if ((aret = argcmp(next_a, "VmId")) == 0 || aret == '=' || aret == '.') { + char *eq_ptr = strchr(next_a, '='); + if (eq_ptr) { + TRY((!*eq_ptr), "VmId argument missing\n"); + aa = eq_ptr + 1; + incr = 1; + } + TRY(!aa, "VmId argument missing\n"); + s->vm_id = aa; // string string + + } else + { + BAD_RET("'%s' is not a valid argument for 'LinkFlexibleGpu'\n", next_a); + } + i += incr; + goto link_flexible_gpu_arg; + } + cret = osc_link_flexible_gpu(&e, &r, &a); + jobj = NULL; + if (program_flag & OAPI_RAW_OUTPUT) { + if (r.buf) + puts(r.buf); + else if (cret) + fprintf(stderr, "fail to call LinkFlexibleGpu: %s", curl_easy_strerror(cret)); + } else if (r.buf) { + jobj = json_tokener_parse(r.buf); + puts(json_object_to_json_string_ext(jobj, + JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | + color_flag)); + } else fprintf(stderr, "called LinkFlexibleGpu (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + + if (cret) + return cret; + + while (i + 1 < ac && !strcmp(av[i + 1], "--set-var")) { + ++i; + TRY(i + 1 >= ac, "--set-var require an argument"); + if (!jobj) + jobj = json_tokener_parse(r.buf); + if (parse_variable(jobj, av, ac, i)) + return -1; + ++i; + } + + if (jobj) { + json_object_put(jobj); + jobj = NULL; + } + osc_deinit_str(&r); + } else + if (!strcmp("LinkInternetService", av[i])) { + auto_osc_json_c json_object *jobj = NULL; + auto_ptr_array struct ptr_array opa = {0}; + struct ptr_array *pa = &opa; + struct osc_link_internet_service_arg a = {0}; + struct osc_link_internet_service_arg *s = &a; + __attribute__((cleanup(files_cnt_cleanup))) char *files_cnt[MAX_FILES_PER_CMD] = {NULL}; + int cret; + + cascade_struct = NULL; + cascade_parser = NULL; + + link_internet_service_arg: + + if (i + 1 < ac && av[i + 1][0] == '.' && av[i + 1][1] == '.') { + char *next_a = &av[i + 1][2]; + char *aa = i + 2 < ac ? av[i + 2] : 0; + int incr = 2; + char *eq_ptr = strchr(next_a, '='); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); + if (eq_ptr) { + CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); + incr = 1; + aa = eq_ptr + 1; + } else { + CHK_BAD_RET(!aa, "cascade need an argument\n"); + META_ARGS({CHK_BAD_RET(aa[0] == '-', "cascade need an argument"); }) + } + STRY(cascade_parser(cascade_struct, next_a, aa, pa)); + i += incr; + goto link_internet_service_arg; + } + + if (i + 1 < ac && av[i + 1][0] == '-' && av[i + 1][1] == '-' && strcmp(av[i + 1] + 2, "set-var")) { + char *next_a = &av[i + 1][2]; + char *str = next_a; + char *aa = i + 2 < ac ? av[i + 2] : 0; + int aret = 0; + int incr = aa ? 2 : 1; + + (void)str; + if (aa && aa[0] == '-' && aa[1] == '-' && aa[2] != '-') { + META_ARGS({ aa = 0; incr = 1; }); + } + if ((aret = argcmp(next_a, "DryRun")) == 0 || aret == '=' || aret == '.') { + char *eq_ptr = strchr(next_a, '='); + if (eq_ptr) { + TRY((!*eq_ptr), "DryRun argument missing\n"); + aa = eq_ptr + 1; + incr = 1; + } + s->is_set_dry_run = 1; + if (!aa || !strcasecmp(aa, "true")) { + s->dry_run = 1; + } else if (!strcasecmp(aa, "false")) { + s->dry_run = 0; + } else { + BAD_RET("DryRun require true/false\n"); + } + } else + if ((aret = argcmp(next_a, "InternetServiceId")) == 0 || aret == '=' || aret == '.') { + char *eq_ptr = strchr(next_a, '='); + if (eq_ptr) { + TRY((!*eq_ptr), "InternetServiceId argument missing\n"); + aa = eq_ptr + 1; + incr = 1; + } + TRY(!aa, "InternetServiceId argument missing\n"); + s->internet_service_id = aa; // string string + + } else + if ((aret = argcmp(next_a, "NetId")) == 0 || aret == '=' || aret == '.') { + char *eq_ptr = strchr(next_a, '='); + if (eq_ptr) { + TRY((!*eq_ptr), "NetId argument missing\n"); + aa = eq_ptr + 1; + incr = 1; + } + TRY(!aa, "NetId argument missing\n"); + s->net_id = aa; // string string + + } else + { + BAD_RET("'%s' is not a valid argument for 'LinkInternetService'\n", next_a); + } + i += incr; + goto link_internet_service_arg; + } + cret = osc_link_internet_service(&e, &r, &a); + jobj = NULL; + if (program_flag & OAPI_RAW_OUTPUT) { + if (r.buf) + puts(r.buf); + else if (cret) + fprintf(stderr, "fail to call LinkInternetService: %s", curl_easy_strerror(cret)); + } else if (r.buf) { + jobj = json_tokener_parse(r.buf); + puts(json_object_to_json_string_ext(jobj, + JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | + color_flag)); + } else fprintf(stderr, "called LinkInternetService (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + + if (cret) + return cret; + + while (i + 1 < ac && !strcmp(av[i + 1], "--set-var")) { + ++i; + TRY(i + 1 >= ac, "--set-var require an argument"); + if (!jobj) + jobj = json_tokener_parse(r.buf); + if (parse_variable(jobj, av, ac, i)) + return -1; + ++i; + } + + if (jobj) { + json_object_put(jobj); + jobj = NULL; + } + osc_deinit_str(&r); + } else + if (!strcmp("LinkLoadBalancerBackendMachines", av[i])) { + auto_osc_json_c json_object *jobj = NULL; + auto_ptr_array struct ptr_array opa = {0}; + struct ptr_array *pa = &opa; + struct osc_link_load_balancer_backend_machines_arg a = {0}; + struct osc_link_load_balancer_backend_machines_arg *s = &a; + __attribute__((cleanup(files_cnt_cleanup))) char *files_cnt[MAX_FILES_PER_CMD] = {NULL}; + int cret; + + cascade_struct = NULL; + cascade_parser = NULL; + + link_load_balancer_backend_machines_arg: + + if (i + 1 < ac && av[i + 1][0] == '.' && av[i + 1][1] == '.') { + char *next_a = &av[i + 1][2]; + char *aa = i + 2 < ac ? av[i + 2] : 0; + int incr = 2; + char *eq_ptr = strchr(next_a, '='); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); + if (eq_ptr) { + CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); + incr = 1; + aa = eq_ptr + 1; + } else { + CHK_BAD_RET(!aa, "cascade need an argument\n"); + META_ARGS({CHK_BAD_RET(aa[0] == '-', "cascade need an argument"); }) + } + STRY(cascade_parser(cascade_struct, next_a, aa, pa)); + i += incr; + goto link_load_balancer_backend_machines_arg; + } + + if (i + 1 < ac && av[i + 1][0] == '-' && av[i + 1][1] == '-' && strcmp(av[i + 1] + 2, "set-var")) { + char *next_a = &av[i + 1][2]; + char *str = next_a; + char *aa = i + 2 < ac ? av[i + 2] : 0; + int aret = 0; + int incr = aa ? 2 : 1; + + (void)str; + if (aa && aa[0] == '-' && aa[1] == '-' && aa[2] != '-') { + META_ARGS({ aa = 0; incr = 1; }); + } + if ((aret = argcmp(next_a, "BackendIps")) == 0 || aret == '=' || aret == '.') { + char *eq_ptr = strchr(next_a, '='); + if (eq_ptr) { + TRY((!*eq_ptr), "BackendIps argument missing\n"); + aa = eq_ptr + 1; + incr = 1; + } + if (aret == '.') { + int pos; + char *endptr; + int last = 0; + char *dot_pos = strchr(str, '.'); + + TRY(!(dot_pos++), "BackendIps argument missing\n"); + pos = strtoul(dot_pos, &endptr, 0); + TRY(endptr == dot_pos, "BackendIps require an index\n"); + if (s->backend_ips) { + for (; s->backend_ips[last]; ++last); + } + if (pos < last) { + s->backend_ips[pos] = (aa); + } else { + for (int i = last; i < pos; ++i) + SET_NEXT(s->backend_ips, "", pa); + SET_NEXT(s->backend_ips, (aa), pa); + } + } else { + TRY(!aa, "BackendIps argument missing\n"); + s->backend_ips_str = aa; + } + } else if (!(aret = argcmp(str, "BackendIps[]")) || aret == '=') { + TRY(!aa, "BackendIps[] argument missing\n"); + SET_NEXT(s->backend_ips, (aa), pa); + } else + if ((aret = argcmp(next_a, "BackendVmIds")) == 0 || aret == '=' || aret == '.') { + char *eq_ptr = strchr(next_a, '='); + if (eq_ptr) { + TRY((!*eq_ptr), "BackendVmIds argument missing\n"); + aa = eq_ptr + 1; + incr = 1; + } + if (aret == '.') { + int pos; + char *endptr; + int last = 0; + char *dot_pos = strchr(str, '.'); + + TRY(!(dot_pos++), "BackendVmIds argument missing\n"); + pos = strtoul(dot_pos, &endptr, 0); + TRY(endptr == dot_pos, "BackendVmIds require an index\n"); + if (s->backend_vm_ids) { + for (; s->backend_vm_ids[last]; ++last); + } + if (pos < last) { + s->backend_vm_ids[pos] = (aa); + } else { + for (int i = last; i < pos; ++i) + SET_NEXT(s->backend_vm_ids, "", pa); + SET_NEXT(s->backend_vm_ids, (aa), pa); + } + } else { + TRY(!aa, "BackendVmIds argument missing\n"); + s->backend_vm_ids_str = aa; + } + } else if (!(aret = argcmp(str, "BackendVmIds[]")) || aret == '=') { + TRY(!aa, "BackendVmIds[] argument missing\n"); + SET_NEXT(s->backend_vm_ids, (aa), pa); + } else + if ((aret = argcmp(next_a, "DryRun")) == 0 || aret == '=' || aret == '.') { + char *eq_ptr = strchr(next_a, '='); + if (eq_ptr) { + TRY((!*eq_ptr), "DryRun argument missing\n"); + aa = eq_ptr + 1; + incr = 1; + } + s->is_set_dry_run = 1; + if (!aa || !strcasecmp(aa, "true")) { + s->dry_run = 1; + } else if (!strcasecmp(aa, "false")) { + s->dry_run = 0; + } else { + BAD_RET("DryRun require true/false\n"); + } + } else + if ((aret = argcmp(next_a, "LoadBalancerName")) == 0 || aret == '=' || aret == '.') { + char *eq_ptr = strchr(next_a, '='); + if (eq_ptr) { + TRY((!*eq_ptr), "LoadBalancerName argument missing\n"); + aa = eq_ptr + 1; + incr = 1; + } + TRY(!aa, "LoadBalancerName argument missing\n"); + s->load_balancer_name = aa; // string string + + } else + { + BAD_RET("'%s' is not a valid argument for 'LinkLoadBalancerBackendMachines'\n", next_a); + } + i += incr; + goto link_load_balancer_backend_machines_arg; + } + cret = osc_link_load_balancer_backend_machines(&e, &r, &a); + jobj = NULL; + if (program_flag & OAPI_RAW_OUTPUT) { + if (r.buf) + puts(r.buf); + else if (cret) + fprintf(stderr, "fail to call LinkLoadBalancerBackendMachines: %s", curl_easy_strerror(cret)); + } else if (r.buf) { + jobj = json_tokener_parse(r.buf); + puts(json_object_to_json_string_ext(jobj, + JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | + color_flag)); + } else fprintf(stderr, "called LinkLoadBalancerBackendMachines (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -32951,8 +33534,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -33016,7 +33598,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'LinkManagedPolicyToUserGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'LinkManagedPolicyToUserGroup'\n", next_a); } i += incr; goto link_managed_policy_to_user_group_arg; @@ -33033,7 +33615,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called LinkManagedPolicyToUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called LinkManagedPolicyToUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -33073,8 +33655,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -33149,7 +33730,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'LinkNic'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'LinkNic'\n", next_a); } i += incr; goto link_nic_arg; @@ -33166,7 +33747,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called LinkNic (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called LinkNic (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -33206,8 +33787,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -33271,7 +33851,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'LinkPolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'LinkPolicy'\n", next_a); } i += incr; goto link_policy_arg; @@ -33288,7 +33868,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called LinkPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called LinkPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -33328,8 +33908,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -33443,7 +34022,7 @@ int main(int ac, char **av) s->secondary_private_ip_count = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'LinkPrivateIps'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'LinkPrivateIps'\n", next_a); } i += incr; goto link_private_ips_arg; @@ -33460,7 +34039,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called LinkPrivateIps (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called LinkPrivateIps (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -33500,8 +34079,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -33614,7 +34192,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'LinkPublicIp'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'LinkPublicIp'\n", next_a); } i += incr; goto link_public_ip_arg; @@ -33631,7 +34209,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called LinkPublicIp (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called LinkPublicIp (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -33671,8 +34249,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -33736,7 +34313,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'LinkRouteTable'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'LinkRouteTable'\n", next_a); } i += incr; goto link_route_table_arg; @@ -33753,7 +34330,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called LinkRouteTable (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called LinkRouteTable (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -33793,8 +34370,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -33858,7 +34434,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'LinkVirtualGateway'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'LinkVirtualGateway'\n", next_a); } i += incr; goto link_virtual_gateway_arg; @@ -33875,7 +34451,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called LinkVirtualGateway (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called LinkVirtualGateway (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -33915,8 +34491,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -33991,7 +34566,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'LinkVolume'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'LinkVolume'\n", next_a); } i += incr; goto link_volume_arg; @@ -34008,7 +34583,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called LinkVolume (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called LinkVolume (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -34048,8 +34623,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -34135,7 +34709,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'PutUserGroupPolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'PutUserGroupPolicy'\n", next_a); } i += incr; goto put_user_group_policy_arg; @@ -34152,7 +34726,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called PutUserGroupPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called PutUserGroupPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -34192,8 +34766,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -34268,7 +34841,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'PutUserPolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'PutUserPolicy'\n", next_a); } i += incr; goto put_user_policy_arg; @@ -34285,7 +34858,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called PutUserPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called PutUserPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -34325,8 +34898,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -34413,7 +34985,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadAccessKeys'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadAccessKeys'\n", next_a); } i += incr; goto read_access_keys_arg; @@ -34430,7 +35002,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadAccessKeys (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadAccessKeys (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -34470,8 +35042,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -34513,7 +35084,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadAccounts'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadAccounts'\n", next_a); } i += incr; goto read_accounts_arg; @@ -34530,7 +35101,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadAccounts (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadAccounts (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -34570,8 +35141,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -34624,7 +35194,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadAdminPassword'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadAdminPassword'\n", next_a); } i += incr; goto read_admin_password_arg; @@ -34641,7 +35211,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadAdminPassword (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadAdminPassword (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -34681,8 +35251,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -34724,7 +35293,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadApiAccessPolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadApiAccessPolicy'\n", next_a); } i += incr; goto read_api_access_policy_arg; @@ -34741,7 +35310,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadApiAccessPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadApiAccessPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -34781,8 +35350,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -34847,7 +35415,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadApiAccessRules'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadApiAccessRules'\n", next_a); } i += incr; goto read_api_access_rules_arg; @@ -34864,7 +35432,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadApiAccessRules (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadApiAccessRules (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -34904,8 +35472,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -35015,7 +35582,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadApiLogs'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadApiLogs'\n", next_a); } i += incr; goto read_api_logs_arg; @@ -35032,7 +35599,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadApiLogs (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadApiLogs (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -35072,8 +35639,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -35138,7 +35704,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadCas'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadCas'\n", next_a); } i += incr; goto read_cas_arg; @@ -35155,7 +35721,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadCas (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadCas (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -35195,8 +35761,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -35238,7 +35803,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadCatalog'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadCatalog'\n", next_a); } i += incr; goto read_catalog_arg; @@ -35255,7 +35820,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadCatalog (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadCatalog (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -35295,8 +35860,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -35361,7 +35925,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadCatalogs'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadCatalogs'\n", next_a); } i += incr; goto read_catalogs_arg; @@ -35378,7 +35942,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadCatalogs (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadCatalogs (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -35418,8 +35982,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -35506,7 +36069,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadClientGateways'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadClientGateways'\n", next_a); } i += incr; goto read_client_gateways_arg; @@ -35523,7 +36086,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadClientGateways (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadClientGateways (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -35563,8 +36126,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -35617,7 +36179,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadConsoleOutput'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadConsoleOutput'\n", next_a); } i += incr; goto read_console_output_arg; @@ -35634,7 +36196,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadConsoleOutput (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadConsoleOutput (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -35674,8 +36236,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -35771,7 +36332,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadConsumptionAccount'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadConsumptionAccount'\n", next_a); } i += incr; goto read_consumption_account_arg; @@ -35788,7 +36349,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadConsumptionAccount (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadConsumptionAccount (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -35828,8 +36389,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -35916,7 +36476,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadDedicatedGroups'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadDedicatedGroups'\n", next_a); } i += incr; goto read_dedicated_groups_arg; @@ -35933,7 +36493,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadDedicatedGroups (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadDedicatedGroups (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -35973,8 +36533,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -36061,7 +36620,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadDhcpOptions'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadDhcpOptions'\n", next_a); } i += incr; goto read_dhcp_options_arg; @@ -36078,7 +36637,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadDhcpOptions (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadDhcpOptions (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -36118,8 +36677,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -36206,7 +36764,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadDirectLinkInterfaces'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadDirectLinkInterfaces'\n", next_a); } i += incr; goto read_direct_link_interfaces_arg; @@ -36223,7 +36781,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadDirectLinkInterfaces (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadDirectLinkInterfaces (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -36263,8 +36821,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -36351,7 +36908,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadDirectLinks'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadDirectLinks'\n", next_a); } i += incr; goto read_direct_links_arg; @@ -36368,7 +36925,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadDirectLinks (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadDirectLinks (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -36408,8 +36965,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -36502,7 +37058,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadEntitiesLinkedToPolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadEntitiesLinkedToPolicy'\n", next_a); } i += incr; goto read_entities_linked_to_policy_arg; @@ -36519,7 +37075,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadEntitiesLinkedToPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadEntitiesLinkedToPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -36559,8 +37115,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -36602,7 +37157,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadFlexibleGpuCatalog'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadFlexibleGpuCatalog'\n", next_a); } i += incr; goto read_flexible_gpu_catalog_arg; @@ -36619,7 +37174,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadFlexibleGpuCatalog (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadFlexibleGpuCatalog (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -36659,8 +37214,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -36725,7 +37279,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadFlexibleGpus'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadFlexibleGpus'\n", next_a); } i += incr; goto read_flexible_gpus_arg; @@ -36742,7 +37296,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadFlexibleGpus (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadFlexibleGpus (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -36782,8 +37336,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -36870,7 +37423,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadImageExportTasks'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadImageExportTasks'\n", next_a); } i += incr; goto read_image_export_tasks_arg; @@ -36887,7 +37440,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadImageExportTasks (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadImageExportTasks (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -36927,8 +37480,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -37015,7 +37567,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadImages'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadImages'\n", next_a); } i += incr; goto read_images_arg; @@ -37032,7 +37584,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadImages (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadImages (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -37072,8 +37624,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -37160,7 +37711,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadInternetServices'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadInternetServices'\n", next_a); } i += incr; goto read_internet_services_arg; @@ -37177,7 +37728,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadInternetServices (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadInternetServices (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -37217,8 +37768,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -37305,7 +37855,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadKeypairs'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadKeypairs'\n", next_a); } i += incr; goto read_keypairs_arg; @@ -37322,7 +37872,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadKeypairs (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadKeypairs (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -37362,8 +37912,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -37461,7 +38010,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadLinkedPolicies'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadLinkedPolicies'\n", next_a); } i += incr; goto read_linked_policies_arg; @@ -37478,7 +38027,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadLinkedPolicies (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadLinkedPolicies (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -37518,8 +38067,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -37584,7 +38132,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadListenerRules'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadListenerRules'\n", next_a); } i += incr; goto read_listener_rules_arg; @@ -37601,7 +38149,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadListenerRules (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadListenerRules (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -37641,8 +38189,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -37718,7 +38265,7 @@ int main(int ac, char **av) SET_NEXT(s->load_balancer_names, (aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadLoadBalancerTags'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadLoadBalancerTags'\n", next_a); } i += incr; goto read_load_balancer_tags_arg; @@ -37735,7 +38282,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadLoadBalancerTags (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadLoadBalancerTags (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -37775,8 +38322,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -37841,7 +38387,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadLoadBalancers'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadLoadBalancers'\n", next_a); } i += incr; goto read_load_balancers_arg; @@ -37858,7 +38404,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadLoadBalancers (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadLoadBalancers (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -37898,8 +38444,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -37963,7 +38508,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadLocations'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadLocations'\n", next_a); } i += incr; goto read_locations_arg; @@ -37980,7 +38525,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadLocations (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadLocations (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -38020,8 +38565,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -38119,7 +38663,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadManagedPoliciesLinkedToUserGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadManagedPoliciesLinkedToUserGroup'\n", next_a); } i += incr; goto read_managed_policies_linked_to_user_group_arg; @@ -38136,7 +38680,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadManagedPoliciesLinkedToUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadManagedPoliciesLinkedToUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -38176,8 +38720,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -38264,7 +38807,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadNatServices'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadNatServices'\n", next_a); } i += incr; goto read_nat_services_arg; @@ -38281,7 +38824,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadNatServices (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadNatServices (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -38321,8 +38864,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -38409,7 +38951,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadNetAccessPointServices'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadNetAccessPointServices'\n", next_a); } i += incr; goto read_net_access_point_services_arg; @@ -38426,7 +38968,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadNetAccessPointServices (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadNetAccessPointServices (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -38466,8 +39008,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -38554,7 +39095,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadNetAccessPoints'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadNetAccessPoints'\n", next_a); } i += incr; goto read_net_access_points_arg; @@ -38571,7 +39112,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadNetAccessPoints (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadNetAccessPoints (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -38611,8 +39152,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -38699,7 +39239,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadNetPeerings'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadNetPeerings'\n", next_a); } i += incr; goto read_net_peerings_arg; @@ -38716,7 +39256,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadNetPeerings (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadNetPeerings (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -38756,8 +39296,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -38844,7 +39383,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadNets'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadNets'\n", next_a); } i += incr; goto read_nets_arg; @@ -38861,7 +39400,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadNets (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadNets (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -38901,8 +39440,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -38989,7 +39527,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadNics'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadNics'\n", next_a); } i += incr; goto read_nics_arg; @@ -39006,7 +39544,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadNics (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadNics (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -39046,8 +39584,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -39134,7 +39671,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadPolicies'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadPolicies'\n", next_a); } i += incr; goto read_policies_arg; @@ -39151,7 +39688,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadPolicies (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadPolicies (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -39191,8 +39728,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -39229,7 +39765,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadPolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadPolicy'\n", next_a); } i += incr; goto read_policy_arg; @@ -39246,7 +39782,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -39286,8 +39822,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -39335,7 +39870,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadPolicyVersion'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadPolicyVersion'\n", next_a); } i += incr; goto read_policy_version_arg; @@ -39352,7 +39887,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadPolicyVersion (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadPolicyVersion (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -39392,8 +39927,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -39452,7 +39986,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadPolicyVersions'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadPolicyVersions'\n", next_a); } i += incr; goto read_policy_versions_arg; @@ -39469,7 +40003,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadPolicyVersions (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadPolicyVersions (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -39509,8 +40043,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -39597,7 +40130,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadProductTypes'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadProductTypes'\n", next_a); } i += incr; goto read_product_types_arg; @@ -39614,7 +40147,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadProductTypes (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadProductTypes (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -39654,8 +40187,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -39697,7 +40229,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadPublicCatalog'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadPublicCatalog'\n", next_a); } i += incr; goto read_public_catalog_arg; @@ -39714,7 +40246,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadPublicCatalog (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadPublicCatalog (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -39754,8 +40286,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -39819,7 +40350,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadPublicIpRanges'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadPublicIpRanges'\n", next_a); } i += incr; goto read_public_ip_ranges_arg; @@ -39836,7 +40367,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadPublicIpRanges (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadPublicIpRanges (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -39876,8 +40407,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -39964,7 +40494,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadPublicIps'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadPublicIps'\n", next_a); } i += incr; goto read_public_ips_arg; @@ -39981,7 +40511,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadPublicIps (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadPublicIps (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -40021,8 +40551,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -40109,7 +40638,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadQuotas'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadQuotas'\n", next_a); } i += incr; goto read_quotas_arg; @@ -40126,7 +40655,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadQuotas (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadQuotas (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -40166,8 +40695,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -40209,7 +40737,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadRegions'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadRegions'\n", next_a); } i += incr; goto read_regions_arg; @@ -40226,7 +40754,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadRegions (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadRegions (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -40266,8 +40794,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -40354,7 +40881,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadRouteTables'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadRouteTables'\n", next_a); } i += incr; goto read_route_tables_arg; @@ -40371,7 +40898,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadRouteTables (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadRouteTables (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -40411,8 +40938,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -40499,7 +41025,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadSecurityGroups'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadSecurityGroups'\n", next_a); } i += incr; goto read_security_groups_arg; @@ -40516,7 +41042,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadSecurityGroups (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadSecurityGroups (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -40556,8 +41082,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -40622,7 +41147,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadServerCertificates'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadServerCertificates'\n", next_a); } i += incr; goto read_server_certificates_arg; @@ -40639,7 +41164,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadServerCertificates (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadServerCertificates (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -40679,8 +41204,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -40767,7 +41291,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadSnapshotExportTasks'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadSnapshotExportTasks'\n", next_a); } i += incr; goto read_snapshot_export_tasks_arg; @@ -40784,7 +41308,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadSnapshotExportTasks (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadSnapshotExportTasks (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -40824,8 +41348,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -40912,7 +41435,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadSnapshots'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadSnapshots'\n", next_a); } i += incr; goto read_snapshots_arg; @@ -40929,7 +41452,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadSnapshots (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadSnapshots (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -40969,8 +41492,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -41057,7 +41579,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadSubnets'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadSubnets'\n", next_a); } i += incr; goto read_subnets_arg; @@ -41074,7 +41596,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadSubnets (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadSubnets (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -41114,8 +41636,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -41202,7 +41723,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadSubregions'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadSubregions'\n", next_a); } i += incr; goto read_subregions_arg; @@ -41219,7 +41740,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadSubregions (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadSubregions (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -41259,8 +41780,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -41347,7 +41867,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadTags'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadTags'\n", next_a); } i += incr; goto read_tags_arg; @@ -41364,7 +41884,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadTags (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadTags (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -41404,8 +41924,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -41464,7 +41983,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadUnitPrice'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadUnitPrice'\n", next_a); } i += incr; goto read_unit_price_arg; @@ -41481,7 +42000,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadUnitPrice (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadUnitPrice (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -41521,8 +42040,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -41608,7 +42126,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadUserGroupPolicies'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadUserGroupPolicies'\n", next_a); } i += incr; goto read_user_group_policies_arg; @@ -41625,7 +42143,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadUserGroupPolicies (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadUserGroupPolicies (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -41665,8 +42183,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -41741,7 +42258,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadUserGroupPolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadUserGroupPolicy'\n", next_a); } i += incr; goto read_user_group_policy_arg; @@ -41758,7 +42275,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadUserGroupPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadUserGroupPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -41798,8 +42315,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -41863,7 +42379,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadUserGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadUserGroup'\n", next_a); } i += incr; goto read_user_group_arg; @@ -41880,7 +42396,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -41920,8 +42436,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -41985,7 +42500,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadUserGroupsPerUser'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadUserGroupsPerUser'\n", next_a); } i += incr; goto read_user_groups_per_user_arg; @@ -42002,7 +42517,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadUserGroupsPerUser (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadUserGroupsPerUser (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -42042,8 +42557,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -42130,7 +42644,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadUserGroups'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadUserGroups'\n", next_a); } i += incr; goto read_user_groups_arg; @@ -42147,7 +42661,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadUserGroups (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadUserGroups (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -42187,8 +42701,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -42241,7 +42754,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadUserPolicies'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadUserPolicies'\n", next_a); } i += incr; goto read_user_policies_arg; @@ -42258,7 +42771,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadUserPolicies (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadUserPolicies (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -42298,8 +42811,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -42363,7 +42875,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadUserPolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadUserPolicy'\n", next_a); } i += incr; goto read_user_policy_arg; @@ -42380,7 +42892,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadUserPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadUserPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -42420,8 +42932,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -42508,7 +43019,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadUsers'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadUsers'\n", next_a); } i += incr; goto read_users_arg; @@ -42525,7 +43036,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadUsers (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadUsers (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -42565,8 +43076,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -42653,7 +43163,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadVirtualGateways'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadVirtualGateways'\n", next_a); } i += incr; goto read_virtual_gateways_arg; @@ -42670,7 +43180,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadVirtualGateways (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadVirtualGateways (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -42710,8 +43220,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -42776,7 +43285,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadVmGroups'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadVmGroups'\n", next_a); } i += incr; goto read_vm_groups_arg; @@ -42793,7 +43302,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadVmGroups (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadVmGroups (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -42833,8 +43342,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -42899,7 +43407,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'ReadVmTemplates'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadVmTemplates'\n", next_a); } i += incr; goto read_vm_templates_arg; @@ -42916,7 +43424,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadVmTemplates (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadVmTemplates (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -42956,8 +43464,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -43044,7 +43551,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadVmTypes'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadVmTypes'\n", next_a); } i += incr; goto read_vm_types_arg; @@ -43061,7 +43568,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadVmTypes (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadVmTypes (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -43101,8 +43608,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -43189,7 +43695,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ReadVmsHealth'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadVmsHealth'\n", next_a); } i += incr; goto read_vms_health_arg; @@ -43206,7 +43712,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadVmsHealth (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadVmsHealth (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -43246,8 +43752,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -43334,7 +43839,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadVms'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadVms'\n", next_a); } i += incr; goto read_vms_arg; @@ -43351,7 +43856,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadVms (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadVms (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -43391,8 +43896,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -43495,7 +43999,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadVmsState'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadVmsState'\n", next_a); } i += incr; goto read_vms_state_arg; @@ -43512,7 +44016,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadVmsState (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadVmsState (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -43552,8 +44056,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -43640,7 +44143,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadVolumes'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadVolumes'\n", next_a); } i += incr; goto read_volumes_arg; @@ -43657,7 +44160,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadVolumes (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadVolumes (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -43697,8 +44200,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -43785,7 +44287,7 @@ int main(int ac, char **av) s->results_per_page = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ReadVpnConnections'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ReadVpnConnections'\n", next_a); } i += incr; goto read_vpn_connections_arg; @@ -43802,7 +44304,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ReadVpnConnections (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ReadVpnConnections (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -43842,8 +44344,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -43919,7 +44420,7 @@ int main(int ac, char **av) SET_NEXT(s->vm_ids, (aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'RebootVms'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'RebootVms'\n", next_a); } i += incr; goto reboot_vms_arg; @@ -43936,7 +44437,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called RebootVms (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called RebootVms (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -43976,8 +44477,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -44064,7 +44564,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'RegisterVmsInLoadBalancer'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'RegisterVmsInLoadBalancer'\n", next_a); } i += incr; goto register_vms_in_load_balancer_arg; @@ -44081,7 +44581,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called RegisterVmsInLoadBalancer (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called RegisterVmsInLoadBalancer (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -44121,8 +44621,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -44175,7 +44674,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'RejectNetPeering'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'RejectNetPeering'\n", next_a); } i += incr; goto reject_net_peering_arg; @@ -44192,7 +44691,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called RejectNetPeering (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called RejectNetPeering (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -44232,8 +44731,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -44319,7 +44817,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'RemoveUserFromUserGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'RemoveUserFromUserGroup'\n", next_a); } i += incr; goto remove_user_from_user_group_arg; @@ -44336,7 +44834,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called RemoveUserFromUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called RemoveUserFromUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -44376,8 +44874,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -44441,7 +44938,7 @@ int main(int ac, char **av) s->vm_subtraction = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'ScaleDownVmGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ScaleDownVmGroup'\n", next_a); } i += incr; goto scale_down_vm_group_arg; @@ -44458,7 +44955,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ScaleDownVmGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ScaleDownVmGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -44498,8 +44995,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -44563,7 +45059,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'ScaleUpVmGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'ScaleUpVmGroup'\n", next_a); } i += incr; goto scale_up_vm_group_arg; @@ -44580,7 +45076,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called ScaleUpVmGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called ScaleUpVmGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -44620,8 +45116,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -44669,7 +45164,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'SetDefaultPolicyVersion'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'SetDefaultPolicyVersion'\n", next_a); } i += incr; goto set_default_policy_version_arg; @@ -44686,7 +45181,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called SetDefaultPolicyVersion (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called SetDefaultPolicyVersion (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -44726,8 +45221,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -44803,7 +45297,7 @@ int main(int ac, char **av) SET_NEXT(s->vm_ids, (aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'StartVms'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'StartVms'\n", next_a); } i += incr; goto start_vms_arg; @@ -44820,7 +45314,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called StartVms (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called StartVms (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -44860,8 +45354,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -44953,7 +45446,7 @@ int main(int ac, char **av) SET_NEXT(s->vm_ids, (aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'StopVms'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'StopVms'\n", next_a); } i += incr; goto stop_vms_arg; @@ -44970,7 +45463,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called StopVms (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called StopVms (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -45010,8 +45503,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -45064,7 +45556,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UnlinkFlexibleGpu'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UnlinkFlexibleGpu'\n", next_a); } i += incr; goto unlink_flexible_gpu_arg; @@ -45081,7 +45573,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UnlinkFlexibleGpu (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UnlinkFlexibleGpu (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -45121,8 +45613,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -45186,7 +45677,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UnlinkInternetService'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UnlinkInternetService'\n", next_a); } i += incr; goto unlink_internet_service_arg; @@ -45203,7 +45694,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UnlinkInternetService (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UnlinkInternetService (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -45243,8 +45734,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -45365,7 +45855,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UnlinkLoadBalancerBackendMachines'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UnlinkLoadBalancerBackendMachines'\n", next_a); } i += incr; goto unlink_load_balancer_backend_machines_arg; @@ -45382,7 +45872,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UnlinkLoadBalancerBackendMachines (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UnlinkLoadBalancerBackendMachines (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -45422,8 +45912,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -45487,7 +45976,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UnlinkManagedPolicyFromUserGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UnlinkManagedPolicyFromUserGroup'\n", next_a); } i += incr; goto unlink_managed_policy_from_user_group_arg; @@ -45504,7 +45993,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UnlinkManagedPolicyFromUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UnlinkManagedPolicyFromUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -45544,8 +46033,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -45598,7 +46086,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UnlinkNic'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UnlinkNic'\n", next_a); } i += incr; goto unlink_nic_arg; @@ -45615,7 +46103,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UnlinkNic (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UnlinkNic (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -45655,8 +46143,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -45720,7 +46207,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UnlinkPolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UnlinkPolicy'\n", next_a); } i += incr; goto unlink_policy_arg; @@ -45737,7 +46224,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UnlinkPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UnlinkPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -45777,8 +46264,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -45865,7 +46351,7 @@ int main(int ac, char **av) SET_NEXT(s->private_ips, (aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'UnlinkPrivateIps'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UnlinkPrivateIps'\n", next_a); } i += incr; goto unlink_private_ips_arg; @@ -45882,7 +46368,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UnlinkPrivateIps (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UnlinkPrivateIps (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -45922,8 +46408,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -45987,7 +46472,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UnlinkPublicIp'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UnlinkPublicIp'\n", next_a); } i += incr; goto unlink_public_ip_arg; @@ -46004,7 +46489,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UnlinkPublicIp (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UnlinkPublicIp (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -46044,8 +46529,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -46098,7 +46582,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UnlinkRouteTable'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UnlinkRouteTable'\n", next_a); } i += incr; goto unlink_route_table_arg; @@ -46115,7 +46599,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UnlinkRouteTable (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UnlinkRouteTable (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -46155,8 +46639,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -46220,7 +46703,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UnlinkVirtualGateway'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UnlinkVirtualGateway'\n", next_a); } i += incr; goto unlink_virtual_gateway_arg; @@ -46237,7 +46720,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UnlinkVirtualGateway (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UnlinkVirtualGateway (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -46277,8 +46760,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -46347,7 +46829,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UnlinkVolume'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UnlinkVolume'\n", next_a); } i += incr; goto unlink_volume_arg; @@ -46364,7 +46846,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UnlinkVolume (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UnlinkVolume (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -46404,8 +46886,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -46491,7 +46972,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateAccessKey'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateAccessKey'\n", next_a); } i += incr; goto update_access_key_arg; @@ -46508,7 +46989,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateAccessKey (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateAccessKey (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -46548,8 +47029,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -46757,7 +47237,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateAccount'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateAccount'\n", next_a); } i += incr; goto update_account_arg; @@ -46774,7 +47254,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateAccount (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateAccount (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -46814,8 +47294,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -46884,7 +47363,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'UpdateApiAccessPolicy'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateApiAccessPolicy'\n", next_a); } i += incr; goto update_api_access_policy_arg; @@ -46901,7 +47380,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateApiAccessPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateApiAccessPolicy (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -46941,8 +47420,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -47108,7 +47586,7 @@ int main(int ac, char **av) SET_NEXT(s->ip_ranges, (aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'UpdateApiAccessRule'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateApiAccessRule'\n", next_a); } i += incr; goto update_api_access_rule_arg; @@ -47125,7 +47603,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateApiAccessRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateApiAccessRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -47165,8 +47643,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -47230,7 +47707,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'UpdateCa'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateCa'\n", next_a); } i += incr; goto update_ca_arg; @@ -47247,7 +47724,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateCa (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateCa (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -47287,8 +47764,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -47352,7 +47828,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateDedicatedGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateDedicatedGroup'\n", next_a); } i += incr; goto update_dedicated_group_arg; @@ -47369,7 +47845,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateDedicatedGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateDedicatedGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -47409,8 +47885,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -47474,7 +47949,7 @@ int main(int ac, char **av) s->mtu = atoll(aa); } else { - BAD_RET("'%s' is not a valide argument for 'UpdateDirectLinkInterface'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateDirectLinkInterface'\n", next_a); } i += incr; goto update_direct_link_interface_arg; @@ -47491,7 +47966,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateDirectLinkInterface (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateDirectLinkInterface (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -47531,8 +48006,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -47601,7 +48075,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateFlexibleGpu'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateFlexibleGpu'\n", next_a); } i += incr; goto update_flexible_gpu_arg; @@ -47618,7 +48092,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateFlexibleGpu (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateFlexibleGpu (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -47658,8 +48132,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -47780,7 +48253,7 @@ int main(int ac, char **av) SET_NEXT(s->product_codes, (aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'UpdateImage'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateImage'\n", next_a); } i += incr; goto update_image_arg; @@ -47797,7 +48270,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateImage (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateImage (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -47837,8 +48310,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -47913,7 +48385,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateListenerRule'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateListenerRule'\n", next_a); } i += incr; goto update_listener_rule_arg; @@ -47930,7 +48402,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateListenerRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateListenerRule (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -47970,8 +48442,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -48187,7 +48658,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateLoadBalancer'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateLoadBalancer'\n", next_a); } i += incr; goto update_load_balancer_arg; @@ -48204,7 +48675,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateLoadBalancer (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateLoadBalancer (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -48244,8 +48715,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -48366,7 +48836,7 @@ int main(int ac, char **av) SET_NEXT(s->remove_route_table_ids, (aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'UpdateNetAccessPoint'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateNetAccessPoint'\n", next_a); } i += incr; goto update_net_access_point_arg; @@ -48383,7 +48853,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateNetAccessPoint (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateNetAccessPoint (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -48423,8 +48893,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -48488,7 +48957,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateNet'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateNet'\n", next_a); } i += incr; goto update_net_arg; @@ -48505,7 +48974,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateNet (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateNet (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -48545,8 +49014,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -48667,7 +49135,7 @@ int main(int ac, char **av) SET_NEXT(s->security_group_ids, (aa), pa); } else { - BAD_RET("'%s' is not a valide argument for 'UpdateNic'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateNic'\n", next_a); } i += incr; goto update_nic_arg; @@ -48684,7 +49152,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateNic (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateNic (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -48724,8 +49192,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -48805,7 +49272,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateRoutePropagation'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateRoutePropagation'\n", next_a); } i += incr; goto update_route_propagation_arg; @@ -48822,7 +49289,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateRoutePropagation (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateRoutePropagation (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -48862,8 +49329,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -48982,7 +49448,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateRoute'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateRoute'\n", next_a); } i += incr; goto update_route_arg; @@ -48999,7 +49465,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateRoute (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateRoute (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -49039,8 +49505,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -49104,7 +49569,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateRouteTableLink'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateRouteTableLink'\n", next_a); } i += incr; goto update_route_table_link_arg; @@ -49121,7 +49586,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateRouteTableLink (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateRouteTableLink (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -49161,8 +49626,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -49237,7 +49701,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateServerCertificate'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateServerCertificate'\n", next_a); } i += incr; goto update_server_certificate_arg; @@ -49254,7 +49718,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateServerCertificate (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateServerCertificate (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -49294,8 +49758,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -49371,7 +49834,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateSnapshot'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateSnapshot'\n", next_a); } i += incr; goto update_snapshot_arg; @@ -49388,7 +49851,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateSnapshot (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateSnapshot (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -49428,8 +49891,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -49498,7 +49960,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateSubnet'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateSubnet'\n", next_a); } i += incr; goto update_subnet_arg; @@ -49515,7 +49977,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateSubnet (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateSubnet (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -49555,8 +50017,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -49642,7 +50103,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateUserGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateUserGroup'\n", next_a); } i += incr; goto update_user_group_arg; @@ -49659,7 +50120,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateUserGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -49699,8 +50160,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -49786,7 +50246,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateUser'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateUser'\n", next_a); } i += incr; goto update_user_arg; @@ -49803,7 +50263,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateUser (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateUser (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -49843,8 +50303,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -49914,7 +50373,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -49961,7 +50420,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateVmGroup'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateVmGroup'\n", next_a); } i += incr; goto update_vm_group_arg; @@ -49978,7 +50437,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateVmGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateVmGroup (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -50018,8 +50477,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -50085,7 +50543,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'BlockDeviceMappings' require an index (example array ref BlockDeviceMappingVmUpdate.BlockDeviceMappings.0)\n"); else if (*endptr != '.') - BAD_RET("'BlockDeviceMappings' require a .\n"); + BAD_RET("'BlockDeviceMappings' require a '.'\n"); TRY_ALLOC_AT(s,block_device_mappings, pa, pos, sizeof(*s->block_device_mappings)); cascade_struct = &s->block_device_mappings[pos]; cascade_parser = block_device_mapping_vm_update_parser; @@ -50279,7 +50737,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateVm'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateVm'\n", next_a); } i += incr; goto update_vm_arg; @@ -50296,7 +50754,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateVm (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateVm (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -50336,8 +50794,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -50407,7 +50864,7 @@ int main(int ac, char **av) if (endptr == dot_pos) BAD_RET("'Tags' require an index (example array ref ResourceTag.Tags.0)\n"); else if (*endptr != '.') - BAD_RET("'Tags' require a .\n"); + BAD_RET("'Tags' require a '.'\n"); TRY_ALLOC_AT(s,tags, pa, pos, sizeof(*s->tags)); cascade_struct = &s->tags[pos]; cascade_parser = resource_tag_parser; @@ -50443,7 +50900,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateVmTemplate'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateVmTemplate'\n", next_a); } i += incr; goto update_vm_template_arg; @@ -50460,7 +50917,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateVmTemplate (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateVmTemplate (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -50500,8 +50957,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -50587,7 +51043,7 @@ int main(int ac, char **av) } else { - BAD_RET("'%s' is not a valide argument for 'UpdateVolume'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateVolume'\n", next_a); } i += incr; goto update_volume_arg; @@ -50604,7 +51060,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateVolume (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateVolume (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; @@ -50644,8 +51100,7 @@ int main(int ac, char **av) char *aa = i + 2 < ac ? av[i + 2] : 0; int incr = 2; char *eq_ptr = strchr(next_a, '='); - - CHK_BAD_RET(!cascade_struct, "cascade need to be se first\n"); + CHK_BAD_RET(!cascade_struct, "cascade need to be set first\n"); if (eq_ptr) { CHK_BAD_RET(!*eq_ptr, "cascade need an argument\n"); incr = 1; @@ -50743,7 +51198,7 @@ int main(int ac, char **av) } } else { - BAD_RET("'%s' is not a valide argument for 'UpdateVpnConnection'\n", next_a); + BAD_RET("'%s' is not a valid argument for 'UpdateVpnConnection'\n", next_a); } i += incr; goto update_vpn_connection_arg; @@ -50760,7 +51215,7 @@ int main(int ac, char **av) puts(json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE | color_flag)); - } else fprintf(stderr, "Called UpdateVpnConnection (%s) and received an empty body. ", cret ? "failed" : "succeeded"); + } else fprintf(stderr, "called UpdateVpnConnection (%s) and received an empty body. ", cret ? "failed" : "succeeded"); if (cret) return cret; diff --git a/osc-sdk-C b/osc-sdk-C index 378510e..6244d07 160000 --- a/osc-sdk-C +++ b/osc-sdk-C @@ -1 +1 @@ -Subproject commit 378510e6bbe44f546b2bd5de22caab7a2ec1d0be +Subproject commit 6244d074962d6fa6330f7f66bc3cd4f2ad7bdcf6 diff --git a/osc_sdk.c b/osc_sdk.c index daa6524..3e4a071 100644 --- a/osc_sdk.c +++ b/osc_sdk.c @@ -42,6 +42,7 @@ #include #include "osc_sdk.h" #include "json.h" +#include #define AK_SIZE 20 #define SK_SIZE 40 @@ -175,6 +176,12 @@ static const char *calls_name[] = { "DeleteVpnConnection", "DeleteVpnConnectionRoute", "DeregisterVmsInLoadBalancer", + "DisableOutscaleLoginForUsers", + "DisableOutscaleLoginPerUsers", + "DisableOutscaleLogin", + "EnableOutscaleLoginForUsers", + "EnableOutscaleLoginPerUsers", + "EnableOutscaleLogin", "LinkFlexibleGpu", "LinkInternetService", "LinkLoadBalancerBackendMachines", @@ -310,459 +317,471 @@ static const char *calls_name[] = { }; static const char *calls_descriptions[] = { - "Usage: oapi-cli AcceptNetPeering --NetPeeringId=netpeeringid [OPTIONS]\n" "Accepts a Net peering request.\nTo accept this request, you must be the owner \n" "of the peer Net. If you do not accept the request within 7 days, the state of \n" "the Net peering becomes `expired`.\n\n**[NOTE]**\nA peering connection between \n" "two Nets works both ways. Therefore, when an A-to-B peering connection is \n" "accepted, any pending B-to-A peering connection is automatically rejected as \n" "redundant.\n" "\nRequired Argument: NetPeeringId \n" + "Usage: oapi-cli AcceptNetPeering --NetPeeringId=netpeeringid [OPTIONS]\n" "null\n" "\nRequired Argument: NetPeeringId \n" , - "Usage: oapi-cli AddUserToUserGroup --UserGroupName=usergroupname --UserName=username [OPTIONS]\n" "Adds a user to a specified group.\n" "\nRequired Argument: UserGroupName UserName \n" + "Usage: oapi-cli AddUserToUserGroup --UserGroupName=usergroupname --UserName=username [OPTIONS]\n" "null\n" "\nRequired Argument: UserGroupName UserName \n" , - "Usage: oapi-cli CheckAuthentication --Login=login --Password=password [OPTIONS]\n" "Validates the authenticity of the account.\n" "\nRequired Argument: Login Password \n" + "Usage: oapi-cli CheckAuthentication --Login=login --Password=password [OPTIONS]\n" "null\n" "\nRequired Argument: Login Password \n" , - "Usage: oapi-cli CreateAccessKey [OPTIONS]\n" "Creates an access key for either your root account or an EIM user. The new key \n" "is automatically set to `ACTIVE`.\nFor more information, see [About Access \n" "Keys](https://docs.outscale.com/en/userguide/About-Access-Keys.html).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli CreateAccessKey [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli CreateAccount --City=city --CompanyName=companyname --Country=country --CustomerId=customerid --Email=email --FirstName=firstname --LastName=lastname --ZipCode=zipcode [OPTIONS]\n" "Creates an OUTSCALE account.\n\n**[IMPORTANT]**\n* You need OUTSCALE \n" "credentials and the appropriate quotas to create an account via API. To get \n" "quotas, you can send an email to sales@outscale.com.\n* If you want to pass a \n" "numeral value as a string instead of an integer, you must wrap your string in \n" "additional quotes (for example, `'"92000"'`).\n\nFor more \n" "information, see [About Your \n" "Account](https://docs.outscale.com/en/userguide/About-Your-Account.html).\n" "\nRequired Argument: City CompanyName Country CustomerId Email FirstName LastName ZipCode \n" + "Usage: oapi-cli CreateAccount --City=city --CompanyName=companyname --Country=country --CustomerId=customerid --Email=email --FirstName=firstname --LastName=lastname --ZipCode=zipcode [OPTIONS]\n" "null\n" "\nRequired Argument: City CompanyName Country CustomerId Email FirstName LastName ZipCode \n" , - "Usage: oapi-cli CreateApiAccessRule [OPTIONS]\n" "Creates a rule to allow access to the API from your account.\nYou need to \n" "specify at least the `CaIds` or the `IpRanges` parameter.\n\n**[NOTE]**\nBy \n" "default, your account has a set of rules allowing global access, that you can \n" "delete.\nFor more information, see [About API Access \n" "Rules](https://docs.outscale.com/en/userguide/About-API-Access-Rules.html).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli CreateApiAccessRule [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli CreateCa --CaPem=capem [OPTIONS]\n" "Creates a Client Certificate Authority (CA).\nFor more information, see [About \n" "API Access \n" "Rules](https://docs.outscale.com/en/userguide/About-API-Access-Rules.html).\n" "\nRequired Argument: CaPem \n" + "Usage: oapi-cli CreateCa --CaPem=capem [OPTIONS]\n" "null\n" "\nRequired Argument: CaPem \n" , - "Usage: oapi-cli CreateClientGateway --BgpAsn=bgpasn --PublicIp=publicip --ConnectionType=connectiontype [OPTIONS]\n" "Provides information about your client gateway.\nThis action registers \n" "information to identify the client gateway that you deployed in your \n" "network.\nTo open a tunnel to the client gateway, you must provide the \n" "communication protocol type, the fixed public IP of the gateway, and an \n" "Autonomous System Number (ASN).\nFor more information, see [About Client \n" "Gateways](https://docs.outscale.com/en/userguide/About-Client-Gateways.html).\n" "\nRequired Argument: BgpAsn PublicIp ConnectionType \n" + "Usage: oapi-cli CreateClientGateway --BgpAsn=bgpasn --PublicIp=publicip --ConnectionType=connectiontype [OPTIONS]\n" "null\n" "\nRequired Argument: BgpAsn PublicIp ConnectionType \n" , - "Usage: oapi-cli CreateDedicatedGroup --CpuGeneration=cpugeneration --Name=name --SubregionName=subregionname [OPTIONS]\n" "> [WARNING]\n> This feature is currently in beta.\n\nCreates a dedicated group \n" "for virtual machines (VMs).\nFor more information, see [About Dedicated \n" "Groups](https://docs.outscale.com/en/userguide/About-Dedicated-Groups.html).\n" "\nRequired Argument: CpuGeneration Name SubregionName \n" + "Usage: oapi-cli CreateDedicatedGroup --CpuGeneration=cpugeneration --Name=name --SubregionName=subregionname [OPTIONS]\n" "null\n" "\nRequired Argument: CpuGeneration Name SubregionName \n" , - "Usage: oapi-cli CreateDhcpOptions [OPTIONS]\n" "Creates a set of DHCP options, that you can then associate with a Net using the \n" "[UpdateNet](#updatenet) method.\nFor more information, see [About DHCP \n" "Options](https://docs.outscale.com/en/userguide/About-DHCP-Options.html).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli CreateDhcpOptions [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli CreateDirectLinkInterface --DirectLinkId=directlinkid --DirectLinkInterface=directlinkinterface [OPTIONS]\n" "Creates a DirectLink interface.\nDirectLink interfaces enable you to reach one \n" "of your Nets through a virtual gateway.\nFor more information, see [About \n" "DirectLink](https://docs.outscale.com/en/userguide/About-DirectLink.html).\n" "\nRequired Argument: DirectLinkId DirectLinkInterface \n" + "Usage: oapi-cli CreateDirectLinkInterface --DirectLinkId=directlinkid --DirectLinkInterface=directlinkinterface [OPTIONS]\n" "null\n" "\nRequired Argument: DirectLinkId DirectLinkInterface \n" , - "Usage: oapi-cli CreateDirectLink --Bandwidth=bandwidth --DirectLinkName=directlinkname --Location=location [OPTIONS]\n" "Creates a DirectLink between a customer network and a specified DirectLink \n" "location.\nFor more information, see [About \n" "DirectLink](https://docs.outscale.com/en/userguide/About-DirectLink.html).\n" "\nRequired Argument: Bandwidth DirectLinkName Location \n" + "Usage: oapi-cli CreateDirectLink --Bandwidth=bandwidth --DirectLinkName=directlinkname --Location=location [OPTIONS]\n" "null\n" "\nRequired Argument: Bandwidth DirectLinkName Location \n" , - "Usage: oapi-cli CreateFlexibleGpu --ModelName=modelname --SubregionName=subregionname [OPTIONS]\n" "Allocates a flexible GPU (fGPU) to your account.\nYou can then attach this fGPU \n" "to a virtual machine (VM).\nFor more information, see [About Flexible \n" "GPUs](https://docs.outscale.com/en/userguide/About-Flexible-GPUs.html).\n" "\nRequired Argument: ModelName SubregionName \n" + "Usage: oapi-cli CreateFlexibleGpu --ModelName=modelname --SubregionName=subregionname [OPTIONS]\n" "null\n" "\nRequired Argument: ModelName SubregionName \n" , - "Usage: oapi-cli CreateImageExportTask --OsuExport=osuexport --ImageId=imageid [OPTIONS]\n" "Exports an OUTSCALE machine image (OMI) to an OUTSCALE Object Storage (OOS) \n" "bucket.\nThis enables you to copy an OMI between accounts in different \n" "Regions.\nThis action creates the necessary snapshots and manifest file in the \n" "bucket. The OMI can then be imported to another account using a pre-signed URL \n" "of its manifest file. For more information, see [Creating a Pre-Signed \n" "URL](https://docs.outscale.com/en/userguide/Creating-a-Pre-Signed-URL.html).\nTo\n" " copy an OMI in the same Region, you can also use the \n" "[CreateImage](#createimage) method.\n\n**[IMPORTANT]**\nYou cannot export a \n" "shared or public OMI, as they do not belong to you. To do so, you must first \n" "copy it to your account. The copy then belongs to you and you can export \n" "it.\nFor more information, see [About \n" "OMIs](https://docs.outscale.com/en/userguide/About-OMIs.html).\n" "\nRequired Argument: OsuExport ImageId \n" + "Usage: oapi-cli CreateImageExportTask --OsuExport=osuexport --ImageId=imageid [OPTIONS]\n" "null\n" "\nRequired Argument: OsuExport ImageId \n" , - "Usage: oapi-cli CreateImage [OPTIONS]\n" "Creates an OUTSCALE machine image (OMI).\nYou can use this method for different \n" "use cases:\n* **Creating from a VM**: You create an OMI from one of your \n" "virtual machines (VMs).
\n* **Copying an OMI**: You copy an existing OMI. \n" "The source OMI can be one of your own OMIs, or an OMI owned by another account \n" "that has granted you permission via the [UpdateImage](#updateimage) \n" "method.
\n* **Registering from a snapshot**: You register an OMI from an \n" "existing snapshot. The source snapshot can be one of your own snapshots, or a \n" "snapshot owned by another account that has granted you permission via the \n" "[UpdateSnapshot](#updatesnapshot) method.
\n* **Registering from a bucket by \n" "using a manifest file**: You register an OMI from the manifest file of an OMI \n" "that was exported to an OUTSCALE Object Storage (OOS) bucket. First, the owner \n" "of the source OMI must export it to the bucket by using the \n" "[CreateImageExportTask](#createimageexporttask) method. Then, they must grant \n" "you permission to read the manifest file via a pre-signed URL. For more \n" "information, see [Creating a Pre-Signed \n" "URL](https://docs.outscale.com/en/userguide/Creating-a-Pre-Signed-URL.html).\n\n\n" "**[TIP]**\nRegistering from a bucket enables you to copy an OMI across \n" "Regions.\n\nFor more information, see [About \n" "OMIs](https://docs.outscale.com/en/userguide/About-OMIs.html).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli CreateImage [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli CreateInternetService [OPTIONS]\n" "Creates an internet service you can use with a Net.\nAn internet service \n" "enables virtual machines (VMs) launched in a Net to connect to the Internet. It \n" "allows routing of incoming and outgoing Internet traffic and management of \n" "public IP addresses.\nFor more information, see [About Internet \n" "Services](https://docs.outscale.com/en/userguide/About-Internet-Services.html).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli CreateInternetService [OPTIONS]\n" "null\n" "\nRequired Argument: null \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 CreateKeypair --KeypairName=keypairname [OPTIONS]\n" "null\n" "\nRequired Argument: KeypairName \n" , - "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 CreateListenerRule --VmIds=vmids --Listener=listener --ListenerRule=listenerrule [OPTIONS]\n" "null\n" "\nRequired Argument: VmIds Listener ListenerRule \n" , - "Usage: oapi-cli CreateLoadBalancerListeners --Listeners=listeners --LoadBalancerName=loadbalancername [OPTIONS]\n" "Creates one or more listeners for a specified load balancer.\nFor more \n" "information, see [About Load \n" "Balancers](https://docs.outscale.com/en/userguide/About-Load-Balancers.html).\n" "\nRequired Argument: Listeners LoadBalancerName \n" + "Usage: oapi-cli CreateLoadBalancerListeners --Listeners=listeners --LoadBalancerName=loadbalancername [OPTIONS]\n" "null\n" "\nRequired Argument: Listeners LoadBalancerName \n" , - "Usage: oapi-cli CreateLoadBalancerPolicy --PolicyType=policytype --LoadBalancerName=loadbalancername --PolicyName=policyname [OPTIONS]\n" "Creates a stickiness policy with sticky session lifetimes defined by the \n" "browser lifetime.\nThe created policy can be used with HTTP or HTTPS listeners \n" "only.\nIf this policy is implemented by a load balancer, this load balancer \n" "uses this cookie in all incoming requests to direct them to the specified \n" "backend server virtual machine (VM). If this cookie is not present, the load \n" "balancer sends the request to any other server according to its load-balancing \n" "algorithm.\n\nYou can also create a stickiness policy with sticky session \n" "lifetimes following the lifetime of an application-generated cookie.\nUnlike \n" "the other type of stickiness policy, the lifetime of the special Load Balancer \n" "Unit (LBU) cookie follows the lifetime of the application-generated cookie \n" "specified in the policy configuration. The load balancer inserts a new \n" "stickiness cookie only when the application response includes a new application \n" "cookie.\nThe session stops being sticky if the application cookie is removed or \n" "expires, until a new application cookie is issued.\nFor more information, see \n" "[About Load \n" "Balancers](https://docs.outscale.com/en/userguide/About-Load-Balancers.html).\n" "\nRequired Argument: PolicyType LoadBalancerName PolicyName \n" + "Usage: oapi-cli CreateLoadBalancerPolicy --PolicyType=policytype --LoadBalancerName=loadbalancername --PolicyName=policyname [OPTIONS]\n" "null\n" "\nRequired Argument: PolicyType LoadBalancerName PolicyName \n" , - "Usage: oapi-cli CreateLoadBalancer --Listeners=listeners --LoadBalancerName=loadbalancername [OPTIONS]\n" "Creates a load balancer.\nThe load balancer is created with a unique Domain \n" "Name Service (DNS) name. It receives the incoming traffic and routes it to its \n" "registered virtual machines (VMs).\nBy default, this action creates an \n" "Internet-facing load balancer, resolving to public IPs. To create an internal \n" "load balancer in a Net, resolving to private IPs, use the `LoadBalancerType` \n" "parameter.\nYou must specify either the `Subnets` or the `SubregionNames` \n" "parameters.\nFor more information, see [About Load \n" "Balancers](https://docs.outscale.com/en/userguide/About-Load-Balancers.html).\n" "\nRequired Argument: Listeners LoadBalancerName \n" + "Usage: oapi-cli CreateLoadBalancer --Listeners=listeners --LoadBalancerName=loadbalancername [OPTIONS]\n" "null\n" "\nRequired Argument: Listeners LoadBalancerName \n" , - "Usage: oapi-cli CreateLoadBalancerTags --LoadBalancerNames=loadbalancernames --Tags=tags [OPTIONS]\n" "Adds one or more tags to the specified load balancers.\nIf a tag with the same \n" "key already exists for the load balancer, the tag value is replaced.\nFor more \n" "information, see [About \n" "Tags](https://docs.outscale.com/en/userguide/About-Tags.html).\n" "\nRequired Argument: LoadBalancerNames Tags \n" + "Usage: oapi-cli CreateLoadBalancerTags --LoadBalancerNames=loadbalancernames --Tags=tags [OPTIONS]\n" "null\n" "\nRequired Argument: LoadBalancerNames Tags \n" , - "Usage: oapi-cli CreateNatService --PublicIpId=publicipid --SubnetId=subnetid [OPTIONS]\n" "Creates a network address translation (NAT) service in the specified public \n" "Subnet of a Net.\nA NAT service enables virtual machines (VMs) placed in the \n" "private Subnet of this Net to connect to the Internet, without being accessible \n" "from the Internet.\nWhen creating a NAT service, you specify the allocation ID \n" "of the public IP you want to use as public IP for the NAT service. Once the NAT \n" "service is created, you need to create a route in the route table of the \n" "private Subnet, with 0.0.0.0/0 as destination and the ID of the NAT service as \n" "target. For more information, see [LinkPublicIP](#linkpublicip) and \n" "[CreateRoute](#createroute).\nThis action also enables you to create multiple \n" "NAT services in the same Net (one per public Subnet).\n\n**[IMPORTANT]**\nYou \n" "cannot modify the public IP associated with a NAT service after its creation. \n" "To do so, you need to delete the NAT service and create a new one with another \n" "public IP.\nFor more information, see [About NAT \n" "Services](https://docs.outscale.com/en/userguide/About-NAT-Services.html).\n" "\nRequired Argument: PublicIpId SubnetId \n" + "Usage: oapi-cli CreateNatService --PublicIpId=publicipid --SubnetId=subnetid [OPTIONS]\n" "null\n" "\nRequired Argument: PublicIpId SubnetId \n" , - "Usage: oapi-cli CreateNetAccessPoint --ServiceName=servicename --NetId=netid [OPTIONS]\n" "Creates a Net access point to access an OUTSCALE service from this Net without \n" "using the Internet and public IPs.\nYou specify the service using its name. For \n" "more information about the available services, see \n" "[ReadNetAccessPointServices](#readnetaccesspointservices). \nTo control the \n" "routing of traffic between the Net and the specified service, you can specify \n" "one or more route tables. Virtual machines placed in Subnets associated with \n" "the specified route table thus use the Net access point to access the service. \n" "When you specify a route table, a route is automatically added to it with the \n" "destination set to the prefix list ID of the service, and the target set to the \n" "ID of the access point.\nWhen a Net access point is created, a public IP is \n" "automatically allocated to your account and used for the Net access point. This \n" "public IP is not connected to the Internet. It is counted in your quota, but it \n" "is not billed. \nFor more information, see [About Net Access \n" "Points](https://docs.outscale.com/en/userguide/About-Net-Access-Points.html).\n" "\nRequired Argument: ServiceName NetId \n" + "Usage: oapi-cli CreateNetAccessPoint --ServiceName=servicename --NetId=netid [OPTIONS]\n" "null\n" "\nRequired Argument: ServiceName NetId \n" , - "Usage: oapi-cli CreateNetPeering --AccepterNetId=accepternetid --SourceNetId=sourcenetid [OPTIONS]\n" "Requests a Net peering between a Net you own and a peer Net that belongs to you \n" "or another account.\nThis action creates a Net peering that remains in the \n" "`pending-acceptance` state until it is accepted by the owner of the peer Net. \n" "If the owner of the peer Net does not accept the request within 7 days, the \n" "state of the Net peering becomes `expired`. For more information, see \n" "[AcceptNetPeering](#acceptnetpeering).\n\n**[IMPORTANT]**\n* Peered Nets must \n" "contain at least one virtual machine (VM) each before the creation of the Net \n" "peering.\n* The two Nets must not have overlapping IP ranges. Otherwise, the \n" "Net peering is in the `failed` state.\n* A peering connection between two Nets \n" "works both ways. If an A-to-B connection is already created and accepted, \n" "creating a B-to-A connection is not necessary and would be automatically \n" "rejected.\n\nFor more information, see [About Net \n" "Peerings](https://docs.outscale.com/en/userguide/About-Net-Peerings.html).\n" "\nRequired Argument: AccepterNetId SourceNetId \n" + "Usage: oapi-cli CreateNetPeering --AccepterNetId=accepternetid --SourceNetId=sourcenetid [OPTIONS]\n" "null\n" "\nRequired Argument: AccepterNetId SourceNetId \n" , - "Usage: oapi-cli CreateNet --IpRange=iprange [OPTIONS]\n" "Creates a Net with a specified IP range.\nThe IP range (network range) of your \n" "Net must be between a /28 netmask (16 IPs) and a /16 netmask (65536 IPs).\nFor \n" "more information, see [About \n" "Nets](https://docs.outscale.com/en/userguide/About-Nets.html).\n" "\nRequired Argument: IpRange \n" + "Usage: oapi-cli CreateNet --IpRange=iprange [OPTIONS]\n" "null\n" "\nRequired Argument: IpRange \n" , - "Usage: oapi-cli CreateNic --SubnetId=subnetid [OPTIONS]\n" "Creates a network interface card (NIC) in the specified Subnet.\nFor more \n" "information, see [About \n" "NICs](https://docs.outscale.com/en/userguide/About-NICs.html).\n" "\nRequired Argument: SubnetId \n" + "Usage: oapi-cli CreateNic --SubnetId=subnetid [OPTIONS]\n" "null\n" "\nRequired Argument: SubnetId \n" , - "Usage: oapi-cli CreatePolicy --Document=document --PolicyName=policyname [OPTIONS]\n" "Creates a managed policy to apply to a user.\nThis action creates a policy \n" "version and sets v1 as the default one.\n" "\nRequired Argument: Document PolicyName \n" + "Usage: oapi-cli CreatePolicy --Document=document --PolicyName=policyname [OPTIONS]\n" "null\n" "\nRequired Argument: Document PolicyName \n" , - "Usage: oapi-cli CreatePolicyVersion --Document=document --PolicyOrn=policyorn [OPTIONS]\n" "Creates a version of a specified managed policy.\nA managed policy can have up \n" "to five versions.\n" "\nRequired Argument: Document PolicyOrn \n" + "Usage: oapi-cli CreatePolicyVersion --Document=document --PolicyOrn=policyorn [OPTIONS]\n" "null\n" "\nRequired Argument: Document PolicyOrn \n" , - "Usage: oapi-cli CreateProductType --Description=description [OPTIONS]\n" "Creates a product type you can associate with an OMI for consumption monitoring \n" "and billing purposes.\n" "\nRequired Argument: Description \n" + "Usage: oapi-cli CreateProductType --Description=description [OPTIONS]\n" "null\n" "\nRequired Argument: Description \n" , - "Usage: oapi-cli CreatePublicIp [OPTIONS]\n" "Acquires a public IP for your account.\nA public IP is a static IP designed for \n" "dynamic Cloud computing. It can be associated with a virtual machine (VM) in \n" "the public Cloud or in a Net, a network interface card (NIC), a NAT \n" "service.\nFor more information, see [About Public \n" "IPs](https://docs.outscale.com/en/userguide/About-Public-IPs.html).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli CreatePublicIp [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli CreateRoute --DestinationIpRange=destinationiprange --RouteTableId=routetableid [OPTIONS]\n" "Creates a route in a specified route table within a specified Net.\nYou must \n" "specify one of the following elements as the target:\n\n* Net peering\n* NAT \n" "VM\n* Internet service\n* Virtual gateway\n* NAT service\n* Network interface \n" "card (NIC)\n\nThe routing algorithm is based on the most specific match.\nFor \n" "more information, see [About Route \n" "Tables](https://docs.outscale.com/en/userguide/About-Route-Tables.html).\n" "\nRequired Argument: DestinationIpRange RouteTableId \n" + "Usage: oapi-cli CreateRoute --DestinationIpRange=destinationiprange --RouteTableId=routetableid [OPTIONS]\n" "null\n" "\nRequired Argument: DestinationIpRange RouteTableId \n" , - "Usage: oapi-cli CreateRouteTable --NetId=netid [OPTIONS]\n" "Creates a route table for a specified Net.\nYou can then add routes and \n" "associate this route table with a Subnet.\nFor more information, see [About \n" "Route Tables](https://docs.outscale.com/en/userguide/About-Route-Tables.html).\n" "\nRequired Argument: NetId \n" + "Usage: oapi-cli CreateRouteTable --NetId=netid [OPTIONS]\n" "null\n" "\nRequired Argument: NetId \n" , - "Usage: oapi-cli CreateSecurityGroup --Description=description --SecurityGroupName=securitygroupname [OPTIONS]\n" "Creates a security group.\nThis action creates a security group either in the \n" "public Cloud or in a specified Net. By default, a default security group for \n" "use in the public Cloud and a default security group for use in a Net are \n" "created.\nWhen launching a virtual machine (VM), if no security group is \n" "explicitly specified, the appropriate default security group is assigned to the \n" "VM. Default security groups include a default rule granting VMs network access \n" "to each other.\nWhen creating a security group, you specify a name. Two \n" "security groups for use in the public Cloud or for use in a Net cannot have the \n" "same name.\nYou can have up to 500 security groups in the public Cloud. You can \n" "create up to 500 security groups per Net.\nTo add or remove rules, use the \n" "[CreateSecurityGroupRule](#createsecuritygrouprule) method.\nFor more \n" "information, see [About Security \n" "Groups](https://docs.outscale.com/en/userguide/About-Security-Groups.html).\n" "\nRequired Argument: Description SecurityGroupName \n" + "Usage: oapi-cli CreateSecurityGroup --Description=description --SecurityGroupName=securitygroupname [OPTIONS]\n" "null\n" "\nRequired Argument: Description SecurityGroupName \n" , - "Usage: oapi-cli CreateSecurityGroupRule --SecurityGroupId=securitygroupid --Flow=flow [OPTIONS]\n" "Adds one or more rules to a security group.\nUse the `SecurityGroupId` \n" "parameter to specify the security group for which you want to create a \n" "rule.\nUse the `Flow` parameter to specify if you want an inbound rule or an \n" "outbound rule.\nAn inbound rule allows the security group to receive \n" "traffic:\n* Either from a specific IP range (`IpRange` parameter) on a specific \n" "port range (`FromPortRange` and `ToPortRange` parameters) and specific protocol \n" "(`IpProtocol` parameter).\n* Or from another specific security group \n" "(`SecurityGroupAccountIdToLink` and `SecurityGroupNameToLink` \n" "parameters).\n\n(Net only) An outbound rule works similarly but allows the \n" "security group to send traffic rather than receive traffic.\n\nAlternatively, \n" "you can use the `Rules` parameter to add several rules at the same \n" "time.\n\n**[NOTE]**\n* The modifications are effective as quickly as possible, \n" "but a small delay may occur.\n* By default, traffic between two security groups \n" "is allowed through both public and private IPs. To restrict traffic to private \n" "IPs only, contact our Support team at support@outscale.com.\n\nFor more \n" "information, see [About Security Group \n" "Rules](https://docs.outscale.com/en/userguide/About-Security-Group-Rules.html).\n" "\nRequired Argument: SecurityGroupId Flow \n" + "Usage: oapi-cli CreateSecurityGroupRule --SecurityGroupId=securitygroupid --Flow=flow [OPTIONS]\n" "null\n" "\nRequired Argument: SecurityGroupId Flow \n" , - "Usage: oapi-cli CreateServerCertificate --Body=body --PrivateKey=privatekey --Name=name [OPTIONS]\n" "Creates a server certificate and its matching private key.\nThese elements can \n" "be used with other services (for example, to configure SSL termination on load \n" "balancers).\nYou can also specify the chain of intermediate certification \n" "authorities if your certificate is not directly signed by a root one. You can \n" "specify multiple intermediate certification authorities in the \n" "`CertificateChain` parameter. To do so, concatenate all certificates in the \n" "correct order (the first certificate must be the authority of your certificate, \n" "the second must be the authority of the first one, and so on).\nThe private key \n" "must be a RSA key in PKCS1 form. To check this, open the PEM file and ensure \n" "its header reads as follows: BEGIN RSA PRIVATE KEY.\n[IMPORTANT]\nThis private \n" "key must not be protected by a password or a passphrase.\nFor more information, \n" "see [About Server Certificates in \n" "EIM](https://docs.outscale.com/en/userguide/About-Server-Certificates-in-EIM.htm\n" "l).\n" "\nRequired Argument: Body PrivateKey Name \n" + "Usage: oapi-cli CreateServerCertificate --Body=body --PrivateKey=privatekey --Name=name [OPTIONS]\n" "null\n" "\nRequired Argument: Body PrivateKey Name \n" , - "Usage: oapi-cli CreateSnapshotExportTask --OsuExport=osuexport --SnapshotId=snapshotid [OPTIONS]\n" "Exports a snapshot to an OUTSCALE Object Storage (OOS) bucket that belongs to \n" "you. This action enables you to create a backup of your snapshot.\nYou can \n" "share this snapshot with others accounts by granting permission to read it via \n" "pre-signed URLs. For more information, see [Creating a Pre-Signed \n" "URL](https://docs.outscale.com/en/userguide/Creating-a-Pre-Signed-URL.html).\nFo\n" "r more information, see [About \n" "Snapshots](https://docs.outscale.com/en/userguide/About-Snapshots.html).\n" "\nRequired Argument: OsuExport SnapshotId \n" + "Usage: oapi-cli CreateSnapshotExportTask --OsuExport=osuexport --SnapshotId=snapshotid [OPTIONS]\n" "null\n" "\nRequired Argument: OsuExport SnapshotId \n" , - "Usage: oapi-cli CreateSnapshot [OPTIONS]\n" "Creates a snapshot. Snapshots are point-in-time images of a volume that you can \n" "use to back up your data or to create replicas of this volume.\nYou can use \n" "this method in three different ways:\n* **Creating from a volume**: You create \n" "a snapshot from one of your volumes.\n* **Copying a snapshot**: You copy an \n" "existing snapshot. The source snapshot can be one of your own snapshots, or a \n" "snapshot owned by another account that has granted you permission via the \n" "[UpdateSnapshot](#updatesnapshot) method.\n* **Importing from a bucket**: You \n" "import a snapshot located in an OUTSCALE Object Storage (OOS) bucket. First, \n" "the owner of the source snapshot must export it to a bucket by using the \n" "[CreateSnapshotExportTask](#createsnapshotexporttask) method. Then, they must \n" "grant you permission to read the snapshot via a pre-signed URL. For more \n" "information, see [Creating a Pre-Signed \n" "URL](https://docs.outscale.com/en/userguide/Creating-a-Pre-Signed-URL.html).\n\n\n" "**[NOTE]**\nIn case of excessive use of the snapshot creation feature on the \n" "same volume over a short period of time, 3DS OUTSCALE reserves the right to \n" "temporarily block the feature.\n\nFor more information, see [About \n" "Snapshots](https://docs.outscale.com/en/userguide/About-Snapshots.html).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli CreateSnapshot [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli CreateSubnet --IpRange=iprange --NetId=netid [OPTIONS]\n" "Creates a Subnet in an existing Net.\nTo create a Subnet in a Net, you have to \n" "provide the ID of the Net and the IP range for the Subnet (its network range). \n" "Once the Subnet is created, you cannot modify its IP range.\nFor more \n" "information, see [About \n" "Nets](https://docs.outscale.com/en/userguide/About-Nets.html).\n" "\nRequired Argument: IpRange NetId \n" + "Usage: oapi-cli CreateSubnet --IpRange=iprange --NetId=netid [OPTIONS]\n" "null\n" "\nRequired Argument: IpRange NetId \n" , - "Usage: oapi-cli CreateTags --ResourceIds=resourceids --Tags=tags [OPTIONS]\n" "Adds one or more tags to the specified resources.\nIf a tag with the same key \n" "already exists for the resource, the tag value is replaced.\nYou can tag the \n" "following resources using their IDs:\n\n* Client gateways (cgw-xxxxxxxx)\n* \n" "DHCP options (dopt-xxxxxxxx)\n* Images (ami-xxxxxxxx)\n* Internet services \n" "(igw-xxxxxxxx)\n* Keypairs (key-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)\n* NAT \n" "services (nat-xxxxxxxx)\n* Net endpoints (vpce-xxxxxxxx)\n* Net peerings \n" "(vpcx-xxxxxxxx)\n* Nets (vpc-xxxxxxxx)\n* Network interface cards (NIC) \n" "(eni-xxxxxxxx)\n* OMI export tasks (image-export-xxxxxxxx)\n* OMIs \n" "(ami-xxxxxxxx)\n* Public IPs (eipalloc-xxxxxxxx)\n* Route tables \n" "(rtb-xxxxxxxx)\n* Security groups (sg-xxxxxxxx)\n* Snapshot export tasks \n" "(snap-export-xxxxxxxx)\n* Snapshots (snap-xxxxxxxx)\n* Subnets \n" "(subnet-xxxxxxxx)\n* Virtual gateways (vgw-xxxxxxxx)\n* Virtual machines (VMs) \n" "(i-xxxxxxxx)\n* Volumes (vol-xxxxxxxx)\n* VPN connections (vpn-xxxxxxxx)\n\nFor \n" "more information, see [About \n" "Tags](https://docs.outscale.com/en/userguide/About-Tags.html).\n" "\nRequired Argument: ResourceIds Tags \n" + "Usage: oapi-cli CreateTags --ResourceIds=resourceids --Tags=tags [OPTIONS]\n" "null\n" "\nRequired Argument: ResourceIds Tags \n" , - "Usage: oapi-cli CreateUserGroup --UserGroupName=usergroupname [OPTIONS]\n" "Creates a group to which you can add users.\nYou can also add an inline policy \n" "or link a managed policy to the group, which is applied to all its users.\n" "\nRequired Argument: UserGroupName \n" + "Usage: oapi-cli CreateUserGroup --UserGroupName=usergroupname [OPTIONS]\n" "null\n" "\nRequired Argument: UserGroupName \n" , - "Usage: oapi-cli CreateUser --UserName=username [OPTIONS]\n" "Creates an EIM user for your account.\nFor more information, see [About EIM \n" "Users](https://docs.outscale.com/en/userguide/About-EIM-Users.html).\n" "\nRequired Argument: UserName \n" + "Usage: oapi-cli CreateUser --UserName=username [OPTIONS]\n" "null\n" "\nRequired Argument: UserName \n" , - "Usage: oapi-cli CreateVirtualGateway --ConnectionType=connectiontype [OPTIONS]\n" "Creates a virtual gateway.\nA virtual gateway is the access point on the Net \n" "side of a VPN connection.\nFor more information, see [About Virtual \n" "Gateways](https://docs.outscale.com/en/userguide/About-Virtual-Gateways.html).\n" "\nRequired Argument: ConnectionType \n" + "Usage: oapi-cli CreateVirtualGateway --ConnectionType=connectiontype [OPTIONS]\n" "null\n" "\nRequired Argument: ConnectionType \n" , - "Usage: oapi-cli CreateVmGroup --SecurityGroupIds=securitygroupids --SubnetId=subnetid --VmGroupName=vmgroupname --VmTemplateId=vmtemplateid --VmCount=vmcount [OPTIONS]\n" "> [WARNING]\n> This feature is currently under development and may not function \n" "properly.\n\nCreates a group of virtual machines (VMs) containing the same \n" "characteristics as a specified VM template, and then launches them.\nYou can \n" "create up to 100 VM groups in your account.\n" "\nRequired Argument: SecurityGroupIds SubnetId VmGroupName VmTemplateId VmCount \n" + "Usage: oapi-cli CreateVmGroup --SecurityGroupIds=securitygroupids --SubnetId=subnetid --VmGroupName=vmgroupname --VmTemplateId=vmtemplateid --VmCount=vmcount [OPTIONS]\n" "null\n" "\nRequired Argument: SecurityGroupIds SubnetId VmGroupName VmTemplateId VmCount \n" , - "Usage: oapi-cli CreateVmTemplate --CpuCores=cpucores --CpuGeneration=cpugeneration --ImageId=imageid --Ram=ram --VmTemplateName=vmtemplatename [OPTIONS]\n" "> [WARNING]\n> This feature is currently under development and may not function \n" "properly.\n\nCreates a virtual machine (VM) template. You can then use the VM \n" "template to create VM groups.\nYou can create up to 50 VM templates in your \n" "account.\n" "\nRequired Argument: CpuCores CpuGeneration ImageId Ram VmTemplateName \n" + "Usage: oapi-cli CreateVmTemplate --CpuCores=cpucores --CpuGeneration=cpugeneration --ImageId=imageid --Ram=ram --VmTemplateName=vmtemplatename [OPTIONS]\n" "null\n" "\nRequired Argument: CpuCores CpuGeneration ImageId Ram VmTemplateName \n" , - "Usage: oapi-cli CreateVms --ImageId=imageid [OPTIONS]\n" "Creates virtual machines (VMs), and then launches them.\nThis action enables \n" "you to create a specified number of VMs using an OUTSCALE machine image (OMI) \n" "that you are allowed to use, and then to automatically launch them.\nThe VMs \n" "remain in the `pending` state until they are created and ready to be used. Once \n" "automatically launched, they are in the `running` state.\nTo check the state of \n" "your VMs, call the [ReadVms](#readvms) method.\nIf not specified, the security \n" "group used by the service is the default one.\nThe metadata server enables you \n" "to get the public key provided when the VM is launched. Official OMIs contain a \n" "script to get this public key and put it inside the VM to provide secure access \n" "without password.\nFor more information, see [About \n" "VMs](https://docs.outscale.com/en/userguide/About-VMs.html).\n" "\nRequired Argument: ImageId \n" + "Usage: oapi-cli CreateVms --ImageId=imageid [OPTIONS]\n" "null\n" "\nRequired Argument: ImageId \n" , - "Usage: oapi-cli CreateVolume --SubregionName=subregionname [OPTIONS]\n" "Creates a Block Storage Unit (BSU) volume in a specified Region.\nBSU volumes \n" "can be attached to a virtual machine (VM) in the same Subregion. You can create \n" "an empty volume or restore a volume from an existing snapshot.\nYou can create \n" "the following volume types: Enterprise (`io1`) for provisioned IOPS SSD \n" "volumes, Performance (`gp2`) for general purpose SSD volumes, or Magnetic \n" "(`standard`) volumes.\nFor more information, see [About \n" "Volumes](https://docs.outscale.com/en/userguide/About-Volumes.html).\n" "\nRequired Argument: SubregionName \n" + "Usage: oapi-cli CreateVolume --SubregionName=subregionname [OPTIONS]\n" "null\n" "\nRequired Argument: SubregionName \n" , - "Usage: oapi-cli CreateVpnConnection --ClientGatewayId=clientgatewayid --ConnectionType=connectiontype --VirtualGatewayId=virtualgatewayid [OPTIONS]\n" "Creates a VPN connection between a specified virtual gateway and a specified \n" "client gateway.\nYou can create only one VPN connection between a virtual \n" "gateway and a client gateway.\n\n**[IMPORTANT]**\nThis action can be done only \n" "if the virtual gateway is in the `available` state.\nFor more information, see \n" "[About VPN \n" "Connections](https://docs.outscale.com/en/userguide/About-VPN-Connections.html).\n" "\nRequired Argument: ClientGatewayId ConnectionType VirtualGatewayId \n" + "Usage: oapi-cli CreateVpnConnection --ClientGatewayId=clientgatewayid --ConnectionType=connectiontype --VirtualGatewayId=virtualgatewayid [OPTIONS]\n" "null\n" "\nRequired Argument: ClientGatewayId ConnectionType VirtualGatewayId \n" , - "Usage: oapi-cli CreateVpnConnectionRoute --DestinationIpRange=destinationiprange --VpnConnectionId=vpnconnectionid [OPTIONS]\n" "Creates a static route to a VPN connection.\nThis enables you to select the \n" "network flows sent by the virtual gateway to the target VPN connection.\nFor \n" "more information, see [About Routing Configuration for VPN \n" "Connections](https://docs.outscale.com/en/userguide/About-Routing-Configuration-\n" "for-VPN-Connections.html).\n" "\nRequired Argument: DestinationIpRange VpnConnectionId \n" + "Usage: oapi-cli CreateVpnConnectionRoute --DestinationIpRange=destinationiprange --VpnConnectionId=vpnconnectionid [OPTIONS]\n" "null\n" "\nRequired Argument: DestinationIpRange VpnConnectionId \n" , - "Usage: oapi-cli DeleteAccessKey --AccessKeyId=accesskeyid [OPTIONS]\n" "Deletes the specified access key of either your root account or an EIM \n" "user.\nThe access key of an EIM user must be in the `INACTIVE` state to be \n" "deleted.\n" "\nRequired Argument: AccessKeyId \n" + "Usage: oapi-cli DeleteAccessKey --AccessKeyId=accesskeyid [OPTIONS]\n" "null\n" "\nRequired Argument: AccessKeyId \n" , - "Usage: oapi-cli DeleteApiAccessRule --ApiAccessRuleId=apiaccessruleid [OPTIONS]\n" "Deletes a specified API access rule.\n\n**[IMPORTANT]**\nYou cannot delete the \n" "last remaining API access rule. However, if you delete all the API access rules \n" "that allow you to access the APIs, you need to contact the Support team to \n" "regain access. For more information, see [Technical \n" "Support](https://docs.outscale.com/en/userguide/Technical-Support.html).\n" "\nRequired Argument: ApiAccessRuleId \n" + "Usage: oapi-cli DeleteApiAccessRule --ApiAccessRuleId=apiaccessruleid [OPTIONS]\n" "null\n" "\nRequired Argument: ApiAccessRuleId \n" , - "Usage: oapi-cli DeleteCa --CaId=caid [OPTIONS]\n" "Deletes a specified Client Certificate Authority (CA).\n" "\nRequired Argument: CaId \n" + "Usage: oapi-cli DeleteCa --CaId=caid [OPTIONS]\n" "null\n" "\nRequired Argument: CaId \n" , - "Usage: oapi-cli DeleteClientGateway --ClientGatewayId=clientgatewayid [OPTIONS]\n" "Deletes a client gateway.\nYou must delete the VPN connection before deleting \n" "the client gateway.\n" "\nRequired Argument: ClientGatewayId \n" + "Usage: oapi-cli DeleteClientGateway --ClientGatewayId=clientgatewayid [OPTIONS]\n" "null\n" "\nRequired Argument: ClientGatewayId \n" , - "Usage: oapi-cli DeleteDedicatedGroup --DedicatedGroupId=dedicatedgroupid [OPTIONS]\n" "> [WARNING]\n> This feature is currently in beta.\n\nDeletes a specified \n" "dedicated group of virtual machines (VMs).\n\n**[WARNING]**\nA dedicated group \n" "can be deleted only if no VM or Net is in the dedicated group. Otherwise, you \n" "need to force the deletion.\nIf you force the deletion:\n- all VMs are \n" "terminated.\n- all Nets are deleted, and all resources associated with Nets are \n" "detached.\n" "\nRequired Argument: DedicatedGroupId \n" + "Usage: oapi-cli DeleteDedicatedGroup --DedicatedGroupId=dedicatedgroupid [OPTIONS]\n" "null\n" "\nRequired Argument: DedicatedGroupId \n" , - "Usage: oapi-cli DeleteDhcpOptions --DhcpOptionsSetId=dhcpoptionssetid [OPTIONS]\n" "Deletes a specified DHCP options set.\nBefore deleting a DHCP options set, you \n" "must disassociate it from the Nets you associated it with. To do so, you need \n" "to associate with each Net a new set of DHCP options, or the `default` one if \n" "you do not want to associate any DHCP options with the \n" "Net.\n\n**[IMPORTANT]**\nYou cannot delete the `default` set.\n" "\nRequired Argument: DhcpOptionsSetId \n" + "Usage: oapi-cli DeleteDhcpOptions --DhcpOptionsSetId=dhcpoptionssetid [OPTIONS]\n" "null\n" "\nRequired Argument: DhcpOptionsSetId \n" , - "Usage: oapi-cli DeleteDirectLinkInterface --DirectLinkInterfaceId=directlinkinterfaceid [OPTIONS]\n" "Deletes a specified DirectLink interface.\n" "\nRequired Argument: DirectLinkInterfaceId \n" + "Usage: oapi-cli DeleteDirectLinkInterface --DirectLinkInterfaceId=directlinkinterfaceid [OPTIONS]\n" "null\n" "\nRequired Argument: DirectLinkInterfaceId \n" , - "Usage: oapi-cli DeleteDirectLink --DirectLinkId=directlinkid [OPTIONS]\n" "Deletes a specified DirectLink.\nBefore deleting a DirectLink, ensure that all \n" "your DirectLink interfaces related to this DirectLink are deleted.\n" "\nRequired Argument: DirectLinkId \n" + "Usage: oapi-cli DeleteDirectLink --DirectLinkId=directlinkid [OPTIONS]\n" "null\n" "\nRequired Argument: DirectLinkId \n" , - "Usage: oapi-cli DeleteExportTask --ExportTaskId=exporttaskid [OPTIONS]\n" "Deletes an export task.\nIf the export task is not running, the command fails \n" "and an error is returned.\n" "\nRequired Argument: ExportTaskId \n" + "Usage: oapi-cli DeleteExportTask --ExportTaskId=exporttaskid [OPTIONS]\n" "null\n" "\nRequired Argument: ExportTaskId \n" , - "Usage: oapi-cli DeleteFlexibleGpu --FlexibleGpuId=flexiblegpuid [OPTIONS]\n" "Releases a flexible GPU (fGPU) from your account.\nThe fGPU becomes free to be \n" "used by someone else.\n" "\nRequired Argument: FlexibleGpuId \n" + "Usage: oapi-cli DeleteFlexibleGpu --FlexibleGpuId=flexiblegpuid [OPTIONS]\n" "null\n" "\nRequired Argument: FlexibleGpuId \n" , - "Usage: oapi-cli DeleteImage --ImageId=imageid [OPTIONS]\n" "Deletes an OUTSCALE machine image (OMI) so that you cannot use it anymore to \n" "launch virtual machines (VMs). However, you can still use VMs already launched \n" "from this OMI.\n" "\nRequired Argument: ImageId \n" + "Usage: oapi-cli DeleteImage --ImageId=imageid [OPTIONS]\n" "null\n" "\nRequired Argument: ImageId \n" , - "Usage: oapi-cli DeleteInternetService --InternetServiceId=internetserviceid [OPTIONS]\n" "Deletes an internet service.\nBefore deleting an internet service, you must \n" "detach it from any Net it is attached to.\n" "\nRequired Argument: InternetServiceId \n" + "Usage: oapi-cli DeleteInternetService --InternetServiceId=internetserviceid [OPTIONS]\n" "null\n" "\nRequired Argument: InternetServiceId \n" , - "Usage: oapi-cli DeleteKeypair [OPTIONS]\n" "Deletes the specified keypair.\nThis action deletes the public key stored by \n" "3DS OUTSCALE, thus deleting the keypair.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli DeleteKeypair [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli DeleteListenerRule --ListenerRuleName=listenerrulename [OPTIONS]\n" "Deletes a listener rule.\nThe previously active rule is disabled after deletion.\n" "\nRequired Argument: ListenerRuleName \n" + "Usage: oapi-cli DeleteListenerRule --ListenerRuleName=listenerrulename [OPTIONS]\n" "null\n" "\nRequired Argument: ListenerRuleName \n" , - "Usage: oapi-cli DeleteLoadBalancerListeners --LoadBalancerName=loadbalancername --LoadBalancerPorts=loadbalancerports [OPTIONS]\n" "Deletes listeners of a specified load balancer.\n" "\nRequired Argument: LoadBalancerName LoadBalancerPorts \n" + "Usage: oapi-cli DeleteLoadBalancerListeners --LoadBalancerName=loadbalancername --LoadBalancerPorts=loadbalancerports [OPTIONS]\n" "null\n" "\nRequired Argument: LoadBalancerName LoadBalancerPorts \n" , - "Usage: oapi-cli DeleteLoadBalancerPolicy --LoadBalancerName=loadbalancername --PolicyName=policyname [OPTIONS]\n" "Deletes a specified policy from a load balancer.\nIn order to be deleted, the \n" "policy must not be enabled for any listener.\n" "\nRequired Argument: LoadBalancerName PolicyName \n" + "Usage: oapi-cli DeleteLoadBalancerPolicy --LoadBalancerName=loadbalancername --PolicyName=policyname [OPTIONS]\n" "null\n" "\nRequired Argument: LoadBalancerName PolicyName \n" , - "Usage: oapi-cli DeleteLoadBalancer --LoadBalancerName=loadbalancername [OPTIONS]\n" "Deletes a specified load balancer.\n" "\nRequired Argument: LoadBalancerName \n" + "Usage: oapi-cli DeleteLoadBalancer --LoadBalancerName=loadbalancername [OPTIONS]\n" "null\n" "\nRequired Argument: LoadBalancerName \n" , - "Usage: oapi-cli DeleteLoadBalancerTags --LoadBalancerNames=loadbalancernames --Tags=tags [OPTIONS]\n" "Deletes one or more tags from the specified load balancers.\n" "\nRequired Argument: LoadBalancerNames Tags \n" + "Usage: oapi-cli DeleteLoadBalancerTags --LoadBalancerNames=loadbalancernames --Tags=tags [OPTIONS]\n" "null\n" "\nRequired Argument: LoadBalancerNames Tags \n" , - "Usage: oapi-cli DeleteNatService --NatServiceId=natserviceid [OPTIONS]\n" "Deletes a specified network address translation (NAT) service.\nThis action \n" "disassociates the public IP from the NAT service, but does not release this \n" "public IP from your account. However, it does not delete any NAT service routes \n" "in your route tables.\n" "\nRequired Argument: NatServiceId \n" + "Usage: oapi-cli DeleteNatService --NatServiceId=natserviceid [OPTIONS]\n" "null\n" "\nRequired Argument: NatServiceId \n" , - "Usage: oapi-cli DeleteNetAccessPoint --NetAccessPointId=netaccesspointid [OPTIONS]\n" "Deletes a specified Net access point.\nThis action also deletes the \n" "corresponding routes added to the route tables you specified for the Net access \n" "point.\n" "\nRequired Argument: NetAccessPointId \n" + "Usage: oapi-cli DeleteNetAccessPoint --NetAccessPointId=netaccesspointid [OPTIONS]\n" "null\n" "\nRequired Argument: NetAccessPointId \n" , - "Usage: oapi-cli DeleteNetPeering --NetPeeringId=netpeeringid [OPTIONS]\n" "Deletes a Net peering.\nIf the Net peering is in the `active` state, it can be \n" "deleted either by the owner of the requester Net or the owner of the peer \n" "Net.\nIf it is in the `pending-acceptance` state, it can be deleted only by the \n" "owner of the requester Net.\nIf it is in the `rejected`, `failed`, or `expired` \n" "states, it cannot be deleted.\n" "\nRequired Argument: NetPeeringId \n" + "Usage: oapi-cli DeleteNetPeering --NetPeeringId=netpeeringid [OPTIONS]\n" "null\n" "\nRequired Argument: NetPeeringId \n" , - "Usage: oapi-cli DeleteNet --NetId=netid [OPTIONS]\n" "Deletes a specified Net.\nBefore deleting the Net, you need to delete or detach \n" "all the resources associated with the Net:\n\n* Virtual machines (VMs)\n* Net \n" "peerings\n* Custom route tables\n* Public IPs allocated to resources in the \n" "Net\n* Network Interface Cards (NICs) created in the Subnets\n* Virtual \n" "gateways, internet services and NAT services\n* Load balancers\n* Security \n" "groups\n* Subnets\n" "\nRequired Argument: NetId \n" + "Usage: oapi-cli DeleteNet --NetId=netid [OPTIONS]\n" "null\n" "\nRequired Argument: NetId \n" , - "Usage: oapi-cli DeleteNic --NicId=nicid [OPTIONS]\n" "Deletes the specified network interface card (NIC).\nThe network interface must \n" "not be attached to any virtual machine (VM).\n" "\nRequired Argument: NicId \n" + "Usage: oapi-cli DeleteNic --NicId=nicid [OPTIONS]\n" "null\n" "\nRequired Argument: NicId \n" , - "Usage: oapi-cli DeletePolicy --PolicyOrn=policyorn [OPTIONS]\n" "Deletes a managed policy.\nBefore deleting a managed policy, you must unlink \n" "all users linked to it and delete all the versions of the policy, except the \n" "default one, using the `DeletePolicyVersion` method.\n" "\nRequired Argument: PolicyOrn \n" + "Usage: oapi-cli DeletePolicy --PolicyOrn=policyorn [OPTIONS]\n" "null\n" "\nRequired Argument: PolicyOrn \n" , - "Usage: oapi-cli DeletePolicyVersion --PolicyOrn=policyorn --VersionId=versionid [OPTIONS]\n" "Deletes a specified version of a managed policy, if it is not set as the \n" "default one.\n" "\nRequired Argument: PolicyOrn VersionId \n" + "Usage: oapi-cli DeletePolicyVersion --PolicyOrn=policyorn --VersionId=versionid [OPTIONS]\n" "null\n" "\nRequired Argument: PolicyOrn VersionId \n" , - "Usage: oapi-cli DeleteProductType --ProductTypeId=producttypeid [OPTIONS]\n" "Deletes a specified product type that belongs to you.\n\n**[WARNING]**\nThe \n" "product type must not be associated with one or more OMIs to be deleted. \n" "Otherwise, you need to force the deletion.\nIf you force the deletion, the \n" "product type is deleted and remains associated with the OMIs.\n" "\nRequired Argument: ProductTypeId \n" + "Usage: oapi-cli DeleteProductType --ProductTypeId=producttypeid [OPTIONS]\n" "null\n" "\nRequired Argument: ProductTypeId \n" , - "Usage: oapi-cli DeletePublicIp [OPTIONS]\n" "Releases a public IP.\nYou can release a public IP associated with your \n" "account. This address is released in the public IP pool and can be used by \n" "someone else. Before releasing a public IP, ensure you updated all your \n" "resources communicating with this address.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli DeletePublicIp [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli DeleteRoute --RouteTableId=routetableid --DestinationIpRange=destinationiprange [OPTIONS]\n" "Deletes a route from a specified route table.\n" "\nRequired Argument: RouteTableId DestinationIpRange \n" + "Usage: oapi-cli DeleteRoute --RouteTableId=routetableid --DestinationIpRange=destinationiprange [OPTIONS]\n" "null\n" "\nRequired Argument: RouteTableId DestinationIpRange \n" , - "Usage: oapi-cli DeleteRouteTable --RouteTableId=routetableid [OPTIONS]\n" "Deletes a specified route table.\nBefore deleting a route table, you must \n" "disassociate it from any Subnet. You cannot delete the main route table.\n" "\nRequired Argument: RouteTableId \n" + "Usage: oapi-cli DeleteRouteTable --RouteTableId=routetableid [OPTIONS]\n" "null\n" "\nRequired Argument: RouteTableId \n" , - "Usage: oapi-cli DeleteSecurityGroup [OPTIONS]\n" "Deletes a specified security group.\nYou can specify either the name of the \n" "security group or its ID.\nThis action fails if the specified group is \n" "associated with a virtual machine (VM) or referenced by another security group.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli DeleteSecurityGroup [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli DeleteSecurityGroupRule --SecurityGroupId=securitygroupid --Flow=flow [OPTIONS]\n" "Deletes one or more inbound or outbound rules from a security group. For the \n" "rule to be deleted, the values specified in the deletion request must exactly \n" "match the value of the existing rule.\nIn case of TCP and UDP protocols, you \n" "have to indicate the destination port or range of ports. In case of ICMP \n" "protocol, you have to specify the ICMP type and code numbers.\nRules (IP \n" "permissions) consist of the protocol, IP range or source security group.\nTo \n" "remove outbound access to a destination security group, we recommend to use a \n" "set of IP permissions. We also recommend to specify the protocol in a set of IP \n" "permissions.\n" "\nRequired Argument: SecurityGroupId Flow \n" + "Usage: oapi-cli DeleteSecurityGroupRule --SecurityGroupId=securitygroupid --Flow=flow [OPTIONS]\n" "null\n" "\nRequired Argument: SecurityGroupId Flow \n" , - "Usage: oapi-cli DeleteServerCertificate --Name=name [OPTIONS]\n" "Deletes a specified server certificate.\n" "\nRequired Argument: Name \n" + "Usage: oapi-cli DeleteServerCertificate --Name=name [OPTIONS]\n" "null\n" "\nRequired Argument: Name \n" , - "Usage: oapi-cli DeleteSnapshot --SnapshotId=snapshotid [OPTIONS]\n" "Deletes a specified snapshot.\nYou cannot delete a snapshot that is currently \n" "used by an OUTSCALE machine image (OMI). To do so, you first need to delete the \n" "corresponding OMI. For more information, see the [DeleteImage](#deleteimage) \n" "method.\n" "\nRequired Argument: SnapshotId \n" + "Usage: oapi-cli DeleteSnapshot --SnapshotId=snapshotid [OPTIONS]\n" "null\n" "\nRequired Argument: SnapshotId \n" , - "Usage: oapi-cli DeleteSubnet --SubnetId=subnetid [OPTIONS]\n" "Deletes a specified Subnet.\nBefore deleting the Subnet, you need to delete all \n" "resources associated with the Subnet:\n\n* Virtual machines (VMs)\n* Network \n" "Interface Cards (NICs)\n* NAT services\n* Load balancers\n" "\nRequired Argument: SubnetId \n" + "Usage: oapi-cli DeleteSubnet --SubnetId=subnetid [OPTIONS]\n" "null\n" "\nRequired Argument: SubnetId \n" , - "Usage: oapi-cli DeleteTags --ResourceIds=resourceids --Tags=tags [OPTIONS]\n" "Deletes one or more tags from the specified resources.\n" "\nRequired Argument: ResourceIds Tags \n" + "Usage: oapi-cli DeleteTags --ResourceIds=resourceids --Tags=tags [OPTIONS]\n" "null\n" "\nRequired Argument: ResourceIds Tags \n" , - "Usage: oapi-cli DeleteUserGroupPolicy --UserGroupName=usergroupname --PolicyName=policyname [OPTIONS]\n" "Deletes a specified inline policy from a specific group.\n" "\nRequired Argument: UserGroupName PolicyName \n" + "Usage: oapi-cli DeleteUserGroupPolicy --UserGroupName=usergroupname --PolicyName=policyname [OPTIONS]\n" "null\n" "\nRequired Argument: UserGroupName PolicyName \n" , - "Usage: oapi-cli DeleteUserGroup --UserGroupName=usergroupname [OPTIONS]\n" "Deletes a specified user group.\n\n**[WARNING]**\nThe user group must be empty \n" "of any user and must not have any linked policy. Otherwise, you need to force \n" "the deletion.\nIf you force the deletion, all inline policies will be deleted \n" "with the user group.\n" "\nRequired Argument: UserGroupName \n" + "Usage: oapi-cli DeleteUserGroup --UserGroupName=usergroupname [OPTIONS]\n" "null\n" "\nRequired Argument: UserGroupName \n" , - "Usage: oapi-cli DeleteUserPolicy --UserName=username --PolicyName=policyname [OPTIONS]\n" "Deletes a specified inline policy from a specific user.\n" "\nRequired Argument: UserName PolicyName \n" + "Usage: oapi-cli DeleteUserPolicy --UserName=username --PolicyName=policyname [OPTIONS]\n" "null\n" "\nRequired Argument: UserName PolicyName \n" , - "Usage: oapi-cli DeleteUser --UserName=username [OPTIONS]\n" "Deletes a specified EIM user. The EIM user must not belong to any group, nor \n" "have any key or linked policy.\n" "\nRequired Argument: UserName \n" + "Usage: oapi-cli DeleteUser --UserName=username [OPTIONS]\n" "null\n" "\nRequired Argument: UserName \n" , - "Usage: oapi-cli DeleteVirtualGateway --VirtualGatewayId=virtualgatewayid [OPTIONS]\n" "Deletes a specified virtual gateway.\nBefore deleting a virtual gateway, we \n" "recommend to detach it from the Net and delete the VPN connection.\n" "\nRequired Argument: VirtualGatewayId \n" + "Usage: oapi-cli DeleteVirtualGateway --VirtualGatewayId=virtualgatewayid [OPTIONS]\n" "null\n" "\nRequired Argument: VirtualGatewayId \n" , - "Usage: oapi-cli DeleteVmGroup --VmGroupId=vmgroupid [OPTIONS]\n" "> [WARNING]\n> This feature is currently under development and may not function \n" "properly.\n\nDeletes a specified VM group.\n" "\nRequired Argument: VmGroupId \n" + "Usage: oapi-cli DeleteVmGroup --VmGroupId=vmgroupid [OPTIONS]\n" "null\n" "\nRequired Argument: VmGroupId \n" , - "Usage: oapi-cli DeleteVmTemplate --VmTemplateId=vmtemplateid [OPTIONS]\n" "> [WARNING]\n> This feature is currently under development and may not function \n" "properly.\n\nDeletes a virtual machine (VM) template.\nYou cannot delete a \n" "template currently used by a VM group.\n" "\nRequired Argument: VmTemplateId \n" + "Usage: oapi-cli DeleteVmTemplate --VmTemplateId=vmtemplateid [OPTIONS]\n" "null\n" "\nRequired Argument: VmTemplateId \n" , - "Usage: oapi-cli DeleteVms --VmIds=vmids [OPTIONS]\n" "Terminates one or more virtual machines (VMs).\nThis operation is idempotent, \n" "that means that all calls succeed if you terminate a VM more than once.\n" "\nRequired Argument: VmIds \n" + "Usage: oapi-cli DeleteVms --VmIds=vmids [OPTIONS]\n" "null\n" "\nRequired Argument: VmIds \n" , - "Usage: oapi-cli DeleteVolume --VolumeId=volumeid [OPTIONS]\n" "Deletes a specified Block Storage Unit (BSU) volume.\nYou can delete available \n" "volumes only, that is, volumes that are not attached to a virtual machine (VM).\n" "\nRequired Argument: VolumeId \n" + "Usage: oapi-cli DeleteVolume --VolumeId=volumeid [OPTIONS]\n" "null\n" "\nRequired Argument: VolumeId \n" , - "Usage: oapi-cli DeleteVpnConnection --VpnConnectionId=vpnconnectionid [OPTIONS]\n" "Deletes a specified VPN connection.\nIf you want to delete a Net and all its \n" "dependencies, we recommend to detach the virtual gateway from the Net and \n" "delete the Net before deleting the VPN connection. This enables you to delete \n" "the Net without waiting for the VPN connection to be deleted.\n" "\nRequired Argument: VpnConnectionId \n" + "Usage: oapi-cli DeleteVpnConnection --VpnConnectionId=vpnconnectionid [OPTIONS]\n" "null\n" "\nRequired Argument: VpnConnectionId \n" , - "Usage: oapi-cli DeleteVpnConnectionRoute --DestinationIpRange=destinationiprange --VpnConnectionId=vpnconnectionid [OPTIONS]\n" "Deletes a static route to a VPN connection previously created using the \n" "CreateVpnConnectionRoute method.\n" "\nRequired Argument: DestinationIpRange VpnConnectionId \n" + "Usage: oapi-cli DeleteVpnConnectionRoute --DestinationIpRange=destinationiprange --VpnConnectionId=vpnconnectionid [OPTIONS]\n" "null\n" "\nRequired Argument: DestinationIpRange VpnConnectionId \n" , - "Usage: oapi-cli DeregisterVmsInLoadBalancer --BackendVmIds=backendvmids --LoadBalancerName=loadbalancername [OPTIONS]\n" "> [WARNING]\n> Deprecated: This call is deprecated and will be \n" "removed.\n\nDeregisters a specified virtual machine (VM) from a load balancer.\n" "\nRequired Argument: BackendVmIds LoadBalancerName \n" + "Usage: oapi-cli DeregisterVmsInLoadBalancer --BackendVmIds=backendvmids --LoadBalancerName=loadbalancername [OPTIONS]\n" "null\n" "\nRequired Argument: BackendVmIds LoadBalancerName \n" , - "Usage: oapi-cli LinkFlexibleGpu --FlexibleGpuId=flexiblegpuid --VmId=vmid [OPTIONS]\n" "Attaches one of your allocated flexible GPUs (fGPUs) to one of your virtual \n" "machines (VMs).\nTo complete the linking of the fGPU, you need to do a \n" "stop/start of the VM. A simple restart is not sufficient, as the linking of the \n" "fGPU is done when the VM goes through the `stopped` state. For the difference \n" "between stop/start and restart, see [About VM \n" "Lifecycle](https://docs.outscale.com/en/userguide/About-VM-Lifecycle.html).\n\n*\n" "*[NOTE]**\nYou can attach fGPUs only to VMs with the `highest` (1) performance \n" "flag. For more information see [About Flexible \n" "GPUs](https://docs.outscale.com/en/userguide/About-Flexible-GPUs.html) and [VM \n" "Types](https://docs.outscale.com/en/userguide/VM-Types.html).\n" "\nRequired Argument: FlexibleGpuId VmId \n" + "Usage: oapi-cli DisableOutscaleLoginForUsers [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli LinkInternetService --InternetServiceId=internetserviceid --NetId=netid [OPTIONS]\n" "Attaches an internet service to a Net.\nTo enable the connection between the \n" "Internet and a Net, you must attach an internet service to this Net.\n" "\nRequired Argument: InternetServiceId NetId \n" + "Usage: oapi-cli DisableOutscaleLoginPerUsers [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli LinkLoadBalancerBackendMachines --LoadBalancerName=loadbalancername [OPTIONS]\n" "Attaches one or more virtual machines (VMs) to a specified load balancer. You \n" "need to specify at least the `BackendIps` or the `BackendVmIds` parameter.\nThe \n" "VMs can be in different Subnets and different Subregions than the load \n" "balancer, as long as the VMs and load balancers are all in the public Cloud or \n" "all in the same Net. It may take a little time for a VM to be registered with \n" "the load balancer. Once the VM is registered with a load balancer, it receives \n" "traffic and requests from this load balancer and is called a backend VM.\n" "\nRequired Argument: LoadBalancerName \n" + "Usage: oapi-cli DisableOutscaleLogin [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli LinkManagedPolicyToUserGroup --PolicyOrn=policyorn --UserGroupName=usergroupname [OPTIONS]\n" "Links a managed policy to a specific group. This policy applies to all the \n" "users contained in this group.\n" "\nRequired Argument: PolicyOrn UserGroupName \n" + "Usage: oapi-cli EnableOutscaleLoginForUsers [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli LinkNic --DeviceNumber=devicenumber --VmId=vmid --NicId=nicid [OPTIONS]\n" "Attaches a network interface card (NIC) to a virtual machine (VM).\nThe \n" "interface and the VM must be in the same Subregion. The VM can be either \n" "`running` or `stopped`. The NIC must be in the `available` state. For more \n" "information, see [Attaching a NIC to a \n" "VM](https://docs.outscale.com/en/userguide/Attaching-a-NIC-to-a-VM.html).\n" "\nRequired Argument: DeviceNumber VmId NicId \n" + "Usage: oapi-cli EnableOutscaleLoginPerUsers [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli LinkPolicy --PolicyOrn=policyorn --UserName=username [OPTIONS]\n" "Links a managed policy to a specific user.\n" "\nRequired Argument: PolicyOrn UserName \n" + "Usage: oapi-cli EnableOutscaleLogin [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli LinkPrivateIps --NicId=nicid [OPTIONS]\n" "Assigns one or more secondary private IPs to a specified network interface card \n" "(NIC). This action is only available in a Net. The private IPs to be assigned \n" "can be added individually using the `PrivateIps` parameter, or you can specify \n" "the number of private IPs to be automatically chosen within the Subnet range \n" "using the `SecondaryPrivateIpCount` parameter. You can specify only one of \n" "these two parameters. If none of these parameters are specified, a private IP \n" "is chosen within the Subnet range.\n" "\nRequired Argument: NicId \n" + "Usage: oapi-cli LinkFlexibleGpu --FlexibleGpuId=flexiblegpuid --VmId=vmid [OPTIONS]\n" "null\n" "\nRequired Argument: FlexibleGpuId VmId \n" , - "Usage: oapi-cli LinkPublicIp [OPTIONS]\n" "Associates a public IP with a virtual machine (VM) or a network interface card \n" "(NIC), in the public Cloud or in a Net. You can associate a public IP with only \n" "one VM or network interface at a time.\nTo associate a public IP in a Net, \n" "ensure that the Net has an internet service attached. For more information, see \n" "the [LinkInternetService](#linkinternetservice) method.\nBy default, the public \n" "IP is disassociated every time you stop and start the VM. For a persistent \n" "association, you can add the `osc.fcu.eip.auto-attach` tag to the VM with the \n" "public IP as value. For more information, see the [CreateTags](#createtags) \n" "method.\n\n**[IMPORTANT]**\nYou can associate a public IP with a network \n" "address translation (NAT) service only when creating the NAT service. To modify \n" "its public IP, you need to delete the NAT service and re-create it with the new \n" "public IP. For more information, see the [CreateNatService](#createnatservice) \n" "method.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli LinkInternetService --InternetServiceId=internetserviceid --NetId=netid [OPTIONS]\n" "null\n" "\nRequired Argument: InternetServiceId NetId \n" , - "Usage: oapi-cli LinkRouteTable --RouteTableId=routetableid --SubnetId=subnetid [OPTIONS]\n" "Associates a Subnet with a route table.\nThe Subnet and the route table must be \n" "in the same Net. The traffic is routed according to the route table defined \n" "within this Net. You can associate a route table with several Subnets.\n" "\nRequired Argument: RouteTableId SubnetId \n" + "Usage: oapi-cli LinkLoadBalancerBackendMachines --LoadBalancerName=loadbalancername [OPTIONS]\n" "null\n" "\nRequired Argument: LoadBalancerName \n" , - "Usage: oapi-cli LinkVirtualGateway --NetId=netid --VirtualGatewayId=virtualgatewayid [OPTIONS]\n" "Attaches a virtual gateway to a Net.\n\n**[IMPORTANT]**\nThis action can be \n" "done only if the virtual gateway is in the `available` state.\n" "\nRequired Argument: NetId VirtualGatewayId \n" + "Usage: oapi-cli LinkManagedPolicyToUserGroup --PolicyOrn=policyorn --UserGroupName=usergroupname [OPTIONS]\n" "null\n" "\nRequired Argument: PolicyOrn UserGroupName \n" , - "Usage: oapi-cli LinkVolume --DeviceName=devicename --VmId=vmid --VolumeId=volumeid [OPTIONS]\n" "Attaches a Block Storage Unit (BSU) volume to a virtual machine (VM).\nThe \n" "volume and the VM must be in the same Subregion. The VM can be running or \n" "stopped. The volume is attached to the specified VM device.\n" "\nRequired Argument: DeviceName VmId VolumeId \n" + "Usage: oapi-cli LinkNic --DeviceNumber=devicenumber --VmId=vmid --NicId=nicid [OPTIONS]\n" "null\n" "\nRequired Argument: DeviceNumber VmId NicId \n" , - "Usage: oapi-cli PutUserGroupPolicy --PolicyName=policyname --PolicyDocument=policydocument --UserGroupName=usergroupname [OPTIONS]\n" "Creates or updates an inline policy included in a specified group.\nThe policy \n" "is automatically applied to all the users of the group after its creation.\n" "\nRequired Argument: PolicyName PolicyDocument UserGroupName \n" + "Usage: oapi-cli LinkPolicy --PolicyOrn=policyorn --UserName=username [OPTIONS]\n" "null\n" "\nRequired Argument: PolicyOrn UserName \n" , - "Usage: oapi-cli PutUserPolicy --PolicyName=policyname --PolicyDocument=policydocument --UserName=username [OPTIONS]\n" "Creates or updates an inline policy included in a specified user.\nThe policy \n" "is automatically applied to the user after its creation.\n" "\nRequired Argument: PolicyName PolicyDocument UserName \n" + "Usage: oapi-cli LinkPrivateIps --NicId=nicid [OPTIONS]\n" "null\n" "\nRequired Argument: NicId \n" , - "Usage: oapi-cli ReadAccessKeys [OPTIONS]\n" "Lists the access key IDs of either your root account or an EIM user.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli LinkPublicIp [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadAccounts [OPTIONS]\n" "Gets information about the account that sent the request.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli LinkRouteTable --RouteTableId=routetableid --SubnetId=subnetid [OPTIONS]\n" "null\n" "\nRequired Argument: RouteTableId SubnetId \n" , - "Usage: oapi-cli ReadAdminPassword --VmId=vmid [OPTIONS]\n" "Gets the administrator password for a Windows running virtual machine \n" "(VM).\nThe administrator password is encrypted using the keypair you specified \n" "when launching the VM.\n\n**[IMPORTANT]**\n* Only RSA keypairs can decrypt the \n" "password of a Windows VM.\n* The administrator password is generated only on \n" "the first boot of the Windows VM. It is not returned after the first boot.\n" "\nRequired Argument: VmId \n" + "Usage: oapi-cli LinkVirtualGateway --NetId=netid --VirtualGatewayId=virtualgatewayid [OPTIONS]\n" "null\n" "\nRequired Argument: NetId VirtualGatewayId \n" , - "Usage: oapi-cli ReadApiAccessPolicy [OPTIONS]\n" "Gets information about the API access policy of your account.\nFor more \n" "information, see [About Your API Access \n" "Policy](https://docs.outscale.com/en/userguide/About-Your-API-Access-Policy.html\n" ").\n" "\nRequired Argument: null \n" + "Usage: oapi-cli LinkVolume --DeviceName=devicename --VmId=vmid --VolumeId=volumeid [OPTIONS]\n" "null\n" "\nRequired Argument: DeviceName VmId VolumeId \n" , - "Usage: oapi-cli ReadApiAccessRules [OPTIONS]\n" "Lists one or more API access rules.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli PutUserGroupPolicy --PolicyName=policyname --PolicyDocument=policydocument --UserGroupName=usergroupname [OPTIONS]\n" "null\n" "\nRequired Argument: PolicyName PolicyDocument UserGroupName \n" , - "Usage: oapi-cli ReadApiLogs [OPTIONS]\n" "Lists the logs of the API calls you have performed with this \n" "account.\n\n**[IMPORTANT]**\nPast logs are accessible for up to 32 days.\nBy \n" "default, the retrieved interval is 48 hours. If neither of the \n" "`QueryDateBefore` nor `QueryDateAfter` parameters are specified, logs from the \n" "past 48 hours are retrieved. If you only specify one of two, logs are retrieved \n" "from a 2-day interval based on the date you provided. To retrieve logs beyond a \n" "2-day interval, specify both parameters.\nFor more information, see [About \n" "OMS](https://docs.outscale.com/en/userguide/About-OMS.html).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli PutUserPolicy --PolicyName=policyname --PolicyDocument=policydocument --UserName=username [OPTIONS]\n" "null\n" "\nRequired Argument: PolicyName PolicyDocument UserName \n" , - "Usage: oapi-cli ReadCas [OPTIONS]\n" "Gets information about one or more of your Client Certificate Authorities (CAs).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadAccessKeys [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadCatalog [OPTIONS]\n" "Returns the price list of OUTSCALE services for the current Region.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadAccounts [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadCatalogs [OPTIONS]\n" "Returns the price list of OUTSCALE services for the current Region within a \n" "specific time period.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadAdminPassword --VmId=vmid [OPTIONS]\n" "null\n" "\nRequired Argument: VmId \n" , - "Usage: oapi-cli ReadClientGateways [OPTIONS]\n" "Lists one or more of your client gateways.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadApiAccessPolicy [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadConsoleOutput --VmId=vmid [OPTIONS]\n" "Gets the console output for a virtual machine (VM). This console is not in \n" "real-time. It is refreshed every two seconds and provides the most recent 64 \n" "KiB output.\n\n**[IMPORTANT]**\nOn Windows VMs, the console is handled only on \n" "the first boot. It returns no output after the first boot.\n" "\nRequired Argument: VmId \n" + "Usage: oapi-cli ReadApiAccessRules [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadConsumptionAccount --FromDate=fromdate --ToDate=todate [OPTIONS]\n" "Gets information about the consumption of your account for each billable \n" "resource within the specified time period.\n" "\nRequired Argument: FromDate ToDate \n" + "Usage: oapi-cli ReadApiLogs [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadDedicatedGroups [OPTIONS]\n" "> [WARNING]\n> This feature is currently in beta.\n\nList one or more dedicated \n" "groups of virtual machines (VMs).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadCas [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadDhcpOptions [OPTIONS]\n" "Gets information about the content of one or more DHCP options sets.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadCatalog [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadDirectLinkInterfaces [OPTIONS]\n" "Lists one or more of your DirectLink interfaces.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadCatalogs [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadDirectLinks [OPTIONS]\n" "Lists all DirectLinks in the Region.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadClientGateways [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadEntitiesLinkedToPolicy [OPTIONS]\n" "Lists all entities (account, users, or user groups) linked to a specific \n" "managed policy.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadConsoleOutput --VmId=vmid [OPTIONS]\n" "null\n" "\nRequired Argument: VmId \n" , - "Usage: oapi-cli ReadFlexibleGpuCatalog [OPTIONS]\n" "Lists all flexible GPUs available in the public catalog.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadConsumptionAccount --FromDate=fromdate --ToDate=todate [OPTIONS]\n" "null\n" "\nRequired Argument: FromDate ToDate \n" , - "Usage: oapi-cli ReadFlexibleGpus [OPTIONS]\n" "Lists one or more flexible GPUs (fGPUs) allocated to your account.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadDedicatedGroups [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadImageExportTasks [OPTIONS]\n" "Lists one or more image export tasks.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadDhcpOptions [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadImages [OPTIONS]\n" "Lists one or more OUTSCALE machine images (OMIs) you can use.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadDirectLinkInterfaces [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadInternetServices [OPTIONS]\n" "Lists one or more of your internet services.\nAn internet service enables \n" "virtual machines (VMs) launched in a Net to connect to the Internet. It allows \n" "routing of incoming and outgoing Internet traffic and management of public IP \n" "addresses.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadDirectLinks [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadKeypairs [OPTIONS]\n" "Lists one or more of your keypairs.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadEntitiesLinkedToPolicy [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadLinkedPolicies --UserName=username [OPTIONS]\n" "Lists the managed policies linked to a specified user.\n" "\nRequired Argument: UserName \n" + "Usage: oapi-cli ReadFlexibleGpuCatalog [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadListenerRules [OPTIONS]\n" "Lists one or more listener rules. By default, this action returns the full list \n" "of listener rules for the account.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadFlexibleGpus [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadLoadBalancerTags --LoadBalancerNames=loadbalancernames [OPTIONS]\n" "Lists the tags associated with one or more specified load balancers.\n" "\nRequired Argument: LoadBalancerNames \n" + "Usage: oapi-cli ReadImageExportTasks [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadLoadBalancers [OPTIONS]\n" "Lists one or more load balancers and their attributes.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadImages [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadLocations [OPTIONS]\n" "Lists the locations, corresponding to datacenters, where you can set up a \n" "DirectLink.\nFor more information, see [About \n" "DirectLink](https://docs.outscale.com/en/userguide/About-DirectLink.html).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadInternetServices [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadManagedPoliciesLinkedToUserGroup --UserGroupName=usergroupname [OPTIONS]\n" "Lists the managed policies linked to a specified group.\n" "\nRequired Argument: UserGroupName \n" + "Usage: oapi-cli ReadKeypairs [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadNatServices [OPTIONS]\n" "Lists one or more network address translation (NAT) services.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadLinkedPolicies --UserName=username [OPTIONS]\n" "null\n" "\nRequired Argument: UserName \n" , - "Usage: oapi-cli ReadNetAccessPointServices [OPTIONS]\n" "Lists OUTSCALE services available to create Net access points.\nFor more \n" "information, see [CreateNetAccessPoint](#createnetaccesspoint).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadListenerRules [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadNetAccessPoints [OPTIONS]\n" "Lists one or more Net access points.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadLoadBalancerTags --LoadBalancerNames=loadbalancernames [OPTIONS]\n" "null\n" "\nRequired Argument: LoadBalancerNames \n" , - "Usage: oapi-cli ReadNetPeerings [OPTIONS]\n" "Lists one or more peering connections between two Nets.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadLoadBalancers [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadNets [OPTIONS]\n" "Lists one or more Nets.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadLocations [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadNics [OPTIONS]\n" "Lists one or more network interface cards (NICs).\nA NIC is a virtual network \n" "interface that you can attach to a virtual machine (VM) in a Net.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadManagedPoliciesLinkedToUserGroup --UserGroupName=usergroupname [OPTIONS]\n" "null\n" "\nRequired Argument: UserGroupName \n" , - "Usage: oapi-cli ReadPolicies [OPTIONS]\n" "Lists all the managed policies available for your account.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadNatServices [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadPolicy --PolicyOrn=policyorn [OPTIONS]\n" "Lists information about a specified managed policy.\n" "\nRequired Argument: PolicyOrn \n" + "Usage: oapi-cli ReadNetAccessPointServices [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadPolicyVersion --PolicyOrn=policyorn --VersionId=versionid [OPTIONS]\n" "Lists information about a specified version of a managed policy.\n" "\nRequired Argument: PolicyOrn VersionId \n" + "Usage: oapi-cli ReadNetAccessPoints [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadPolicyVersions --PolicyOrn=policyorn [OPTIONS]\n" "Lists information about all the policy versions of a specified managed policy.\n" "\nRequired Argument: PolicyOrn \n" + "Usage: oapi-cli ReadNetPeerings [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadProductTypes [OPTIONS]\n" "Lists one or more product types.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadNets [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadPublicCatalog [OPTIONS]\n" "Returns the price list of OUTSCALE products and services for the Region \n" "specified in the endpoint of the request. For more information, see [About \n" "Regions and \n" "Subregions](https://docs.outscale.com/en/userguide/About-Regions-and-Subregions.\n" "html).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadNics [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadPublicIpRanges [OPTIONS]\n" "Gets the public IPv4 addresses in CIDR notation for the Region specified in the \n" "endpoint of the request. For more information, see [About Regions and \n" "Subregions](https://docs.outscale.com/en/userguide/About-Regions-and-Subregions.\n" "html).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadPolicies [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadPublicIps [OPTIONS]\n" "Lists one or more public IPs allocated to your account.\nBy default, this \n" "action returns information about all your public IPs: available or associated \n" "with a virtual machine (VM), a network interface card (NIC) or a NAT service.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadPolicy --PolicyOrn=policyorn [OPTIONS]\n" "null\n" "\nRequired Argument: PolicyOrn \n" , - "Usage: oapi-cli ReadQuotas [OPTIONS]\n" "Lists one or more of your quotas.\nFor more information, see [About Your \n" "Account](https://docs.outscale.com/en/userguide/About-Your-Account.html).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadPolicyVersion --PolicyOrn=policyorn --VersionId=versionid [OPTIONS]\n" "null\n" "\nRequired Argument: PolicyOrn VersionId \n" , - "Usage: oapi-cli ReadRegions [OPTIONS]\n" "Lists one or more Regions of the OUTSCALE Cloud.\nFor more information, see \n" "[About Regions and \n" "Subregions](https://docs.outscale.com/en/userguide/About-Regions-and-Subregions.\n" "html).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadPolicyVersions --PolicyOrn=policyorn [OPTIONS]\n" "null\n" "\nRequired Argument: PolicyOrn \n" , - "Usage: oapi-cli ReadRouteTables [OPTIONS]\n" "Lists one or more of your route tables.\nIn your Net, each Subnet must be \n" "associated with a route table. If a Subnet is not explicitly associated with a \n" "route table, it is implicitly associated with the main route table of the Net.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadProductTypes [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadSecurityGroups [OPTIONS]\n" "Lists one or more security groups.\nYou can specify either the name of the \n" "security groups or their IDs.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadPublicCatalog [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadServerCertificates [OPTIONS]\n" "Lists your server certificates.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadPublicIpRanges [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadSnapshotExportTasks [OPTIONS]\n" "Lists one or more snapshot export tasks.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadPublicIps [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadSnapshots [OPTIONS]\n" "Lists one or more snapshots that are available to you and the permissions to \n" "create volumes from them.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadQuotas [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadSubnets [OPTIONS]\n" "Lists one or more of your Subnets.\nIf you do not specify any Subnet ID, this \n" "action describes all of your Subnets.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadRegions [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadSubregions [OPTIONS]\n" "Lists one or more of the enabled Subregions that you can access in the current \n" "Region.\n\nFor more information, see [About Regions and \n" "Subregions](https://docs.outscale.com/en/userguide/About-Regions-and-Subregions.\n" "html).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadRouteTables [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadTags [OPTIONS]\n" "Lists one or more tags for your resources.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadSecurityGroups [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadUnitPrice --Operation=operation --Service=service --Type=type [OPTIONS]\n" "Gets unit price information for the specified parameters.\n" "\nRequired Argument: Operation Service Type \n" + "Usage: oapi-cli ReadServerCertificates [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadUserGroupPolicies --UserGroupName=usergroupname [OPTIONS]\n" "Lists the names of the inline policies embedded in a specific group.\n" "\nRequired Argument: UserGroupName \n" + "Usage: oapi-cli ReadSnapshotExportTasks [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadUserGroupPolicy --PolicyName=policyname --UserGroupName=usergroupname [OPTIONS]\n" "Returns information about an inline policy included in a specified group.\n" "\nRequired Argument: PolicyName UserGroupName \n" + "Usage: oapi-cli ReadSnapshots [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadUserGroup --UserGroupName=usergroupname [OPTIONS]\n" "Lists information about a specified user group, including its users.\n" "\nRequired Argument: UserGroupName \n" + "Usage: oapi-cli ReadSubnets [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadUserGroupsPerUser --UserName=username [OPTIONS]\n" "Lists the groups a specified user belongs to.\n" "\nRequired Argument: UserName \n" + "Usage: oapi-cli ReadSubregions [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadUserGroups [OPTIONS]\n" "Lists all the user groups of the account.\nThe response can be filtered using \n" "either the PathPrefix or the UserGroupIds.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadTags [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadUserPolicies --UserName=username [OPTIONS]\n" "Lists the names of inline policies included in a specified user.\n" "\nRequired Argument: UserName \n" + "Usage: oapi-cli ReadUnitPrice --Operation=operation --Service=service --Type=type [OPTIONS]\n" "null\n" "\nRequired Argument: Operation Service Type \n" , - "Usage: oapi-cli ReadUserPolicy --UserName=username --PolicyName=policyname [OPTIONS]\n" "Returns information about an inline policy included in a specified user.\n" "\nRequired Argument: UserName PolicyName \n" + "Usage: oapi-cli ReadUserGroupPolicies --UserGroupName=usergroupname [OPTIONS]\n" "null\n" "\nRequired Argument: UserGroupName \n" , - "Usage: oapi-cli ReadUsers [OPTIONS]\n" "Lists all EIM users in the account.\nThe response can be filtered using the \n" "UserIds.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadUserGroupPolicy --PolicyName=policyname --UserGroupName=usergroupname [OPTIONS]\n" "null\n" "\nRequired Argument: PolicyName UserGroupName \n" , - "Usage: oapi-cli ReadVirtualGateways [OPTIONS]\n" "Lists one or more virtual gateways.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadUserGroup --UserGroupName=usergroupname [OPTIONS]\n" "null\n" "\nRequired Argument: UserGroupName \n" , - "Usage: oapi-cli ReadVmGroups [OPTIONS]\n" "> [WARNING]\n> This feature is currently under development and may not function \n" "properly.\n\nLists one or more group of virtual machines (VMs).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadUserGroupsPerUser --UserName=username [OPTIONS]\n" "null\n" "\nRequired Argument: UserName \n" , - "Usage: oapi-cli ReadVmTemplates [OPTIONS]\n" "> [WARNING]\n> This feature is currently under development and may not function \n" "properly.\n\nLists one or more virtual machine (VM) templates.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadUserGroups [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadVmTypes [OPTIONS]\n" "Lists one or more predefined VM types.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadUserPolicies --UserName=username [OPTIONS]\n" "null\n" "\nRequired Argument: UserName \n" , - "Usage: oapi-cli ReadVmsHealth --LoadBalancerName=loadbalancername [OPTIONS]\n" "Lists the state of one or more backend virtual machines (VMs) registered with a \n" "specified load balancer.\n" "\nRequired Argument: LoadBalancerName \n" + "Usage: oapi-cli ReadUserPolicy --UserName=username --PolicyName=policyname [OPTIONS]\n" "null\n" "\nRequired Argument: UserName PolicyName \n" , - "Usage: oapi-cli ReadVms [OPTIONS]\n" "Lists one or more of your virtual machines (VMs).\nIf you provide one or more \n" "VM IDs, this action returns a description for all of these VMs. If you do not \n" "provide any VM ID, this action returns a description for all of the VMs that \n" "belong to you. If you provide an invalid VM ID, an error is returned. If you \n" "provide the ID of a VM that does not belong to you, the description of this VM \n" "is not included in the response. The refresh interval for data returned by this \n" "action is one hour, meaning that a terminated VM may appear in the response.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadUsers [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadVmsState [OPTIONS]\n" "Lists the status of one or more virtual machines (VMs).\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadVirtualGateways [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadVolumes [OPTIONS]\n" "Lists one or more specified Block Storage Unit (BSU) volumes.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadVmGroups [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ReadVpnConnections [OPTIONS]\n" "Lists one or more VPN connections.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli ReadVmTemplates [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli RebootVms --VmIds=vmids [OPTIONS]\n" "Reboots one or more virtual machines (VMs).\nThis operation sends a reboot \n" "request to one or more specified VMs. This is an asynchronous action that \n" "queues this reboot request. This action only reboots VMs that are valid and \n" "that belong to you.\n" "\nRequired Argument: VmIds \n" + "Usage: oapi-cli ReadVmTypes [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli RegisterVmsInLoadBalancer --BackendVmIds=backendvmids --LoadBalancerName=loadbalancername [OPTIONS]\n" "> [WARNING]\n> Deprecated: This call is deprecated and will be \n" "removed.\n\nRegisters one or more virtual machines (VMs) with a specified load \n" "balancer.\nThe VMs can be in different Subnets and different Subregions than \n" "the load balancer, as long as the VMs and load balancers are all in the public \n" "Cloud or all in the same Net. It may take a little time for a VM to be \n" "registered with the load balancer. Once the VM is registered with a load \n" "balancer, it receives traffic and requests from this load balancer and is \n" "called a backend VM.\n" "\nRequired Argument: BackendVmIds LoadBalancerName \n" + "Usage: oapi-cli ReadVmsHealth --LoadBalancerName=loadbalancername [OPTIONS]\n" "null\n" "\nRequired Argument: LoadBalancerName \n" , - "Usage: oapi-cli RejectNetPeering --NetPeeringId=netpeeringid [OPTIONS]\n" "Rejects a Net peering request.\nThe Net peering must be in the \n" "`pending-acceptance` state to be rejected. The rejected Net peering is then in \n" "the `rejected` state.\n" "\nRequired Argument: NetPeeringId \n" + "Usage: oapi-cli ReadVms [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli RemoveUserFromUserGroup --UserGroupName=usergroupname --UserName=username [OPTIONS]\n" "Removes a specified user from a specified group.\n" "\nRequired Argument: UserGroupName UserName \n" + "Usage: oapi-cli ReadVmsState [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ScaleDownVmGroup --VmGroupId=vmgroupid --VmSubtraction=vmsubtraction [OPTIONS]\n" "> [WARNING]\n> This feature is currently under development and may not function \n" "properly.\n\nDeletes virtual machines (VMs) from a VM group.\nThe oldest VMs \n" "are the first to be deleted.\n" "\nRequired Argument: VmGroupId VmSubtraction \n" + "Usage: oapi-cli ReadVolumes [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli ScaleUpVmGroup --VmGroupId=vmgroupid --VmAddition=vmaddition [OPTIONS]\n" "> [WARNING]\n> This feature is currently under development and may not function \n" "properly.\n\nCreates additional virtual machines (VMs) in a VM group.\nThe new \n" "VMs use the current version of the VM template.\n" "\nRequired Argument: VmGroupId VmAddition \n" + "Usage: oapi-cli ReadVpnConnections [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli SetDefaultPolicyVersion --PolicyOrn=policyorn --VersionId=versionid [OPTIONS]\n" "Sets a specified version of a managed policy as the default (operative) \n" "one.\nYou can modify the default version of a policy at any time.\n" "\nRequired Argument: PolicyOrn VersionId \n" + "Usage: oapi-cli RebootVms --VmIds=vmids [OPTIONS]\n" "null\n" "\nRequired Argument: VmIds \n" , - "Usage: oapi-cli StartVms --VmIds=vmids [OPTIONS]\n" "Start one or more virtual machines (VMs).\nYou can start only VMs that are \n" "valid and that belong to you.\n" "\nRequired Argument: VmIds \n" + "Usage: oapi-cli RegisterVmsInLoadBalancer --BackendVmIds=backendvmids --LoadBalancerName=loadbalancername [OPTIONS]\n" "null\n" "\nRequired Argument: BackendVmIds LoadBalancerName \n" , - "Usage: oapi-cli StopVms --VmIds=vmids [OPTIONS]\n" "Stops one or more running virtual machines (VMs).\nYou can stop only VMs that \n" "are valid and that belong to you. Data stored in the VM RAM is lost.\n" "\nRequired Argument: VmIds \n" + "Usage: oapi-cli RejectNetPeering --NetPeeringId=netpeeringid [OPTIONS]\n" "null\n" "\nRequired Argument: NetPeeringId \n" , - "Usage: oapi-cli UnlinkFlexibleGpu --FlexibleGpuId=flexiblegpuid [OPTIONS]\n" "Detaches a flexible GPU (fGPU) from a virtual machine (VM).\nThe fGPU is in the \n" "`detaching` state until the VM is stopped, after which it becomes `allocated`. \n" "It is then available again for attachment to a VM.\n" "\nRequired Argument: FlexibleGpuId \n" + "Usage: oapi-cli RemoveUserFromUserGroup --UserGroupName=usergroupname --UserName=username [OPTIONS]\n" "null\n" "\nRequired Argument: UserGroupName UserName \n" , - "Usage: oapi-cli UnlinkInternetService --InternetServiceId=internetserviceid --NetId=netid [OPTIONS]\n" "Detaches an internet service from a Net.\nThis action disables and detaches an \n" "internet service from a Net. The Net must not contain virtual machines (VMs) \n" "using public IPs nor internet-facing load balancers.\n" "\nRequired Argument: InternetServiceId NetId \n" + "Usage: oapi-cli ScaleDownVmGroup --VmGroupId=vmgroupid --VmSubtraction=vmsubtraction [OPTIONS]\n" "null\n" "\nRequired Argument: VmGroupId VmSubtraction \n" , - "Usage: oapi-cli UnlinkLoadBalancerBackendMachines --LoadBalancerName=loadbalancername [OPTIONS]\n" "Detaches one or more backend virtual machines (VMs) from a load balancer. You \n" "need to specify at least the `BackendIps` or the `BackendVmIds` parameter.\n" "\nRequired Argument: LoadBalancerName \n" + "Usage: oapi-cli ScaleUpVmGroup --VmGroupId=vmgroupid --VmAddition=vmaddition [OPTIONS]\n" "null\n" "\nRequired Argument: VmGroupId VmAddition \n" , - "Usage: oapi-cli UnlinkManagedPolicyFromUserGroup --PolicyOrn=policyorn --UserGroupName=usergroupname [OPTIONS]\n" "Unlinks a managed policy from a specific group.\n" "\nRequired Argument: PolicyOrn UserGroupName \n" + "Usage: oapi-cli SetDefaultPolicyVersion --PolicyOrn=policyorn --VersionId=versionid [OPTIONS]\n" "null\n" "\nRequired Argument: PolicyOrn VersionId \n" , - "Usage: oapi-cli UnlinkNic --LinkNicId=linknicid [OPTIONS]\n" "Detaches a network interface card (NIC) from a virtual machine (VM).\nThe \n" "primary NIC cannot be detached.\n" "\nRequired Argument: LinkNicId \n" + "Usage: oapi-cli StartVms --VmIds=vmids [OPTIONS]\n" "null\n" "\nRequired Argument: VmIds \n" , - "Usage: oapi-cli UnlinkPolicy --PolicyOrn=policyorn --UserName=username [OPTIONS]\n" "Removes a managed policy from a specific user.\n" "\nRequired Argument: PolicyOrn UserName \n" + "Usage: oapi-cli StopVms --VmIds=vmids [OPTIONS]\n" "null\n" "\nRequired Argument: VmIds \n" , - "Usage: oapi-cli UnlinkPrivateIps --NicId=nicid --PrivateIps=privateips [OPTIONS]\n" "Unassigns one or more secondary private IPs from a network interface card (NIC).\n" "\nRequired Argument: NicId PrivateIps \n" + "Usage: oapi-cli UnlinkFlexibleGpu --FlexibleGpuId=flexiblegpuid [OPTIONS]\n" "null\n" "\nRequired Argument: FlexibleGpuId \n" , - "Usage: oapi-cli UnlinkPublicIp [OPTIONS]\n" "Disassociates a public IP from the virtual machine (VM) or network interface \n" "card (NIC) it is associated with.\n\n**[IMPORTANT]**\nTo disassociate the \n" "public IP from a NAT service, you need to delete the NAT service. For more \n" "information, see the [DeleteNatService](#deletenatservice) method.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli UnlinkInternetService --InternetServiceId=internetserviceid --NetId=netid [OPTIONS]\n" "null\n" "\nRequired Argument: InternetServiceId NetId \n" , - "Usage: oapi-cli UnlinkRouteTable --LinkRouteTableId=linkroutetableid [OPTIONS]\n" "Disassociates a Subnet from a route table.\nAfter disassociation, the Subnet \n" "can no longer use the routes in this route table, but uses the routes in the \n" "main route table of the Net instead.\n" "\nRequired Argument: LinkRouteTableId \n" + "Usage: oapi-cli UnlinkLoadBalancerBackendMachines --LoadBalancerName=loadbalancername [OPTIONS]\n" "null\n" "\nRequired Argument: LoadBalancerName \n" , - "Usage: oapi-cli UnlinkVirtualGateway --NetId=netid --VirtualGatewayId=virtualgatewayid [OPTIONS]\n" "Detaches a virtual gateway from a Net.\nYou must wait until the virtual gateway \n" "is in the detached state before you can attach another Net to it or delete the \n" "Net it was previously attached to.\n" "\nRequired Argument: NetId VirtualGatewayId \n" + "Usage: oapi-cli UnlinkManagedPolicyFromUserGroup --PolicyOrn=policyorn --UserGroupName=usergroupname [OPTIONS]\n" "null\n" "\nRequired Argument: PolicyOrn UserGroupName \n" , - "Usage: oapi-cli UnlinkVolume --VolumeId=volumeid [OPTIONS]\n" "Detaches a Block Storage Unit (BSU) volume from a virtual machine (VM).\nTo \n" "detach the root device of a VM, this VM must be stopped.\n" "\nRequired Argument: VolumeId \n" + "Usage: oapi-cli UnlinkNic --LinkNicId=linknicid [OPTIONS]\n" "null\n" "\nRequired Argument: LinkNicId \n" , - "Usage: oapi-cli UpdateAccessKey --AccessKeyId=accesskeyid --State=state [OPTIONS]\n" "Modifies the attributes of the specified access key of either your root account \n" "or an EIM user.\nThe parameter `ExpirationDate` is not required when updating \n" "the state of your access key. However, if you do not specify the expiration \n" "date of an access key when updating its state, it is then set to not expire.\n" "\nRequired Argument: AccessKeyId State \n" + "Usage: oapi-cli UnlinkPolicy --PolicyOrn=policyorn --UserName=username [OPTIONS]\n" "null\n" "\nRequired Argument: PolicyOrn UserName \n" , - "Usage: oapi-cli UpdateAccount [OPTIONS]\n" "Updates the account information for the account that sends the request.\n" "\nRequired Argument: null \n" + "Usage: oapi-cli UnlinkPrivateIps --NicId=nicid --PrivateIps=privateips [OPTIONS]\n" "null\n" "\nRequired Argument: NicId PrivateIps \n" , - "Usage: oapi-cli UpdateApiAccessPolicy --MaxAccessKeyExpirationSeconds=maxaccesskeyexpirationseconds --RequireTrustedEnv=requiretrustedenv [OPTIONS]\n" "Updates the API access policy of your account.\n\n**[IMPORTANT]**\nOnly one API \n" "access policy can be associated with your account.\n" "\nRequired Argument: MaxAccessKeyExpirationSeconds RequireTrustedEnv \n" + "Usage: oapi-cli UnlinkPublicIp [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli UpdateApiAccessRule --ApiAccessRuleId=apiaccessruleid [OPTIONS]\n" "Modifies a specified API access rule.\n\n**[WARNING]**\n- The new rule you \n" "specify fully replaces the old rule. Therefore, for a parameter that is not \n" "specified, any previously set value is deleted.\n- If, as result of your \n" "modification, you no longer have access to the APIs, you will need to contact \n" "the Support team to regain access. For more information, see [Technical \n" "Support](https://docs.outscale.com/en/userguide/Technical-Support.html).\n" "\nRequired Argument: ApiAccessRuleId \n" + "Usage: oapi-cli UnlinkRouteTable --LinkRouteTableId=linkroutetableid [OPTIONS]\n" "null\n" "\nRequired Argument: LinkRouteTableId \n" , - "Usage: oapi-cli UpdateCa --CaId=caid [OPTIONS]\n" "Modifies the specified attribute of a Client Certificate Authority (CA).\n" "\nRequired Argument: CaId \n" + "Usage: oapi-cli UnlinkVirtualGateway --NetId=netid --VirtualGatewayId=virtualgatewayid [OPTIONS]\n" "null\n" "\nRequired Argument: NetId VirtualGatewayId \n" , - "Usage: oapi-cli UpdateDedicatedGroup --DedicatedGroupId=dedicatedgroupid --Name=name [OPTIONS]\n" "> [WARNING]\n> This feature is currently in beta.\n\nModifies the name of a \n" "specified dedicated group.\n" "\nRequired Argument: DedicatedGroupId Name \n" + "Usage: oapi-cli UnlinkVolume --VolumeId=volumeid [OPTIONS]\n" "null\n" "\nRequired Argument: VolumeId \n" , - "Usage: oapi-cli UpdateDirectLinkInterface --DirectLinkInterfaceId=directlinkinterfaceid --Mtu=mtu [OPTIONS]\n" "Modifies the maximum transmission unit (MTU) of a DirectLink interface.\n" "\nRequired Argument: DirectLinkInterfaceId Mtu \n" + "Usage: oapi-cli UpdateAccessKey --AccessKeyId=accesskeyid --State=state [OPTIONS]\n" "null\n" "\nRequired Argument: AccessKeyId State \n" , - "Usage: oapi-cli UpdateFlexibleGpu --FlexibleGpuId=flexiblegpuid [OPTIONS]\n" "Modifies a flexible GPU (fGPU) behavior.\n" "\nRequired Argument: FlexibleGpuId \n" + "Usage: oapi-cli UpdateAccount [OPTIONS]\n" "null\n" "\nRequired Argument: null \n" , - "Usage: oapi-cli UpdateImage --ImageId=imageid [OPTIONS]\n" "Modifies the access permissions for an OUTSCALE machine image (OMI).\nYou must \n" "specify either the `Additions` or the `Removals` parameter.\nAfter sharing an \n" "OMI with an account, the other account can create a copy of it that they own. \n" "For more information about copying OMIs, see [CreateImage](#createimage).\n" "\nRequired Argument: ImageId \n" + "Usage: oapi-cli UpdateApiAccessPolicy --MaxAccessKeyExpirationSeconds=maxaccesskeyexpirationseconds --RequireTrustedEnv=requiretrustedenv [OPTIONS]\n" "null\n" "\nRequired Argument: MaxAccessKeyExpirationSeconds RequireTrustedEnv \n" , - "Usage: oapi-cli UpdateListenerRule --ListenerRuleName=listenerrulename [OPTIONS]\n" "Updates the pattern of the listener rule.\nThis call updates the pattern \n" "matching algorithm for incoming traffic.\n" "\nRequired Argument: ListenerRuleName \n" + "Usage: oapi-cli UpdateApiAccessRule --ApiAccessRuleId=apiaccessruleid [OPTIONS]\n" "null\n" "\nRequired Argument: ApiAccessRuleId \n" , - "Usage: oapi-cli UpdateLoadBalancer --LoadBalancerName=loadbalancername [OPTIONS]\n" "Modifies the specified attribute of a load balancer. You can specify only one \n" "attribute at a time.\n\nYou can set a new SSL certificate to an SSL or HTTPS \n" "listener of a load balancer.\nThis certificate replaces any certificate used on \n" "the same load balancer and port.\n\nYou can also replace the currently enabled \n" "policy for the load balancer with another one.\nIf the `PolicyNames` parameter \n" "is empty, the currently enabled policy is disabled.\n" "\nRequired Argument: LoadBalancerName \n" + "Usage: oapi-cli UpdateCa --CaId=caid [OPTIONS]\n" "null\n" "\nRequired Argument: CaId \n" , - "Usage: oapi-cli UpdateNetAccessPoint --NetAccessPointId=netaccesspointid [OPTIONS]\n" "Modifies the attributes of a Net access point.\nThis action enables you to add \n" "or remove route tables associated with the specified Net access point.\n" "\nRequired Argument: NetAccessPointId \n" + "Usage: oapi-cli UpdateDedicatedGroup --DedicatedGroupId=dedicatedgroupid --Name=name [OPTIONS]\n" "null\n" "\nRequired Argument: DedicatedGroupId Name \n" , - "Usage: oapi-cli UpdateNet --DhcpOptionsSetId=dhcpoptionssetid --NetId=netid [OPTIONS]\n" "Associates a DHCP options set with a specified Net.\n" "\nRequired Argument: DhcpOptionsSetId NetId \n" + "Usage: oapi-cli UpdateDirectLinkInterface --DirectLinkInterfaceId=directlinkinterfaceid --Mtu=mtu [OPTIONS]\n" "null\n" "\nRequired Argument: DirectLinkInterfaceId Mtu \n" , - "Usage: oapi-cli UpdateNic --NicId=nicid [OPTIONS]\n" "Modifies the specified network interface card (NIC). You can specify only one \n" "attribute at a time.\n" "\nRequired Argument: NicId \n" + "Usage: oapi-cli UpdateFlexibleGpu --FlexibleGpuId=flexiblegpuid [OPTIONS]\n" "null\n" "\nRequired Argument: FlexibleGpuId \n" , - "Usage: oapi-cli UpdateRoutePropagation --Enable=enable --RouteTableId=routetableid --VirtualGatewayId=virtualgatewayid [OPTIONS]\n" "Configures the propagation of routes to a specified route table of a Net by a \n" "virtual gateway.\n" "\nRequired Argument: Enable RouteTableId VirtualGatewayId \n" + "Usage: oapi-cli UpdateImage --ImageId=imageid [OPTIONS]\n" "null\n" "\nRequired Argument: ImageId \n" , - "Usage: oapi-cli UpdateRoute --RouteTableId=routetableid --DestinationIpRange=destinationiprange [OPTIONS]\n" "Replaces an existing route within a route table in a Net.\nYou must specify one \n" "of the following elements as the target:\n\n* Net peering\n* NAT virtual \n" "machine (VM)\n* Internet service\n* Virtual gateway\n* NAT service\n* Network \n" "interface card (NIC)\n\nThe routing algorithm is based on the most specific \n" "match.\n" "\nRequired Argument: RouteTableId DestinationIpRange \n" + "Usage: oapi-cli UpdateListenerRule --ListenerRuleName=listenerrulename [OPTIONS]\n" "null\n" "\nRequired Argument: ListenerRuleName \n" , - "Usage: oapi-cli UpdateRouteTableLink --RouteTableId=routetableid --LinkRouteTableId=linkroutetableid [OPTIONS]\n" "Replaces the route table associated with a specific Subnet in a Net with \n" "another one.\nAfter the route table is replaced, the Subnet uses the routes in \n" "the new route table it is associated with.\n" "\nRequired Argument: RouteTableId LinkRouteTableId \n" + "Usage: oapi-cli UpdateLoadBalancer --LoadBalancerName=loadbalancername [OPTIONS]\n" "null\n" "\nRequired Argument: LoadBalancerName \n" , - "Usage: oapi-cli UpdateServerCertificate --Name=name [OPTIONS]\n" "Modifies the name and/or the path of a specified server certificate.\n" "\nRequired Argument: Name \n" + "Usage: oapi-cli UpdateNetAccessPoint --NetAccessPointId=netaccesspointid [OPTIONS]\n" "null\n" "\nRequired Argument: NetAccessPointId \n" , - "Usage: oapi-cli UpdateSnapshot --SnapshotId=snapshotid --PermissionsToCreateVolume=permissionstocreatevolume [OPTIONS]\n" "Modifies the permissions for a specified snapshot.\nYou must specify either the \n" "`Additions` or the `Removals` parameter.\nAfter sharing a snapshot with an \n" "account, the other account can create a copy of it that they own. For more \n" "information about copying snapshots, see [CreateSnapshot](#createsnapshot).\n" "\nRequired Argument: SnapshotId PermissionsToCreateVolume \n" + "Usage: oapi-cli UpdateNet --DhcpOptionsSetId=dhcpoptionssetid --NetId=netid [OPTIONS]\n" "null\n" "\nRequired Argument: DhcpOptionsSetId NetId \n" , - "Usage: oapi-cli UpdateSubnet --SubnetId=subnetid --MapPublicIpOnLaunch=mappubliciponlaunch [OPTIONS]\n" "Modifies the specified attribute of a Subnet.\n" "\nRequired Argument: SubnetId MapPublicIpOnLaunch \n" + "Usage: oapi-cli UpdateNic --NicId=nicid [OPTIONS]\n" "null\n" "\nRequired Argument: NicId \n" , - "Usage: oapi-cli UpdateUserGroup --UserGroupName=usergroupname [OPTIONS]\n" "Modifies the name and/or the path of a specified group.\n" "\nRequired Argument: UserGroupName \n" + "Usage: oapi-cli UpdateRoutePropagation --Enable=enable --RouteTableId=routetableid --VirtualGatewayId=virtualgatewayid [OPTIONS]\n" "null\n" "\nRequired Argument: Enable RouteTableId VirtualGatewayId \n" , - "Usage: oapi-cli UpdateUser --UserName=username [OPTIONS]\n" "Modifies the name and/or the path of a specified EIM user.\n" "\nRequired Argument: UserName \n" + "Usage: oapi-cli UpdateRoute --RouteTableId=routetableid --DestinationIpRange=destinationiprange [OPTIONS]\n" "null\n" "\nRequired Argument: RouteTableId DestinationIpRange \n" , - "Usage: oapi-cli UpdateVmGroup --VmGroupId=vmgroupid [OPTIONS]\n" "> [WARNING]\n> This feature is currently under development and may not function \n" "properly.\n\nModifies the specified attributes of a group of virtual machines \n" "(VMs).\n" "\nRequired Argument: VmGroupId \n" + "Usage: oapi-cli UpdateRouteTableLink --RouteTableId=routetableid --LinkRouteTableId=linkroutetableid [OPTIONS]\n" "null\n" "\nRequired Argument: RouteTableId LinkRouteTableId \n" , - "Usage: oapi-cli UpdateVm --VmId=vmid [OPTIONS]\n" "Modifies the specified attributes of a virtual machine (VM).\nYou must stop the \n" "VM before modifying the following attributes:\n* `NestedVirtualization`\n* \n" "`Performance`\n* `UserData`\n* `VmType`\n\nTo complete the update of secure \n" "boot, you need to do a stop/start of the VM. A simple restart is not \n" "sufficient, as the update is done when the VM goes through the stopped state. \n" "For the difference between stop/start and restart, see [About VM \n" "Lifecycle](https://docs.outscale.com/en/userguide/About-VM-Lifecycle.html).\n" "\nRequired Argument: VmId \n" + "Usage: oapi-cli UpdateServerCertificate --Name=name [OPTIONS]\n" "null\n" "\nRequired Argument: Name \n" , - "Usage: oapi-cli UpdateVmTemplate --VmTemplateId=vmtemplateid [OPTIONS]\n" "> [WARNING]\n> This feature is currently under development and may not function \n" "properly.\n\nModifies the specified attributes of a template of virtual \n" "machines (VMs).\n" "\nRequired Argument: VmTemplateId \n" + "Usage: oapi-cli UpdateSnapshot --SnapshotId=snapshotid --PermissionsToCreateVolume=permissionstocreatevolume [OPTIONS]\n" "null\n" "\nRequired Argument: SnapshotId PermissionsToCreateVolume \n" , - "Usage: oapi-cli UpdateVolume --VolumeId=volumeid [OPTIONS]\n" "Modifies the specified attributes of a volume.\nCold volumes are volumes that \n" "are attached to stopped or stopping VMs, or that are detached. Hot volumes are \n" "volumes that are attached to running VMs.\n\n**[NOTE]**\nWhen the modification \n" "is not instantaneous, the response displays the previous value. You can use the \n" "[ReadVolumes](#readvolumes) method to see the new value.\n" "\nRequired Argument: VolumeId \n" + "Usage: oapi-cli UpdateSubnet --SubnetId=subnetid --MapPublicIpOnLaunch=mappubliciponlaunch [OPTIONS]\n" "null\n" "\nRequired Argument: SubnetId MapPublicIpOnLaunch \n" , - "Usage: oapi-cli UpdateVpnConnection --VpnConnectionId=vpnconnectionid [OPTIONS]\n" "Modifies the specified attributes of a VPN connection.\n" "\nRequired Argument: VpnConnectionId \n" + "Usage: oapi-cli UpdateUserGroup --UserGroupName=usergroupname [OPTIONS]\n" "null\n" "\nRequired Argument: UserGroupName \n" +, + "Usage: oapi-cli UpdateUser --UserName=username [OPTIONS]\n" "null\n" "\nRequired Argument: UserName \n" +, + "Usage: oapi-cli UpdateVmGroup --VmGroupId=vmgroupid [OPTIONS]\n" "null\n" "\nRequired Argument: VmGroupId \n" +, + "Usage: oapi-cli UpdateVm --VmId=vmid [OPTIONS]\n" "null\n" "\nRequired Argument: VmId \n" +, + "Usage: oapi-cli UpdateVmTemplate --VmTemplateId=vmtemplateid [OPTIONS]\n" "null\n" "\nRequired Argument: VmTemplateId \n" +, + "Usage: oapi-cli UpdateVolume --VolumeId=volumeid [OPTIONS]\n" "null\n" "\nRequired Argument: VolumeId \n" +, + "Usage: oapi-cli UpdateVpnConnection --VpnConnectionId=vpnconnectionid [OPTIONS]\n" "null\n" "\nRequired Argument: VpnConnectionId \n" , NULL }; @@ -980,8 +999,8 @@ static const char *calls_args_descriptions[] = { " --BlockDeviceMappings.INDEX.Bsu: ref BsuToCreate\n" " Information about the BSU volume to create.\n" " --BlockDeviceMappings.INDEX.Bsu.DeleteOnVmDeletion: bool\n" - " By default or if set to true, the volume is deleted when terminating the \n" - " VM. If false, the volume is not deleted when terminating the VM.\n" + " If set to true, the volume is deleted when terminating the VM. If false, \n" + " the volume is not deleted when terminating the VM.\n" " --BlockDeviceMappings.INDEX.Bsu.Iops: long long int\n" " The number of I/O operations per second (IOPS). This parameter must be \n" " specified only if you create an `io1` volume. The maximum number of IOPS \n" @@ -1008,7 +1027,7 @@ static const char *calls_args_descriptions[] = { " --BlockDeviceMappings.INDEX.VirtualDeviceName: string\n" " The name of the virtual device (`ephemeralN`).\n" "--BootModes: array string\n" - " The boot modes compatible with the OMI (`legacy` and/or `uefi`).\n" + " The boot modes compatible with the OMI.\n" "--Description: string\n" " A description for the new OMI.\n" "--DryRun: bool\n" @@ -1099,7 +1118,8 @@ static const char *calls_args_descriptions[] = { " The OUTSCALE Resource Name (ORN) of the server certificate. For more \n" " information, see [Resource Identifiers > OUTSCALE Resource Names \n" " (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.html#_\n" - " outscale_resource_names_orns).\n" + " outscale_resource_names_orns).
\nThis parameter is required for \n" + " `HTTPS` and `SSL` protocols.\n" "--LoadBalancerName: string\n" " The name of the load balancer for which you want to create listeners.\n" , @@ -1140,7 +1160,8 @@ static const char *calls_args_descriptions[] = { " The OUTSCALE Resource Name (ORN) of the server certificate. For more \n" " information, see [Resource Identifiers > OUTSCALE Resource Names \n" " (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.html#_\n" - " outscale_resource_names_orns).\n" + " outscale_resource_names_orns).
\nThis parameter is required for \n" + " `HTTPS` and `SSL` protocols.\n" "--LoadBalancerName: string\n" " The unique name of the load balancer, with a maximum length of 32 alphanumeric characters \n" " and dashes (`-`). This name must not start or end with a dash.\n" @@ -1494,10 +1515,10 @@ static const char *calls_args_descriptions[] = { "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" "--PositioningStrategy: string\n" - " The positioning strategy of VMs on hypervisors. By default, or if set to `no-strategy` our \n" - " orchestrator determines the most adequate position for your VMs. If set to `attract`, your \n" - " VMs are deployed on the same hypervisor, which improves network performance. If set to \n" - " `repulse`, your VMs are deployed on a different hypervisor, which improves fault tolerance.\n" + " The positioning strategy of VMs on hypervisors. If set to `no-strategy`, our orchestrator \n" + " determines the most adequate position for your VMs. If set to `attract`, your VMs are \n" + " deployed on the same hypervisor, which improves network performance. If set to `repulse`, \n" + " your VMs are deployed on a different hypervisor, which improves fault tolerance.\n" "--SecurityGroupIds: array string\n" " One or more IDs of security groups for the VM group.\n" "--SubnetId: string\n" @@ -1521,7 +1542,7 @@ static const char *calls_args_descriptions[] = { "--CpuGeneration: string\n" " The processor generation to use for each VM (for example, `v4`).\n" "--CpuPerformance: string\n" - " The performance of the VMs (`medium` \\| `high` \\| `highest`).\n" + " The performance of the VMs.\n" "--Description: string\n" " A description for the VM template.\n" "--DryRun: bool\n" @@ -1546,16 +1567,18 @@ static const char *calls_args_descriptions[] = { "--ActionsOnNextBoot: ref ActionsOnNextBoot\n" " The action to perform on the next boot of the VM.\n" " --ActionsOnNextBoot.SecureBoot: string\n" - " One action to perform on the next boot of the VM (`enable` | `disable` | \n" - " `setup-mode` |`none`).\n" + " One action to perform on the next boot of the VM. For more information, \n" + " see [About Secure \n" + " Boot](https://docs.outscale.com/en/userguide/About-Secure-Boot.html#_secur\n" + " e_boot_actions).\n" "--BlockDeviceMappings: array ref BlockDeviceMappingVmCreation\n" " One or more block device mappings.\n" " Information about the block device mapping.\n" " --BlockDeviceMappings.INDEX.Bsu: ref BsuToCreate\n" " Information about the BSU volume to create.\n" " --BlockDeviceMappings.INDEX.Bsu.DeleteOnVmDeletion: bool\n" - " By default or if set to true, the volume is deleted when terminating the \n" - " VM. If false, the volume is not deleted when terminating the VM.\n" + " If set to true, the volume is deleted when terminating the VM. If false, \n" + " the volume is not deleted when terminating the VM.\n" " --BlockDeviceMappings.INDEX.Bsu.Iops: long long int\n" " The number of I/O operations per second (IOPS). This parameter must be \n" " specified only if you create an `io1` volume. The maximum number of IOPS \n" @@ -1585,9 +1608,9 @@ static const char *calls_args_descriptions[] = { " --BlockDeviceMappings.INDEX.VirtualDeviceName: string\n" " The name of the virtual device (`ephemeralN`).\n" "--BootMode: string\n" + " Information about the boot mode of the VM.\n" "--BootOnCreation: bool\n" - " By default or if true, the VM is started on creation. If false, the VM is stopped on \n" - " creation.\n" + " If true, the VM is started on creation. If false, the VM is stopped on creation.\n" "--BsuOptimized: bool\n" " This parameter is not available. It is present in our API for the sake of historical \n" " compatibility with AWS.\n" @@ -1650,8 +1673,8 @@ static const char *calls_args_descriptions[] = { " The ID of the Subnet for the NIC, if you create a NIC when creating a \n" " VM. This parameter is required if you create a NIC when creating the VM.\n" "--Performance: string\n" - " The performance of the VM (`medium` \\| `high` \\| `highest`). By default, `high`. This \n" - " parameter is ignored if you specify a performance flag directly in the `VmType` parameter.\n" + " The performance of the VM. This parameter is ignored if you specify a performance flag \n" + " directly in the `VmType` parameter.\n" "--Placement: ref Placement\n" " Information about the placement of the VM.\n" " --Placement.SubregionName: string\n" @@ -1675,9 +1698,8 @@ static const char *calls_args_descriptions[] = { " Tags](https://docs.outscale.com/en/userguide/Configuring-a-VM-with-User-Data-and-OUTSCALE-Ta\n" " gs.html).\n" "--VmInitiatedShutdownBehavior: string\n" - " The VM behavior when you stop it. By default or if set to `stop`, the VM stops. If set to \n" - " `restart`, the VM stops then automatically restarts. If set to `terminate`, the VM stops \n" - " and is terminated.\n" + " The VM behavior when you stop it. If set to `stop`, the VM stops. If set to `restart`, the \n" + " VM stops then automatically restarts. If set to `terminate`, the VM stops and is terminated.\n" "--VmType: string\n" " The type of VM. You can specify a TINA type (in the `tinavW.cXrYpZ` or `tinavW.cXrY` \n" " format), or an AWS type (for example, `t2.small`, which is the default value).\nIf you \n" @@ -2069,6 +2091,28 @@ static const char *calls_args_descriptions[] = { , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" +, + "--DryRun: bool\n" + " If true, checks whether you have the required permissions to perform the action.\n" +"--UserNames: array string\n" + " The usernames of the EIM users you want to disable the Outscale login for.\n" +, + "--DryRun: bool\n" + " If true, checks whether you have the required permissions to perform the action.\n" +, + "--DryRun: bool\n" + " If true, checks whether you have the required permissions to perform the action.\n" +, + "--DryRun: bool\n" + " If true, checks whether you have the required permissions to perform the action.\n" +"--UserNames: array string\n" + " The usernames of the EIM users you want to enable the Outscale login for.\n" +, + "--DryRun: bool\n" + " If true, checks whether you have the required permissions to perform the action.\n" +, + "--DryRun: bool\n" + " If true, checks whether you have the required permissions to perform the action.\n" "--FlexibleGpuId: string\n" " The ID of the fGPU you want to attach.\n" "--VmId: string\n" @@ -2276,47 +2320,41 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" "--With: ref With\n" " The information to display in each returned log.\n" " --With.AccountId: bool\n" - " By default or if set to true, the account ID is displayed.\n" + " If true, the account ID is displayed.\n" " --With.CallDuration: bool\n" - " By default or if set to true, the duration of the call is displayed.\n" + " If true, the duration of the call is displayed.\n" " --With.QueryAccessKey: bool\n" - " By default or if set to true, the access key is displayed.\n" + " If true, the access key is displayed.\n" " --With.QueryApiName: bool\n" - " By default or if set to true, the name of the API is displayed.\n" + " If true, the name of the API is displayed.\n" " --With.QueryApiVersion: bool\n" - " By default or if set to true, the version of the API is displayed.\n" + " If true, the version of the API is displayed.\n" " --With.QueryCallName: bool\n" - " By default or if set to true, the name of the call is displayed.\n" + " If true, the name of the call is displayed.\n" " --With.QueryDate: bool\n" - " By default or if set to true, the date of the call is displayed.\n" + " If true, the date of the call is displayed.\n" " --With.QueryHeaderRaw: bool\n" - " By default or if set to true, the raw header of the HTTP request is \n" - " displayed.\n" + " If true, the raw header of the HTTP request is displayed.\n" " --With.QueryHeaderSize: bool\n" - " By default or if set to true, the size of the raw header of the HTTP \n" - " request is displayed.\n" + " If true, the size of the raw header of the HTTP request is displayed.\n" " --With.QueryIpAddress: bool\n" - " By default or if set to true, the IP is displayed.\n" + " If true, the IP is displayed.\n" " --With.QueryPayloadRaw: bool\n" - " By default or if set to true, the raw payload of the HTTP request is \n" - " displayed.\n" + " If true, the raw payload of the HTTP request is displayed.\n" " --With.QueryPayloadSize: bool\n" - " By default or if set to true, the size of the raw payload of the HTTP \n" - " request is displayed.\n" + " If true, the size of the raw payload of the HTTP request is displayed.\n" " --With.QueryUserAgent: bool\n" - " By default or if set to true, the user agent of the HTTP request is \n" - " displayed.\n" + " If true, the user agent of the HTTP request is displayed.\n" " --With.RequestId: bool\n" - " By default or if set to true, the request ID is displayed.\n" + " If true, the request ID is displayed.\n" " --With.ResponseSize: bool\n" - " By default or if set to true, the size of the response is displayed.\n" + " If true, the size of the response is displayed.\n" " --With.ResponseStatusCode: bool\n" - " By default or if set to true, the HTTP status code of the response is \n" - " displayed.\n" + " If true, the HTTP status code of the response is displayed.\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2377,7 +2415,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2391,10 +2429,10 @@ static const char *calls_args_descriptions[] = { " date-time format is also accepted, but only with a time set to midnight (for example, \n" " `2020-06-14T00:00:00.000Z`). This value is included in the time period.\n" "--Overall: bool\n" - " By default or if false, returns only the consumption of the specific account that sends \n" - " this request. If true, returns either the overall consumption of your paying account and \n" - " all linked accounts (if the account that sends this request is a paying account) or returns \n" - " nothing (if the account that sends this request is a linked account).\n" + " If false, returns only the consumption of the specific account that sends this request. If \n" + " true, returns either the overall consumption of your paying account and all linked accounts \n" + " (if the account that sends this request is a paying account) or returns nothing (if the \n" + " account that sends this request is a linked account).\n" "--ShowPrice: bool\n" " If true, the response also includes the unit price of the consumed resource (`UnitPrice`) \n" " and the total price of the consumed resource during the specified time period (`Price`), in \n" @@ -2422,7 +2460,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2454,7 +2492,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2468,7 +2506,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2480,11 +2518,10 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--EntitiesType: array string\n" - " The type of entity linked to the policy (`ACCOUNT` \\| `USER` \\| `GROUP`) you want to get \n" - " information about.\n" + " The type of entity linked to the policy you want to get information about.\n" "--FirstItem: long long int\n" " The item starting the list of entities requested.\n" "--PolicyOrn: string\n" @@ -2527,7 +2564,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2551,7 +2588,7 @@ static const char *calls_args_descriptions[] = { " --Filters.BlockDeviceMappingVolumeTypes: array string\n" " The types of volumes (`standard` \\| `gp2` \\| `io1`).\n" " --Filters.BootModes: array string\n" - " The boot modes compatible with the OMIs (`legacy` and/or `uefi`).\n" + " The boot modes compatible with the OMIs.\n" " --Filters.Descriptions: array string\n" " The descriptions of the OMIs, provided when they were created.\n" " --Filters.FileLocations: array string\n" @@ -2592,7 +2629,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2618,7 +2655,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2686,7 +2723,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2731,7 +2768,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2745,7 +2782,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2773,7 +2810,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2814,7 +2851,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2843,7 +2880,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2919,7 +2956,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2967,7 +3004,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -2978,7 +3015,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -3012,7 +3049,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -3031,7 +3068,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -3080,7 +3117,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -3142,7 +3179,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -3161,7 +3198,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -3209,7 +3246,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -3240,7 +3277,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -3256,7 +3293,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -3282,7 +3319,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--Operation: string\n" " The operation associated with the catalog entry (for example, `RunInstances-OD` or \n" @@ -3392,7 +3429,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -3480,7 +3517,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--BackendVmIds: array string\n" " One or more IDs of backend VMs.\n" @@ -3509,7 +3546,7 @@ static const char *calls_args_descriptions[] = { " --Filters.BlockDeviceMappingVolumeIds: array string\n" " The volume IDs of the BSU volumes.\n" " --Filters.BootModes: array string\n" - " The boot modes of the VMs (`legacy` \\| `uefi`).\n" + " The boot modes of the VMs.\n" " --Filters.ClientTokens: array string\n" " The idempotency tokens provided when launching the VMs.\n" " --Filters.CreationDates: array string\n" @@ -3648,11 +3685,10 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--AllVms: bool\n" - " If true, includes the status of all VMs. By default or if set to false, only includes the \n" - " status of running VMs.\n" + " If true, includes the status of all VMs. If false, only includes the status of running VMs.\n" "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" "--Filters: ref FiltersVmsState\n" @@ -3677,7 +3713,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -3718,14 +3754,14 @@ static const char *calls_args_descriptions[] = { " The sizes of the volumes, in gibibytes (GiB).\n" " --Filters.VolumeStates: array string\n" " The states of the volumes (`creating` \\| `available` \\| `in-use` \\| \n" - " `updating` \\| `deleting` \\| `error`).\n" + " `deleting` \\| `error`).\n" " --Filters.VolumeTypes: array string\n" " The types of the volumes (`standard` \\| `gp2` \\| `io1`).\n" "--NextPageToken: string\n" " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -3765,7 +3801,7 @@ static const char *calls_args_descriptions[] = { " The token to request the next page of results. Each token refers to a specific page.\n" "--ResultsPerPage: long long int\n" " The maximum number of logs returned in a single response (between `1` and `1000`, both \n" - " included). By default, `100`.\n" + " included).\n" , "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" @@ -4003,7 +4039,7 @@ static const char *calls_args_descriptions[] = { "--DryRun: bool\n" " If true, checks whether you have the required permissions to perform the action.\n" "--Mtu: long long int\n" - " The maximum transmission unit (MTU) of the DirectLink interface, in bytes (always `1500`).\n" + " The maximum transmission unit (MTU) of the DirectLink interface, in bytes.\n" , "--DeleteOnVmDeletion: bool\n" " If true, the fGPU is deleted when the VM is terminated.\n" @@ -4279,8 +4315,10 @@ static const char *calls_args_descriptions[] = { "--ActionsOnNextBoot: ref ActionsOnNextBoot\n" " The action to perform on the next boot of the VM.\n" " --ActionsOnNextBoot.SecureBoot: string\n" - " One action to perform on the next boot of the VM (`enable` | `disable` | \n" - " `setup-mode` |`none`).\n" + " One action to perform on the next boot of the VM. For more information, \n" + " see [About Secure \n" + " Boot](https://docs.outscale.com/en/userguide/About-Secure-Boot.html#_secur\n" + " e_boot_actions).\n" "--BlockDeviceMappings: array ref BlockDeviceMappingVmUpdate\n" " One or more block device mappings of the VM.\n" " Information about the block device mapping.\n" @@ -4321,7 +4359,7 @@ static const char *calls_args_descriptions[] = { " (dedicated tenancy only) If true, nested virtualization is enabled. If false, it is \n" " disabled.\n" "--Performance: string\n" - " The performance of the VM (`medium` \\| `high` \\| `highest`).\n" + " The performance of the VM.\n" "--SecurityGroupIds: array string\n" " One or more IDs of security groups for the VM.\n" "--UserData: string\n" @@ -4587,7 +4625,7 @@ static char *osc_strdup(const char *str) { char *home = getenv("HOME"); \ \ TRY(strlen(home) + sizeof CFG_FILE > sizeof buf, \ - "home path too big"); \ + "path of home directory is too long"); \ strcpy(stpcpy(buf, home), dest); \ } #endif @@ -5214,6 +5252,10 @@ static int account_setter(struct account *args, struct osc_str *data) { ARG_TO_JSON_STR("\"MobileNumber\":", args->mobile_number); ret += 1; } + if (args->is_set_outscale_login_allowed) { + ARG_TO_JSON(OutscaleLoginAllowed, bool, args->outscale_login_allowed); + ret += 1; + } if (args->phone_number) { TRY_APPEND_COL(count_args, data); ARG_TO_JSON_STR("\"PhoneNumber\":", args->phone_number); @@ -15712,6 +15754,10 @@ static int user_setter(struct user *args, struct osc_str *data) { ARG_TO_JSON_STR("\"LastModificationDate\":", args->last_modification_date); ret += 1; } + if (args->is_set_outscale_login_allowed) { + ARG_TO_JSON(OutscaleLoginAllowed, bool, args->outscale_login_allowed); + ret += 1; + } if (args->path) { TRY_APPEND_COL(count_args, data); ARG_TO_JSON_STR("\"Path\":", args->path); @@ -16730,7 +16776,7 @@ int osc_accept_net_peering(struct osc_env *e, struct osc_str *out, struct osc_ac if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -16807,7 +16853,7 @@ int osc_add_user_to_user_group(struct osc_env *e, struct osc_str *out, struct os if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -16874,7 +16920,7 @@ int osc_check_authentication(struct osc_env *e, struct osc_str *out, struct osc_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -16946,7 +16992,7 @@ int osc_create_access_key(struct osc_env *e, struct osc_str *out, struct osc_cre if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -17084,7 +17130,7 @@ int osc_create_account(struct osc_env *e, struct osc_str *out, struct osc_create if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -17194,7 +17240,7 @@ int osc_create_api_access_rule(struct osc_env *e, struct osc_str *out, struct os if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -17261,7 +17307,7 @@ int osc_create_ca(struct osc_env *e, struct osc_str *out, struct osc_create_ca_a if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -17332,7 +17378,7 @@ int osc_create_client_gateway(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -17403,7 +17449,7 @@ int osc_create_dedicated_group(struct osc_env *e, struct osc_str *out, struct os if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -17513,7 +17559,7 @@ int osc_create_dhcp_options(struct osc_env *e, struct osc_str *out, struct osc_c if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -17585,7 +17631,7 @@ int osc_create_direct_link_interface(struct osc_env *e, struct osc_str *out, str if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -17657,7 +17703,7 @@ int osc_create_direct_link(struct osc_env *e, struct osc_str *out, struct osc_cr if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -17733,7 +17779,7 @@ int osc_create_flexible_gpu(struct osc_env *e, struct osc_str *out, struct osc_c if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -17805,7 +17851,7 @@ int osc_create_image_export_task(struct osc_env *e, struct osc_str *out, struct if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -17956,7 +18002,7 @@ int osc_create_image(struct osc_env *e, struct osc_str *out, struct osc_create_i if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -18013,7 +18059,7 @@ int osc_create_internet_service(struct osc_env *e, struct osc_str *out, struct o if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -18080,7 +18126,7 @@ int osc_create_keypair(struct osc_env *e, struct osc_str *out, struct osc_create if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -18173,7 +18219,7 @@ int osc_create_listener_rule(struct osc_env *e, struct osc_str *out, struct osc_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -18253,7 +18299,7 @@ int osc_create_load_balancer_listeners(struct osc_env *e, struct osc_str *out, s if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -18334,7 +18380,7 @@ int osc_create_load_balancer_policy(struct osc_env *e, struct osc_str *out, stru if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -18490,7 +18536,7 @@ int osc_create_load_balancer(struct osc_env *e, struct osc_str *out, struct osc_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -18581,7 +18627,7 @@ int osc_create_load_balancer_tags(struct osc_env *e, struct osc_str *out, struct if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -18653,7 +18699,7 @@ int osc_create_nat_service(struct osc_env *e, struct osc_str *out, struct osc_cr if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -18736,7 +18782,7 @@ int osc_create_net_access_point(struct osc_env *e, struct osc_str *out, struct o if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -18808,7 +18854,7 @@ int osc_create_net_peering(struct osc_env *e, struct osc_str *out, struct osc_cr if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -18875,7 +18921,7 @@ int osc_create_net(struct osc_env *e, struct osc_str *out, struct osc_create_net if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -18976,7 +19022,7 @@ int osc_create_nic(struct osc_env *e, struct osc_str *out, struct osc_create_nic if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -19053,7 +19099,7 @@ int osc_create_policy(struct osc_env *e, struct osc_str *out, struct osc_create_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -19120,7 +19166,7 @@ int osc_create_policy_version(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -19187,7 +19233,7 @@ int osc_create_product_type(struct osc_env *e, struct osc_str *out, struct osc_c if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -19244,7 +19290,7 @@ int osc_create_public_ip(struct osc_env *e, struct osc_str *out, struct osc_crea if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -19336,7 +19382,7 @@ int osc_create_route(struct osc_env *e, struct osc_str *out, struct osc_create_r if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -19398,7 +19444,7 @@ int osc_create_route_table(struct osc_env *e, struct osc_str *out, struct osc_cr if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -19470,7 +19516,7 @@ int osc_create_security_group(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -19583,7 +19629,7 @@ int osc_create_security_group_rule(struct osc_env *e, struct osc_str *out, struc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -19665,7 +19711,7 @@ int osc_create_server_certificate(struct osc_env *e, struct osc_str *out, struct if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -19737,7 +19783,7 @@ int osc_create_snapshot_export_task(struct osc_env *e, struct osc_str *out, stru if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -19828,7 +19874,7 @@ int osc_create_snapshot(struct osc_env *e, struct osc_str *out, struct osc_creat if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -19900,7 +19946,7 @@ int osc_create_subnet(struct osc_env *e, struct osc_str *out, struct osc_create_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -19991,7 +20037,7 @@ int osc_create_tags(struct osc_env *e, struct osc_str *out, struct osc_create_ta if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -20058,7 +20104,7 @@ int osc_create_user_group(struct osc_env *e, struct osc_str *out, struct osc_cre if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -20130,7 +20176,7 @@ int osc_create_user(struct osc_env *e, struct osc_str *out, struct osc_create_us if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -20192,7 +20238,7 @@ int osc_create_virtual_gateway(struct osc_env *e, struct osc_str *out, struct os if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -20312,7 +20358,7 @@ int osc_create_vm_group(struct osc_env *e, struct osc_str *out, struct osc_creat if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -20425,7 +20471,7 @@ int osc_create_vm_template(struct osc_env *e, struct osc_str *out, struct osc_cr if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -20655,7 +20701,7 @@ int osc_create_vms(struct osc_env *e, struct osc_str *out, struct osc_create_vms if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -20740,7 +20786,7 @@ int osc_create_volume(struct osc_env *e, struct osc_str *out, struct osc_create_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -20816,7 +20862,7 @@ int osc_create_vpn_connection(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -20883,7 +20929,7 @@ int osc_create_vpn_connection_route(struct osc_env *e, struct osc_str *out, stru if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -20950,7 +20996,7 @@ int osc_delete_access_key(struct osc_env *e, struct osc_str *out, struct osc_del if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21012,7 +21058,7 @@ int osc_delete_api_access_rule(struct osc_env *e, struct osc_str *out, struct os if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21074,7 +21120,7 @@ int osc_delete_ca(struct osc_env *e, struct osc_str *out, struct osc_delete_ca_a if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21136,7 +21182,7 @@ int osc_delete_client_gateway(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21202,7 +21248,7 @@ int osc_delete_dedicated_group(struct osc_env *e, struct osc_str *out, struct os if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21264,7 +21310,7 @@ int osc_delete_dhcp_options(struct osc_env *e, struct osc_str *out, struct osc_d if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21326,7 +21372,7 @@ int osc_delete_direct_link_interface(struct osc_env *e, struct osc_str *out, str if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21388,7 +21434,7 @@ int osc_delete_direct_link(struct osc_env *e, struct osc_str *out, struct osc_de if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21450,7 +21496,7 @@ int osc_delete_export_task(struct osc_env *e, struct osc_str *out, struct osc_de if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21512,7 +21558,7 @@ int osc_delete_flexible_gpu(struct osc_env *e, struct osc_str *out, struct osc_d if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21574,7 +21620,7 @@ int osc_delete_image(struct osc_env *e, struct osc_str *out, struct osc_delete_i if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21636,7 +21682,7 @@ int osc_delete_internet_service(struct osc_env *e, struct osc_str *out, struct o if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21703,7 +21749,7 @@ int osc_delete_keypair(struct osc_env *e, struct osc_str *out, struct osc_delete if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21765,7 +21811,7 @@ int osc_delete_listener_rule(struct osc_env *e, struct osc_str *out, struct osc_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21843,7 +21889,7 @@ int osc_delete_load_balancer_listeners(struct osc_env *e, struct osc_str *out, s if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21910,7 +21956,7 @@ int osc_delete_load_balancer_policy(struct osc_env *e, struct osc_str *out, stru if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -21972,7 +22018,7 @@ int osc_delete_load_balancer(struct osc_env *e, struct osc_str *out, struct osc_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -22063,7 +22109,7 @@ int osc_delete_load_balancer_tags(struct osc_env *e, struct osc_str *out, struct if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -22125,7 +22171,7 @@ int osc_delete_nat_service(struct osc_env *e, struct osc_str *out, struct osc_de if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -22187,7 +22233,7 @@ int osc_delete_net_access_point(struct osc_env *e, struct osc_str *out, struct o if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -22249,7 +22295,7 @@ int osc_delete_net_peering(struct osc_env *e, struct osc_str *out, struct osc_de if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -22311,7 +22357,7 @@ int osc_delete_net(struct osc_env *e, struct osc_str *out, struct osc_delete_net if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -22373,7 +22419,7 @@ int osc_delete_nic(struct osc_env *e, struct osc_str *out, struct osc_delete_nic if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -22435,7 +22481,7 @@ int osc_delete_policy(struct osc_env *e, struct osc_str *out, struct osc_delete_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -22498,7 +22544,7 @@ int osc_delete_policy_version(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -22564,7 +22610,7 @@ int osc_delete_product_type(struct osc_env *e, struct osc_str *out, struct osc_d if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -22631,7 +22677,7 @@ int osc_delete_public_ip(struct osc_env *e, struct osc_str *out, struct osc_dele if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -22698,7 +22744,7 @@ int osc_delete_route(struct osc_env *e, struct osc_str *out, struct osc_delete_r if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -22760,7 +22806,7 @@ int osc_delete_route_table(struct osc_env *e, struct osc_str *out, struct osc_de if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -22827,7 +22873,7 @@ int osc_delete_security_group(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -22940,7 +22986,7 @@ int osc_delete_security_group_rule(struct osc_env *e, struct osc_str *out, struc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23002,7 +23048,7 @@ int osc_delete_server_certificate(struct osc_env *e, struct osc_str *out, struct if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23064,7 +23110,7 @@ int osc_delete_snapshot(struct osc_env *e, struct osc_str *out, struct osc_delet if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23126,7 +23172,7 @@ int osc_delete_subnet(struct osc_env *e, struct osc_str *out, struct osc_delete_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23217,7 +23263,7 @@ int osc_delete_tags(struct osc_env *e, struct osc_str *out, struct osc_delete_ta if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23289,7 +23335,7 @@ int osc_delete_user_group_policy(struct osc_env *e, struct osc_str *out, struct if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23360,7 +23406,7 @@ int osc_delete_user_group(struct osc_env *e, struct osc_str *out, struct osc_del if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23427,7 +23473,7 @@ int osc_delete_user_policy(struct osc_env *e, struct osc_str *out, struct osc_de if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23489,7 +23535,7 @@ int osc_delete_user(struct osc_env *e, struct osc_str *out, struct osc_delete_us if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23551,7 +23597,7 @@ int osc_delete_virtual_gateway(struct osc_env *e, struct osc_str *out, struct os if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23613,7 +23659,7 @@ int osc_delete_vm_group(struct osc_env *e, struct osc_str *out, struct osc_delet if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23675,7 +23721,7 @@ int osc_delete_vm_template(struct osc_env *e, struct osc_str *out, struct osc_de if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23748,7 +23794,7 @@ int osc_delete_vms(struct osc_env *e, struct osc_str *out, struct osc_delete_vms if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23810,7 +23856,7 @@ int osc_delete_volume(struct osc_env *e, struct osc_str *out, struct osc_delete_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23872,7 +23918,7 @@ int osc_delete_vpn_connection(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -23939,7 +23985,7 @@ int osc_delete_vpn_connection_route(struct osc_env *e, struct osc_str *out, stru if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -24017,7 +24063,381 @@ int osc_deregister_vms_in_load_balancer(struct osc_env *e, struct osc_str *out, if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); + if (res != CURLE_OK) + goto out; + + long statuscode = 200; + res = curl_easy_getinfo(e->c, CURLINFO_RESPONSE_CODE, &statuscode); + if (res != CURLE_OK) + goto out; + + if (statuscode >= 400) + res = 1; +out: + osc_deinit_str(&data); + return res; +} +static int disable_outscale_login_for_users_data(struct osc_env *e, struct osc_disable_outscale_login_for_users_arg *args, struct osc_str *data) +{ + struct osc_str end_call; + int ret = 0; + int count_args = 0; + + (void)count_args; /* if use only query/header and path, this is unused */ + osc_init_str(&end_call); + osc_str_append_string(&end_call, e->endpoint.buf); + if (!args) + goto no_data; + + osc_str_append_string(data, "{"); + if (args->is_set_dry_run) { + ARG_TO_JSON(DryRun, bool, args->dry_run); + ret += 1; + } + osc_str_append_string(data, "}"); + +no_data: + osc_str_append_string(&end_call, "/api/v1/DisableOutscaleLoginForUsers"); + curl_easy_setopt(e->c, CURLOPT_URL, end_call.buf); + osc_deinit_str(&end_call); + return !!ret; +} + +int osc_disable_outscale_login_for_users(struct osc_env *e, struct osc_str *out, struct osc_disable_outscale_login_for_users_arg *args) +{ + CURLcode res = CURLE_OUT_OF_MEMORY; + struct osc_str data; + int r; + + osc_init_str(&data); + r = disable_outscale_login_for_users_data(e, args, &data); + if (r < 0) + goto out; + + curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); + curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); + if (e->flag & OSC_VERBOSE_MODE) { + printf("\n%s\n\n", data.buf); + } + res = osc_easy_perform(e); + if (res != CURLE_OK) + goto out; + + long statuscode = 200; + res = curl_easy_getinfo(e->c, CURLINFO_RESPONSE_CODE, &statuscode); + if (res != CURLE_OK) + goto out; + + if (statuscode >= 400) + res = 1; +out: + osc_deinit_str(&data); + return res; +} +static int disable_outscale_login_per_users_data(struct osc_env *e, struct osc_disable_outscale_login_per_users_arg *args, struct osc_str *data) +{ + struct osc_str end_call; + int ret = 0; + int count_args = 0; + + (void)count_args; /* if use only query/header and path, this is unused */ + osc_init_str(&end_call); + osc_str_append_string(&end_call, e->endpoint.buf); + if (!args) + goto no_data; + + osc_str_append_string(data, "{"); + if (args->is_set_dry_run) { + ARG_TO_JSON(DryRun, bool, args->dry_run); + ret += 1; + } + if (args->user_names) { + char **as; + + TRY_APPEND_COL(count_args, data); + STRY(osc_str_append_string(data, "\"UserNames\":[" )); + for (as = args->user_names; *as; ++as) { + if (as != args->user_names) + STRY(osc_str_append_string(data, "," )); + ARG_TO_JSON_STR("", *as); + } + STRY(osc_str_append_string(data, "]" )); + ret += 1; + } else if (args->user_names_str) { + ARG_TO_JSON(UserNames, string, args->user_names_str); + ret += 1; + } + osc_str_append_string(data, "}"); + +no_data: + osc_str_append_string(&end_call, "/api/v1/DisableOutscaleLoginPerUsers"); + curl_easy_setopt(e->c, CURLOPT_URL, end_call.buf); + osc_deinit_str(&end_call); + return !!ret; +} + +int osc_disable_outscale_login_per_users(struct osc_env *e, struct osc_str *out, struct osc_disable_outscale_login_per_users_arg *args) +{ + CURLcode res = CURLE_OUT_OF_MEMORY; + struct osc_str data; + int r; + + osc_init_str(&data); + r = disable_outscale_login_per_users_data(e, args, &data); + if (r < 0) + goto out; + + curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); + curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); + if (e->flag & OSC_VERBOSE_MODE) { + printf("\n%s\n\n", data.buf); + } + res = osc_easy_perform(e); + if (res != CURLE_OK) + goto out; + + long statuscode = 200; + res = curl_easy_getinfo(e->c, CURLINFO_RESPONSE_CODE, &statuscode); + if (res != CURLE_OK) + goto out; + + if (statuscode >= 400) + res = 1; +out: + osc_deinit_str(&data); + return res; +} +static int disable_outscale_login_data(struct osc_env *e, struct osc_disable_outscale_login_arg *args, struct osc_str *data) +{ + struct osc_str end_call; + int ret = 0; + int count_args = 0; + + (void)count_args; /* if use only query/header and path, this is unused */ + osc_init_str(&end_call); + osc_str_append_string(&end_call, e->endpoint.buf); + if (!args) + goto no_data; + + osc_str_append_string(data, "{"); + if (args->is_set_dry_run) { + ARG_TO_JSON(DryRun, bool, args->dry_run); + ret += 1; + } + osc_str_append_string(data, "}"); + +no_data: + osc_str_append_string(&end_call, "/api/v1/DisableOutscaleLogin"); + curl_easy_setopt(e->c, CURLOPT_URL, end_call.buf); + osc_deinit_str(&end_call); + return !!ret; +} + +int osc_disable_outscale_login(struct osc_env *e, struct osc_str *out, struct osc_disable_outscale_login_arg *args) +{ + CURLcode res = CURLE_OUT_OF_MEMORY; + struct osc_str data; + int r; + + osc_init_str(&data); + r = disable_outscale_login_data(e, args, &data); + if (r < 0) + goto out; + + curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); + curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); + if (e->flag & OSC_VERBOSE_MODE) { + printf("\n%s\n\n", data.buf); + } + res = osc_easy_perform(e); + if (res != CURLE_OK) + goto out; + + long statuscode = 200; + res = curl_easy_getinfo(e->c, CURLINFO_RESPONSE_CODE, &statuscode); + if (res != CURLE_OK) + goto out; + + if (statuscode >= 400) + res = 1; +out: + osc_deinit_str(&data); + return res; +} +static int enable_outscale_login_for_users_data(struct osc_env *e, struct osc_enable_outscale_login_for_users_arg *args, struct osc_str *data) +{ + struct osc_str end_call; + int ret = 0; + int count_args = 0; + + (void)count_args; /* if use only query/header and path, this is unused */ + osc_init_str(&end_call); + osc_str_append_string(&end_call, e->endpoint.buf); + if (!args) + goto no_data; + + osc_str_append_string(data, "{"); + if (args->is_set_dry_run) { + ARG_TO_JSON(DryRun, bool, args->dry_run); + ret += 1; + } + osc_str_append_string(data, "}"); + +no_data: + osc_str_append_string(&end_call, "/api/v1/EnableOutscaleLoginForUsers"); + curl_easy_setopt(e->c, CURLOPT_URL, end_call.buf); + osc_deinit_str(&end_call); + return !!ret; +} + +int osc_enable_outscale_login_for_users(struct osc_env *e, struct osc_str *out, struct osc_enable_outscale_login_for_users_arg *args) +{ + CURLcode res = CURLE_OUT_OF_MEMORY; + struct osc_str data; + int r; + + osc_init_str(&data); + r = enable_outscale_login_for_users_data(e, args, &data); + if (r < 0) + goto out; + + curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); + curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); + if (e->flag & OSC_VERBOSE_MODE) { + printf("\n%s\n\n", data.buf); + } + res = osc_easy_perform(e); + if (res != CURLE_OK) + goto out; + + long statuscode = 200; + res = curl_easy_getinfo(e->c, CURLINFO_RESPONSE_CODE, &statuscode); + if (res != CURLE_OK) + goto out; + + if (statuscode >= 400) + res = 1; +out: + osc_deinit_str(&data); + return res; +} +static int enable_outscale_login_per_users_data(struct osc_env *e, struct osc_enable_outscale_login_per_users_arg *args, struct osc_str *data) +{ + struct osc_str end_call; + int ret = 0; + int count_args = 0; + + (void)count_args; /* if use only query/header and path, this is unused */ + osc_init_str(&end_call); + osc_str_append_string(&end_call, e->endpoint.buf); + if (!args) + goto no_data; + + osc_str_append_string(data, "{"); + if (args->is_set_dry_run) { + ARG_TO_JSON(DryRun, bool, args->dry_run); + ret += 1; + } + if (args->user_names) { + char **as; + + TRY_APPEND_COL(count_args, data); + STRY(osc_str_append_string(data, "\"UserNames\":[" )); + for (as = args->user_names; *as; ++as) { + if (as != args->user_names) + STRY(osc_str_append_string(data, "," )); + ARG_TO_JSON_STR("", *as); + } + STRY(osc_str_append_string(data, "]" )); + ret += 1; + } else if (args->user_names_str) { + ARG_TO_JSON(UserNames, string, args->user_names_str); + ret += 1; + } + osc_str_append_string(data, "}"); + +no_data: + osc_str_append_string(&end_call, "/api/v1/EnableOutscaleLoginPerUsers"); + curl_easy_setopt(e->c, CURLOPT_URL, end_call.buf); + osc_deinit_str(&end_call); + return !!ret; +} + +int osc_enable_outscale_login_per_users(struct osc_env *e, struct osc_str *out, struct osc_enable_outscale_login_per_users_arg *args) +{ + CURLcode res = CURLE_OUT_OF_MEMORY; + struct osc_str data; + int r; + + osc_init_str(&data); + r = enable_outscale_login_per_users_data(e, args, &data); + if (r < 0) + goto out; + + curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); + curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); + if (e->flag & OSC_VERBOSE_MODE) { + printf("\n%s\n\n", data.buf); + } + res = osc_easy_perform(e); + if (res != CURLE_OK) + goto out; + + long statuscode = 200; + res = curl_easy_getinfo(e->c, CURLINFO_RESPONSE_CODE, &statuscode); + if (res != CURLE_OK) + goto out; + + if (statuscode >= 400) + res = 1; +out: + osc_deinit_str(&data); + return res; +} +static int enable_outscale_login_data(struct osc_env *e, struct osc_enable_outscale_login_arg *args, struct osc_str *data) +{ + struct osc_str end_call; + int ret = 0; + int count_args = 0; + + (void)count_args; /* if use only query/header and path, this is unused */ + osc_init_str(&end_call); + osc_str_append_string(&end_call, e->endpoint.buf); + if (!args) + goto no_data; + + osc_str_append_string(data, "{"); + if (args->is_set_dry_run) { + ARG_TO_JSON(DryRun, bool, args->dry_run); + ret += 1; + } + osc_str_append_string(data, "}"); + +no_data: + osc_str_append_string(&end_call, "/api/v1/EnableOutscaleLogin"); + curl_easy_setopt(e->c, CURLOPT_URL, end_call.buf); + osc_deinit_str(&end_call); + return !!ret; +} + +int osc_enable_outscale_login(struct osc_env *e, struct osc_str *out, struct osc_enable_outscale_login_arg *args) +{ + CURLcode res = CURLE_OUT_OF_MEMORY; + struct osc_str data; + int r; + + osc_init_str(&data); + r = enable_outscale_login_data(e, args, &data); + if (r < 0) + goto out; + + curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); + curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); + if (e->flag & OSC_VERBOSE_MODE) { + printf("\n%s\n\n", data.buf); + } + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -24084,7 +24504,7 @@ int osc_link_flexible_gpu(struct osc_env *e, struct osc_str *out, struct osc_lin if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -24151,7 +24571,7 @@ int osc_link_internet_service(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -24245,7 +24665,7 @@ int osc_link_load_balancer_backend_machines(struct osc_env *e, struct osc_str *o if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -24312,7 +24732,7 @@ int osc_link_managed_policy_to_user_group(struct osc_env *e, struct osc_str *out if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -24383,7 +24803,7 @@ int osc_link_nic(struct osc_env *e, struct osc_str *out, struct osc_link_nic_arg if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -24450,7 +24870,7 @@ int osc_link_policy(struct osc_env *e, struct osc_str *out, struct osc_link_poli if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -24536,7 +24956,7 @@ int osc_link_private_ips(struct osc_env *e, struct osc_str *out, struct osc_link if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -24622,7 +25042,7 @@ int osc_link_public_ip(struct osc_env *e, struct osc_str *out, struct osc_link_p if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -24689,7 +25109,7 @@ int osc_link_route_table(struct osc_env *e, struct osc_str *out, struct osc_link if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -24756,7 +25176,7 @@ int osc_link_virtual_gateway(struct osc_env *e, struct osc_str *out, struct osc_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -24828,7 +25248,7 @@ int osc_link_volume(struct osc_env *e, struct osc_str *out, struct osc_link_volu if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -24905,7 +25325,7 @@ int osc_put_user_group_policy(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -24977,7 +25397,7 @@ int osc_put_user_policy(struct osc_env *e, struct osc_str *out, struct osc_put_u if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -25054,7 +25474,7 @@ int osc_read_access_keys(struct osc_env *e, struct osc_str *out, struct osc_read if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -25111,7 +25531,7 @@ int osc_read_accounts(struct osc_env *e, struct osc_str *out, struct osc_read_ac if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -25173,7 +25593,7 @@ int osc_read_admin_password(struct osc_env *e, struct osc_str *out, struct osc_r if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -25230,7 +25650,7 @@ int osc_read_api_access_policy(struct osc_env *e, struct osc_str *out, struct os if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -25297,7 +25717,7 @@ int osc_read_api_access_rules(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -25383,7 +25803,7 @@ int osc_read_api_logs(struct osc_env *e, struct osc_str *out, struct osc_read_ap if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -25450,7 +25870,7 @@ int osc_read_cas(struct osc_env *e, struct osc_str *out, struct osc_read_cas_arg if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -25507,7 +25927,7 @@ int osc_read_catalog(struct osc_env *e, struct osc_str *out, struct osc_read_cat if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -25574,7 +25994,7 @@ int osc_read_catalogs(struct osc_env *e, struct osc_str *out, struct osc_read_ca if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -25650,7 +26070,7 @@ int osc_read_client_gateways(struct osc_env *e, struct osc_str *out, struct osc_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -25712,7 +26132,7 @@ int osc_read_console_output(struct osc_env *e, struct osc_str *out, struct osc_r if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -25787,7 +26207,7 @@ int osc_read_consumption_account(struct osc_env *e, struct osc_str *out, struct if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -25863,7 +26283,7 @@ int osc_read_dedicated_groups(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -25939,7 +26359,7 @@ int osc_read_dhcp_options(struct osc_env *e, struct osc_str *out, struct osc_rea if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -26015,7 +26435,7 @@ int osc_read_direct_link_interfaces(struct osc_env *e, struct osc_str *out, stru if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -26091,7 +26511,7 @@ int osc_read_direct_links(struct osc_env *e, struct osc_str *out, struct osc_rea if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -26173,7 +26593,7 @@ int osc_read_entities_linked_to_policy(struct osc_env *e, struct osc_str *out, s if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -26230,7 +26650,7 @@ int osc_read_flexible_gpu_catalog(struct osc_env *e, struct osc_str *out, struct if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -26297,7 +26717,7 @@ int osc_read_flexible_gpus(struct osc_env *e, struct osc_str *out, struct osc_re if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -26373,7 +26793,7 @@ int osc_read_image_export_tasks(struct osc_env *e, struct osc_str *out, struct o if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -26449,7 +26869,7 @@ int osc_read_images(struct osc_env *e, struct osc_str *out, struct osc_read_imag if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -26525,7 +26945,7 @@ int osc_read_internet_services(struct osc_env *e, struct osc_str *out, struct os if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -26601,7 +27021,7 @@ int osc_read_keypairs(struct osc_env *e, struct osc_str *out, struct osc_read_ke if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -26681,7 +27101,7 @@ int osc_read_linked_policies(struct osc_env *e, struct osc_str *out, struct osc_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -26748,7 +27168,7 @@ int osc_read_listener_rules(struct osc_env *e, struct osc_str *out, struct osc_r if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -26821,7 +27241,7 @@ int osc_read_load_balancer_tags(struct osc_env *e, struct osc_str *out, struct o if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -26888,7 +27308,7 @@ int osc_read_load_balancers(struct osc_env *e, struct osc_str *out, struct osc_r if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -26954,7 +27374,7 @@ int osc_read_locations(struct osc_env *e, struct osc_str *out, struct osc_read_l if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -27034,7 +27454,7 @@ int osc_read_managed_policies_linked_to_user_group(struct osc_env *e, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -27110,7 +27530,7 @@ int osc_read_nat_services(struct osc_env *e, struct osc_str *out, struct osc_rea if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -27186,7 +27606,7 @@ int osc_read_net_access_point_services(struct osc_env *e, struct osc_str *out, s if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -27262,7 +27682,7 @@ int osc_read_net_access_points(struct osc_env *e, struct osc_str *out, struct os if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -27338,7 +27758,7 @@ int osc_read_net_peerings(struct osc_env *e, struct osc_str *out, struct osc_rea if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -27414,7 +27834,7 @@ int osc_read_nets(struct osc_env *e, struct osc_str *out, struct osc_read_nets_a if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -27490,7 +27910,7 @@ int osc_read_nics(struct osc_env *e, struct osc_str *out, struct osc_read_nics_a if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -27565,7 +27985,7 @@ int osc_read_policies(struct osc_env *e, struct osc_str *out, struct osc_read_po if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -27623,7 +28043,7 @@ int osc_read_policy(struct osc_env *e, struct osc_str *out, struct osc_read_poli if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -27686,7 +28106,7 @@ int osc_read_policy_version(struct osc_env *e, struct osc_str *out, struct osc_r if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -27752,7 +28172,7 @@ int osc_read_policy_versions(struct osc_env *e, struct osc_str *out, struct osc_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -27828,7 +28248,7 @@ int osc_read_product_types(struct osc_env *e, struct osc_str *out, struct osc_re if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -27885,7 +28305,7 @@ int osc_read_public_catalog(struct osc_env *e, struct osc_str *out, struct osc_r if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -27951,7 +28371,7 @@ int osc_read_public_ip_ranges(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -28027,7 +28447,7 @@ int osc_read_public_ips(struct osc_env *e, struct osc_str *out, struct osc_read_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -28103,7 +28523,7 @@ int osc_read_quotas(struct osc_env *e, struct osc_str *out, struct osc_read_quot if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -28160,7 +28580,7 @@ int osc_read_regions(struct osc_env *e, struct osc_str *out, struct osc_read_reg if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -28236,7 +28656,7 @@ int osc_read_route_tables(struct osc_env *e, struct osc_str *out, struct osc_rea if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -28312,7 +28732,7 @@ int osc_read_security_groups(struct osc_env *e, struct osc_str *out, struct osc_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -28379,7 +28799,7 @@ int osc_read_server_certificates(struct osc_env *e, struct osc_str *out, struct if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -28455,7 +28875,7 @@ int osc_read_snapshot_export_tasks(struct osc_env *e, struct osc_str *out, struc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -28531,7 +28951,7 @@ int osc_read_snapshots(struct osc_env *e, struct osc_str *out, struct osc_read_s if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -28607,7 +29027,7 @@ int osc_read_subnets(struct osc_env *e, struct osc_str *out, struct osc_read_sub if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -28683,7 +29103,7 @@ int osc_read_subregions(struct osc_env *e, struct osc_str *out, struct osc_read_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -28759,7 +29179,7 @@ int osc_read_tags(struct osc_env *e, struct osc_str *out, struct osc_read_tags_a if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -28827,7 +29247,7 @@ int osc_read_unit_price(struct osc_env *e, struct osc_str *out, struct osc_read_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -28902,7 +29322,7 @@ int osc_read_user_group_policies(struct osc_env *e, struct osc_str *out, struct if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -28974,7 +29394,7 @@ int osc_read_user_group_policy(struct osc_env *e, struct osc_str *out, struct os if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -29041,7 +29461,7 @@ int osc_read_user_group(struct osc_env *e, struct osc_str *out, struct osc_read_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -29108,7 +29528,7 @@ int osc_read_user_groups_per_user(struct osc_env *e, struct osc_str *out, struct if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -29183,7 +29603,7 @@ int osc_read_user_groups(struct osc_env *e, struct osc_str *out, struct osc_read if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -29245,7 +29665,7 @@ int osc_read_user_policies(struct osc_env *e, struct osc_str *out, struct osc_re if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -29312,7 +29732,7 @@ int osc_read_user_policy(struct osc_env *e, struct osc_str *out, struct osc_read if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -29387,7 +29807,7 @@ int osc_read_users(struct osc_env *e, struct osc_str *out, struct osc_read_users if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -29463,7 +29883,7 @@ int osc_read_virtual_gateways(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -29530,7 +29950,7 @@ int osc_read_vm_groups(struct osc_env *e, struct osc_str *out, struct osc_read_v if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -29597,7 +30017,7 @@ int osc_read_vm_templates(struct osc_env *e, struct osc_str *out, struct osc_rea if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -29673,7 +30093,7 @@ int osc_read_vm_types(struct osc_env *e, struct osc_str *out, struct osc_read_vm if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -29751,7 +30171,7 @@ int osc_read_vms_health(struct osc_env *e, struct osc_str *out, struct osc_read_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -29827,7 +30247,7 @@ int osc_read_vms(struct osc_env *e, struct osc_str *out, struct osc_read_vms_arg if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -29907,7 +30327,7 @@ int osc_read_vms_state(struct osc_env *e, struct osc_str *out, struct osc_read_v if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -29983,7 +30403,7 @@ int osc_read_volumes(struct osc_env *e, struct osc_str *out, struct osc_read_vol if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -30059,7 +30479,7 @@ int osc_read_vpn_connections(struct osc_env *e, struct osc_str *out, struct osc_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -30132,7 +30552,7 @@ int osc_reboot_vms(struct osc_env *e, struct osc_str *out, struct osc_reboot_vms if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -30210,7 +30630,7 @@ int osc_register_vms_in_load_balancer(struct osc_env *e, struct osc_str *out, st if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -30272,7 +30692,7 @@ int osc_reject_net_peering(struct osc_env *e, struct osc_str *out, struct osc_re if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -30349,7 +30769,7 @@ int osc_remove_user_from_user_group(struct osc_env *e, struct osc_str *out, stru if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -30415,7 +30835,7 @@ int osc_scale_down_vm_group(struct osc_env *e, struct osc_str *out, struct osc_s if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -30481,7 +30901,7 @@ int osc_scale_up_vm_group(struct osc_env *e, struct osc_str *out, struct osc_sca if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -30544,7 +30964,7 @@ int osc_set_default_policy_version(struct osc_env *e, struct osc_str *out, struc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -30617,7 +31037,7 @@ int osc_start_vms(struct osc_env *e, struct osc_str *out, struct osc_start_vms_a if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -30694,7 +31114,7 @@ int osc_stop_vms(struct osc_env *e, struct osc_str *out, struct osc_stop_vms_arg if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -30756,7 +31176,7 @@ int osc_unlink_flexible_gpu(struct osc_env *e, struct osc_str *out, struct osc_u if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -30823,7 +31243,7 @@ int osc_unlink_internet_service(struct osc_env *e, struct osc_str *out, struct o if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -30917,7 +31337,7 @@ int osc_unlink_load_balancer_backend_machines(struct osc_env *e, struct osc_str if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -30984,7 +31404,7 @@ int osc_unlink_managed_policy_from_user_group(struct osc_env *e, struct osc_str if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -31046,7 +31466,7 @@ int osc_unlink_nic(struct osc_env *e, struct osc_str *out, struct osc_unlink_nic if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -31113,7 +31533,7 @@ int osc_unlink_policy(struct osc_env *e, struct osc_str *out, struct osc_unlink_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -31191,7 +31611,7 @@ int osc_unlink_private_ips(struct osc_env *e, struct osc_str *out, struct osc_un if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -31258,7 +31678,7 @@ int osc_unlink_public_ip(struct osc_env *e, struct osc_str *out, struct osc_unli if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -31320,7 +31740,7 @@ int osc_unlink_route_table(struct osc_env *e, struct osc_str *out, struct osc_un if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -31387,7 +31807,7 @@ int osc_unlink_virtual_gateway(struct osc_env *e, struct osc_str *out, struct os if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -31453,7 +31873,7 @@ int osc_unlink_volume(struct osc_env *e, struct osc_str *out, struct osc_unlink_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -31530,7 +31950,7 @@ int osc_update_access_key(struct osc_env *e, struct osc_str *out, struct osc_upd if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -31663,7 +32083,7 @@ int osc_update_account(struct osc_env *e, struct osc_str *out, struct osc_update if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -31728,7 +32148,7 @@ int osc_update_api_access_policy(struct osc_env *e, struct osc_str *out, struct if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -31843,7 +32263,7 @@ int osc_update_api_access_rule(struct osc_env *e, struct osc_str *out, struct os if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -31910,7 +32330,7 @@ int osc_update_ca(struct osc_env *e, struct osc_str *out, struct osc_update_ca_a if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -31977,7 +32397,7 @@ int osc_update_dedicated_group(struct osc_env *e, struct osc_str *out, struct os if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -32043,7 +32463,7 @@ int osc_update_direct_link_interface(struct osc_env *e, struct osc_str *out, str if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -32109,7 +32529,7 @@ int osc_update_flexible_gpu(struct osc_env *e, struct osc_str *out, struct osc_u if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -32202,7 +32622,7 @@ int osc_update_image(struct osc_env *e, struct osc_str *out, struct osc_update_i if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -32274,7 +32694,7 @@ int osc_update_listener_rule(struct osc_env *e, struct osc_str *out, struct osc_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -32406,7 +32826,7 @@ int osc_update_load_balancer(struct osc_env *e, struct osc_str *out, struct osc_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -32500,7 +32920,7 @@ int osc_update_net_access_point(struct osc_env *e, struct osc_str *out, struct o if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -32567,7 +32987,7 @@ int osc_update_net(struct osc_env *e, struct osc_str *out, struct osc_update_net if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -32660,7 +33080,7 @@ int osc_update_nic(struct osc_env *e, struct osc_str *out, struct osc_update_nic if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -32731,7 +33151,7 @@ int osc_update_route_propagation(struct osc_env *e, struct osc_str *out, struct if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -32823,7 +33243,7 @@ int osc_update_route(struct osc_env *e, struct osc_str *out, struct osc_update_r if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -32890,7 +33310,7 @@ int osc_update_route_table_link(struct osc_env *e, struct osc_str *out, struct o if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -32962,7 +33382,7 @@ int osc_update_server_certificate(struct osc_env *e, struct osc_str *out, struct if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -33034,7 +33454,7 @@ int osc_update_snapshot(struct osc_env *e, struct osc_str *out, struct osc_updat if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -33100,7 +33520,7 @@ int osc_update_subnet(struct osc_env *e, struct osc_str *out, struct osc_update_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -33177,7 +33597,7 @@ int osc_update_user_group(struct osc_env *e, struct osc_str *out, struct osc_upd if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -33254,7 +33674,7 @@ int osc_update_user(struct osc_env *e, struct osc_str *out, struct osc_update_us if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -33349,7 +33769,7 @@ int osc_update_vm_group(struct osc_env *e, struct osc_str *out, struct osc_updat if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -33496,7 +33916,7 @@ int osc_update_vm(struct osc_env *e, struct osc_str *out, struct osc_update_vm_a if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -33586,7 +34006,7 @@ int osc_update_vm_template(struct osc_env *e, struct osc_str *out, struct osc_up if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -33661,7 +34081,7 @@ int osc_update_volume(struct osc_env *e, struct osc_str *out, struct osc_update_ if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -33743,7 +34163,7 @@ int osc_update_vpn_connection(struct osc_env *e, struct osc_str *out, struct osc if (e->flag & OSC_VERBOSE_MODE) { printf("\n%s\n\n", data.buf); } - res = curl_easy_perform(e->c); + res = osc_easy_perform(e); if (res != CURLE_OK) goto out; @@ -33791,11 +34211,17 @@ int osc_init_sdk_ext(struct osc_env *e, const char *profile, unsigned int flag, char *auth = getenv("OSC_AUTH_METHOD"); char *force_log = cfg_login(cfg); char *force_pass = cfg_pass(cfg); + char *max_retries = getenv("OSC_MAX_RETRIES"); + char *retry_backoff_jitter = getenv("OSC_RETRY_BACKOFF_JITTER"); + char *retry_backoff_factor = getenv("OSC_RETRY_BACKOFF_FACTOR"); strcpy(stpcpy(user_agent, "osc-sdk-c/"), osc_sdk_version_str()); e->region = getenv("OSC_REGION"); e->flag = flag; e->auth_method = cfg ? cfg->auth_method : OSC_AKSK_METHOD; + e->max_retries = 3; + e->retry_backoff_factor = 1.0; + e->retry_backoff_jitter = 3.0; endpoint = getenv("OSC_ENDPOINT_API"); osc_init_str(&e->endpoint); @@ -33808,6 +34234,13 @@ int osc_init_sdk_ext(struct osc_env *e, const char *profile, unsigned int flag, return -1; } + if (max_retries) + e->max_retries = (int)strtol(max_retries, NULL, 10); + if (retry_backoff_factor) + e->retry_backoff_factor = (float)strtod(retry_backoff_factor, NULL); + if (retry_backoff_jitter) + e->retry_backoff_jitter = (float)strtod(retry_backoff_jitter, NULL); + if (force_log) e->ak = force_log; if (force_pass) @@ -33890,7 +34323,7 @@ int osc_init_sdk_ext(struct osc_env *e, const char *profile, unsigned int flag, } if (strlen(e->ak) != AK_SIZE || strlen(e->sk) != SK_SIZE) { - fprintf(stderr, "Wrong access key or secret key size\n"); + fprintf(stderr, "wrong access key or secret key size\n"); return -1; } } else if (e->auth_method == OSC_PASSWORD_METHOD) { @@ -33938,7 +34371,7 @@ int osc_init_sdk_ext(struct osc_env *e, const char *profile, unsigned int flag, time(&clock); #if SAFE_C == 1 - TRY(!gmtime_r(&clock, &tm), "gmtime_r fail\n");\ + TRY(!gmtime_r(&clock, &tm), "failed to convert time\n");\ tmp = &tm; #else (void)tm; @@ -34001,3 +34434,67 @@ void osc_deinit_sdk(struct osc_env *e) e->c = NULL; e->flag = 0; } + +static int osc_msleep(int ms) { + struct timespec t = { .tv_sec = ms / 1000, .tv_nsec = (ms % 1000) * 1000 }; + return nanosleep(&t, NULL); +} + +CURLcode osc_easy_perform(struct osc_env *e) { + CURL *handle, *tmp; + CURLcode ret; + long response_code; + int backoff; + + for (int a = 0; a < e->max_retries; a++) { + response_code = 200; + handle = curl_easy_duphandle(e->c); + if (!handle) + return -1; + + ret = curl_easy_perform(handle); + switch (ret) { + case CURLE_OK: + break; + case CURLE_NOT_BUILT_IN: + case CURLE_WRITE_ERROR: + case CURLE_READ_ERROR: + case CURLE_OUT_OF_MEMORY: + case CURLE_BAD_FUNCTION_ARGUMENT: + case CURLE_SSL_ENGINE_NOTFOUND: + case CURLE_SSL_ENGINE_SETFAILED: + case CURLE_SSL_CIPHER: + case CURLE_SSL_ENGINE_INITFAILED: + case CURLE_SSL_CACERT_BADFILE: + case CURLE_SSL_CLIENTCERT: + case CURLE_AUTH_ERROR: + goto osc_easy_perform_return; + default: + goto osc_easy_perform_retry; + } + + ret = curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &response_code); + if (ret != CURLE_OK) + goto osc_easy_perform_retry; + + if (response_code == 429 + || response_code == 409 + || (response_code >= 500 && response_code < 600)) { +osc_easy_perform_retry: + backoff = (int)(1000 * e->retry_backoff_factor * powf(2.0, (float)a)); + backoff += (rand() * e->retry_backoff_jitter) / (RAND_MAX / 1000); + fprintf(stderr, "WARN: attempt %d failed. Retrying in %d ms.\n", a, backoff); + osc_msleep(backoff); + backoff *= e->retry_backoff_factor; + continue; + } + +osc_easy_perform_return: + break; + } + + tmp = e->c; + e->c = handle; + curl_easy_cleanup(tmp); + return ret; +} diff --git a/osc_sdk.h b/osc_sdk.h index 10566e5..a11bf98 100644 --- a/osc_sdk.h +++ b/osc_sdk.h @@ -77,8 +77,8 @@ struct osc_str { #define OSC_ENV_FREE_AK_SK (OSC_ENV_FREE_AK | OSC_ENV_FREE_SK) -#define OSC_API_VERSION "1.35.3" -#define OSC_SDK_VERSION 0X001500 +#define OSC_API_VERSION "1.35.4" +#define OSC_SDK_VERSION 0X001600 enum osc_auth_method { OSC_AKSK_METHOD, @@ -104,6 +104,9 @@ struct osc_env { enum osc_auth_method auth_method; struct curl_slist *headers; struct osc_str endpoint; + int max_retries; + float retry_backoff_factor; + float retry_backoff_jitter; CURL *c; }; @@ -282,6 +285,12 @@ struct account { * The mobile phone number of the account owner. */ char *mobile_number; + /* + * Whether the account is allowed to log in to Cockpit v2 using its + * Outscale credentials when identity federation is activated. + */ + int is_set_outscale_login_allowed; + int outscale_login_allowed; /* * The landline phone number of the account owner. */ @@ -302,9 +311,13 @@ struct account { struct actions_on_next_boot { /* - * One action to perform on the next boot of the VM (`enable` | - * `disable` | - * `setup-mode` |`none`). + * One action to perform on the next boot of the VM. For more + * information, + * see [About Secure + * + * Boot](https://docs.outscale.com/en/userguide/About-Secure-Boot.html#_s + * ecur + * e_boot_actions). */ char *secure_boot; }; @@ -443,8 +456,8 @@ struct block_device_mapping_created { struct bsu_to_create { /* - * By default or if set to true, the volume is deleted when terminating - * the VM. If false, the volume is not deleted when terminating the VM. + * If set to true, the volume is deleted when terminating the VM. If + * false, the volume is not deleted when terminating the VM. */ int is_set_delete_on_vm_deletion; int delete_on_vm_deletion; @@ -483,9 +496,9 @@ struct block_device_mapping_image { /* * Information about the BSU volume to create. * --Bsu.DeleteOnVmDeletion: bool - * By default or if set to true, the volume is deleted when - * terminating the - * VM. If false, the volume is not deleted when terminating the VM. + * If set to true, the volume is deleted when terminating the VM. If + * false, + * the volume is not deleted when terminating the VM. * --Bsu.Iops: long long int * The number of I/O operations per second (IOPS). This parameter * must be @@ -535,9 +548,9 @@ struct block_device_mapping_vm_creation { /* * Information about the BSU volume to create. * --Bsu.DeleteOnVmDeletion: bool - * By default or if set to true, the volume is deleted when - * terminating the - * VM. If false, the volume is not deleted when terminating the VM. + * If set to true, the volume is deleted when terminating the VM. If + * false, + * the volume is not deleted when terminating the VM. * --Bsu.Iops: long long int * The number of I/O operations per second (IOPS). This parameter * must be @@ -756,7 +769,7 @@ struct catalogs { */ char *from_date; /* - * The state of the catalog (`CURRENT` \\| `OBSOLETE`). + * The state of the catalog. */ char *state; /* @@ -1062,7 +1075,7 @@ struct direct_link_interfaces { char *location; /* * The maximum transmission unit (MTU) of the DirectLink interface, in - * bytes (always `1500`). + * bytes. */ int is_set_mtu; long long int mtu; @@ -1475,7 +1488,7 @@ struct filters_image { char *block_device_mapping_volume_types_str; char **block_device_mapping_volume_types; /* - * The boot modes compatible with the OMIs (`legacy` and/or `uefi`). + * The boot modes compatible with the OMIs. */ char *boot_modes_str; char **boot_modes; @@ -2642,7 +2655,7 @@ struct filters_vm { char *block_device_mapping_volume_ids_str; char **block_device_mapping_volume_ids; /* - * The boot modes of the VMs (`legacy` \\| `uefi`). + * The boot modes of the VMs. */ char *boot_modes_str; char **boot_modes; @@ -3245,7 +3258,7 @@ struct filters_volume { int *volume_sizes; /* * The states of the volumes (`creating` \\| `available` \\| `in-use` - * \\| `updating` \\| `deleting` \\| `error`). + * \\| `deleting` \\| `error`). */ char *volume_states_str; char **volume_states; @@ -3475,10 +3488,9 @@ struct image { * --BlockDeviceMappings.INDEX.Bsu: ref BsuToCreate * Information about the BSU volume to create. * --BlockDeviceMappings.INDEX.Bsu.DeleteOnVmDeletion: bool - * By default or if set to true, the volume is deleted when - * terminating the - * VM. If false, the volume is not deleted when terminating the - * VM. + * If set to true, the volume is deleted when terminating the + * VM. If false, + * the volume is not deleted when terminating the VM. * --BlockDeviceMappings.INDEX.Bsu.Iops: long long int * The number of I/O operations per second (IOPS). This * parameter must be @@ -3522,7 +3534,7 @@ struct image { int nb_block_device_mappings; struct block_device_mapping_image *block_device_mappings; /* - * The boot modes compatible with the OMI (`legacy` and/or `uefi`). + * The boot modes compatible with the OMI. */ char *boot_modes_str; char **boot_modes; @@ -4044,7 +4056,8 @@ struct listener_for_creation { * The OUTSCALE Resource Name (ORN) of the server certificate. For more * information, see [Resource Identifiers > OUTSCALE Resource Names * (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.ht - * ml#_outscale_resource_names_orns). + * ml#_outscale_resource_names_orns).
\nThis parameter is required + * for `HTTPS` and `SSL` protocols. */ char *server_certificate_id; }; @@ -5260,6 +5273,7 @@ struct policy { struct policy_entities { /* + * The accounts linked to the specified policy. * Information about the entity. * --Accounts.INDEX.Id: string * The ID of the entity. @@ -5278,6 +5292,7 @@ struct policy_entities { int nb_accounts; struct minimal_policy *accounts; /* + * The groups linked to the specified policy. * Information about the entity. * --Groups.INDEX.Id: string * The ID of the entity. @@ -5317,6 +5332,7 @@ struct policy_entities { int is_set_max_results_truncated; int max_results_truncated; /* + * The users linked to the specified policy. * Information about the entity. * --Users.INDEX.Id: string * The ID of the entity. @@ -6155,7 +6171,7 @@ struct snapshot_export_task { char *snapshot_id; /* * The state of the snapshot export task (`pending` \\| `active` \\| - * `completed` \\| `failed`). + * `completed` \\| `cancelled` \\| `failed`). */ char *state; /* @@ -6306,6 +6322,12 @@ struct user { * The date and time (UTC) of the last modification of the EIM user. */ char *last_modification_date; + /* + * Whether the user is allowed to log in to Cockpit v2 using its + * Outscale credentials when identity federation is activated. + */ + int is_set_outscale_login_allowed; + int outscale_login_allowed; /* * The path to the EIM user. */ @@ -6424,9 +6446,13 @@ struct vm { /* * The action to perform on the next boot of the VM. * --ActionsOnNextBoot.SecureBoot: string - * One action to perform on the next boot of the VM (`enable` | - * `disable` | - * `setup-mode` |`none`). + * One action to perform on the next boot of the VM. For more + * information, + * see [About Secure + * + * Boot](https://docs.outscale.com/en/userguide/About-Secure-Boot.html#_s + * ecur + * e_boot_actions). */ char *actions_on_next_boot_str; int is_set_actions_on_next_boot; @@ -6459,6 +6485,7 @@ struct vm { int nb_block_device_mappings; struct block_device_mapping_created *block_device_mappings; /* + * Information about the boot mode of the VM. */ char *boot_mode; /* @@ -6597,7 +6624,7 @@ struct vm { */ char *os_family; /* - * The performance of the VM (`medium` \\| `high` \\| `highest`). + * The performance of the VM. */ char *performance; /* @@ -6712,9 +6739,9 @@ struct vm_group { */ char *description; /* - * The positioning strategy of the VMs on hypervisors. By default, or if - * set to `no-strategy`, TINA determines the most adequate position for - * the VMs. If set to `attract`, the VMs are deployed on the same + * The positioning strategy of the VMs on hypervisors. If set to + * `no-strategy`, TINA determines the most adequate position for the + * VMs. If set to `attract`, the VMs are deployed on the same * hypervisor, which improves network performance. If set to `repulse`, * the VMs are deployed on a different hypervisor, which improves fault * tolerance. @@ -6726,8 +6753,7 @@ struct vm_group { char *security_group_ids_str; char **security_group_ids; /* - * The state of the VM group (`pending` \\| `available` \\| `scaling up` - * \\| `scaling down` \\| `deleting` \\| `deleted`). + * The state of the VM group. */ char *state; /* @@ -6735,7 +6761,7 @@ struct vm_group { */ char *subnet_id; /* - * One or more tags associated with the VM. + * One or more tags associated with the VM group. * Information about the tag. * --Tags.INDEX.Key: string * The key of the tag, with a minimum of 1 character. @@ -6973,7 +6999,7 @@ struct volume { char *snapshot_id; /* * The state of the volume (`creating` \\| `available` \\| `in-use` \\| - * `updating` \\| `deleting` \\| `error`). + * `deleting` \\| `error`). */ char *state; /* @@ -7227,88 +7253,82 @@ struct vpn_connection { struct with { /* - * By default or if set to true, the account ID is displayed. + * If true, the account ID is displayed. */ int is_set_account_id; int account_id; /* - * By default or if set to true, the duration of the call is displayed. + * If true, the duration of the call is displayed. */ int is_set_call_duration; int call_duration; /* - * By default or if set to true, the access key is displayed. + * If true, the access key is displayed. */ int is_set_query_access_key; int query_access_key; /* - * By default or if set to true, the name of the API is displayed. + * If true, the name of the API is displayed. */ int is_set_query_api_name; int query_api_name; /* - * By default or if set to true, the version of the API is displayed. + * If true, the version of the API is displayed. */ int is_set_query_api_version; int query_api_version; /* - * By default or if set to true, the name of the call is displayed. + * If true, the name of the call is displayed. */ int is_set_query_call_name; int query_call_name; /* - * By default or if set to true, the date of the call is displayed. + * If true, the date of the call is displayed. */ int is_set_query_date; int query_date; /* - * By default or if set to true, the raw header of the HTTP request is - * displayed. + * If true, the raw header of the HTTP request is displayed. */ int is_set_query_header_raw; int query_header_raw; /* - * By default or if set to true, the size of the raw header of the HTTP - * request is displayed. + * If true, the size of the raw header of the HTTP request is displayed. */ int is_set_query_header_size; int query_header_size; /* - * By default or if set to true, the IP is displayed. + * If true, the IP is displayed. */ int is_set_query_ip_address; int query_ip_address; /* - * By default or if set to true, the raw payload of the HTTP request is - * displayed. + * If true, the raw payload of the HTTP request is displayed. */ int is_set_query_payload_raw; int query_payload_raw; /* - * By default or if set to true, the size of the raw payload of the HTTP - * request is displayed. + * If true, the size of the raw payload of the HTTP request is displayed. */ int is_set_query_payload_size; int query_payload_size; /* - * By default or if set to true, the user agent of the HTTP request is - * displayed. + * If true, the user agent of the HTTP request is displayed. */ int is_set_query_user_agent; int query_user_agent; /* - * By default or if set to true, the request ID is displayed. + * If true, the request ID is displayed. */ int is_set_request_id; int request_id; /* - * By default or if set to true, the size of the response is displayed. + * If true, the size of the response is displayed. */ int is_set_response_size; int response_size; /* - * By default or if set to true, the HTTP status code of the response is - * displayed. + * If true, the HTTP status code of the response is displayed. */ int is_set_response_status_code; int response_status_code; @@ -7782,10 +7802,9 @@ struct osc_create_image_arg { * --BlockDeviceMappings.INDEX.Bsu: ref BsuToCreate * Information about the BSU volume to create. * --BlockDeviceMappings.INDEX.Bsu.DeleteOnVmDeletion: bool - * By default or if set to true, the volume is deleted when - * terminating the - * VM. If false, the volume is not deleted when terminating the - * VM. + * If set to true, the volume is deleted when terminating the + * VM. If false, + * the volume is not deleted when terminating the VM. * --BlockDeviceMappings.INDEX.Bsu.Iops: long long int * The number of I/O operations per second (IOPS). This * parameter must be @@ -7829,7 +7848,7 @@ struct osc_create_image_arg { int nb_block_device_mappings; struct block_device_mapping_image *block_device_mappings; /* - * The boot modes compatible with the OMI (`legacy` and/or `uefi`). + * The boot modes compatible with the OMI. */ char *boot_modes_str; char **boot_modes; @@ -8009,7 +8028,9 @@ struct osc_create_load_balancer_listeners_arg { * * (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.ht * ml#_ - * outscale_resource_names_orns). + * outscale_resource_names_orns).
\nThis parameter is required + * for + * `HTTPS` and `SSL` protocols. */ char *listeners_str; int nb_listeners; @@ -8090,7 +8111,9 @@ struct osc_create_load_balancer_arg { * * (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.ht * ml#_ - * outscale_resource_names_orns). + * outscale_resource_names_orns).
\nThis parameter is required + * for + * `HTTPS` and `SSL` protocols. */ char *listeners_str; int nb_listeners; @@ -8857,12 +8880,12 @@ struct osc_create_vm_group_arg { int is_set_dry_run; int dry_run; /* - * The positioning strategy of VMs on hypervisors. By default, or if set - * to `no-strategy` our orchestrator determines the most adequate - * position for your VMs. If set to `attract`, your VMs are deployed on - * the same hypervisor, which improves network performance. If set to - * `repulse`, your VMs are deployed on a different hypervisor, which - * improves fault tolerance. + * The positioning strategy of VMs on hypervisors. If set to + * `no-strategy`, our orchestrator determines the most adequate position + * for your VMs. If set to `attract`, your VMs are deployed on the same + * hypervisor, which improves network performance. If set to `repulse`, + * your VMs are deployed on a different hypervisor, which improves fault + * tolerance. */ char *positioning_strategy; /* @@ -8913,7 +8936,7 @@ struct osc_create_vm_template_arg { */ char *cpu_generation; /* - * The performance of the VMs (`medium` \\| `high` \\| `highest`). + * The performance of the VMs. */ char *cpu_performance; /* @@ -8963,9 +8986,13 @@ struct osc_create_vms_arg { /* * The action to perform on the next boot of the VM. * --ActionsOnNextBoot.SecureBoot: string - * One action to perform on the next boot of the VM (`enable` | - * `disable` | - * `setup-mode` |`none`). + * One action to perform on the next boot of the VM. For more + * information, + * see [About Secure + * + * Boot](https://docs.outscale.com/en/userguide/About-Secure-Boot.html#_s + * ecur + * e_boot_actions). */ char *actions_on_next_boot_str; int is_set_actions_on_next_boot; @@ -8976,10 +9003,9 @@ struct osc_create_vms_arg { * --BlockDeviceMappings.INDEX.Bsu: ref BsuToCreate * Information about the BSU volume to create. * --BlockDeviceMappings.INDEX.Bsu.DeleteOnVmDeletion: bool - * By default or if set to true, the volume is deleted when - * terminating the - * VM. If false, the volume is not deleted when terminating the - * VM. + * If set to true, the volume is deleted when terminating the + * VM. If false, + * the volume is not deleted when terminating the VM. * --BlockDeviceMappings.INDEX.Bsu.Iops: long long int * The number of I/O operations per second (IOPS). This * parameter must be @@ -9027,11 +9053,12 @@ struct osc_create_vms_arg { int nb_block_device_mappings; struct block_device_mapping_vm_creation *block_device_mappings; /* + * Information about the boot mode of the VM. */ char *boot_mode; /* - * By default or if true, the VM is started on creation. If false, the - * VM is stopped on creation. + * If true, the VM is started on creation. If false, the VM is stopped + * on creation. */ int is_set_boot_on_creation; int boot_on_creation; @@ -9141,8 +9168,7 @@ struct osc_create_vms_arg { int nb_nics; struct nic_for_vm_creation *nics; /* - * The performance of the VM (`medium` \\| `high` \\| `highest`). By - * default, `high`. This parameter is ignored if you specify a + * The performance of the VM. This parameter is ignored if you specify a * performance flag directly in the `VmType` parameter. */ char *performance; @@ -9189,9 +9215,9 @@ struct osc_create_vms_arg { */ char *user_data; /* - * The VM behavior when you stop it. By default or if set to `stop`, the - * VM stops. If set to `restart`, the VM stops then automatically - * restarts. If set to `terminate`, the VM stops and is terminated. + * The VM behavior when you stop it. If set to `stop`, the VM stops. If + * set to `restart`, the VM stops then automatically restarts. If set to + * `terminate`, the VM stops and is terminated. */ char *vm_initiated_shutdown_behavior; /* @@ -10208,6 +10234,84 @@ struct osc_deregister_vms_in_load_balancer_arg { char *load_balancer_name; }; +struct osc_disable_outscale_login_for_users_arg { + /* Required: null + */ + /* + * If true, checks whether you have the required permissions to perform + * the action. + */ + int is_set_dry_run; + int dry_run; +}; + +struct osc_disable_outscale_login_per_users_arg { + /* Required: null + */ + /* + * If true, checks whether you have the required permissions to perform + * the action. + */ + int is_set_dry_run; + int dry_run; + /* + * The usernames of the EIM users you want to disable the Outscale login + * for. + */ + char *user_names_str; + char **user_names; +}; + +struct osc_disable_outscale_login_arg { + /* Required: null + */ + /* + * If true, checks whether you have the required permissions to perform + * the action. + */ + int is_set_dry_run; + int dry_run; +}; + +struct osc_enable_outscale_login_for_users_arg { + /* Required: null + */ + /* + * If true, checks whether you have the required permissions to perform + * the action. + */ + int is_set_dry_run; + int dry_run; +}; + +struct osc_enable_outscale_login_per_users_arg { + /* Required: null + */ + /* + * If true, checks whether you have the required permissions to perform + * the action. + */ + int is_set_dry_run; + int dry_run; + /* + * The usernames of the EIM users you want to enable the Outscale login + * for. + */ + char *user_names_str; + char **user_names; +}; + +struct osc_enable_outscale_login_arg { + /* Required: null + */ + /* + * If true, checks whether you have the required permissions to perform + * the action. + */ + int is_set_dry_run; + int dry_run; +}; + struct osc_link_flexible_gpu_arg { /* Required: FlexibleGpuId VmId */ @@ -10693,58 +10797,46 @@ struct osc_read_api_logs_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; /* * The information to display in each returned log. * --With.AccountId: bool - * By default or if set to true, the account ID is displayed. + * If true, the account ID is displayed. * --With.CallDuration: bool - * By default or if set to true, the duration of the call is - * displayed. + * If true, the duration of the call is displayed. * --With.QueryAccessKey: bool - * By default or if set to true, the access key is displayed. + * If true, the access key is displayed. * --With.QueryApiName: bool - * By default or if set to true, the name of the API is displayed. + * If true, the name of the API is displayed. * --With.QueryApiVersion: bool - * By default or if set to true, the version of the API is displayed. + * If true, the version of the API is displayed. * --With.QueryCallName: bool - * By default or if set to true, the name of the call is displayed. + * If true, the name of the call is displayed. * --With.QueryDate: bool - * By default or if set to true, the date of the call is displayed. + * If true, the date of the call is displayed. * --With.QueryHeaderRaw: bool - * By default or if set to true, the raw header of the HTTP request - * is - * displayed. + * If true, the raw header of the HTTP request is displayed. * --With.QueryHeaderSize: bool - * By default or if set to true, the size of the raw header of the - * HTTP - * request is displayed. + * If true, the size of the raw header of the HTTP request is + * displayed. * --With.QueryIpAddress: bool - * By default or if set to true, the IP is displayed. + * If true, the IP is displayed. * --With.QueryPayloadRaw: bool - * By default or if set to true, the raw payload of the HTTP request - * is - * displayed. + * If true, the raw payload of the HTTP request is displayed. * --With.QueryPayloadSize: bool - * By default or if set to true, the size of the raw payload of the - * HTTP - * request is displayed. + * If true, the size of the raw payload of the HTTP request is + * displayed. * --With.QueryUserAgent: bool - * By default or if set to true, the user agent of the HTTP request - * is - * displayed. + * If true, the user agent of the HTTP request is displayed. * --With.RequestId: bool - * By default or if set to true, the request ID is displayed. + * If true, the request ID is displayed. * --With.ResponseSize: bool - * By default or if set to true, the size of the response is - * displayed. + * If true, the size of the response is displayed. * --With.ResponseStatusCode: bool - * By default or if set to true, the HTTP status code of the - * response is - * displayed. + * If true, the HTTP status code of the response is displayed. */ char *with_str; int is_set_with; @@ -10863,7 +10955,7 @@ struct osc_read_client_gateways_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -10902,11 +10994,11 @@ struct osc_read_consumption_account_arg { */ char *from_date; /* - * 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). + * 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). */ int is_set_overall; int overall; @@ -10960,7 +11052,7 @@ struct osc_read_dedicated_groups_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -11013,7 +11105,7 @@ struct osc_read_dhcp_options_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -11045,7 +11137,7 @@ struct osc_read_direct_link_interfaces_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -11075,7 +11167,7 @@ struct osc_read_direct_links_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -11085,8 +11177,8 @@ struct osc_read_entities_linked_to_policy_arg { /* Required: null */ /* - * The type of entity linked to the policy (`ACCOUNT` \\| `USER` \\| - * `GROUP`) you want to get information about. + * The type of entity linked to the policy you want to get information + * about. */ char *entities_type_str; char **entities_type; @@ -11182,7 +11274,7 @@ struct osc_read_image_export_tasks_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -11218,7 +11310,7 @@ struct osc_read_images_arg { * --Filters.BlockDeviceMappingVolumeTypes: array string * The types of volumes (`standard` \\| `gp2` \\| `io1`). * --Filters.BootModes: array string - * The boot modes compatible with the OMIs (`legacy` and/or `uefi`). + * The boot modes compatible with the OMIs. * --Filters.Descriptions: array string * The descriptions of the OMIs, provided when they were created. * --Filters.FileLocations: array string @@ -11268,7 +11360,7 @@ struct osc_read_images_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -11316,7 +11408,7 @@ struct osc_read_internet_services_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -11476,7 +11568,7 @@ struct osc_read_locations_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -11564,7 +11656,7 @@ struct osc_read_nat_services_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -11596,7 +11688,7 @@ struct osc_read_net_access_point_services_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -11645,7 +11737,7 @@ struct osc_read_net_access_points_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -11707,7 +11799,7 @@ struct osc_read_net_peerings_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -11756,7 +11848,7 @@ struct osc_read_nets_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -11858,7 +11950,7 @@ struct osc_read_nics_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -11979,7 +12071,7 @@ struct osc_read_product_types_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -12012,7 +12104,7 @@ struct osc_read_public_ip_ranges_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -12068,7 +12160,7 @@ struct osc_read_public_ips_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -12106,7 +12198,7 @@ struct osc_read_quotas_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -12184,7 +12276,7 @@ struct osc_read_route_tables_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -12277,7 +12369,7 @@ struct osc_read_security_groups_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -12326,7 +12418,7 @@ struct osc_read_snapshot_export_tasks_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -12399,7 +12491,7 @@ struct osc_read_snapshots_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -12451,7 +12543,7 @@ struct osc_read_subnets_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -12485,7 +12577,7 @@ struct osc_read_subregions_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -12540,7 +12632,7 @@ struct osc_read_tags_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -12800,7 +12892,7 @@ struct osc_read_virtual_gateways_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -12935,7 +13027,7 @@ struct osc_read_vm_types_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -12989,7 +13081,7 @@ struct osc_read_vms_arg { * --Filters.BlockDeviceMappingVolumeIds: array string * The volume IDs of the BSU volumes. * --Filters.BootModes: array string - * The boot modes of the VMs (`legacy` \\| `uefi`). + * The boot modes of the VMs. * --Filters.ClientTokens: array string * The idempotency tokens provided when launching the VMs. * --Filters.CreationDates: array string @@ -13157,7 +13249,7 @@ struct osc_read_vms_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -13167,8 +13259,8 @@ struct osc_read_vms_state_arg { /* Required: null */ /* - * If true, includes the status of all VMs. By default or if set to - * false, only includes the status of running VMs. + * If true, includes the status of all VMs. If false, only includes the + * status of running VMs. */ int is_set_all_vms; int all_vms; @@ -13207,7 +13299,7 @@ struct osc_read_vms_state_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -13265,7 +13357,7 @@ struct osc_read_volumes_arg { * --Filters.VolumeStates: array string * The states of the volumes (`creating` \\| `available` \\| * `in-use` \\| - * `updating` \\| `deleting` \\| `error`). + * `deleting` \\| `error`). * --Filters.VolumeTypes: array string * The types of the volumes (`standard` \\| `gp2` \\| `io1`). */ @@ -13279,7 +13371,7 @@ struct osc_read_volumes_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -13342,7 +13434,7 @@ struct osc_read_vpn_connections_arg { char *next_page_token; /* * The maximum number of logs returned in a single response (between `1` - * and `1000`, both included). By default, `100`. + * and `1000`, both included). */ int is_set_results_per_page; long long int results_per_page; @@ -13958,7 +14050,7 @@ struct osc_update_direct_link_interface_arg { int dry_run; /* * The maximum transmission unit (MTU) of the DirectLink interface, in - * bytes (always `1500`). + * bytes. */ int is_set_mtu; long long int mtu; @@ -14551,9 +14643,13 @@ struct osc_update_vm_arg { /* * The action to perform on the next boot of the VM. * --ActionsOnNextBoot.SecureBoot: string - * One action to perform on the next boot of the VM (`enable` | - * `disable` | - * `setup-mode` |`none`). + * One action to perform on the next boot of the VM. For more + * information, + * see [About Secure + * + * Boot](https://docs.outscale.com/en/userguide/About-Secure-Boot.html#_s + * ecur + * e_boot_actions). */ char *actions_on_next_boot_str; int is_set_actions_on_next_boot; @@ -14629,7 +14725,7 @@ struct osc_update_vm_arg { int is_set_nested_virtualization; int nested_virtualization; /* - * The performance of the VM (`medium` \\| `high` \\| `highest`). + * The performance of the VM. */ char *performance; /* @@ -14916,6 +15012,8 @@ const char **osc_calls_name(void); #endif /* WITH_DESCRIPTION */ +CURLcode osc_easy_perform(struct osc_env *e); + int osc_accept_net_peering(struct osc_env *e, struct osc_str *out, struct osc_accept_net_peering_arg *args); int osc_add_user_to_user_group(struct osc_env *e, struct osc_str *out, struct osc_add_user_to_user_group_arg *args); int osc_check_authentication(struct osc_env *e, struct osc_str *out, struct osc_check_authentication_arg *args); @@ -15012,6 +15110,12 @@ int osc_delete_volume(struct osc_env *e, struct osc_str *out, struct osc_delete_ int osc_delete_vpn_connection(struct osc_env *e, struct osc_str *out, struct osc_delete_vpn_connection_arg *args); int osc_delete_vpn_connection_route(struct osc_env *e, struct osc_str *out, struct osc_delete_vpn_connection_route_arg *args); int osc_deregister_vms_in_load_balancer(struct osc_env *e, struct osc_str *out, struct osc_deregister_vms_in_load_balancer_arg *args); +int osc_disable_outscale_login_for_users(struct osc_env *e, struct osc_str *out, struct osc_disable_outscale_login_for_users_arg *args); +int osc_disable_outscale_login_per_users(struct osc_env *e, struct osc_str *out, struct osc_disable_outscale_login_per_users_arg *args); +int osc_disable_outscale_login(struct osc_env *e, struct osc_str *out, struct osc_disable_outscale_login_arg *args); +int osc_enable_outscale_login_for_users(struct osc_env *e, struct osc_str *out, struct osc_enable_outscale_login_for_users_arg *args); +int osc_enable_outscale_login_per_users(struct osc_env *e, struct osc_str *out, struct osc_enable_outscale_login_per_users_arg *args); +int osc_enable_outscale_login(struct osc_env *e, struct osc_str *out, struct osc_enable_outscale_login_arg *args); int osc_link_flexible_gpu(struct osc_env *e, struct osc_str *out, struct osc_link_flexible_gpu_arg *args); int osc_link_internet_service(struct osc_env *e, struct osc_str *out, struct osc_link_internet_service_arg *args); int osc_link_load_balancer_backend_machines(struct osc_env *e, struct osc_str *out, struct osc_link_load_balancer_backend_machines_arg *args); diff --git a/version b/version index ac39a10..78bc1ab 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.9.0 +0.10.0