diff --git a/.manifest.json b/.manifest.json index 629e4c3..54c9af9 100644 --- a/.manifest.json +++ b/.manifest.json @@ -1,10 +1,10 @@ { - "liblabVersion": "2.5.0", - "date": "2024-10-01T05:14:01.395Z", + "liblabVersion": "2.5.1", + "date": "2024-10-04T04:24:23.969Z", "config": { - "apiId": 1228, + "apiId": 1252, "sdkName": "salad-cloud-sdk", - "sdkVersion": "0.9.0-alpha.5", + "sdkVersion": "0.9.0-alpha.6", "liblabVersion": "2", "deliveryMethods": ["zip"], "languages": ["typescript"], @@ -26,7 +26,7 @@ "homepage": "https://github.com/saladtechnologies/salad-cloud-sdk-dotnet", "ignoreFiles": [".gitignore", "./LICENSE"], "liblabVersion": "2", - "sdkVersion": "0.9.0-alpha.4", + "sdkVersion": "0.9.0-alpha.5", "targetBranch": "main" }, "go": { @@ -34,7 +34,7 @@ "githubRepoName": "salad-cloud-sdk-go", "ignoreFiles": [".gitignore", "./LICENSE"], "liblabVersion": "2", - "sdkVersion": "0.9.0-alpha.4", + "sdkVersion": "0.9.0-alpha.5", "targetBranch": "main" }, "java": { @@ -58,7 +58,7 @@ "homepage": "https://github.com/saladtechnologies/salad-cloud-sdk-java", "ignoreFiles": [".gitignore", "./LICENSE"], "liblabVersion": "2", - "sdkVersion": "0.9.0-alpha.5", + "sdkVersion": "0.9.0-alpha.6", "targetBranch": "main" }, "python": { @@ -101,7 +101,7 @@ "githubRepoName": "salad-cloud-sdk-python", "ignoreFiles": [".gitignore", "./LICENSE"], "liblabVersion": "2", - "sdkVersion": "0.9.0-alpha.4", + "sdkVersion": "0.9.0-alpha.5", "targetBranch": "main" }, "terraform": { @@ -138,7 +138,7 @@ "homepage": "https://github.com/saladtechnologies/salad-cloud-sdk-javascript", "ignoreFiles": [".gitignore", "./LICENSE"], "liblabVersion": "2", - "sdkVersion": "0.9.0-alpha.5", + "sdkVersion": "0.9.0-alpha.6", "targetBranch": "main", "generateEnumAs": "enum" } @@ -233,7 +233,7 @@ } ], "apiName": "SaladCloud API", - "apiVersion": "0.9.0-alpha.4", + "apiVersion": "0.9.0-alpha.5", "authentication": { "apiKey": { "header": "Salad-Api-Key" @@ -369,6 +369,7 @@ "src/services/common/container-group-status.ts", "src/services/common/container-group-instance-status-count.ts", "src/services/common/container-networking-protocol.ts", + "src/services/common/container-group-networking-load-balancer.ts", "src/services/common/container-group-probe-tcp.ts", "src/services/common/container-group-probe-http.ts", "src/services/common/container-group-probe-grpc.ts", @@ -394,6 +395,7 @@ "src/services/container-groups/models/registry-authentication-aws-ecr-1.ts", "src/services/container-groups/models/registry-authentication-docker-hub-1.ts", "src/services/container-groups/models/registry-authentication-gcp-gar-1.ts", + "src/services/container-groups/models/create-container-group-networking-load-balancer.ts", "src/services/container-groups/models/update-container.ts", "src/services/container-groups/models/update-container-group-networking.ts", "src/services/container-groups/models/resources.ts", @@ -517,7 +519,6 @@ "documentation/models/ContainerRestartPolicy.md", "documentation/models/ContainerGroupState.md", "documentation/models/CountryCode.md", - "documentation/models/ContainerGroupNetworking.md", "documentation/models/ContainerGroupLivenessProbe.md", "documentation/models/ContainerGroupReadinessProbe.md", "documentation/models/ContainerGroupStartupProbe.md", @@ -534,7 +535,6 @@ "documentation/models/ContainerGroupProbeExec.md", "documentation/models/ContainerProbeHttpScheme.md", "documentation/models/ContainerGroupProbeHttpHeaders2.md", - "documentation/models/CreateContainerGroupNetworking.md", "documentation/models/UpdateContainerGroupNetworking.md", "documentation/models/WorkloadError.md", "documentation/models/ContainerGroupsQuotas.md", @@ -553,6 +553,8 @@ "documentation/models/ContainerGroupInstance.md", "documentation/models/QueueJob.md", "documentation/models/InferenceEndpointJob.md", + "documentation/models/ContainerGroupNetworking.md", + "documentation/models/CreateContainerGroupNetworking.md", "documentation/models/QueueJobEvent.md", "documentation/models/InferenceEndpointJobEvent.md", "documentation/services/WorkloadErrorsService.md", diff --git a/README.md b/README.md index a49ca89..71ee569 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# SaladCloudSdk TypeScript SDK 0.9.0-alpha.5 +# SaladCloudSdk TypeScript SDK 0.9.0-alpha.6 Welcome to the SaladCloudSdk SDK documentation. This guide will help you get started with integrating and using the SaladCloudSdk SDK in your project. ## Versions -- API version: `0.9.0-alpha.4` -- SDK version: `0.9.0-alpha.5` +- API version: `0.9.0-alpha.5` +- SDK version: `0.9.0-alpha.6` ## About the API @@ -79,7 +79,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; apiKey: 'YOUR_API_KEY', }); - const { data } = await saladCloudSdk.quotas.getQuotas('whf3imgjjp6z8'); + const { data } = await saladCloudSdk.quotas.getQuotas('oecson4k2eclxr'); console.log(data); })(); diff --git a/documentation/models/ContainerGroupNetworking.md b/documentation/models/ContainerGroupNetworking.md index e4edd7d..44d3ccb 100644 --- a/documentation/models/ContainerGroupNetworking.md +++ b/documentation/models/ContainerGroupNetworking.md @@ -4,9 +4,22 @@ Represents container group networking parameters **Properties** -| Name | Type | Required | Description | -| :------- | :-------------------------- | :------- | :---------- | -| protocol | ContainerNetworkingProtocol | ✅ | | -| port | number | ✅ | | -| auth | boolean | ✅ | | -| dns | string | ✅ | | +| Name | Type | Required | Description | +| :-------------------- | :----------------------------------- | :------- | :---------- | +| protocol | ContainerNetworkingProtocol | ✅ | | +| port | number | ✅ | | +| auth | boolean | ✅ | | +| dns | string | ✅ | | +| loadBalancer | ContainerGroupNetworkingLoadBalancer | ❌ | | +| singleConnectionLimit | boolean | ❌ | | +| clientRequestTimeout | number | ❌ | | +| serverResponseTimeout | number | ❌ | | + +# ContainerGroupNetworkingLoadBalancer + +**Properties** + +| Name | Type | Required | Description | +| :----------------------- | :----- | :------- | :---------------------------- | +| ROUNDROBIN | string | ✅ | "round_robin" | +| LEASTNUMBEROFCONNECTIONS | string | ✅ | "least_number_of_connections" | diff --git a/documentation/models/CreateContainerGroupNetworking.md b/documentation/models/CreateContainerGroupNetworking.md index 8a670a8..744d772 100644 --- a/documentation/models/CreateContainerGroupNetworking.md +++ b/documentation/models/CreateContainerGroupNetworking.md @@ -4,8 +4,21 @@ Represents container group networking parameters **Properties** -| Name | Type | Required | Description | -| :------- | :-------------------------- | :------- | :---------- | -| protocol | ContainerNetworkingProtocol | ✅ | | -| port | number | ✅ | | -| auth | boolean | ✅ | | +| Name | Type | Required | Description | +| :-------------------- | :----------------------------------------- | :------- | :---------- | +| protocol | ContainerNetworkingProtocol | ✅ | | +| port | number | ✅ | | +| auth | boolean | ✅ | | +| loadBalancer | CreateContainerGroupNetworkingLoadBalancer | ❌ | | +| singleConnectionLimit | boolean | ❌ | | +| clientRequestTimeout | number | ❌ | | +| serverResponseTimeout | number | ❌ | | + +# CreateContainerGroupNetworkingLoadBalancer + +**Properties** + +| Name | Type | Required | Description | +| :----------------------- | :----- | :------- | :---------------------------- | +| ROUNDROBIN | string | ✅ | "round_robin" | +| LEASTNUMBEROFCONNECTIONS | string | ✅ | "least_number_of_connections" | diff --git a/documentation/models/UpdateContainerGroup.md b/documentation/models/UpdateContainerGroup.md index 97a33d0..8d21b08 100644 --- a/documentation/models/UpdateContainerGroup.md +++ b/documentation/models/UpdateContainerGroup.md @@ -4,13 +4,14 @@ Represents a request to update a container group **Properties** -| Name | Type | Required | Description | -| :------------- | :----------------------------- | :------- | :---------------------------------------------------------------------------------------------- | -| displayName | string | ❌ | | -| container | UpdateContainer | ❌ | Represents an update container object | -| replicas | number | ❌ | | -| countryCodes | CountryCode[] | ❌ | List of countries nodes must be located in. Remove this field to permit nodes from any country. | -| networking | UpdateContainerGroupNetworking | ❌ | Represents update container group networking parameters | -| livenessProbe | ContainerGroupLivenessProbe | ❌ | Represents the container group liveness probe | -| readinessProbe | ContainerGroupReadinessProbe | ❌ | Represents the container group readiness probe | -| startupProbe | ContainerGroupStartupProbe | ❌ | Represents the container group startup probe | +| Name | Type | Required | Description | +| :-------------- | :----------------------------- | :------- | :---------------------------------------------------------------------------------------------- | +| displayName | string | ❌ | | +| container | UpdateContainer | ❌ | Represents an update container object | +| replicas | number | ❌ | | +| countryCodes | CountryCode[] | ❌ | List of countries nodes must be located in. Remove this field to permit nodes from any country. | +| networking | UpdateContainerGroupNetworking | ❌ | Represents update container group networking parameters | +| livenessProbe | ContainerGroupLivenessProbe | ❌ | Represents the container group liveness probe | +| readinessProbe | ContainerGroupReadinessProbe | ❌ | Represents the container group readiness probe | +| startupProbe | ContainerGroupStartupProbe | ❌ | Represents the container group startup probe | +| queueAutoscaler | QueueAutoscaler | ❌ | Represents the autoscaling rules for a queue | diff --git a/documentation/services/ContainerGroupsService.md b/documentation/services/ContainerGroupsService.md index f7a81bc..b6d7436 100644 --- a/documentation/services/ContainerGroupsService.md +++ b/documentation/services/ContainerGroupsService.md @@ -46,8 +46,8 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.listContainerGroups( - 'e5qcczec2y8bnwc4gs8q6aeebojnkc8rl8-7pysy62j25cdo2sjh0v34w5-1', - 't63jxnxh38ckz48-k1ecuzzv5yl-0z8ql-v1qf-186n1', + 'v50imwzgi4em4q035', + 'm6yw3-xm60cb7tiev8rketqiiwjepibzf2ust1cvjx8oua8mepeueo5-1', ); console.log(data); @@ -96,18 +96,18 @@ import { }); const containerResourceRequirements: ContainerResourceRequirements = { - cpu: 14, - memory: 12545, + cpu: 10, + memory: 35273, gpuClasses: ['gpu_classes'], - storageAmount: 43583020808, + storageAmount: 32391110488, }; const containerGroupPriority = ContainerGroupPriority.HIGH; const loggingAxiom2: LoggingAxiom2 = { - host: 'elit labore ut veniam in', - apiToken: 'non', - dataset: 'laboris tempor mollit', + host: 'irure ut eiusmod velit incididunt', + apiToken: 'deserunt aute cillum dolor occaecat', + dataset: 'exercitation sit', }; const datadogTags2: DatadogTags2 = { @@ -116,24 +116,24 @@ import { }; const loggingDatadog2: LoggingDatadog2 = { - host: 'mollit', - apiKey: 'officia', + host: 'sunt consequat irure fugiat', + apiKey: 'magna', tags: [datadogTags2], }; const loggingNewRelic2: LoggingNewRelic2 = { - host: 'aute id eiusmod esse', - ingestionKey: 'incididunt dolor', + host: 'quis aute in id proident', + ingestionKey: 'aliqua enim pariatur', }; const loggingSplunk2: LoggingSplunk2 = { - host: 'qui', - token: 'ullamco ipsum eu elit', + host: 'ad', + token: 'irure velit labore nostrud elit', }; const loggingTcp2: LoggingTcp2 = { - host: 'culpa quis aute ad aliqua', - port: 23455, + host: 'fugiat do', + port: 1272, }; const httpFormat2 = HttpFormat2.JSON; @@ -146,8 +146,8 @@ import { const httpCompression2 = HttpCompression2.NONE; const loggingHttp2: LoggingHttp2 = { - host: 'ullamco aliquip dolor anim est', - port: 61288, + host: 'cillum', + port: 21241, user: 'user', password: 'password', path: 'path', @@ -197,7 +197,7 @@ import { }; const createContainer: CreateContainer = { - image: 'minim occaecat deserunt', + image: 'reprehenderit', resources: containerResourceRequirements, command: ['command'], priority: containerGroupPriority, @@ -212,14 +212,20 @@ import { const containerNetworkingProtocol = ContainerNetworkingProtocol.HTTP; + const createContainerGroupNetworkingLoadBalancer = CreateContainerGroupNetworkingLoadBalancer.ROUNDROBIN; + const createContainerGroupNetworking: CreateContainerGroupNetworking = { protocol: containerNetworkingProtocol, - port: 10849, + port: 43901, auth: true, + loadBalancer: createContainerGroupNetworkingLoadBalancer, + singleConnectionLimit: true, + clientRequestTimeout: 100000, + serverResponseTimeout: 100000, }; const containerGroupProbeTcp: ContainerGroupProbeTcp = { - port: 54514, + port: 61900, }; const containerProbeHttpScheme = ContainerProbeHttpScheme.HTTP; @@ -231,14 +237,14 @@ import { const containerGroupProbeHttp: ContainerGroupProbeHttp = { path: 'path', - port: 23676, + port: 58759, scheme: containerProbeHttpScheme, headers: [containerGroupProbeHttpHeaders2], }; const containerGroupProbeGrpc: ContainerGroupProbeGrpc = { service: 'service', - port: 29979, + port: 32748, }; const containerGroupProbeExec: ContainerGroupProbeExec = { @@ -250,7 +256,7 @@ import { http: containerGroupProbeHttp, grpc: containerGroupProbeGrpc, exec: containerGroupProbeExec, - initialDelaySeconds: 9, + initialDelaySeconds: 6, periodSeconds: 10, timeoutSeconds: 30, successThreshold: 1, @@ -262,7 +268,7 @@ import { http: containerGroupProbeHttp, grpc: containerGroupProbeGrpc, exec: containerGroupProbeExec, - initialDelaySeconds: 123, + initialDelaySeconds: 4, periodSeconds: 1, timeoutSeconds: 1, successThreshold: 1, @@ -274,7 +280,7 @@ import { http: containerGroupProbeHttp, grpc: containerGroupProbeGrpc, exec: containerGroupProbeExec, - initialDelaySeconds: 6, + initialDelaySeconds: 10, periodSeconds: 3, timeoutSeconds: 10, successThreshold: 2, @@ -282,27 +288,27 @@ import { }; const containerGroupQueueConnection: ContainerGroupQueueConnection = { - path: 'fugiat deserunt eu et', - port: 54021, - queueName: 'lhjtb', + path: 'pariatur Ut aliqua irure', + port: 34903, + queueName: 'nz26lyemw7nednorlqjlsihb3', }; const queueAutoscaler: QueueAutoscaler = { - minReplicas: 42, - maxReplicas: 249, - desiredQueueLength: 21, - pollingPeriod: 1183, - maxUpscalePerMinute: 54, - maxDownscalePerMinute: 71, + minReplicas: 96, + maxReplicas: 190, + desiredQueueLength: 42, + pollingPeriod: 684, + maxUpscalePerMinute: 95, + maxDownscalePerMinute: 10, }; const createContainerGroup: CreateContainerGroup = { - name: 'n4pmjpl-v1ax9xqfzcvrc7mgqfff4pyapsn5bpfu5tn1dw9fek4', - displayName: 'Ji', + name: 'xvih', + displayName: 'INce5LCTy', container: createContainer, autostartPolicy: true, restartPolicy: containerRestartPolicy, - replicas: 250, + replicas: 12, countryCodes: [countryCode], networking: createContainerGroupNetworking, livenessProbe: containerGroupLivenessProbe, @@ -313,8 +319,8 @@ import { }; const { data } = await saladCloudSdk.containerGroups.createContainerGroup( - 'e5qcczec2y8bnwc4gs8q6aeebojnkc8rl8-7pysy62j25cdo2sjh0v34w5-1', - 't63jxnxh38ckz48-k1ecuzzv5yl-0z8ql-v1qf-186n1', + 'v50imwzgi4em4q035', + 'm6yw3-xm60cb7tiev8rketqiiwjepibzf2ust1cvjx8oua8mepeueo5-1', input, ); @@ -352,9 +358,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.getContainerGroup( - 'ph8bjget2tyh4q9ni9h81tilnlnf4', - 'fr38a8vv5h4lnt5rb91fzs3spaw4grzs1ulr8elj96ymws1tye1i8h22kawxrq', - 'xstvu-n3wkzvsf8j09617fgmalxezwfpc5tx4o5964ih0i5w146fxc3k0i', + 'oji7lyvxb3ca5hc', + 'olb1uzytbhhukf1u0-ahl0b9oqfjj', + 's7z7dvdopv2czgde1zrufxgiv5tp-j', ); console.log(data); @@ -389,6 +395,7 @@ import { ContainerGroupReadinessProbe, ContainerGroupStartupProbe, CountryCode, + QueueAutoscaler, SaladCloudSdk, UpdateContainer, UpdateContainerGroup, @@ -401,18 +408,18 @@ import { }); const resources: Resources = { - cpu: 8, - memory: 5273, + cpu: 3, + memory: 14678, gpuClasses: ['gpu_classes'], - storageAmount: 37062578686, + storageAmount: 47984533464, }; const containerGroupPriority = ContainerGroupPriority.HIGH; const loggingAxiom3: LoggingAxiom3 = { - host: 'culpa tempor commodo nisi in', - apiToken: 'id', - dataset: 'sed', + host: 'aute veniam exercitation eiusmod et', + apiToken: 'mollit', + dataset: 'nisi in Lorem', }; const datadogTags3: DatadogTags3 = { @@ -421,24 +428,24 @@ import { }; const loggingDatadog3: LoggingDatadog3 = { - host: 'mollit Duis eu in', - apiKey: 'non Lorem', + host: 'velit officia consequat', + apiKey: 'sit in veniam', tags: [datadogTags3], }; const loggingNewRelic3: LoggingNewRelic3 = { - host: 'et do culpa', - ingestionKey: 'laborum incididunt cupidatat', + host: 'consequat sed', + ingestionKey: 'tempor exercitation', }; const loggingSplunk3: LoggingSplunk3 = { - host: 'veniam laborum sunt commodo ut', - token: 'ea', + host: 'qui enim Ut nostrud deserunt', + token: 'cillum sint ullamco veniam occaecat', }; const loggingTcp3: LoggingTcp3 = { - host: 'esse cillum incididunt', - port: 41713, + host: 'Ut amet', + port: 30110, }; const httpFormat3 = HttpFormat3.JSON; @@ -451,8 +458,8 @@ import { const httpCompression3 = HttpCompression3.NONE; const loggingHttp3: LoggingHttp3 = { - host: 'adipisicing nulla in', - port: 31817, + host: 'eiusmod labore proident sit ut', + port: 17490, user: 'user', password: 'password', path: 'path', @@ -502,7 +509,7 @@ import { }; const updateContainer: UpdateContainer = { - image: 'aliquip magna Lorem nostrud ex', + image: 'labore', resources: resources, command: ['command'], priority: containerGroupPriority, @@ -514,11 +521,11 @@ import { const countryCode = CountryCode.AF; const updateContainerGroupNetworking: UpdateContainerGroupNetworking = { - port: 43599, + port: 35022, }; const containerGroupProbeTcp: ContainerGroupProbeTcp = { - port: 54514, + port: 61900, }; const containerProbeHttpScheme = ContainerProbeHttpScheme.HTTP; @@ -530,14 +537,14 @@ import { const containerGroupProbeHttp: ContainerGroupProbeHttp = { path: 'path', - port: 23676, + port: 58759, scheme: containerProbeHttpScheme, headers: [containerGroupProbeHttpHeaders2], }; const containerGroupProbeGrpc: ContainerGroupProbeGrpc = { service: 'service', - port: 29979, + port: 32748, }; const containerGroupProbeExec: ContainerGroupProbeExec = { @@ -549,7 +556,7 @@ import { http: containerGroupProbeHttp, grpc: containerGroupProbeGrpc, exec: containerGroupProbeExec, - initialDelaySeconds: 9, + initialDelaySeconds: 6, periodSeconds: 10, timeoutSeconds: 30, successThreshold: 1, @@ -561,7 +568,7 @@ import { http: containerGroupProbeHttp, grpc: containerGroupProbeGrpc, exec: containerGroupProbeExec, - initialDelaySeconds: 123, + initialDelaySeconds: 4, periodSeconds: 1, timeoutSeconds: 1, successThreshold: 1, @@ -573,28 +580,38 @@ import { http: containerGroupProbeHttp, grpc: containerGroupProbeGrpc, exec: containerGroupProbeExec, - initialDelaySeconds: 6, + initialDelaySeconds: 10, periodSeconds: 3, timeoutSeconds: 10, successThreshold: 2, failureThreshold: 1200, }; + const queueAutoscaler: QueueAutoscaler = { + minReplicas: 96, + maxReplicas: 190, + desiredQueueLength: 42, + pollingPeriod: 684, + maxUpscalePerMinute: 95, + maxDownscalePerMinute: 10, + }; + const updateContainerGroup: UpdateContainerGroup = { - displayName: '8tFedWzDhyM', + displayName: '01n75', container: updateContainer, - replicas: 32, + replicas: 232, countryCodes: [countryCode], networking: updateContainerGroupNetworking, livenessProbe: containerGroupLivenessProbe, readinessProbe: containerGroupReadinessProbe, startupProbe: containerGroupStartupProbe, + queueAutoscaler: queueAutoscaler, }; const { data } = await saladCloudSdk.containerGroups.updateContainerGroup( - 'ph8bjget2tyh4q9ni9h81tilnlnf4', - 'fr38a8vv5h4lnt5rb91fzs3spaw4grzs1ulr8elj96ymws1tye1i8h22kawxrq', - 'xstvu-n3wkzvsf8j09617fgmalxezwfpc5tx4o5964ih0i5w146fxc3k0i', + 'oji7lyvxb3ca5hc', + 'olb1uzytbhhukf1u0-ahl0b9oqfjj', + 's7z7dvdopv2czgde1zrufxgiv5tp-j', input, ); @@ -628,9 +645,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.deleteContainerGroup( - 'ph8bjget2tyh4q9ni9h81tilnlnf4', - 'fr38a8vv5h4lnt5rb91fzs3spaw4grzs1ulr8elj96ymws1tye1i8h22kawxrq', - 'xstvu-n3wkzvsf8j09617fgmalxezwfpc5tx4o5964ih0i5w146fxc3k0i', + 'oji7lyvxb3ca5hc', + 'olb1uzytbhhukf1u0-ahl0b9oqfjj', + 's7z7dvdopv2czgde1zrufxgiv5tp-j', ); console.log(data); @@ -663,9 +680,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.startContainerGroup( - 'ppw00apvowm2uk3ia7vi9jlaex78t719g', - 'gf-7ed', - 'jmguhpzfluex6-1ksn8mw9', + 'jfybnugpd6', + 'jngr', + 'vjne2vq5j0d2m4f21ex5ozb1-4j-you0d7uftlpfgcaqa-2oc58y844mz', ); console.log(data); @@ -698,9 +715,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.stopContainerGroup( - 'akn0y-5uryou3umpp3jva-wgcda23a08440n-ew1-q', - 'im', - 'd9iq2qrkhhpqc1ii57w5xgt26suu70u1qechp', + 'jpqhlkkgd', + 'a9h5upyur493wxwbxrj4xt9wfx07sgyz1fs97sfhtue78-54vd', + 'jp2qrcnt-8a3', ); console.log(data); @@ -737,9 +754,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.listContainerGroupInstances( - 'x9apf4t0-uai3sdl150pq-zx5u-9-j', - 'bz4mp1vscg2wjxeuemfxcv-ue7tm-bp-8n1hvh8fnv7mx285iuup332rpaf', - 'shaiuchf2q8kkg3dsgwkty0ap7uq2b1ex4akekgljza8i9375vs22d352n', + 'kjhy3jn2rdf012fi7ouno3mk-ax4d0ajj5ajjquzeg-z3kvqxtnoxnlzhi', + 'ft-8nawc40o0gqev-m', + 'jpy8af-s7rq68p2lenu', ); console.log(data); @@ -777,9 +794,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.getContainerGroupInstance( - 'bsf7v', - 'ulau11f5g2zdmdpxhrfzhv7x3dhck87lv8-z-v', - 'efzk8ea2roe6yryt0-t1885dp762ut0igkfak4jbmum3tb50ov', + 'a09xnu6-fkv3', + 'ca4ydy-pi16e4ddle58fi8u9w2qgnsgj7cn', + 'b4p90a72aagy0fz', 'container_group_instance_id', ); @@ -814,9 +831,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.reallocateContainerGroupInstance( - 'cq7z43vbdm-ym2fjvtwvm3kubeomi0c157pyuvzjd-oj09gh', - 'rxoh7290af1yiwyo8xtgc4vo', - 'wsr245-lzbbnxajonfxep9ngo2h6p4ol', + 'sws1rwna83a3asu0izd6ugn07m5xpcp89lefemdke05z4s9d', + 'ed2caksvlhpzmfccbh2v7dcapp3enb9gd2f4k49vviu53s5', + 'xkwwnw', 'container_group_instance_id', ); @@ -851,9 +868,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.recreateContainerGroupInstance( - 'dqryzs0nwtgem9', - 's1kzoxeehf59gi91ttsn9ueh4r0udym74yor3eg40ckc', - 'r227v3cr3', + 'm-gfjsmt', + 'qljdg4', + 'nzzyoj4pl2kuh4c67m3ae7qwlwipkdye-ad90-cq0up7kyr6', 'container_group_instance_id', ); @@ -888,9 +905,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.restartContainerGroupInstance( - 'x2hb606akllhe-z9w578p05ni', - 'czv80xtiift-dhcux3behoqegicbjgytvavm7ngiki6uxl76eoewg5dgz5g', - 'f3mzshp', + 'pb', + 'dvb96iwcvlvvm1n', + 'ngljb', 'container_group_instance_id', ); diff --git a/documentation/services/InferenceEndpointsService.md b/documentation/services/InferenceEndpointsService.md index a8b2820..f0b253f 100644 --- a/documentation/services/InferenceEndpointsService.md +++ b/documentation/services/InferenceEndpointsService.md @@ -41,10 +41,10 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.inferenceEndpoints.listInferenceEndpoints( - 'i5u5k7xmi1ci3kyzzon0m2iedxbj3f1dok1g0m6v2k19i504j7b03k36na', + 'wtxd1j0ixuhfk-hdff3n3-hbtsigyh53bt0g4gjh8mcz4', { - page: 667517848, - pageSize: 57, + page: 121822981, + pageSize: 37, }, ); @@ -80,10 +80,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; apiKey: 'YOUR_API_KEY', }); - const { data } = await saladCloudSdk.inferenceEndpoints.getInferenceEndpoint( - 'n105g5q9gikagcvo7dpwux-krg92vnpjufzlqmuslyrcl8dptvbpd', - 'fugi', - ); + const { data } = await saladCloudSdk.inferenceEndpoints.getInferenceEndpoint('u5ke3wy-5gl1809s8so', 'et tempor sint'); console.log(data); })(); @@ -120,11 +117,11 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.inferenceEndpoints.getInferenceEndpointJobs( - 'zsmxeaksea26my28jd3tcl', - 'laboris ullamco cillum', + 'yg0u13rmnwb7eyumc25lm4prwopvwr-1961f', + 'consectetur occaecat', { - page: 862733444, - pageSize: 21, + page: 355955712, + pageSize: 39, }, ); @@ -168,8 +165,8 @@ import { CreateInferenceEndpointJob, SaladCloudSdk } from '@saladtechnologies-os }; const { data } = await saladCloudSdk.inferenceEndpoints.createInferenceEndpointJob( - 'zsmxeaksea26my28jd3tcl', - 'laboris ullamco cillum', + 'yg0u13rmnwb7eyumc25lm4prwopvwr-1961f', + 'consectetur occaecat', input, ); @@ -207,8 +204,8 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.inferenceEndpoints.getInferenceEndpointJob( - 'nh-xfk5b5evdjkgcjj9-97upvvnm6un-9x5riyyqnyl5q38', - 'elit te', + 'kdhvnhwadaqzuh18', + 'eiusmod dolore do', 'inference_endpoint_job_id', ); @@ -242,8 +239,8 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.inferenceEndpoints.deleteInferenceEndpointJob( - 'nh-xfk5b5evdjkgcjj9-97upvvnm6un-9x5riyyqnyl5q38', - 'elit te', + 'kdhvnhwadaqzuh18', + 'eiusmod dolore do', 'inference_endpoint_job_id', ); diff --git a/documentation/services/OrganizationDataService.md b/documentation/services/OrganizationDataService.md index dbc47fe..4a45b89 100644 --- a/documentation/services/OrganizationDataService.md +++ b/documentation/services/OrganizationDataService.md @@ -33,7 +33,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; apiKey: 'YOUR_API_KEY', }); - const { data } = await saladCloudSdk.organizationData.listGpuClasses('v6ar0hao97kx'); + const { data } = await saladCloudSdk.organizationData.listGpuClasses('vsg-okxas9m7y892q4m5rifzmevenpg1vot8xgbal'); console.log(data); })(); diff --git a/documentation/services/QueuesService.md b/documentation/services/QueuesService.md index 1b13905..5994a8f 100644 --- a/documentation/services/QueuesService.md +++ b/documentation/services/QueuesService.md @@ -42,7 +42,10 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; apiKey: 'YOUR_API_KEY', }); - const { data } = await saladCloudSdk.queues.listQueues('v2321xyb8mgby4oaz0nnednrzwspo5e', 'uqcz1p0g5ye7j57a'); + const { data } = await saladCloudSdk.queues.listQueues( + 'xtp82b9jzwqov1insghigvfq0donadhrrdqx-2redu46g7e', + 'xk27gbnpmwk5xor49bk4ujk7', + ); console.log(data); })(); @@ -78,12 +81,16 @@ import { CreateQueue, SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-s }); const createQueue: CreateQueue = { - name: 'qezkr2369ic05v6gnnllg6fhb-84kitkca0jy309-oh27ro0i5p95v4le', - displayName: 'IR', - description: 'consequat nulla magna minim ad', + name: 'ho4d79h7bg0vpngqc8hz5pxjwi', + displayName: 'IWPKHVWPTc', + description: 'aliqua id nostrud', }; - const { data } = await saladCloudSdk.queues.createQueue('v2321xyb8mgby4oaz0nnednrzwspo5e', 'uqcz1p0g5ye7j57a', input); + const { data } = await saladCloudSdk.queues.createQueue( + 'xtp82b9jzwqov1insghigvfq0donadhrrdqx-2redu46g7e', + 'xk27gbnpmwk5xor49bk4ujk7', + input, + ); console.log(data); })(); @@ -119,9 +126,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.queues.getQueue( - 'ljj6uqmy01xsg7k5n8fhpr0uia1-28ec6ahk-1s6u-51xn', - 'jzq0i9u27d9qsg6qsygfg', - 'd7iy1tktkoepudefqkf47dv60kqzd3q1v', + 'bb5wprcvb9628akhug9lnd2', + 'bw-4bdb9jsi-f1xex70mdgjf5n-5ua-e28xyu9ujbls0vsy', + 'wilo12xl52y9c178cmdya6ykpby-hunb0b6s7s2l', ); console.log(data); @@ -159,14 +166,14 @@ import { SaladCloudSdk, UpdateQueue } from '@saladtechnologies-oss/salad-cloud-s }); const updateQueue: UpdateQueue = { - displayName: 'wfoWE', - description: 'aliqua in sit', + displayName: 'O5Yf2', + description: 'cupidatat', }; const { data } = await saladCloudSdk.queues.updateQueue( - 'ljj6uqmy01xsg7k5n8fhpr0uia1-28ec6ahk-1s6u-51xn', - 'jzq0i9u27d9qsg6qsygfg', - 'd7iy1tktkoepudefqkf47dv60kqzd3q1v', + 'bb5wprcvb9628akhug9lnd2', + 'bw-4bdb9jsi-f1xex70mdgjf5n-5ua-e28xyu9ujbls0vsy', + 'wilo12xl52y9c178cmdya6ykpby-hunb0b6s7s2l', input, ); @@ -200,9 +207,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.queues.deleteQueue( - 'ljj6uqmy01xsg7k5n8fhpr0uia1-28ec6ahk-1s6u-51xn', - 'jzq0i9u27d9qsg6qsygfg', - 'd7iy1tktkoepudefqkf47dv60kqzd3q1v', + 'bb5wprcvb9628akhug9lnd2', + 'bw-4bdb9jsi-f1xex70mdgjf5n-5ua-e28xyu9ujbls0vsy', + 'wilo12xl52y9c178cmdya6ykpby-hunb0b6s7s2l', ); console.log(data); @@ -241,12 +248,12 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.queues.listQueueJobs( - 'caw0rzpy61pt90mpd37q4adxw-cgodal6rzqd6z1mw1si55p9gl6eb4zgl', - 'd6wezcp8h3lm398az1xa5dcxhbrhwkxlx3lw0pdkr3o5', - 'jknzh2tjfasx0nsa3dsbwz4m6an9wbi5', + 'wcaz2jbu5pfmpygxffsf4bh4e6', + 'dzh9lv6afpamv8cx0x6', + 's9f4ikmr0j6c3n18n4djttkqmgzb46dd5wogzrfe2pq12s2', { - page: 1762690379, - pageSize: 100, + page: 706148771, + pageSize: 45, }, ); @@ -291,9 +298,9 @@ import { CreateQueueJob, SaladCloudSdk } from '@saladtechnologies-oss/salad-clou }; const { data } = await saladCloudSdk.queues.createQueueJob( - 'caw0rzpy61pt90mpd37q4adxw-cgodal6rzqd6z1mw1si55p9gl6eb4zgl', - 'd6wezcp8h3lm398az1xa5dcxhbrhwkxlx3lw0pdkr3o5', - 'jknzh2tjfasx0nsa3dsbwz4m6an9wbi5', + 'wcaz2jbu5pfmpygxffsf4bh4e6', + 'dzh9lv6afpamv8cx0x6', + 's9f4ikmr0j6c3n18n4djttkqmgzb46dd5wogzrfe2pq12s2', input, ); @@ -331,12 +338,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; apiKey: 'YOUR_API_KEY', }); - const { data } = await saladCloudSdk.queues.getQueueJob( - 'qfyxrcpjzz', - 'u68mnowwsycakrj2ndjibysiw6', - 'qw8v11op7e4dq1ckmwu5v289qp5d1ln00phm2', - 'queue_job_id', - ); + const { data } = await saladCloudSdk.queues.getQueueJob('zm-jv', 'tq26', 'je5dpzbgsk8gvp', 'queue_job_id'); console.log(data); })(); @@ -368,12 +370,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; apiKey: 'YOUR_API_KEY', }); - const { data } = await saladCloudSdk.queues.deleteQueueJob( - 'qfyxrcpjzz', - 'u68mnowwsycakrj2ndjibysiw6', - 'qw8v11op7e4dq1ckmwu5v289qp5d1ln00phm2', - 'queue_job_id', - ); + const { data } = await saladCloudSdk.queues.deleteQueueJob('zm-jv', 'tq26', 'je5dpzbgsk8gvp', 'queue_job_id'); console.log(data); })(); diff --git a/documentation/services/QuotasService.md b/documentation/services/QuotasService.md index ccc817d..79e1391 100644 --- a/documentation/services/QuotasService.md +++ b/documentation/services/QuotasService.md @@ -33,7 +33,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; apiKey: 'YOUR_API_KEY', }); - const { data } = await saladCloudSdk.quotas.getQuotas('whf3imgjjp6z8'); + const { data } = await saladCloudSdk.quotas.getQuotas('oecson4k2eclxr'); console.log(data); })(); diff --git a/documentation/services/WebhookSecretKeyService.md b/documentation/services/WebhookSecretKeyService.md index 3bcb551..8513729 100644 --- a/documentation/services/WebhookSecretKeyService.md +++ b/documentation/services/WebhookSecretKeyService.md @@ -35,7 +35,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.webhookSecretKey.getWebhookSecretKey( - 'sqxjgqhc7gu8nezs4j9l1xu8ic3cjd45207kimcabvi76n8', + 'mouv4w914sp420zyiuo43jexocjzq6rnxf04dqmccakipx9g3a72svbj', ); console.log(data); @@ -70,7 +70,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.webhookSecretKey.updateWebhookSecretKey( - 'sqxjgqhc7gu8nezs4j9l1xu8ic3cjd45207kimcabvi76n8', + 'mouv4w914sp420zyiuo43jexocjzq6rnxf04dqmccakipx9g3a72svbj', ); console.log(data); diff --git a/documentation/services/WorkloadErrorsService.md b/documentation/services/WorkloadErrorsService.md index 494cebd..efa91c6 100644 --- a/documentation/services/WorkloadErrorsService.md +++ b/documentation/services/WorkloadErrorsService.md @@ -36,9 +36,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.workloadErrors.getWorkloadErrors( - 'mpqq7xwg32lxlhjn2dh8g4ria4k5sfrzd-3pdeog4', - 'r4egwx3g9mbcmuyxmxxkxqv-nsi3p0ihren6', - 'h3cozmla70brzt', + 'x4hd7xmy53wgq8mpuy5k2wfbbzlhws5edt3sje', + 'hug6abtk-ewjq1594j27m6u1whmqikj9f18pd', + 'lq52i317o2r8pje-v4-ccp8q-329szw31h4fee236', ); console.log(data); diff --git a/documentation/snippets/organizations-{organization_name}-gpu-classes-get.md b/documentation/snippets/organizations-{organization_name}-gpu-classes-get.md index 5dff418..a623be9 100644 --- a/documentation/snippets/organizations-{organization_name}-gpu-classes-get.md +++ b/documentation/snippets/organizations-{organization_name}-gpu-classes-get.md @@ -6,7 +6,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; apiKey: 'YOUR_API_KEY', }); - const { data } = await saladCloudSdk.organizationData.listGpuClasses('v6ar0hao97kx'); + const { data } = await saladCloudSdk.organizationData.listGpuClasses('vsg-okxas9m7y892q4m5rifzmevenpg1vot8xgbal'); console.log(data); })(); diff --git a/documentation/snippets/organizations-{organization_name}-inference-endpoints-get.md b/documentation/snippets/organizations-{organization_name}-inference-endpoints-get.md index d49685b..cfa17ec 100644 --- a/documentation/snippets/organizations-{organization_name}-inference-endpoints-get.md +++ b/documentation/snippets/organizations-{organization_name}-inference-endpoints-get.md @@ -7,10 +7,10 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.inferenceEndpoints.listInferenceEndpoints( - 'i5u5k7xmi1ci3kyzzon0m2iedxbj3f1dok1g0m6v2k19i504j7b03k36na', + 'wtxd1j0ixuhfk-hdff3n3-hbtsigyh53bt0g4gjh8mcz4', { - page: 667517848, - pageSize: 57, + page: 121822981, + pageSize: 37, }, ); diff --git a/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-get.md b/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-get.md index 1d19377..79f91a0 100644 --- a/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-get.md +++ b/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-get.md @@ -6,10 +6,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; apiKey: 'YOUR_API_KEY', }); - const { data } = await saladCloudSdk.inferenceEndpoints.getInferenceEndpoint( - 'n105g5q9gikagcvo7dpwux-krg92vnpjufzlqmuslyrcl8dptvbpd', - 'fugi', - ); + const { data } = await saladCloudSdk.inferenceEndpoints.getInferenceEndpoint('u5ke3wy-5gl1809s8so', 'et tempor sint'); console.log(data); })(); diff --git a/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-get.md b/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-get.md index f7bc217..1af568c 100644 --- a/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-get.md +++ b/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-get.md @@ -7,11 +7,11 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.inferenceEndpoints.getInferenceEndpointJobs( - 'zsmxeaksea26my28jd3tcl', - 'laboris ullamco cillum', + 'yg0u13rmnwb7eyumc25lm4prwopvwr-1961f', + 'consectetur occaecat', { - page: 862733444, - pageSize: 21, + page: 355955712, + pageSize: 39, }, ); diff --git a/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-post.md b/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-post.md index 70a67d3..99f199b 100644 --- a/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-post.md +++ b/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-post.md @@ -13,8 +13,8 @@ import { CreateInferenceEndpointJob, SaladCloudSdk } from '@saladtechnologies-os }; const { data } = await saladCloudSdk.inferenceEndpoints.createInferenceEndpointJob( - 'zsmxeaksea26my28jd3tcl', - 'laboris ullamco cillum', + 'yg0u13rmnwb7eyumc25lm4prwopvwr-1961f', + 'consectetur occaecat', input, ); diff --git a/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-{inference_endpoint_job_id}-delete.md b/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-{inference_endpoint_job_id}-delete.md index c4182b0..56a8eb0 100644 --- a/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-{inference_endpoint_job_id}-delete.md +++ b/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-{inference_endpoint_job_id}-delete.md @@ -7,8 +7,8 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.inferenceEndpoints.deleteInferenceEndpointJob( - 'nh-xfk5b5evdjkgcjj9-97upvvnm6un-9x5riyyqnyl5q38', - 'elit te', + 'kdhvnhwadaqzuh18', + 'eiusmod dolore do', 'inference_endpoint_job_id', ); diff --git a/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-{inference_endpoint_job_id}-get.md b/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-{inference_endpoint_job_id}-get.md index 6ccf07f..624ee58 100644 --- a/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-{inference_endpoint_job_id}-get.md +++ b/documentation/snippets/organizations-{organization_name}-inference-endpoints-{inference_endpoint_name}-jobs-{inference_endpoint_job_id}-get.md @@ -7,8 +7,8 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.inferenceEndpoints.getInferenceEndpointJob( - 'nh-xfk5b5evdjkgcjj9-97upvvnm6un-9x5riyyqnyl5q38', - 'elit te', + 'kdhvnhwadaqzuh18', + 'eiusmod dolore do', 'inference_endpoint_job_id', ); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-get.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-get.md index f7829c6..ab6bf5f 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-get.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-get.md @@ -7,8 +7,8 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.listContainerGroups( - 'e5qcczec2y8bnwc4gs8q6aeebojnkc8rl8-7pysy62j25cdo2sjh0v34w5-1', - 't63jxnxh38ckz48-k1ecuzzv5yl-0z8ql-v1qf-186n1', + 'v50imwzgi4em4q035', + 'm6yw3-xm60cb7tiev8rketqiiwjepibzf2ust1cvjx8oua8mepeueo5-1', ); console.log(data); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-post.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-post.md index 81d381b..5238c5f 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-post.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-post.md @@ -19,18 +19,18 @@ import { }); const containerResourceRequirements: ContainerResourceRequirements = { - cpu: 14, - memory: 12545, + cpu: 10, + memory: 35273, gpuClasses: ['gpu_classes'], - storageAmount: 43583020808, + storageAmount: 32391110488, }; const containerGroupPriority = ContainerGroupPriority.HIGH; const loggingAxiom2: LoggingAxiom2 = { - host: 'elit labore ut veniam in', - apiToken: 'non', - dataset: 'laboris tempor mollit', + host: 'irure ut eiusmod velit incididunt', + apiToken: 'deserunt aute cillum dolor occaecat', + dataset: 'exercitation sit', }; const datadogTags2: DatadogTags2 = { @@ -39,24 +39,24 @@ import { }; const loggingDatadog2: LoggingDatadog2 = { - host: 'mollit', - apiKey: 'officia', + host: 'sunt consequat irure fugiat', + apiKey: 'magna', tags: [datadogTags2], }; const loggingNewRelic2: LoggingNewRelic2 = { - host: 'aute id eiusmod esse', - ingestionKey: 'incididunt dolor', + host: 'quis aute in id proident', + ingestionKey: 'aliqua enim pariatur', }; const loggingSplunk2: LoggingSplunk2 = { - host: 'qui', - token: 'ullamco ipsum eu elit', + host: 'ad', + token: 'irure velit labore nostrud elit', }; const loggingTcp2: LoggingTcp2 = { - host: 'culpa quis aute ad aliqua', - port: 23455, + host: 'fugiat do', + port: 1272, }; const httpFormat2 = HttpFormat2.JSON; @@ -69,8 +69,8 @@ import { const httpCompression2 = HttpCompression2.NONE; const loggingHttp2: LoggingHttp2 = { - host: 'ullamco aliquip dolor anim est', - port: 61288, + host: 'cillum', + port: 21241, user: 'user', password: 'password', path: 'path', @@ -120,7 +120,7 @@ import { }; const createContainer: CreateContainer = { - image: 'minim occaecat deserunt', + image: 'reprehenderit', resources: containerResourceRequirements, command: ['command'], priority: containerGroupPriority, @@ -135,14 +135,20 @@ import { const containerNetworkingProtocol = ContainerNetworkingProtocol.HTTP; + const createContainerGroupNetworkingLoadBalancer = CreateContainerGroupNetworkingLoadBalancer.ROUNDROBIN; + const createContainerGroupNetworking: CreateContainerGroupNetworking = { protocol: containerNetworkingProtocol, - port: 10849, + port: 43901, auth: true, + loadBalancer: createContainerGroupNetworkingLoadBalancer, + singleConnectionLimit: true, + clientRequestTimeout: 100000, + serverResponseTimeout: 100000, }; const containerGroupProbeTcp: ContainerGroupProbeTcp = { - port: 54514, + port: 61900, }; const containerProbeHttpScheme = ContainerProbeHttpScheme.HTTP; @@ -154,14 +160,14 @@ import { const containerGroupProbeHttp: ContainerGroupProbeHttp = { path: 'path', - port: 23676, + port: 58759, scheme: containerProbeHttpScheme, headers: [containerGroupProbeHttpHeaders2], }; const containerGroupProbeGrpc: ContainerGroupProbeGrpc = { service: 'service', - port: 29979, + port: 32748, }; const containerGroupProbeExec: ContainerGroupProbeExec = { @@ -173,7 +179,7 @@ import { http: containerGroupProbeHttp, grpc: containerGroupProbeGrpc, exec: containerGroupProbeExec, - initialDelaySeconds: 9, + initialDelaySeconds: 6, periodSeconds: 10, timeoutSeconds: 30, successThreshold: 1, @@ -185,7 +191,7 @@ import { http: containerGroupProbeHttp, grpc: containerGroupProbeGrpc, exec: containerGroupProbeExec, - initialDelaySeconds: 123, + initialDelaySeconds: 4, periodSeconds: 1, timeoutSeconds: 1, successThreshold: 1, @@ -197,7 +203,7 @@ import { http: containerGroupProbeHttp, grpc: containerGroupProbeGrpc, exec: containerGroupProbeExec, - initialDelaySeconds: 6, + initialDelaySeconds: 10, periodSeconds: 3, timeoutSeconds: 10, successThreshold: 2, @@ -205,27 +211,27 @@ import { }; const containerGroupQueueConnection: ContainerGroupQueueConnection = { - path: 'fugiat deserunt eu et', - port: 54021, - queueName: 'lhjtb', + path: 'pariatur Ut aliqua irure', + port: 34903, + queueName: 'nz26lyemw7nednorlqjlsihb3', }; const queueAutoscaler: QueueAutoscaler = { - minReplicas: 42, - maxReplicas: 249, - desiredQueueLength: 21, - pollingPeriod: 1183, - maxUpscalePerMinute: 54, - maxDownscalePerMinute: 71, + minReplicas: 96, + maxReplicas: 190, + desiredQueueLength: 42, + pollingPeriod: 684, + maxUpscalePerMinute: 95, + maxDownscalePerMinute: 10, }; const createContainerGroup: CreateContainerGroup = { - name: 'n4pmjpl-v1ax9xqfzcvrc7mgqfff4pyapsn5bpfu5tn1dw9fek4', - displayName: 'Ji', + name: 'xvih', + displayName: 'INce5LCTy', container: createContainer, autostartPolicy: true, restartPolicy: containerRestartPolicy, - replicas: 250, + replicas: 12, countryCodes: [countryCode], networking: createContainerGroupNetworking, livenessProbe: containerGroupLivenessProbe, @@ -236,8 +242,8 @@ import { }; const { data } = await saladCloudSdk.containerGroups.createContainerGroup( - 'e5qcczec2y8bnwc4gs8q6aeebojnkc8rl8-7pysy62j25cdo2sjh0v34w5-1', - 't63jxnxh38ckz48-k1ecuzzv5yl-0z8ql-v1qf-186n1', + 'v50imwzgi4em4q035', + 'm6yw3-xm60cb7tiev8rketqiiwjepibzf2ust1cvjx8oua8mepeueo5-1', input, ); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-delete.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-delete.md index 32eb6b4..a208d8d 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-delete.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-delete.md @@ -7,9 +7,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.deleteContainerGroup( - 'ph8bjget2tyh4q9ni9h81tilnlnf4', - 'fr38a8vv5h4lnt5rb91fzs3spaw4grzs1ulr8elj96ymws1tye1i8h22kawxrq', - 'xstvu-n3wkzvsf8j09617fgmalxezwfpc5tx4o5964ih0i5w146fxc3k0i', + 'oji7lyvxb3ca5hc', + 'olb1uzytbhhukf1u0-ahl0b9oqfjj', + 's7z7dvdopv2czgde1zrufxgiv5tp-j', ); console.log(data); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-errors-get.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-errors-get.md index 36d80b9..c7c0e33 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-errors-get.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-errors-get.md @@ -7,9 +7,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.workloadErrors.getWorkloadErrors( - 'mpqq7xwg32lxlhjn2dh8g4ria4k5sfrzd-3pdeog4', - 'r4egwx3g9mbcmuyxmxxkxqv-nsi3p0ihren6', - 'h3cozmla70brzt', + 'x4hd7xmy53wgq8mpuy5k2wfbbzlhws5edt3sje', + 'hug6abtk-ewjq1594j27m6u1whmqikj9f18pd', + 'lq52i317o2r8pje-v4-ccp8q-329szw31h4fee236', ); console.log(data); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-get.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-get.md index f8c6129..05d74ac 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-get.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-get.md @@ -7,9 +7,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.getContainerGroup( - 'ph8bjget2tyh4q9ni9h81tilnlnf4', - 'fr38a8vv5h4lnt5rb91fzs3spaw4grzs1ulr8elj96ymws1tye1i8h22kawxrq', - 'xstvu-n3wkzvsf8j09617fgmalxezwfpc5tx4o5964ih0i5w146fxc3k0i', + 'oji7lyvxb3ca5hc', + 'olb1uzytbhhukf1u0-ahl0b9oqfjj', + 's7z7dvdopv2czgde1zrufxgiv5tp-j', ); console.log(data); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-get.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-get.md index ff9bc4b..9c1abb1 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-get.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-get.md @@ -7,9 +7,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.listContainerGroupInstances( - 'x9apf4t0-uai3sdl150pq-zx5u-9-j', - 'bz4mp1vscg2wjxeuemfxcv-ue7tm-bp-8n1hvh8fnv7mx285iuup332rpaf', - 'shaiuchf2q8kkg3dsgwkty0ap7uq2b1ex4akekgljza8i9375vs22d352n', + 'kjhy3jn2rdf012fi7ouno3mk-ax4d0ajj5ajjquzeg-z3kvqxtnoxnlzhi', + 'ft-8nawc40o0gqev-m', + 'jpy8af-s7rq68p2lenu', ); console.log(data); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-get.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-get.md index ffcdf89..9cf74c7 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-get.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-get.md @@ -7,9 +7,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.getContainerGroupInstance( - 'bsf7v', - 'ulau11f5g2zdmdpxhrfzhv7x3dhck87lv8-z-v', - 'efzk8ea2roe6yryt0-t1885dp762ut0igkfak4jbmum3tb50ov', + 'a09xnu6-fkv3', + 'ca4ydy-pi16e4ddle58fi8u9w2qgnsgj7cn', + 'b4p90a72aagy0fz', 'container_group_instance_id', ); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-reallocate-post.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-reallocate-post.md index 9827627..f93ad8b 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-reallocate-post.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-reallocate-post.md @@ -7,9 +7,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.reallocateContainerGroupInstance( - 'cq7z43vbdm-ym2fjvtwvm3kubeomi0c157pyuvzjd-oj09gh', - 'rxoh7290af1yiwyo8xtgc4vo', - 'wsr245-lzbbnxajonfxep9ngo2h6p4ol', + 'sws1rwna83a3asu0izd6ugn07m5xpcp89lefemdke05z4s9d', + 'ed2caksvlhpzmfccbh2v7dcapp3enb9gd2f4k49vviu53s5', + 'xkwwnw', 'container_group_instance_id', ); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-recreate-post.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-recreate-post.md index 177cbcd..5e8adca 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-recreate-post.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-recreate-post.md @@ -7,9 +7,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.recreateContainerGroupInstance( - 'dqryzs0nwtgem9', - 's1kzoxeehf59gi91ttsn9ueh4r0udym74yor3eg40ckc', - 'r227v3cr3', + 'm-gfjsmt', + 'qljdg4', + 'nzzyoj4pl2kuh4c67m3ae7qwlwipkdye-ad90-cq0up7kyr6', 'container_group_instance_id', ); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-restart-post.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-restart-post.md index 715f714..96708ae 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-restart-post.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-instances-{container_group_instance_id}-restart-post.md @@ -7,9 +7,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.restartContainerGroupInstance( - 'x2hb606akllhe-z9w578p05ni', - 'czv80xtiift-dhcux3behoqegicbjgytvavm7ngiki6uxl76eoewg5dgz5g', - 'f3mzshp', + 'pb', + 'dvb96iwcvlvvm1n', + 'ngljb', 'container_group_instance_id', ); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-patch.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-patch.md index 4d32498..68c4bca 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-patch.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-patch.md @@ -4,6 +4,7 @@ import { ContainerGroupReadinessProbe, ContainerGroupStartupProbe, CountryCode, + QueueAutoscaler, SaladCloudSdk, UpdateContainer, UpdateContainerGroup, @@ -16,18 +17,18 @@ import { }); const resources: Resources = { - cpu: 8, - memory: 5273, + cpu: 3, + memory: 14678, gpuClasses: ['gpu_classes'], - storageAmount: 37062578686, + storageAmount: 47984533464, }; const containerGroupPriority = ContainerGroupPriority.HIGH; const loggingAxiom3: LoggingAxiom3 = { - host: 'culpa tempor commodo nisi in', - apiToken: 'id', - dataset: 'sed', + host: 'aute veniam exercitation eiusmod et', + apiToken: 'mollit', + dataset: 'nisi in Lorem', }; const datadogTags3: DatadogTags3 = { @@ -36,24 +37,24 @@ import { }; const loggingDatadog3: LoggingDatadog3 = { - host: 'mollit Duis eu in', - apiKey: 'non Lorem', + host: 'velit officia consequat', + apiKey: 'sit in veniam', tags: [datadogTags3], }; const loggingNewRelic3: LoggingNewRelic3 = { - host: 'et do culpa', - ingestionKey: 'laborum incididunt cupidatat', + host: 'consequat sed', + ingestionKey: 'tempor exercitation', }; const loggingSplunk3: LoggingSplunk3 = { - host: 'veniam laborum sunt commodo ut', - token: 'ea', + host: 'qui enim Ut nostrud deserunt', + token: 'cillum sint ullamco veniam occaecat', }; const loggingTcp3: LoggingTcp3 = { - host: 'esse cillum incididunt', - port: 41713, + host: 'Ut amet', + port: 30110, }; const httpFormat3 = HttpFormat3.JSON; @@ -66,8 +67,8 @@ import { const httpCompression3 = HttpCompression3.NONE; const loggingHttp3: LoggingHttp3 = { - host: 'adipisicing nulla in', - port: 31817, + host: 'eiusmod labore proident sit ut', + port: 17490, user: 'user', password: 'password', path: 'path', @@ -117,7 +118,7 @@ import { }; const updateContainer: UpdateContainer = { - image: 'aliquip magna Lorem nostrud ex', + image: 'labore', resources: resources, command: ['command'], priority: containerGroupPriority, @@ -129,11 +130,11 @@ import { const countryCode = CountryCode.AF; const updateContainerGroupNetworking: UpdateContainerGroupNetworking = { - port: 43599, + port: 35022, }; const containerGroupProbeTcp: ContainerGroupProbeTcp = { - port: 54514, + port: 61900, }; const containerProbeHttpScheme = ContainerProbeHttpScheme.HTTP; @@ -145,14 +146,14 @@ import { const containerGroupProbeHttp: ContainerGroupProbeHttp = { path: 'path', - port: 23676, + port: 58759, scheme: containerProbeHttpScheme, headers: [containerGroupProbeHttpHeaders2], }; const containerGroupProbeGrpc: ContainerGroupProbeGrpc = { service: 'service', - port: 29979, + port: 32748, }; const containerGroupProbeExec: ContainerGroupProbeExec = { @@ -164,7 +165,7 @@ import { http: containerGroupProbeHttp, grpc: containerGroupProbeGrpc, exec: containerGroupProbeExec, - initialDelaySeconds: 9, + initialDelaySeconds: 6, periodSeconds: 10, timeoutSeconds: 30, successThreshold: 1, @@ -176,7 +177,7 @@ import { http: containerGroupProbeHttp, grpc: containerGroupProbeGrpc, exec: containerGroupProbeExec, - initialDelaySeconds: 123, + initialDelaySeconds: 4, periodSeconds: 1, timeoutSeconds: 1, successThreshold: 1, @@ -188,28 +189,38 @@ import { http: containerGroupProbeHttp, grpc: containerGroupProbeGrpc, exec: containerGroupProbeExec, - initialDelaySeconds: 6, + initialDelaySeconds: 10, periodSeconds: 3, timeoutSeconds: 10, successThreshold: 2, failureThreshold: 1200, }; + const queueAutoscaler: QueueAutoscaler = { + minReplicas: 96, + maxReplicas: 190, + desiredQueueLength: 42, + pollingPeriod: 684, + maxUpscalePerMinute: 95, + maxDownscalePerMinute: 10, + }; + const updateContainerGroup: UpdateContainerGroup = { - displayName: '8tFedWzDhyM', + displayName: '01n75', container: updateContainer, - replicas: 32, + replicas: 232, countryCodes: [countryCode], networking: updateContainerGroupNetworking, livenessProbe: containerGroupLivenessProbe, readinessProbe: containerGroupReadinessProbe, startupProbe: containerGroupStartupProbe, + queueAutoscaler: queueAutoscaler, }; const { data } = await saladCloudSdk.containerGroups.updateContainerGroup( - 'ph8bjget2tyh4q9ni9h81tilnlnf4', - 'fr38a8vv5h4lnt5rb91fzs3spaw4grzs1ulr8elj96ymws1tye1i8h22kawxrq', - 'xstvu-n3wkzvsf8j09617fgmalxezwfpc5tx4o5964ih0i5w146fxc3k0i', + 'oji7lyvxb3ca5hc', + 'olb1uzytbhhukf1u0-ahl0b9oqfjj', + 's7z7dvdopv2czgde1zrufxgiv5tp-j', input, ); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-start-post.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-start-post.md index 2da0c74..5235ee7 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-start-post.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-start-post.md @@ -7,9 +7,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.startContainerGroup( - 'ppw00apvowm2uk3ia7vi9jlaex78t719g', - 'gf-7ed', - 'jmguhpzfluex6-1ksn8mw9', + 'jfybnugpd6', + 'jngr', + 'vjne2vq5j0d2m4f21ex5ozb1-4j-you0d7uftlpfgcaqa-2oc58y844mz', ); console.log(data); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-stop-post.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-stop-post.md index 61940d1..4f5b2d6 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-stop-post.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-containers-{container_group_name}-stop-post.md @@ -7,9 +7,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.containerGroups.stopContainerGroup( - 'akn0y-5uryou3umpp3jva-wgcda23a08440n-ew1-q', - 'im', - 'd9iq2qrkhhpqc1ii57w5xgt26suu70u1qechp', + 'jpqhlkkgd', + 'a9h5upyur493wxwbxrj4xt9wfx07sgyz1fs97sfhtue78-54vd', + 'jp2qrcnt-8a3', ); console.log(data); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-get.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-get.md index 374f859..126655b 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-get.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-get.md @@ -6,7 +6,10 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; apiKey: 'YOUR_API_KEY', }); - const { data } = await saladCloudSdk.queues.listQueues('v2321xyb8mgby4oaz0nnednrzwspo5e', 'uqcz1p0g5ye7j57a'); + const { data } = await saladCloudSdk.queues.listQueues( + 'xtp82b9jzwqov1insghigvfq0donadhrrdqx-2redu46g7e', + 'xk27gbnpmwk5xor49bk4ujk7', + ); console.log(data); })(); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-post.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-post.md index e453e25..dc1ff49 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-post.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-post.md @@ -7,12 +7,16 @@ import { CreateQueue, SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-s }); const createQueue: CreateQueue = { - name: 'qezkr2369ic05v6gnnllg6fhb-84kitkca0jy309-oh27ro0i5p95v4le', - displayName: 'IR', - description: 'consequat nulla magna minim ad', + name: 'ho4d79h7bg0vpngqc8hz5pxjwi', + displayName: 'IWPKHVWPTc', + description: 'aliqua id nostrud', }; - const { data } = await saladCloudSdk.queues.createQueue('v2321xyb8mgby4oaz0nnednrzwspo5e', 'uqcz1p0g5ye7j57a', input); + const { data } = await saladCloudSdk.queues.createQueue( + 'xtp82b9jzwqov1insghigvfq0donadhrrdqx-2redu46g7e', + 'xk27gbnpmwk5xor49bk4ujk7', + input, + ); console.log(data); })(); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-delete.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-delete.md index e74d896..4205668 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-delete.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-delete.md @@ -7,9 +7,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.queues.deleteQueue( - 'ljj6uqmy01xsg7k5n8fhpr0uia1-28ec6ahk-1s6u-51xn', - 'jzq0i9u27d9qsg6qsygfg', - 'd7iy1tktkoepudefqkf47dv60kqzd3q1v', + 'bb5wprcvb9628akhug9lnd2', + 'bw-4bdb9jsi-f1xex70mdgjf5n-5ua-e28xyu9ujbls0vsy', + 'wilo12xl52y9c178cmdya6ykpby-hunb0b6s7s2l', ); console.log(data); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-get.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-get.md index 0e4a4a8..49bda3c 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-get.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-get.md @@ -7,9 +7,9 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.queues.getQueue( - 'ljj6uqmy01xsg7k5n8fhpr0uia1-28ec6ahk-1s6u-51xn', - 'jzq0i9u27d9qsg6qsygfg', - 'd7iy1tktkoepudefqkf47dv60kqzd3q1v', + 'bb5wprcvb9628akhug9lnd2', + 'bw-4bdb9jsi-f1xex70mdgjf5n-5ua-e28xyu9ujbls0vsy', + 'wilo12xl52y9c178cmdya6ykpby-hunb0b6s7s2l', ); console.log(data); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-get.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-get.md index 3c25ba6..9dc0ad5 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-get.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-get.md @@ -7,12 +7,12 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.queues.listQueueJobs( - 'caw0rzpy61pt90mpd37q4adxw-cgodal6rzqd6z1mw1si55p9gl6eb4zgl', - 'd6wezcp8h3lm398az1xa5dcxhbrhwkxlx3lw0pdkr3o5', - 'jknzh2tjfasx0nsa3dsbwz4m6an9wbi5', + 'wcaz2jbu5pfmpygxffsf4bh4e6', + 'dzh9lv6afpamv8cx0x6', + 's9f4ikmr0j6c3n18n4djttkqmgzb46dd5wogzrfe2pq12s2', { - page: 1762690379, - pageSize: 100, + page: 706148771, + pageSize: 45, }, ); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-post.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-post.md index 52887a8..0723653 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-post.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-post.md @@ -13,9 +13,9 @@ import { CreateQueueJob, SaladCloudSdk } from '@saladtechnologies-oss/salad-clou }; const { data } = await saladCloudSdk.queues.createQueueJob( - 'caw0rzpy61pt90mpd37q4adxw-cgodal6rzqd6z1mw1si55p9gl6eb4zgl', - 'd6wezcp8h3lm398az1xa5dcxhbrhwkxlx3lw0pdkr3o5', - 'jknzh2tjfasx0nsa3dsbwz4m6an9wbi5', + 'wcaz2jbu5pfmpygxffsf4bh4e6', + 'dzh9lv6afpamv8cx0x6', + 's9f4ikmr0j6c3n18n4djttkqmgzb46dd5wogzrfe2pq12s2', input, ); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-{queue_job_id}-delete.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-{queue_job_id}-delete.md index 38f4c49..a805b24 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-{queue_job_id}-delete.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-{queue_job_id}-delete.md @@ -6,12 +6,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; apiKey: 'YOUR_API_KEY', }); - const { data } = await saladCloudSdk.queues.deleteQueueJob( - 'qfyxrcpjzz', - 'u68mnowwsycakrj2ndjibysiw6', - 'qw8v11op7e4dq1ckmwu5v289qp5d1ln00phm2', - 'queue_job_id', - ); + const { data } = await saladCloudSdk.queues.deleteQueueJob('zm-jv', 'tq26', 'je5dpzbgsk8gvp', 'queue_job_id'); console.log(data); })(); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-{queue_job_id}-get.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-{queue_job_id}-get.md index f264416..ea94807 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-{queue_job_id}-get.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-jobs-{queue_job_id}-get.md @@ -6,12 +6,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; apiKey: 'YOUR_API_KEY', }); - const { data } = await saladCloudSdk.queues.getQueueJob( - 'qfyxrcpjzz', - 'u68mnowwsycakrj2ndjibysiw6', - 'qw8v11op7e4dq1ckmwu5v289qp5d1ln00phm2', - 'queue_job_id', - ); + const { data } = await saladCloudSdk.queues.getQueueJob('zm-jv', 'tq26', 'je5dpzbgsk8gvp', 'queue_job_id'); console.log(data); })(); diff --git a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-patch.md b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-patch.md index 136b377..abd9039 100644 --- a/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-patch.md +++ b/documentation/snippets/organizations-{organization_name}-projects-{project_name}-queues-{queue_name}-patch.md @@ -7,14 +7,14 @@ import { SaladCloudSdk, UpdateQueue } from '@saladtechnologies-oss/salad-cloud-s }); const updateQueue: UpdateQueue = { - displayName: 'wfoWE', - description: 'aliqua in sit', + displayName: 'O5Yf2', + description: 'cupidatat', }; const { data } = await saladCloudSdk.queues.updateQueue( - 'ljj6uqmy01xsg7k5n8fhpr0uia1-28ec6ahk-1s6u-51xn', - 'jzq0i9u27d9qsg6qsygfg', - 'd7iy1tktkoepudefqkf47dv60kqzd3q1v', + 'bb5wprcvb9628akhug9lnd2', + 'bw-4bdb9jsi-f1xex70mdgjf5n-5ua-e28xyu9ujbls0vsy', + 'wilo12xl52y9c178cmdya6ykpby-hunb0b6s7s2l', input, ); diff --git a/documentation/snippets/organizations-{organization_name}-quotas-get.md b/documentation/snippets/organizations-{organization_name}-quotas-get.md index 13e4db8..d5a5010 100644 --- a/documentation/snippets/organizations-{organization_name}-quotas-get.md +++ b/documentation/snippets/organizations-{organization_name}-quotas-get.md @@ -6,7 +6,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; apiKey: 'YOUR_API_KEY', }); - const { data } = await saladCloudSdk.quotas.getQuotas('whf3imgjjp6z8'); + const { data } = await saladCloudSdk.quotas.getQuotas('oecson4k2eclxr'); console.log(data); })(); diff --git a/documentation/snippets/organizations-{organization_name}-webhook-secret-key-get.md b/documentation/snippets/organizations-{organization_name}-webhook-secret-key-get.md index 7202cbb..4ebc8dd 100644 --- a/documentation/snippets/organizations-{organization_name}-webhook-secret-key-get.md +++ b/documentation/snippets/organizations-{organization_name}-webhook-secret-key-get.md @@ -7,7 +7,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.webhookSecretKey.getWebhookSecretKey( - 'sqxjgqhc7gu8nezs4j9l1xu8ic3cjd45207kimcabvi76n8', + 'mouv4w914sp420zyiuo43jexocjzq6rnxf04dqmccakipx9g3a72svbj', ); console.log(data); diff --git a/documentation/snippets/organizations-{organization_name}-webhook-secret-key-post.md b/documentation/snippets/organizations-{organization_name}-webhook-secret-key-post.md index c409eda..a35b0a6 100644 --- a/documentation/snippets/organizations-{organization_name}-webhook-secret-key-post.md +++ b/documentation/snippets/organizations-{organization_name}-webhook-secret-key-post.md @@ -7,7 +7,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; }); const { data } = await saladCloudSdk.webhookSecretKey.updateWebhookSecretKey( - 'sqxjgqhc7gu8nezs4j9l1xu8ic3cjd45207kimcabvi76n8', + 'mouv4w914sp420zyiuo43jexocjzq6rnxf04dqmccakipx9g3a72svbj', ); console.log(data); diff --git a/examples/package.json b/examples/package.json index cc7c8ef..3f53f20 100644 --- a/examples/package.json +++ b/examples/package.json @@ -1,6 +1,6 @@ { "name": "salad-cloud-sdk", - "version": "0.9.0-alpha.5", + "version": "0.9.0-alpha.6", "private": true, "dependencies": { "@saladtechnologies-oss/salad-cloud-sdk": "file:../", diff --git a/examples/src/index.ts b/examples/src/index.ts index 0e3c8f0..c748f6e 100644 --- a/examples/src/index.ts +++ b/examples/src/index.ts @@ -5,7 +5,7 @@ import { SaladCloudSdk } from '@saladtechnologies-oss/salad-cloud-sdk'; apiKey: 'YOUR_API_KEY', }); - const { data } = await saladCloudSdk.quotas.getQuotas('whf3imgjjp6z8'); + const { data } = await saladCloudSdk.quotas.getQuotas('oecson4k2eclxr'); console.log(data); })(); diff --git a/package-lock.json b/package-lock.json index 8b1b943..be8dc07 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@saladtechnologies-oss/salad-cloud-sdk", - "version": "0.9.0-alpha.5", + "version": "0.9.0-alpha.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@saladtechnologies-oss/salad-cloud-sdk", - "version": "0.9.0-alpha.5", + "version": "0.9.0-alpha.6", "license": "MIT", "dependencies": { "zod": "3.22.0" diff --git a/package.json b/package.json index d52c6e1..9986bbd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@saladtechnologies-oss/salad-cloud-sdk", - "version": "0.9.0-alpha.5", + "version": "0.9.0-alpha.6", "description": "The SaladCloud REST API. Please refer to the [SaladCloud API Documentation](https://docs.salad.com/api-reference) for more details.", "source": "./src/index.ts", "main": "./dist/index.js", diff --git a/src/http/handlers/request-validation-handler.ts b/src/http/handlers/request-validation-handler.ts index 86f84fe..65c761c 100644 --- a/src/http/handlers/request-validation-handler.ts +++ b/src/http/handlers/request-validation-handler.ts @@ -50,6 +50,14 @@ export class RequestValidationHandler implements RequestHandler { return params.toString(); } + if (typeof body === 'object' && !Array.isArray(body)) { + const params = new URLSearchParams(); + for (const [key, value] of Object.entries(body)) { + params.append(key, value.toString()); + } + return params.toString(); + } + return ''; } diff --git a/src/http/hooks/hook.ts b/src/http/hooks/hook.ts index 946832e..187f519 100644 --- a/src/http/hooks/hook.ts +++ b/src/http/hooks/hook.ts @@ -8,6 +8,7 @@ export interface HttpRequest { body?: BodyInit; abortSignal?: AbortSignal; queryParams: Map; + pathParams: Map; } interface HttpMetadata { diff --git a/src/http/index.ts b/src/http/index.ts index 236a3cf..2578997 100644 --- a/src/http/index.ts +++ b/src/http/index.ts @@ -8,3 +8,4 @@ export type { HttpResponse, } from './types.ts'; export type { HttpError } from './error.ts'; +export type { Environment } from './environment.ts'; diff --git a/src/http/transport/request.ts b/src/http/transport/request.ts index 7d0e10b..3baa842 100644 --- a/src/http/transport/request.ts +++ b/src/http/transport/request.ts @@ -167,17 +167,6 @@ export class Request { this.body = hookRequest.body; } - public toHookRequest(): HttpRequest { - return { - baseUrl: this.baseUrl, - method: this.method, - path: this.path, - headers: this.headers, - body: this.body, - queryParams: this.queryParams, - }; - } - public constructFullUrl(): string { const queryString = new QuerySerializer().serialize(this.queryParams); const path = this.constructPath(); diff --git a/src/http/transport/transport-hook-adapter.ts b/src/http/transport/transport-hook-adapter.ts index 7634368..91c13d9 100644 --- a/src/http/transport/transport-hook-adapter.ts +++ b/src/http/transport/transport-hook-adapter.ts @@ -19,6 +19,7 @@ export class TransportHookAdapter { body: newRequest.body, queryParams: this.hookParamsToTransportParams(newRequest.queryParams, request.queryParams, true), headers: this.hookParamsToTransportParams(newRequest.headers, request.headers, false), + pathParams: this.hookParamsToTransportParams(newRequest.pathParams, request.headers, false), }); return newTransportRequest; @@ -53,6 +54,11 @@ export class TransportHookAdapter { hookQueryParams.set(key, queryParam.value); }); + const hookPathParams: Map = new Map(); + request.pathParams.forEach((pathParam, key) => { + hookPathParams.set(key, pathParam.value); + }); + const hookRequest: HttpRequest = { baseUrl: request.baseUrl, method: request.method, @@ -60,6 +66,7 @@ export class TransportHookAdapter { headers: hookHeaders, body: request.body, queryParams: hookQueryParams, + pathParams: hookPathParams, }; return hookRequest; } diff --git a/src/services/common/container-group-networking-load-balancer.ts b/src/services/common/container-group-networking-load-balancer.ts new file mode 100644 index 0000000..bad2778 --- /dev/null +++ b/src/services/common/container-group-networking-load-balancer.ts @@ -0,0 +1,6 @@ +import { z } from 'zod'; + +export enum ContainerGroupNetworkingLoadBalancer { + ROUNDROBIN = 'round_robin', + LEASTNUMBEROFCONNECTIONS = 'least_number_of_connections', +} diff --git a/src/services/common/container-group-networking.ts b/src/services/common/container-group-networking.ts index 834b6eb..8b90211 100644 --- a/src/services/common/container-group-networking.ts +++ b/src/services/common/container-group-networking.ts @@ -9,6 +9,10 @@ export const containerGroupNetworking = z.lazy(() => { port: z.number().gte(1).lte(65535), auth: z.boolean(), dns: z.string(), + loadBalancer: z.string().optional(), + singleConnectionLimit: z.boolean().optional(), + clientRequestTimeout: z.number().gte(1).lte(100000).optional(), + serverResponseTimeout: z.number().gte(1).lte(100000).optional(), }); }); @@ -19,6 +23,10 @@ export const containerGroupNetworking = z.lazy(() => { * @property {number} * @property {boolean} * @property {string} + * @property {ContainerGroupNetworkingLoadBalancer} + * @property {boolean} + * @property {number} + * @property {number} */ export type ContainerGroupNetworking = z.infer; @@ -33,12 +41,20 @@ export const containerGroupNetworkingResponse = z.lazy(() => { port: z.number().gte(1).lte(65535), auth: z.boolean(), dns: z.string(), + load_balancer: z.string().optional(), + single_connection_limit: z.boolean().optional(), + client_request_timeout: z.number().gte(1).lte(100000).optional(), + server_response_timeout: z.number().gte(1).lte(100000).optional(), }) .transform((data) => ({ protocol: data['protocol'], port: data['port'], auth: data['auth'], dns: data['dns'], + loadBalancer: data['load_balancer'], + singleConnectionLimit: data['single_connection_limit'], + clientRequestTimeout: data['client_request_timeout'], + serverResponseTimeout: data['server_response_timeout'], })); }); @@ -53,11 +69,19 @@ export const containerGroupNetworkingRequest = z.lazy(() => { port: z.number().nullish(), auth: z.boolean().nullish(), dns: z.string().nullish(), + loadBalancer: z.string().nullish(), + singleConnectionLimit: z.boolean().nullish(), + clientRequestTimeout: z.number().nullish(), + serverResponseTimeout: z.number().nullish(), }) .transform((data) => ({ protocol: data['protocol'], port: data['port'], auth: data['auth'], dns: data['dns'], + load_balancer: data['loadBalancer'], + single_connection_limit: data['singleConnectionLimit'], + client_request_timeout: data['clientRequestTimeout'], + server_response_timeout: data['serverResponseTimeout'], })); }); diff --git a/src/services/common/index.ts b/src/services/common/index.ts index 8bb0c55..de4b41e 100644 --- a/src/services/common/index.ts +++ b/src/services/common/index.ts @@ -25,6 +25,7 @@ export { HttpCompression1 } from './http-compression-1'; export { ContainerGroupStatus } from './container-group-status'; export type { ContainerGroupInstanceStatusCount } from './container-group-instance-status-count'; export { ContainerNetworkingProtocol } from './container-networking-protocol'; +export { ContainerGroupNetworkingLoadBalancer } from './container-group-networking-load-balancer'; export type { ContainerGroupProbeTcp } from './container-group-probe-tcp'; export type { ContainerGroupProbeHttp } from './container-group-probe-http'; export type { ContainerGroupProbeGrpc } from './container-group-probe-grpc'; diff --git a/src/services/container-groups/models/create-container-group-networking-load-balancer.ts b/src/services/container-groups/models/create-container-group-networking-load-balancer.ts new file mode 100644 index 0000000..54a3e7a --- /dev/null +++ b/src/services/container-groups/models/create-container-group-networking-load-balancer.ts @@ -0,0 +1,6 @@ +import { z } from 'zod'; + +export enum CreateContainerGroupNetworkingLoadBalancer { + ROUNDROBIN = 'round_robin', + LEASTNUMBEROFCONNECTIONS = 'least_number_of_connections', +} diff --git a/src/services/container-groups/models/create-container-group-networking.ts b/src/services/container-groups/models/create-container-group-networking.ts index 5dda003..f1bff85 100644 --- a/src/services/container-groups/models/create-container-group-networking.ts +++ b/src/services/container-groups/models/create-container-group-networking.ts @@ -8,6 +8,10 @@ export const createContainerGroupNetworking = z.lazy(() => { protocol: z.string(), port: z.number().gte(1).lte(65535), auth: z.boolean(), + loadBalancer: z.string().optional(), + singleConnectionLimit: z.boolean().optional(), + clientRequestTimeout: z.number().gte(1).lte(100000).optional(), + serverResponseTimeout: z.number().gte(1).lte(100000).optional(), }); }); @@ -17,6 +21,10 @@ export const createContainerGroupNetworking = z.lazy(() => { * @property {ContainerNetworkingProtocol} * @property {number} * @property {boolean} + * @property {CreateContainerGroupNetworkingLoadBalancer} + * @property {boolean} + * @property {number} + * @property {number} */ export type CreateContainerGroupNetworking = z.infer; @@ -30,11 +38,19 @@ export const createContainerGroupNetworkingResponse = z.lazy(() => { protocol: z.string(), port: z.number().gte(1).lte(65535), auth: z.boolean(), + load_balancer: z.string().optional(), + single_connection_limit: z.boolean().optional(), + client_request_timeout: z.number().gte(1).lte(100000).optional(), + server_response_timeout: z.number().gte(1).lte(100000).optional(), }) .transform((data) => ({ protocol: data['protocol'], port: data['port'], auth: data['auth'], + loadBalancer: data['load_balancer'], + singleConnectionLimit: data['single_connection_limit'], + clientRequestTimeout: data['client_request_timeout'], + serverResponseTimeout: data['server_response_timeout'], })); }); @@ -44,10 +60,22 @@ export const createContainerGroupNetworkingResponse = z.lazy(() => { */ export const createContainerGroupNetworkingRequest = z.lazy(() => { return z - .object({ protocol: z.string().nullish(), port: z.number().nullish(), auth: z.boolean().nullish() }) + .object({ + protocol: z.string().nullish(), + port: z.number().nullish(), + auth: z.boolean().nullish(), + loadBalancer: z.string().nullish(), + singleConnectionLimit: z.boolean().nullish(), + clientRequestTimeout: z.number().nullish(), + serverResponseTimeout: z.number().nullish(), + }) .transform((data) => ({ protocol: data['protocol'], port: data['port'], auth: data['auth'], + load_balancer: data['loadBalancer'], + single_connection_limit: data['singleConnectionLimit'], + client_request_timeout: data['clientRequestTimeout'], + server_response_timeout: data['serverResponseTimeout'], })); }); diff --git a/src/services/container-groups/models/index.ts b/src/services/container-groups/models/index.ts index 092e920..671381f 100644 --- a/src/services/container-groups/models/index.ts +++ b/src/services/container-groups/models/index.ts @@ -22,6 +22,7 @@ export type { RegistryAuthenticationGcpGcr1 } from './registry-authentication-gc export type { RegistryAuthenticationAwsEcr1 } from './registry-authentication-aws-ecr-1'; export type { RegistryAuthenticationDockerHub1 } from './registry-authentication-docker-hub-1'; export type { RegistryAuthenticationGcpGar1 } from './registry-authentication-gcp-gar-1'; +export { CreateContainerGroupNetworkingLoadBalancer } from './create-container-group-networking-load-balancer'; export type { UpdateContainer } from './update-container'; export type { UpdateContainerGroupNetworking } from './update-container-group-networking'; export type { Resources } from './resources'; diff --git a/src/services/container-groups/models/update-container-group.ts b/src/services/container-groups/models/update-container-group.ts index cde73dc..736ffc5 100644 --- a/src/services/container-groups/models/update-container-group.ts +++ b/src/services/container-groups/models/update-container-group.ts @@ -20,6 +20,7 @@ import { containerGroupStartupProbeRequest, containerGroupStartupProbeResponse, } from '../../common/container-group-startup-probe'; +import { queueAutoscaler, queueAutoscalerRequest, queueAutoscalerResponse } from '../../common/queue-autoscaler'; /** * The shape of the model inside the application code - what the users use @@ -40,6 +41,7 @@ export const updateContainerGroup = z.lazy(() => { livenessProbe: containerGroupLivenessProbe.optional().nullable(), readinessProbe: containerGroupReadinessProbe.optional().nullable(), startupProbe: containerGroupStartupProbe.optional().nullable(), + queueAutoscaler: queueAutoscaler.optional().nullable(), }); }); @@ -54,6 +56,7 @@ export const updateContainerGroup = z.lazy(() => { * @property {ContainerGroupLivenessProbe} - Represents the container group liveness probe * @property {ContainerGroupReadinessProbe} - Represents the container group readiness probe * @property {ContainerGroupStartupProbe} - Represents the container group startup probe + * @property {QueueAutoscaler} - Represents the autoscaling rules for a queue */ export type UpdateContainerGroup = z.infer; @@ -78,6 +81,7 @@ export const updateContainerGroupResponse = z.lazy(() => { liveness_probe: containerGroupLivenessProbeResponse.optional().nullable(), readiness_probe: containerGroupReadinessProbeResponse.optional().nullable(), startup_probe: containerGroupStartupProbeResponse.optional().nullable(), + queue_autoscaler: queueAutoscalerResponse.optional().nullable(), }) .transform((data) => ({ displayName: data['display_name'], @@ -88,6 +92,7 @@ export const updateContainerGroupResponse = z.lazy(() => { livenessProbe: data['liveness_probe'], readinessProbe: data['readiness_probe'], startupProbe: data['startup_probe'], + queueAutoscaler: data['queue_autoscaler'], })); }); @@ -106,6 +111,7 @@ export const updateContainerGroupRequest = z.lazy(() => { livenessProbe: containerGroupLivenessProbeRequest.nullish(), readinessProbe: containerGroupReadinessProbeRequest.nullish(), startupProbe: containerGroupStartupProbeRequest.nullish(), + queueAutoscaler: queueAutoscalerRequest.nullish(), }) .transform((data) => ({ display_name: data['displayName'], @@ -116,5 +122,6 @@ export const updateContainerGroupRequest = z.lazy(() => { liveness_probe: data['livenessProbe'], readiness_probe: data['readinessProbe'], startup_probe: data['startupProbe'], + queue_autoscaler: data['queueAutoscaler'], })); });