Skip to content

Commit 755433c

Browse files
authored
feat(product_catalog): add load balancer to public and admin catalog api (scaleway#2634)
1 parent b686e0b commit 755433c

File tree

3 files changed

+33
-8
lines changed

3 files changed

+33
-8
lines changed

packages_generated/product_catalog/src/v2alpha1/index.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export type {
3131
PublicCatalogProductPropertiesHardwareRAM,
3232
PublicCatalogProductPropertiesHardwareStorage,
3333
PublicCatalogProductPropertiesInstance,
34+
PublicCatalogProductPropertiesLoadBalancer,
3435
PublicCatalogProductPropertiesManagedInference,
3536
PublicCatalogProductPropertiesObjectStorage,
3637
PublicCatalogProductStatus,

packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import type {
1515
PublicCatalogProductPropertiesGenerativeApis,
1616
PublicCatalogProductPropertiesHardware,
1717
PublicCatalogProductPropertiesInstance,
18+
PublicCatalogProductPropertiesLoadBalancer,
1819
PublicCatalogProductPropertiesManagedInference,
1920
PublicCatalogProductPropertiesObjectStorage,
2021
PublicCatalogProductEnvironmentalImpactEstimation,
@@ -223,6 +224,17 @@ const unmarshalPublicCatalogProductPropertiesInstance = (data: unknown): PublicC
223224
} as PublicCatalogProductPropertiesInstance
224225
}
225226

227+
const unmarshalPublicCatalogProductPropertiesLoadBalancer = (data: unknown): PublicCatalogProductPropertiesLoadBalancer => {
228+
if (!isJSONObject(data)) {
229+
throw new TypeError(
230+
`Unmarshalling the type 'PublicCatalogProductPropertiesLoadBalancer' failed as data isn't a dictionary.`,
231+
)
232+
}
233+
234+
return {
235+
} as PublicCatalogProductPropertiesLoadBalancer
236+
}
237+
226238
const unmarshalPublicCatalogProductPropertiesManagedInference = (data: unknown): PublicCatalogProductPropertiesManagedInference => {
227239
if (!isJSONObject(data)) {
228240
throw new TypeError(
@@ -301,6 +313,7 @@ const unmarshalPublicCatalogProductProperties = (data: unknown): PublicCatalogPr
301313
generativeApis: data.generative_apis ? unmarshalPublicCatalogProductPropertiesGenerativeApis(data.generative_apis) : undefined,
302314
hardware: data.hardware ? unmarshalPublicCatalogProductPropertiesHardware(data.hardware) : undefined,
303315
instance: data.instance ? unmarshalPublicCatalogProductPropertiesInstance(data.instance) : undefined,
316+
loadBalancer: data.load_balancer ? unmarshalPublicCatalogProductPropertiesLoadBalancer(data.load_balancer) : undefined,
304317
managedInference: data.managed_inference ? unmarshalPublicCatalogProductPropertiesManagedInference(data.managed_inference) : undefined,
305318
objectStorage: data.object_storage ? unmarshalPublicCatalogProductPropertiesObjectStorage(data.object_storage) : undefined,
306319
} as PublicCatalogProductProperties

packages_generated/product_catalog/src/v2alpha1/types.gen.ts

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export type ListPublicCatalogProductsRequestProductType =
1313
| 'object_storage'
1414
| 'managed_inference'
1515
| 'generative_apis'
16+
| 'load_balancer'
1617

1718
export type ListPublicCatalogProductsRequestStatus =
1819
| 'unknown_status'
@@ -314,6 +315,10 @@ export interface PublicCatalogProductPropertiesInstance {
314315
}
315316

316317

318+
export interface PublicCatalogProductPropertiesLoadBalancer {
319+
}
320+
321+
317322
export interface PublicCatalogProductPropertiesManagedInference {
318323
/**
319324
* The name of the associated instance GPU to this node type.
@@ -376,51 +381,57 @@ export interface PublicCatalogProductProperties {
376381
/**
377382
* The properties of Dedibox products.
378383
*
379-
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis' could be set.
384+
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
380385
*/
381386
dedibox?: PublicCatalogProductPropertiesDedibox
382387
/**
383388
* The properties of Elastic Metal products.
384389
*
385-
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis' could be set.
390+
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
386391
*/
387392
elasticMetal?: PublicCatalogProductPropertiesElasticMetal
388393
/**
389394
* The properties of Apple Silicon products.
390395
*
391-
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis' could be set.
396+
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
392397
*/
393398
appleSilicon?: PublicCatalogProductPropertiesAppleSilicon
394399
/**
395400
* The properties of Instance products.
396401
*
397-
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis' could be set.
402+
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
398403
*/
399404
instance?: PublicCatalogProductPropertiesInstance
400405
/**
401406
* The properties of Block Storage products.
402407
*
403-
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis' could be set.
408+
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
404409
*/
405410
blockStorage?: PublicCatalogProductPropertiesBlockStorage
406411
/**
407412
* The properties of Object Storage products.
408413
*
409-
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis' could be set.
414+
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
410415
*/
411416
objectStorage?: PublicCatalogProductPropertiesObjectStorage
412417
/**
413418
* The properties of Managed Inference products.
414419
*
415-
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis' could be set.
420+
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
416421
*/
417422
managedInference?: PublicCatalogProductPropertiesManagedInference
418423
/**
419424
* The properties of Generative APIs products.
420425
*
421-
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis' could be set.
426+
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
422427
*/
423428
generativeApis?: PublicCatalogProductPropertiesGenerativeApis
429+
/**
430+
* The properties of Load Balancer products.
431+
*
432+
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
433+
*/
434+
loadBalancer?: PublicCatalogProductPropertiesLoadBalancer
424435
}
425436

426437

0 commit comments

Comments
 (0)