platform-api 2.3.0 → 3.0.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module PlatformAPI
2
- VERSION = '2.3.0'
2
+ VERSION = '3.0.0.pre.1'
3
3
  end
@@ -4131,222 +4131,6 @@
4131
4131
  }
4132
4132
  }
4133
4133
  },
4134
- "audit-trail-event": {
4135
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
4136
- "title": "Heroku Platform API - Audit Trail Event",
4137
- "description": "An audit trail event represents some action on the platform",
4138
- "stability": "development",
4139
- "strictProperties": true,
4140
- "type": [
4141
- "object"
4142
- ],
4143
- "definitions": {
4144
- "id": {
4145
- "description": "unique identifier of event",
4146
- "readOnly": true,
4147
- "format": "uuid",
4148
- "type": [
4149
- "string"
4150
- ]
4151
- },
4152
- "identity": {
4153
- "anyOf": [
4154
- {
4155
- "$ref": "#/definitions/audit-trail-event/definitions/id"
4156
- }
4157
- ]
4158
- },
4159
- "type": {
4160
- "description": "type of event",
4161
- "readOnly": true,
4162
- "type": [
4163
- "string"
4164
- ]
4165
- },
4166
- "action": {
4167
- "description": "action for the event",
4168
- "readOnly": true,
4169
- "type": [
4170
- "string"
4171
- ]
4172
- },
4173
- "actor": {
4174
- "description": "user who caused event",
4175
- "readOnly": true,
4176
- "type": [
4177
- "object"
4178
- ],
4179
- "properties": {
4180
- "id": {
4181
- "format": "uuid",
4182
- "type": [
4183
- "string"
4184
- ]
4185
- },
4186
- "email": {
4187
- "format": "email",
4188
- "type": [
4189
- "string"
4190
- ]
4191
- }
4192
- }
4193
- },
4194
- "app": {
4195
- "description": "app upon which event took place",
4196
- "readOnly": true,
4197
- "type": [
4198
- "object"
4199
- ],
4200
- "properties": {
4201
- "id": {
4202
- "format": "uuid",
4203
- "type": [
4204
- "string"
4205
- ]
4206
- },
4207
- "name": {
4208
- "type": [
4209
- "string"
4210
- ]
4211
- }
4212
- }
4213
- },
4214
- "owner": {
4215
- "description": "owner of the app targeted by the event",
4216
- "readOnly": true,
4217
- "type": [
4218
- "object"
4219
- ],
4220
- "properties": {
4221
- "id": {
4222
- "format": "uuid",
4223
- "type": [
4224
- "string"
4225
- ]
4226
- },
4227
- "email": {
4228
- "format": "email",
4229
- "type": [
4230
- "string"
4231
- ]
4232
- }
4233
- }
4234
- },
4235
- "enterprise_account": {
4236
- "description": "enterprise account on which the event happened",
4237
- "readOnly": true,
4238
- "type": [
4239
- "object"
4240
- ],
4241
- "properties": {
4242
- "id": {
4243
- "format": "uuid",
4244
- "type": [
4245
- "string"
4246
- ]
4247
- },
4248
- "name": {
4249
- "type": [
4250
- "string"
4251
- ]
4252
- }
4253
- }
4254
- },
4255
- "team": {
4256
- "description": "team on which the event happened",
4257
- "readOnly": true,
4258
- "type": [
4259
- "object"
4260
- ],
4261
- "properties": {
4262
- "id": {
4263
- "format": "uuid",
4264
- "type": [
4265
- "string"
4266
- ]
4267
- },
4268
- "name": {
4269
- "type": [
4270
- "string"
4271
- ]
4272
- }
4273
- }
4274
- },
4275
- "request": {
4276
- "description": "information about where the action was triggered",
4277
- "readOnly": true,
4278
- "type": [
4279
- "object"
4280
- ],
4281
- "properties": {
4282
- "ip_address": {
4283
- "format": "ipv4",
4284
- "type": [
4285
- "string"
4286
- ]
4287
- }
4288
- }
4289
- },
4290
- "data": {
4291
- "description": "data specific to the event",
4292
- "readOnly": true,
4293
- "type": [
4294
- "object"
4295
- ]
4296
- },
4297
- "created_at": {
4298
- "description": "when event was created",
4299
- "format": "date-time",
4300
- "type": [
4301
- "string"
4302
- ]
4303
- }
4304
- },
4305
- "links": [
4306
- {
4307
- "description": "List existing events.",
4308
- "href": "/enterprise-accounts/{(%23%2Fdefinitions%2Fenterprise-account%2Fdefinitions%2Fidentity)}/events",
4309
- "method": "GET",
4310
- "rel": "instances",
4311
- "title": "List"
4312
- }
4313
- ],
4314
- "properties": {
4315
- "created_at": {
4316
- "$ref": "#/definitions/audit-trail-event/definitions/created_at"
4317
- },
4318
- "id": {
4319
- "$ref": "#/definitions/audit-trail-event/definitions/id"
4320
- },
4321
- "type": {
4322
- "$ref": "#/definitions/audit-trail-event/definitions/type"
4323
- },
4324
- "action": {
4325
- "$ref": "#/definitions/audit-trail-event/definitions/action"
4326
- },
4327
- "actor": {
4328
- "$ref": "#/definitions/audit-trail-event/definitions/actor"
4329
- },
4330
- "app": {
4331
- "$ref": "#/definitions/audit-trail-event/definitions/app"
4332
- },
4333
- "owner": {
4334
- "$ref": "#/definitions/audit-trail-event/definitions/owner"
4335
- },
4336
- "enterprise_account": {
4337
- "$ref": "#/definitions/audit-trail-event/definitions/enterprise_account"
4338
- },
4339
- "team": {
4340
- "$ref": "#/definitions/audit-trail-event/definitions/team"
4341
- },
4342
- "request": {
4343
- "$ref": "#/definitions/audit-trail-event/definitions/request"
4344
- },
4345
- "data": {
4346
- "$ref": "#/definitions/audit-trail-event/definitions/data"
4347
- }
4348
- }
4349
- },
4350
4134
  "build": {
4351
4135
  "$schema": "http://json-schema.org/draft-04/hyper-schema",
4352
4136
  "description": "A build represents the process of transforming a code tarball into a slug",
@@ -6637,6 +6421,222 @@
6637
6421
  }
