Skip to content

Commit 3d797b3

Browse files
authored
docs: comment more fields for several products (#5)
1 parent 48631d9 commit 3d797b3

File tree

9 files changed

+87
-19
lines changed

9 files changed

+87
-19
lines changed

packages/clients/src/api/baremetal/v1/types.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export interface CPU {
8383
coreCount: number
8484
/** Number of threads of the CPU */
8585
threadCount: number
86+
/** Frequency of the CPU in MHz */
8687
frequency: number
8788
}
8889

packages/clients/src/api/instance/v1/api.utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ export class InstanceV1UtilsAPI extends InstanceV1GenAPI {
339339
this._createServer(request)
340340

341341
/**
342-
* Starts an action and wait for the server to be in the correct "terminal state" expected by this action.
342+
* Starts an action and wait for the server to be in the correct "terminal
343+
* state" expected by this action.
343344
*
344345
* @param request - The request {@link ServerActionRequest}
345346
* @returns A Promise of Server

packages/clients/src/api/instance/v1/types.gen.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,21 +1433,21 @@ export type UpdatePlacementGroupServersRequest = {
14331433
export type ListIpsRequest = {
14341434
/** Zone to target. If none is passed will use default zone from the config */
14351435
zone?: Zone
1436+
/** The project ID the IPs are reserved in */
1437+
project?: string
14361438
/** The organization ID the IPs are reserved in */
14371439
organization?: string
1440+
/**
1441+
* Filter IPs with these exact tags (to filter with several tags, use commas
1442+
* to separate them)
1443+
*/
1444+
tags?: Array<string>
14381445
/** Filter on the IP address (Works as a LIKE operation on the IP address) */
14391446
name?: string
14401447
/** A positive integer lower or equal to 100 to select the number of items to return */
14411448
perPage?: number
14421449
/** A positive integer to choose the page to return */
14431450
page?: number
1444-
/** The project ID the IPs are reserved in */
1445-
project?: string
1446-
/**
1447-
* Filter IPs with these exact tags (to filter with several tags, use commas
1448-
* to separate them)
1449-
*/
1450-
tags?: Array<string>
14511451
}
14521452

14531453
export type CreateIpRequest = {

packages/clients/src/api/instance/v1/types.utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ export type UpdateSecurityGroupRuleRequest = {
5454
ipRange?: string
5555
position?: number
5656
/**
57-
* If set to 0, DestPortFrom will be removed.
58-
* See SecurityGroupRule.DestPortFrom for more information
57+
* If set to 0, DestPortFrom will be removed. See
58+
* SecurityGroupRule.DestPortFrom for more information
5959
*/
6060
destPortFrom?: number
6161
/**
62-
* If set to 0, DestPortTo will be removed.
63-
* See SecurityGroupRule.DestPortTo for more information
62+
* If set to 0, DestPortTo will be removed. See SecurityGroupRule.DestPortTo
63+
* for more information
6464
*/
6565
destPortTo?: number
6666
}

packages/clients/src/api/iot/v1/types.gen.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,18 @@ export interface DeviceMessageFilters {
167167
subscribe?: DeviceMessageFiltersRule
168168
}
169169

170+
/** Device. message filters. rule */
170171
export interface DeviceMessageFiltersRule {
172+
/**
173+
* If accept, the set will accept all topics in the topics list, but no other.
174+
* If reject, the set will deny all topics in the topics list, but all others
175+
* will be allowed.
176+
*/
171177
policy: DeviceMessageFiltersRulePolicy
178+
/**
179+
* List of topics to accept or reject. It must be valid MQTT topics and up to
180+
* 65535 characters
181+
*/
172182
topics?: Array<string>
173183
}
174184

packages/clients/src/api/k8s/v1/types.gen.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ export type CreateClusterRequest = {
722722
*/
723723
autoscalerConfig?: CreateClusterRequestAutoscalerConfig
724724
/**
725-
* This configuratiom enables to set a speicific 2-hour time window in which
725+
* This configuration enables to set a specific 2-hour time window in which
726726
* the cluster can be automatically updated to the latest patch version in the
727727
* current minor one.
728728
*/
@@ -774,8 +774,8 @@ export type UpdateClusterRequest = {
774774
/** @deprecated The new Ingress Controller for the cluster */
775775
ingress?: Ingress
776776
/**
777-
* The new auo upgrade configuration of the cluster. Note that all the fields
778-
* needs to be set.
777+
* The new auto upgrade configuration of the cluster. Note that all fields
778+
* need to be set.
779779
*/
780780
autoUpgrade?: UpdateClusterRequestAutoUpgrade
781781
/** List of feature gates to enable */

packages/clients/src/api/lb/v1/types.gen.ts

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,20 +875,47 @@ export type GetBackendRequest = {
875875
export type UpdateBackendRequest = {
876876
/** Region to target. If none is passed will use default region from the config */
877877
region?: Region
878+
/** Backend ID to update */
878879
backendId: string
880+
/** Resource name */
879881
name: string
882+
/** Backend protocol. TCP or HTTP */
880883
forwardProtocol: Protocol
884+
/** User sessions will be forwarded to this port of backend servers */
881885
forwardPort: number
886+
/** Load balancing algorithm */
882887
forwardPortAlgorithm: ForwardPortAlgorithm
888+
/** Enable cookie-based session persistence */
883889
stickySessions: StickySessionsType
890+
/** Cookie name for for sticky sessions */
884891
stickySessionsCookieName: string
885-
/** @deprecated */
892+
/** @deprecated Deprecated in favor of proxy_protocol field! */
886893
sendProxyV2?: boolean
894+
/** Maximum server connection inactivity time */
887895
timeoutServer?: string
896+
/** Maximum initial server connection establishment time */
888897
timeoutConnect?: string
898+
/** Maximum tunnel inactivity time */
889899
timeoutTunnel?: string
900+
/** Modify what occurs when a backend server is marked down */
890901
onMarkedDownAction: OnMarkedDownAction
902+
/**
903+
* The PROXY protocol informs the other end about the incoming connection, so
904+
* that it can know the client's address or the public address it accessed to,
905+
* whatever the upper layer protocol is.
906+
*
907+
* `proxy_protocol_none` Disable proxy protocol. `proxy_protocol_v1` Version
908+
* one (text format). `proxy_protocol_v2` Version two (binary format).
909+
* `proxy_protocol_v2_ssl` Version two with SSL connection.
910+
* `proxy_protocol_v2_ssl_cn` Version two with SSL connection and common name
911+
* information.
912+
*/
891913
proxyProtocol: ProxyProtocol
914+
/**
915+
* Only the host part of the Scaleway S3 bucket website is expected. Example:
916+
* `failover-website.s3-website.fr-par.scw.cloud` if your bucket website URL
917+
* is `https://failover-website.s3-website.fr-par.scw.cloud/`.
918+
*/
892919
failoverHost?: string
893920
}
894921

@@ -1642,20 +1669,47 @@ export type ZonedApiGetBackendRequest = {
16421669
export type ZonedApiUpdateBackendRequest = {
16431670
/** Zone to target. If none is passed will use default zone from the config */
16441671
zone?: Zone
1672+
/** Backend ID to update */
16451673
backendId: string
1674+
/** Resource name */
16461675
name: string
1676+
/** Backend protocol. TCP or HTTP */
16471677
forwardProtocol: Protocol
1678+
/** User sessions will be forwarded to this port of backend servers */
16481679
forwardPort: number
1680+
/** Load balancing algorithm */
16491681
forwardPortAlgorithm: ForwardPortAlgorithm
1682+
/** Enable cookie-based session persistence */
16501683
stickySessions: StickySessionsType
1684+
/** Cookie name for for sticky sessions */
16511685
stickySessionsCookieName: string
1652-
/** @deprecated */
1686+
/** @deprecated Deprecated in favor of proxy_protocol field! */
16531687
sendProxyV2?: boolean
1688+
/** Maximum server connection inactivity time */
16541689
timeoutServer?: string
1690+
/** Maximum initial server connection establishment time */
16551691
timeoutConnect?: string
1692+
/** Maximum tunnel inactivity time */
16561693
timeoutTunnel?: string
1694+
/** Modify what occurs when a backend server is marked down */
16571695
onMarkedDownAction: OnMarkedDownAction
1696+
/**
1697+
* The PROXY protocol informs the other end about the incoming connection, so
1698+
* that it can know the client's address or the public address it accessed to,
1699+
* whatever the upper layer protocol is.
1700+
*
1701+
* `proxy_protocol_none` Disable proxy protocol. `proxy_protocol_v1` Version
1702+
* one (text format). `proxy_protocol_v2` Version two (binary format).
1703+
* `proxy_protocol_v2_ssl` Version two with SSL connection.
1704+
* `proxy_protocol_v2_ssl_cn` Version two with SSL connection and common name
1705+
* information.
1706+
*/
16581707
proxyProtocol: ProxyProtocol
1708+
/**
1709+
* Only the host part of the Scaleway S3 bucket website is expected. Example:
1710+
* `failover-website.s3-website.fr-par.scw.cloud` if your bucket website URL
1711+
* is `https://failover-website.s3-website.fr-par.scw.cloud/`.
1712+
*/
16591713
failoverHost?: string
16601714
}
16611715

packages/clients/src/api/marketplace/v1/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface Image {
2828
modificationDate?: Date
2929
/** Expiration date of this image */
3030
validUntil?: Date
31-
/** Label of this image */
31+
/** Typically an identifier for a distribution (ex. "ubuntu_focal"). */
3232
label: string
3333
/** List of versions of this image */
3434
versions: Array<Version>
@@ -49,7 +49,7 @@ export interface ListVersionsResponse {
4949

5050
/** Local image */
5151
export interface LocalImage {
52-
/** UUID of this local image */
52+
/** Version you will typically use to define an image in an API call. */
5353
id: string
5454
/** List of all commercial types that are compatible with this local image */
5555
compatibleCommercialTypes: Array<string>

packages/clients/src/api/redis/v1alpha1/types.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,12 +500,14 @@ export type AddEndpointsRequest = {
500500
export type DeleteEndpointRequest = {
501501
/** Zone to target. If none is passed will use default zone from the config */
502502
zone?: Zone
503+
/** UUID of the endpoint you want to delete */
503504
endpointId: string
504505
}
505506

506507
export type GetEndpointRequest = {
507508
/** Zone to target. If none is passed will use default zone from the config */
508509
zone?: Zone
510+
/** UUID of the endpoint you want to get */
509511
endpointId: string
510512
}
511513

0 commit comments

Comments
 (0)