Skip to content

Commit

Permalink
update to gridscale API 1.0.79
Browse files Browse the repository at this point in the history
  • Loading branch information
JanST123 committed Oct 12, 2023
1 parent df9c5b3 commit bff5db4
Show file tree
Hide file tree
Showing 19 changed files with 232 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ tsc-seed-1.0.0.tgz
.idea

/scripts/spec.yaml

gridscale-gsclient-js-*.tgz
Binary file modified apiversion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/Specs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,11 @@ export { LocationFeatures } from './models/LocationFeatures';
export { LocationGetResponse } from './models/LocationGetResponse';
export { LocationIndex } from './models/LocationIndex';
export { LocationInformation } from './models/LocationInformation';
export { LocationRelations } from './models/LocationRelations';
export { LocationRelationsGpuFlavor } from './models/LocationRelationsGpuFlavor';
export { LocationsGetResponse } from './models/LocationsGetResponse';
export { LocationUpdate } from './models/LocationUpdate';
export { LocationWithRelations } from './models/LocationWithRelations';
export { MarketplaceApplication } from './models/MarketplaceApplication';
export { MarketplaceApplicationCreate } from './models/MarketplaceApplicationCreate';
export { MarketplaceApplicationCreateResponse } from './models/MarketplaceApplicationCreateResponse';
Expand Down Expand Up @@ -385,8 +388,11 @@ export { $LocationFeatures } from './schemas/$LocationFeatures';
export { $LocationGetResponse } from './schemas/$LocationGetResponse';
export { $LocationIndex } from './schemas/$LocationIndex';
export { $LocationInformation } from './schemas/$LocationInformation';
export { $LocationRelations } from './schemas/$LocationRelations';
export { $LocationRelationsGpuFlavor } from './schemas/$LocationRelationsGpuFlavor';
export { $LocationsGetResponse } from './schemas/$LocationsGetResponse';
export { $LocationUpdate } from './schemas/$LocationUpdate';
export { $LocationWithRelations } from './schemas/$LocationWithRelations';
export { $MarketplaceApplication } from './schemas/$MarketplaceApplication';
export { $MarketplaceApplicationCreate } from './schemas/$MarketplaceApplicationCreate';
export { $MarketplaceApplicationCreateResponse } from './schemas/$MarketplaceApplicationCreateResponse';
Expand Down
5 changes: 4 additions & 1 deletion src/Specs/models/FirewallCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import { FirewallRules } from './FirewallRules';

export type FirewallCreate = {
name: string;
labels?: string;
/**
* List of labels.
*/
labels?: Array<string>;
rules: FirewallRules;
}
1 change: 1 addition & 0 deletions src/Specs/models/LocationFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export type LocationFeatures = {
hardware_profiles?: string;
has_rocket_storage?: string;
has_server_provisioning?: string;
has_gpu?: string;
object_storage_region?: string;
backup_center_location_uuid?: string;
}
4 changes: 2 additions & 2 deletions src/Specs/models/LocationGetResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */

import { Location } from './Location';
import { LocationWithRelations } from './LocationWithRelations';

export type LocationGetResponse = {
location?: Location;
location?: LocationWithRelations;
}
9 changes: 9 additions & 0 deletions src/Specs/models/LocationRelations.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import { LocationRelationsGpuFlavor } from './LocationRelationsGpuFlavor';

export type LocationRelations = {
gpu_flavors?: Array<LocationRelationsGpuFlavor>;
}
37 changes: 37 additions & 0 deletions src/Specs/models/LocationRelationsGpuFlavor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

/**
* Types of GPUs which can be used in the specified location
*/
export type LocationRelationsGpuFlavor = {
/**
* The UUID of an object is always unique, and refers to a specific object.
*/
object_uuid?: string;
/**
* Name of the GPU flavor
*/
name?: string;
/**
* Amount of memory per slice in gigabytes
*/
memory_per_slice?: number;
/**
* Amount of graphics cards per slice
*/
graphics_cards_per_slice?: number;
/**
* Amount of CPU cores per slice
*/
cores_per_slice?: number;
/**
* Amount of storage per slice in gigabytes
*/
local_storage_capacity_per_slice?: number;
/**
* Total amount of slices available of this flavor
*/
max_slices?: number;
}
56 changes: 56 additions & 0 deletions src/Specs/models/LocationWithRelations.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import { LocationChangeRequested } from './LocationChangeRequested';
import { LocationFeatures } from './LocationFeatures';
import { LocationInformation } from './LocationInformation';
import { LocationRelations } from './LocationRelations';