6638
6422
  }
6639
6423
  },
6424
+ "event": {
6425
+ "$schema": "http://json-schema.org/draft-04/hyper-schema",
6426
+ "title": "Heroku Platform API - Audit Trail Event",
6427
+ "description": "An audit trail event represents some action on the platform",
6428
+ "stability": "development",
6429
+ "strictProperties": true,
6430
+ "type": [
6431
+ "object"
6432
+ ],
6433
+ "definitions": {
6434
+ "id": {
6435
+ "description": "unique identifier of event",
6436
+ "readOnly": true,
6437
+ "format": "uuid",
6438
+ "type": [
6439
+ "string"
6440
+ ]
6441
+ },
6442
+ "identity": {
6443
+ "anyOf": [
6444
+ {
6445
+ "$ref": "#/definitions/event/definitions/id"
6446
+ }
6447
+ ]
6448
+ },
6449
+ "type": {
6450
+ "description": "type of event",
6451
+ "readOnly": true,
6452
+ "type": [
6453
+ "string"
6454
+ ]
6455
+ },
6456
+ "action": {
6457
+ "description": "action for the event",
6458
+ "readOnly": true,
6459
+ "type": [
6460
+ "string"
6461
+ ]
6462
+ },
6463
+ "actor": {
6464
+ "description": "user who caused event",
6465
+ "readOnly": true,
6466
+ "type": [
6467
+ "object"
6468
+ ],
6469
+ "properties": {
6470
+ "id": {
6471
+ "format": "uuid",
6472
+ "type": [
6473
+ "string"
6474
+ ]
6475
+ },
6476
+ "email": {
6477
+ "format": "email",
6478
+ "type": [
6479
+ "string"
6480
+ ]
6481
+ }
6482
+ }
6483
+ },
6484
+ "app": {
6485
+ "description": "app upon which event took place",
6486
+ "readOnly": true,
6487
+ "type": [
6488
+ "object"
6489
+ ],
6490
+ "properties": {
6491
+ "id": {
6492
+ "format": "uuid",
6493
+ "type": [
6494
+ "string"
6495
+ ]
6496
+ },
6497
+ "name": {
6498
+ "type": [
6499
+ "string"
6500
+ ]
6501
+ }
6502
+ }
6503
+ },
6504
+ "owner": {
6505
+ "description": "owner of the app targeted by the event",
6506
+ "readOnly": true,
6507
+ "type": [
6508
+ "object"
6509
+ ],
6510
+ "properties": {
6511
+ "id": {
6512
+ "format": "uuid",
6513
+ "type": [
6514
+ "string"
6515
+ ]
6516
+ },
6517
+ "email": {
6518
+ "format": "email",
6519
+ "type": [
6520
+ "string"
6521
+ ]
6522
+ }
6523
+ }
6524
+ },
6525
+ "enterprise_account": {
6526
+ "description": "enterprise account on which the event happened",
6527
+ "readOnly": true,
6528
+ "type": [
6529
+ "object"
6530
+ ],
6531
+ "properties": {
6532
+ "id": {
6533
+ "format": "uuid",
6534
+ "type": [
6535
+ "string"
6536
+ ]
6537
+ },
6538
+ "name": {
6539
+ "type": [
6540
+ "string"
6541
+ ]
6542
+ }
6543
+ }
6544
+ },
6545
+ "team": {
6546
+ "description": "team on which the event happened",
6547
+ "readOnly": true,
6548
+ "type": [
6549
+ "object"
6550
+ ],
6551
+ "properties": {
6552
+ "id": {
6553
+ "format": "uuid",
6554
+ "type": [
6555
+ "string"
6556
+ ]
6557
+ },
6558
+ "name": {
6559
+ "type": [
6560
+ "string"
6561
+ ]
6562
+ }
6563
+ }
6564
+ },
6565
+ "request": {
6566
+ "description": "information about where the action was triggered",
6567
+ "readOnly": true,
6568
+ "type": [
6569
+ "object"
6570
+ ],
6571
+ "properties": {
6572
+ "ip_address": {
6573
+ "format": "ipv4",
6574
+ "type": [
6575
+ "string"
6576
+ ]
6577
+ }
6578
+ }
6579
+ },
6580
+ "data": {
6581
+ "description": "data specific to the event",
6582
+ "readOnly": true,
6583
+ "type": [
6584
+ "object"
6585
+ ]
6586
+ },
6587
+ "created_at": {
6588
+ "description": "when event was created",
6589
+ "format": "date-time",
6590
+ "type": [
6591
+ "string"
6592
+ ]
6593
+ }
6594
+ },
6595
+ "links": [
6596
+ {
6597
+ "description": "List existing events.",
6598
+ "href": "/enterprise-accounts/{(%23%2Fdefinitions%2Fenterprise-account%2Fdefinitions%2Fidentity)}/events",
6599
+ "method": "GET",
6600
+ "rel": "instances",
6601
+ "title": "List"
6602
+ }
6603
+ ],
6604
+ "properties": {
6605
+ "created_at": {
6606
+ "$ref": "#/definitions/event/definitions/created_at"
6607
+ },
6608
+ "id": {
6609
+ "$ref": "#/definitions/event/definitions/id"
6610
+ },
6611
+ "type": {
6612
+ "$ref": "#/definitions/event/definitions/type"
6613
+ },
6614
+ "action": {
6615
+ "$ref": "#/definitions/event/definitions/action"
6616
+ },
6617
+ "actor": {
6618
+ "$ref": "#/definitions/event/definitions/actor"
6619
+ },
6620
+ "app": {
6621
+ "$ref": "#/definitions/event/definitions/app"
6622
+ },
6623
+ "owner": {
6624
+ "$ref": "#/definitions/event/definitions/owner"
6625
+ },
6626
+ "enterprise_account": {
6627
+ "$ref": "#/definitions/event/definitions/enterprise_account"
6628
+ },
6629
+ "team": {
6630
+ "$ref": "#/definitions/event/definitions/team"
6631
+ },
6632
+ "request": {
6633
+ "$ref": "#/definitions/event/definitions/request"
6634
+ },
6635
+ "data": {
6636
+ "$ref": "#/definitions/event/definitions/data"
6637
+ }
6638
+ }
6639
+ },
6640
6640
  "filter-apps": {
6641
6641
  "description": "Filters are special endpoints to allow for API consumers to specify a subset of resources to consume in order to reduce the number of requests that are performed. Each filter endpoint endpoint is responsible for determining its supported request format. The endpoints are over POST in order to handle large request bodies without hitting request uri query length limitations, but the requests themselves are idempotent and will not have side effects.",
6642
6642
  "$schema": "http://json-schema.org/draft-04/hyper-schema",
@@ -11495,7 +11495,7 @@
11495
11495
  ]
