Skip to content

Commit 89e7a6c

Browse files
authored
Add missing output props for all services (#4)
* Add output props for all service types * Add readOnly attribute to output properties * Fix discriminator mapping * Regen SDKs
1 parent 1abf641 commit 89e7a6c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4589
-1001
lines changed

provider/cmd/pulumi-gen-render/openapi.yml

Lines changed: 116 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,21 @@ components:
373373
numInstances:
374374
type: number
375375
default: 1
376+
openPorts:
377+
type: array
378+
readOnly: true
379+
items:
380+
$ref: "#/components/schemas/openPorts"
381+
parentServer:
382+
type: object
383+
readOnly: true
384+
properties:
385+
id:
386+
type: string
387+
readOnly: true
388+
name:
389+
type: string
390+
readOnly: true
376391
plan:
377392
type: string
378393
default: "starter"
@@ -395,6 +410,9 @@ components:
395410
enum:
396411
- "oregon"
397412
- "frankfurt"
413+
url:
414+
readOnly: true
415+
type: string
398416
required:
399417
- "env"
400418
webService:
@@ -410,7 +428,18 @@ components:
410428
readOnly: true
411429
serviceDetails:
412430
$ref: "#/components/schemas/webServiceServiceDetails"
413-
serviceDetails:
431+
openPorts:
432+
title: "OpenPorts"
433+
type: object
434+
properties:
435+
port:
436+
type: number
437+
protocol:
438+
type: string
439+
enum:
440+
- TCP
441+
- UDP
442+
privateServiceDetails:
414443
title: "PrivateService"
415444
type: object
416445
properties:
@@ -433,6 +462,21 @@ components:
433462
numInstances:
434463
type: number
435464
default: 1
465+
openPorts:
466+
type: array
467+
readOnly: true
468+
items:
469+
$ref: "#/components/schemas/openPorts"
470+
parentServer:
471+
type: object
472+
readOnly: true
473+
properties:
474+
id:
475+
type: string
476+
readOnly: true
477+
name:
478+
type: string
479+
readOnly: true
436480
plan:
437481
type: string
438482
default: "starter"
@@ -455,6 +499,9 @@ components:
455499
enum:
456500
- "oregon"
457501
- "frankfurt"
502+
url:
503+
readOnly: true
504+
type: string
458505
required:
459506
- "env"
460507
privateService:
@@ -469,7 +516,67 @@ components:
469516
default: "private_service"
470517
readOnly: true
471518
serviceDetails:
472-
$ref: "#/components/schemas/serviceDetails"
519+
$ref: "#/components/schemas/privateServiceDetails"
520+
backgroundWorkerServiceDetails:
521+
title: "PrivateService"
522+
type: object
523+
properties:
524+
disk:
525+
$ref: "#/components/schemas/disk"
526+
env:
527+
type: string
528+
enum:
529+
- docker
530+
- elixir
531+
- go
532+
- node
533+
- python
534+
- ruby
535+
- rust
536+
envSpecificDetails:
537+
oneOf:
538+
- $ref: "#/components/schemas/dockerDetails"
539+
- $ref: "#/components/schemas/nativeEnvironmentDetails"
540+
numInstances:
541+
type: number
542+
default: 1
543+
parentServer:
544+
type: object
545+
readOnly: true
546+
properties:
547+
id:
548+
type: string
549+
readOnly: true
550+
name:
551+
type: string
552+
readOnly: true
553+
plan:
554+
type: string
555+
default: "starter"
556+
enum:
557+
- "starter"
558+
- "starter_plus"
559+
- "standard"
560+
- "standard_plus"
561+
- "pro"
562+
- "pro_plus"
563+
- "pro_max"
564+
- "pro_ultra"
565+
pullRequestPreviewsEnabled:
566+
type: string
567+
default: "no"
568+
enum: ["yes", "no"]
569+
region:
570+
type: string
571+
default: "oregon"
572+
enum:
573+
- "oregon"
574+
- "frankfurt"
575+
url:
576+
readOnly: true
577+
type: string
578+
required:
579+
- "env"
473580
backgroundWorker:
474581
title: "BackgroundWorker"
475582
description: "A background worker service"
@@ -482,7 +589,7 @@ components:
482589
default: "background_worker"
483590
readOnly: true
484591
serviceDetails:
485-
$ref: "#/components/schemas/serviceDetails"
592+
$ref: "#/components/schemas/backgroundWorkerServiceDetails"
486593
cronJobServiceDetails:
487594
title: "CronJob"
488595
type: object
@@ -501,6 +608,8 @@ components:
501608
oneOf:
502609
- $ref: "#/components/schemas/dockerDetails"
503610
- $ref: "#/components/schemas/nativeEnvironmentDetails"
611+
lastSuccessfulRunAt:
612+
type: string
504613
plan:
505614
type: string
506615
default: "starter"
@@ -599,7 +708,7 @@ components:
599708
"web_service": "#/components/schemas/webService"
600709
"private_service": "#/components/schemas/privateService"
601710
"background_worker": "#/components/schemas/backgroundWorker"
602-
"cronJob": "#/components/schemas/cronJob"
711+
"cron_job": "#/components/schemas/cronJob"
603712
oneOf:
604713
- $ref: "#/components/schemas/staticSite"
605714
- $ref: "#/components/schemas/webService"
@@ -1274,7 +1383,7 @@ paths:
12741383
"web_service": "#/components/schemas/webService"
12751384
"private_service": "#/components/schemas/privateService"
12761385
"background_worker": "#/components/schemas/backgroundWorker"
1277-
"cronJob": "#/components/schemas/cronJob"
1386+
"cron_job": "#/components/schemas/cronJob"
12781387
oneOf:
12791388
- $ref: "#/components/schemas/staticSite"
12801389
- $ref: "#/components/schemas/webService"
@@ -1515,7 +1624,7 @@ paths:
15151624
"web_service": "#/components/schemas/webService"
15161625
"private_service": "#/components/schemas/privateService"
15171626
"background_worker": "#/components/schemas/backgroundWorker"
1518-
"cronJob": "#/components/schemas/cronJob"
1627+
"cron_job": "#/components/schemas/cronJob"
15191628
oneOf:
15201629
- $ref: "#/components/schemas/staticSite"
15211630
- $ref: "#/components/schemas/webService"
@@ -1911,7 +2020,7 @@ paths:
19112020
"web_service": "#/components/schemas/webService"
19122021
"private_service": "#/components/schemas/privateService"
19132022
"background_worker": "#/components/schemas/backgroundWorker"
1914-
"cronJob": "#/components/schemas/cronJob"
2023+
"cron_job": "#/components/schemas/cronJob"
19152024
oneOf:
19162025
- $ref: "#/components/schemas/staticSite"
19172026
- $ref: "#/components/schemas/webService"

0 commit comments

Comments
 (0)