export type LocationWithRelations = {
/**
* Uses IATA airport code, which works as a location identifier.
*/
iata?: string;
/**
* List of labels.
*/
labels?: Array<string>;
/**
* The human-readable name of the location. It supports the full UTF-8 character set, with a maximum of 64 characters.
*/
name?: string;
/**
* The UUID of an object is always unique, and refers to a specific object.
*/
object_uuid?: string;
/**
* Used to uniquely identify the Hybrid Core.
*/
hybrid_core_uuid?: string;
/**
* The ID of a Hybrid Core.
*/
hybrid_core_id?: string;
/**
* The human-readable name of the location. It supports the full UTF-8 character set, with a maximum of 64 characters.
*/
country?: string;
active?: boolean;
change_requested?: LocationChangeRequested;
/**
* The number of dedicated cpunodes to assigne to the private location.
*/
cpunode_count?: number;
/**
* If this location is publicly available or a private location.
*/
public?: boolean;
/**
* The product number of a valid and available dedicated cpunode article.
*/
product_no?: number;
location_information?: LocationInformation;
features?: LocationFeatures;
relations?: LocationRelations;
}
2 changes: 1 addition & 1 deletion src/Specs/models/Network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export type Network = {
*/
location_name?: string;
/**
* Defines the information if dhcp is activated for this network or not
* Defines the information if dhcp is activated for this network or not. The last 2 IPs in dhcp_range would be reserved for internal use
*/
dhcp_active?: boolean;
dhcp_range?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/Specs/models/NetworkCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type NetworkCreate = {
*/
labels?: Array<string>;
/**
* Set if dhcp is supposed to be active on the new network
* Set if dhcp is supposed to be active on the new network. The last 2 IPs in dhcp_range would be reserved for internal use
*/
dhcp_active?: boolean;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Specs/models/NetworkUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type NetworkUpdate = {
*/
labels?: Array<string>;
/**
* Set if dhcp is supposed to be active on the new network
* Set if dhcp is supposed to be active on the new network. The last 2 IPs in dhcp_range would be reserved for internal use
*/
dhcp_active?: boolean;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Specs/models/ProductUsage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type ProductUsage = {
*/
product_number?: number;
/**
* Total usage of a product
* sum of all runtimes of the object in minutes of the current billing period
*/
value?: number;
}
5 changes: 4 additions & 1 deletion src/Specs/schemas/$FirewallCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export const $FirewallCreate = {
isRequired: true,
},
labels: {
type: 'string',
type: 'array',
contains: {
type: 'string',
},
},
rules: {
type: 'FirewallRules',
Expand Down
4 changes: 4 additions & 0 deletions src/Specs/schemas/$LocationFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export const $LocationFeatures = {
type: 'string',
format: 'string',
},
has_gpu: {
type: 'string',
format: 'string',
},
object_storage_region: {
type: 'string',
format: 'string',
Expand Down
2 changes: 1 addition & 1 deletion src/Specs/schemas/$LocationGetResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export const $LocationGetResponse = {
properties: {
location: {
type: 'Location',
type: 'LocationWithRelations',
},
},
};
13 changes: 13 additions & 0 deletions src/Specs/schemas/$LocationRelations.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $LocationRelations = {
properties: {
gpu_flavors: {
type: 'array',
contains: {
type: 'LocationRelationsGpuFlavor',
},
},
},
};
29 changes: 29 additions & 0 deletions src/Specs/schemas/$LocationRelationsGpuFlavor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $LocationRelationsGpuFlavor = {
properties: {
object_uuid: {
type: 'string',
format: 'uuid',
},
name: {
type: 'string',
},
memory_per_slice: {
type: 'number',
},
graphics_cards_per_slice: {
type: 'number',
},
cores_per_slice: {
type: 'number',
},
local_storage_capacity_per_slice: {
type: 'number',
},
max_slices: {
type: 'number',
},
},
};
60 changes: 60 additions & 0 deletions src/Specs/schemas/$LocationWithRelations.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $LocationWithRelations = {
properties: {
iata: {
type: 'string',
},
labels: {
type: 'array',
contains: {
type: 'string',
},
},
name: {
type: 'string',
format: 'string',
},
object_uuid: {
type: 'string',
format: 'uuid',
},
hybrid_core_uuid: {
type: 'string',
format: 'uuid',
},
hybrid_core_id: {
type: 'string',
format: 'uuid',
},
country: {
type: 'string',
format: 'string',
},
active: {
type: 'boolean',
},
change_requested: {
type: 'LocationChangeRequested',
},
cpunode_count: {
type: 'number',
},
public: {
type: 'boolean',
},
product_no: {
type: 'number',
},
location_information: {
type: 'LocationInformation',
},
features: {
type: 'LocationFeatures',
},
relations: {
type: 'LocationRelations',
},
},
};

0 comments on commit bff5db4

Please sign in to comment.