11496
11496
  },
11497
11497
  "pr_number": {
11498
- "description": "pull request number the review app is built for",
11498
+ "description": "GitHub Pull Request number if the Review app was created automatically",
11499
11499
  "example": 24,
11500
11500
  "readOnly": true,
11501
11501
  "type": [
@@ -11515,9 +11515,6 @@
11515
11515
  "branch": {
11516
11516
  "$ref": "#/definitions/review-app/definitions/branch"
11517
11517
  },
11518
- "pr_number": {
11519
- "$ref": "#/definitions/review-app/definitions/pr_number"
11520
- },
11521
11518
  "pipeline": {
11522
11519
  "$ref": "#/definitions/pipeline/definitions/id"
11523
11520
  },
@@ -12745,137 +12742,6 @@
12745
12742
  }
12746
12743
  }
12747
12744
  },
12748
- "space-topology": {
12749
- "description": "Space Topology provides you with a mechanism for viewing all the running dynos, formations and applications for a space. This is the same data thats used to power our DNS Service Discovery.",
12750
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
12751
- "stability": "prototype",
12752
- "strictProperties": true,
12753
- "title": "Heroku Platform API - Space Topology",
12754
- "type": [
12755
- "object"
12756
- ],
12757
- "definitions": {
12758
- "version": {
12759
- "description": "version of the space topology payload",
12760
- "example": 1,
12761
- "readOnly": true,
12762
- "type": [
12763
- "integer"
12764
- ]
12765
- },
12766
- "dyno": {
12767
- "description": "A dyno",
12768
- "properties": {
12769
- "id": {
12770
- "$ref": "#/definitions/dyno/definitions/id"
12771
- },
12772
- "number": {
12773
- "description": "process number, e.g. 1 in web.1",
12774
- "example": 1,
12775
- "type": [
12776
- "integer"
12777
- ]
12778
- },
12779
- "private_ip": {
12780
- "description": "RFC1918 Address of Dyno",
12781
- "example": "10.0.134.42",
12782
- "type": [
12783
- "string"
12784
- ]
12785
- },
12786
- "hostname": {
12787
- "description": "localspace hostname of resource",
12788
- "example": "1.example-app-90210.app.localspace",
12789
- "type": [
12790
- "string"
12791
- ]
12792
- }
12793
- }
12794
- },
12795
- "formation": {
12796
- "description": "formations for application",
12797
- "properties": {
12798
- "id": {
12799
- "$ref": "#/definitions/formation/definitions/id"
12800
- },
12801
- "process_type": {
12802
- "description": "Name of process type",
12803
- "example": "web",
12804
- "type": [
12805
- "string"
12806
- ]
12807
- },
12808
- "dynos": {
12809
- "description": "Current dynos for application",
12810
- "items": {
12811
- "$ref": "#/definitions/space-topology/definitions/dyno"
12812
- },
12813
- "type": [
12814
- "array"
12815
- ]
12816
- }
12817
- },
12818
- "type": [
12819
- "object"
12820
- ]
12821
- }
12822
- },
12823
- "links": [
12824
- {
12825
- "description": "Current space topology",
12826
- "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/topology",
12827
- "method": "GET",
12828
- "rel": "self",
12829
- "targetSchema": {
12830
- "$ref": "#/definitions/space-topology"
12831
- },
12832
- "title": "Topology"
12833
- }
12834
- ],
12835
- "properties": {
12836
- "version": {
12837
- "$ref": "#/definitions/space-topology/definitions/version"
12838
- },
12839
- "apps": {
12840
- "description": "The apps within this space",
12841
- "type": [
12842
- "array"
12843
- ],
12844
- "readOnly": true,
12845
- "items": {
12846
- "type": [
12847
- "object"
12848
- ],
12849
- "properties": {
12850
- "id": {
12851
- "$ref": "#/definitions/app/definitions/id",
12852
- "readOnly": true
12853
- },
12854
- "domains": {
12855
- "example": [
12856
- "example.com",
12857
- "example.net"
12858
- ],
12859
- "readOnly": true,
12860
- "type": [
12861
- "array"
12862
- ]
12863
- },
12864
- "formation": {
12865
- "description": "formations for application",
12866
- "items": {
12867
- "$ref": "#/definitions/space-topology/definitions/formation"
12868
- },
12869
- "type": [
12870
- "array"
12871
- ],
12872
- "readOnly": true
12873
- }
12874
- }
12875
- }
12876
- }
12877
- }
12878
- },
12879
12745
  "space-transfer": {
12880
12746
  "description": "Transfer spaces between enterprise teams with the same Enterprise Account.",
12881
12747
  "$schema": "http://json-schema.org/draft-04/hyper-schema",
@@ -17181,9 +17047,6 @@
17181
17047
  "archive": {
17182
17048
  "$ref": "#/definitions/archive"
17183
17049
  },
17184
- "audit-trail-event": {
17185
- "$ref": "#/definitions/audit-trail-event"
17186
- },
17187
17050
  "build": {
17188
17051
  "$ref": "#/definitions/build"
17189
17052
  },
@@ -17220,6 +17083,9 @@
17220
17083
  "enterprise-account": {
17221
17084
  "$ref": "#/definitions/enterprise-account"
17222
17085
  },
17086
+ "event": {
17087
+ "$ref": "#/definitions/event"
17088
+ },
17223
17089
  "filter-apps": {
17224
17090
  "$ref": "#/definitions/filter-apps"
17225
17091
  },
@@ -17340,9 +17206,6 @@
17340
17206
  "space-nat": {
17341
17207
  "$ref": "#/definitions/space-nat"
17342
17208
  },
17343
- "space-topology": {
17344
- "$ref": "#/definitions/space-topology"
17345
- },
17346
17209
  "space-transfer": {
17347
17210
  "$ref": "#/definitions/space-transfer"
17348
17211
  },