Skip to content

Commit c4cc879

Browse files
authored
docs(function): revamp (#584)
1 parent 052445a commit c4cc879

File tree

2 files changed

+206
-31
lines changed

2 files changed

+206
-31
lines changed

packages/clients/src/api/function/v1beta1/api.gen.ts

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ export class API extends ParentAPI {
137137
)
138138

139139
/**
140-
* List all your namespaces.
140+
* List all your namespaces. List all existing namespaces in the specified
141+
* region.
141142
*
142143
* @param request - The request {@link ListNamespacesRequest}
143144
* @returns A Promise of ListNamespacesResponse
@@ -146,7 +147,7 @@ export class API extends ParentAPI {
146147
enrichForPagination('namespaces', this.pageOfListNamespaces, request)
147148

148149
/**
149-
* Get a namespace. Get the namespace associated with the given id.
150+
* Get a namespace. Get the namespace associated with the specified ID.
150151
*
151152
* @param request - The request {@link GetNamespaceRequest}
152153
* @returns A Promise of Namespace
@@ -184,7 +185,8 @@ export class API extends ParentAPI {
184185
)
185186

186187
/**
187-
* Create a new namespace.
188+
* Create a new namespace. Create a new namespace in a specified Organization
189+
* or Proejct.
188190
*
189191
* @param request - The request {@link CreateNamespaceRequest}
190192
* @returns A Promise of Namespace
@@ -206,8 +208,8 @@ export class API extends ParentAPI {
206208
)
207209

208210
/**
209-
* Update an existing namespace. Update the space associated with the given
210-
* id.
211+
* Update an existing namespace. Update the namespace associated with the
212+
* specified ID.
211213
*
212214
* @param request - The request {@link UpdateNamespaceRequest}
213215
* @returns A Promise of Namespace
@@ -230,7 +232,7 @@ export class API extends ParentAPI {
230232

231233
/**
232234
* Delete an existing namespace. Delete the namespace associated with the
233-
* given id.
235+
* specified ID.
234236
*
235237
* @param request - The request {@link DeleteNamespaceRequest}
236238
* @returns A Promise of Namespace
@@ -281,7 +283,7 @@ export class API extends ParentAPI {
281283
enrichForPagination('functions', this.pageOfListFunctions, request)
282284

283285
/**
284-
* Get a function. Get the function associated with the given id.
286+
* Get a function. Get the function associated with the specified ID.
285287
*
286288
* @param request - The request {@link GetFunctionRequest}
287289
* @returns A Promise of Function
@@ -319,7 +321,8 @@ export class API extends ParentAPI {
319321
)
320322

321323
/**
322-
* Create a new function.
324+
* Create a new function. Create a new function in the specified region for a
325+
* specified Organization or Project.
323326
*
324327
* @param request - The request {@link CreateFunctionRequest}
325328
* @returns A Promise of Function
@@ -341,8 +344,8 @@ export class API extends ParentAPI {
341344
)
342345

343346
/**
344-
* Update an existing function. Update the function associated with the given
345-
* id.
347+
* Update an existing function. Update the function associated with the
348+
* specified ID.
346349
*
347350
* @param request - The request {@link UpdateFunctionRequest}
348351
* @returns A Promise of Function
@@ -364,7 +367,7 @@ export class API extends ParentAPI {
364367
)
365368

366369
/**
367-
* Delete a function. Delete the function associated with the given id.
370+
* Delete a function. Delete the function associated with the specified ID.
368371
*
369372
* @param request - The request {@link DeleteFunctionRequest}
370373
* @returns A Promise of Function
@@ -382,7 +385,7 @@ export class API extends ParentAPI {
382385
)
383386

384387
/**
385-
* Deploy a function. Deploy a function associated with the given id.
388+
* Deploy a function. Deploy a function associated with the specified ID.
386389
*
387390
* @param request - The request {@link DeployFunctionRequest}
388391
* @returns A Promise of Function
@@ -426,7 +429,7 @@ export class API extends ParentAPI {
426429

427430
/**
428431
* Get an upload URL of a function. Get an upload URL of a function associated
429-
* with the given id.
432+
* with the specified ID.
430433
*
431434
* @param request - The request {@link GetFunctionUploadURLRequest}
432435
* @returns A Promise of UploadURL
@@ -449,7 +452,7 @@ export class API extends ParentAPI {
449452

450453
/**
451454
* Get a download URL of a function. Get a download URL for a function
452-
* associated with the given id.
455+
* associated with the specified ID.
453456
*
454457
* @param request - The request {@link GetFunctionDownloadURLRequest}
455458
* @returns A Promise of DownloadURL
@@ -491,7 +494,7 @@ export class API extends ParentAPI {
491494
)
492495

493496
/**
494-
* List all your crons.
497+
* List all crons. List all the cronjobs in a specified region.
495498
*
496499
* @param request - The request {@link ListCronsRequest}
497500
* @returns A Promise of ListCronsResponse
@@ -500,7 +503,7 @@ export class API extends ParentAPI {
500503
enrichForPagination('crons', this.pageOfListCrons, request)
501504

502505
/**
503-
* Get a cron. Get the cron associated with the given id.
506+
* Get a cron. Get the cron associated with the specified ID.
504507
*
505508
* @param request - The request {@link GetCronRequest}
506509
* @returns A Promise of Cron
@@ -537,7 +540,8 @@ export class API extends ParentAPI {
537540
)
538541

539542
/**
540-
* Create a new cron.
543+
* Create a new cron. Create a new cronjob for a function with the specified
544+
* ID.
541545
*
542546
* @param request - The request {@link CreateCronRequest}
543547
* @returns A Promise of Cron
@@ -559,7 +563,7 @@ export class API extends ParentAPI {
559563
)
560564

561565
/**
562-
* Update an existing cron. Update the cron associated with the given id.
566+
* Update an existing cron. Update the cron associated with the specified ID.
563567
*
564568
* @param request - The request {@link UpdateCronRequest}
565569
* @returns A Promise of Cron
@@ -581,7 +585,7 @@ export class API extends ParentAPI {
581585
)
582586

583587
/**
584-
* Delete an existing cron. Delete the cron associated with the given id.
588+
* Delete an existing cron. Delete the cron associated with the specified ID.
585589
*
586590
* @param request - The request {@link DeleteCronRequest}
587591
* @returns A Promise of Cron
@@ -622,7 +626,8 @@ export class API extends ParentAPI {
622626
)
623627

624628
/**
625-
* List your application logs.
629+
* List application logs. List the application logs of the function with the
630+
* specified ID.
626631
*
627632
* @param request - The request {@link ListLogsRequest}
628633
* @returns A Promise of ListLogsResponse
@@ -652,7 +657,8 @@ export class API extends ParentAPI {
652657
)
653658

654659
/**
655-
* List all domain name bindings.
660+
* List all domain name bindings. List all domain name bindings in a specified
661+
* region.
656662
*
657663
* @param request - The request {@link ListDomainsRequest}
658664
* @returns A Promise of ListDomainsResponse
@@ -661,7 +667,8 @@ export class API extends ParentAPI {
661667
enrichForPagination('domains', this.pageOfListDomains, request)
662668

663669
/**
664-
* Get a domain name binding.
670+
* Get a domain name binding. Get a domain name binding for the function with
671+
* the specified ID.
665672
*
666673
* @param request - The request {@link GetDomainRequest}
667674
* @returns A Promise of Domain
@@ -699,7 +706,8 @@ export class API extends ParentAPI {
699706
)
700707

701708
/**
702-
* Create a domain name binding.
709+
* Create a domain name binding. Create a domain name binding for the function
710+
* with the specified ID.
703711
*
704712
* @param request - The request {@link CreateDomainRequest}
705713
* @returns A Promise of Domain
@@ -721,7 +729,8 @@ export class API extends ParentAPI {
721729
)
722730

723731
/**
724-
* Delete a domain name binding.
732+
* Delete a domain name binding. Delete a domain name binding for the function
733+
* with the specified ID.
725734
*
726735
* @param request - The request {@link DeleteDomainRequest}
727736
* @returns A Promise of Domain

0 commit comments

Comments
 (0)