platform-api 3.0.0 → 3.2.0

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 = '3.0.0'
2
+ VERSION = '3.2.0'
3
3
  end
@@ -359,6 +359,42 @@
359
359
  "type": [
360
360
  "boolean"
361
361
  ]
362
+ },
363
+ "acknowledged_msa": {
364
+ "description": "whether account has acknowledged the MSA terms of service",
365
+ "example": false,
366
+ "readOnly": true,
367
+ "type": [
368
+ "boolean"
369
+ ]
370
+ },
371
+ "acknowledged_msa_at": {
372
+ "description": "when account has acknowledged the MSA terms of service",
373
+ "example": "2012-01-01T12:00:00Z",
374
+ "format": "date-time",
375
+ "readOnly": true,
376
+ "type": [
377
+ "string",
378
+ "null"
379
+ ]
380
+ },
381
+ "italian_customer_terms": {
382
+ "description": "whether account has acknowledged the Italian customer terms of service",
383
+ "example": "affirmatively_accepted",
384
+ "readOnly": true,
385
+ "type": [
386
+ "string",
387
+ "null"
388
+ ]
389
+ },
390
+ "italian_partner_terms": {
391
+ "description": "whether account has acknowledged the Italian provider terms of service",
392
+ "example": "affirmatively_accepted",
393
+ "readOnly": true,
394
+ "type": [
395
+ "string",
396
+ "null"
397
+ ]
362
398
  }
363
399
  },
364
400
  "links": [
@@ -572,6 +608,18 @@
572
608
  "verified": {
573
609
  "$ref": "#/definitions/account/definitions/verified"
574
610
  },
611
+ "acknowledged_msa": {
612
+ "$ref": "#/definitions/account/definitions/acknowledged_msa"
613
+ },
614
+ "acknowledged_msa_at": {
615
+ "$ref": "#/definitions/account/definitions/acknowledged_msa_at"
616
+ },
617
+ "italian_customer_terms": {
618
+ "$ref": "#/definitions/account/definitions/italian_customer_terms"
619
+ },
620
+ "italian_partner_terms": {
621
+ "$ref": "#/definitions/account/definitions/italian_partner_terms"
622
+ },
575
623
  "default_organization": {
576
624
  "description": "team selected by default",
577
625
  "properties": {
@@ -607,7 +655,7 @@
607
655
  }
608
656
  },
609
657
  "add-on-action": {
610
- "description": "Add-on Actions are lifecycle operations for add-on provisioning and deprovisioning. They allow whitelisted add-on providers to (de)provision add-ons in the background and then report back when (de)provisioning is complete.",
658
+ "description": "Add-on Actions are lifecycle operations for add-on provisioning and deprovisioning. They allow add-on providers to (de)provision add-ons in the background and then report back when (de)provisioning is complete.",
611
659
  "$schema": "http://json-schema.org/draft-04/hyper-schema",
612
660
  "stability": "development",
613
661
  "strictProperties": true,
@@ -2140,6 +2188,157 @@
2140
2188
  }
2141
2189
  }
2142
2190
  },
2191
+ "allowed-add-on-service": {
2192
+ "description": "Entities that have been allowed to be used by a Team",
2193
+ "$schema": "http://json-schema.org/draft-04/hyper-schema",
2194
+ "stability": "prototype",
2195
+ "strictProperties": true,
2196
+ "title": "Heroku Platform API - Allowed Add-on Service",
2197
+ "type": [
2198
+ "object"
2199
+ ],
2200
+ "definitions": {
2201
+ "added_at": {
2202
+ "description": "when the add-on service was allowed",
2203
+ "example": "2012-01-01T12:00:00Z",
2204
+ "format": "date-time",
2205
+ "readOnly": true,
2206
+ "type": [
2207
+ "string"
2208
+ ]
2209
+ },
2210
+ "added_by": {
2211
+ "description": "the user which allowed the add-on service",
2212
+ "properties": {
2213
+ "email": {
2214
+ "$ref": "#/definitions/account/definitions/email",
2215
+ "type": [
2216
+ "string",
2217
+ "null"
2218
+ ]
2219
+ },
2220
+ "id": {
2221
+ "$ref": "#/definitions/account/definitions/id",
2222
+ "type": [
2223
+ "string",
2224
+ "null"
2225
+ ]
2226
+ }
2227
+ },
2228
+ "readOnly": true,
2229
+ "type": [
2230
+ "object"
2231
+ ]
2232
+ },
2233
+ "addon_service": {
2234
+ "description": "the add-on service allowed for use",
2235
+ "properties": {
2236
+ "id": {
2237
+ "$ref": "#/definitions/add-on-service/definitions/id"
2238
+ },
2239
+ "name": {
2240
+ "$ref": "#/definitions/add-on-service/definitions/name"
2241
+ },
2242
+ "human_name": {
2243
+ "$ref": "#/definitions/add-on-service/definitions/human_name"
2244
+ }
2245
+ },
2246
+ "readOnly": true,
2247
+ "type": [
2248
+ "object"
2249
+ ]
2250
+ },
2251
+ "id": {
2252
+ "description": "unique identifier for this allowed add-on service record",
2253
+ "example": "01234567-89ab-cdef-0123-456789abcdef",
2254
+ "format": "uuid",
2255
+ "readOnly": true,
2256
+ "type": [
2257
+ "string"
2258
+ ]
2259
+ },
2260
+ "identity": {
2261
+ "anyOf": [
2262
+ {
2263
+ "$ref": "#/definitions/allowed-add-on-service/definitions/id"
2264
+ },
2265
+ {
2266
+ "$ref": "#/definitions/add-on-service/definitions/name"
2267
+ }
2268
+ ]
2269
+ }
2270
+ },
2271
+ "links": [
2272
+ {
2273
+ "description": "List all allowed add-on services for a team",
2274
+ "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/allowed-addon-services",
2275
+ "method": "GET",
2276
+ "rel": "instances",
2277
+ "targetSchema": {
2278
+ "items": {
2279
+ "$ref": "#/definitions/allowed-add-on-service"
2280
+ },
2281
+ "type": [
2282
+ "array"
2283
+ ]
2284
+ },
2285
+ "title": "List By Team"
2286
+ },
2287
+ {
2288
+ "description": "Allow an Add-on Service",
2289
+ "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/allowed-addon-services",
2290
+ "method": "POST",
2291
+ "rel": "create",
2292
+ "schema": {
2293
+ "type": [
2294
+ "object"
2295
+ ],
2296
+ "properties": {
2297
+ "addon_service": {
2298
+ "description": "name of the add-on service to allow",
2299
+ "example": "heroku-postgresql",
2300
+ "type": [
2301
+ "string"
2302
+ ]
2303
+ }
2304
+ }
2305
+ },
2306
+ "targetSchema": {
2307
+ "items": {
2308
+ "$ref": "#/definitions/allowed-add-on-service"
2309
+ },
2310
+ "type": [
2311
+ "array"
2312
+ ]
2313
+ },
2314
+ "title": "Create By Team"
2315
+ },
2316
+ {
2317
+ "description": "Remove an allowed add-on service",
2318
+ "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/allowed-addon-services/{(%23%2Fdefinitions%2Fallowed-add-on-service%2Fdefinitions%2Fidentity)}",
2319
+ "method": "DELETE",
2320
+ "rel": "destroy",
2321
+ "targetSchema": {
2322
+ "$ref": "#/definitions/allowed-add-on-service"
2323
+ },
2324
+ "title": "Delete By Team"
2325
+ }
2326
+ ],
2327
+ "properties": {
2328
+ "added_at": {
2329
+ "$ref": "#/definitions/allowed-add-on-service/definitions/added_at"
2330
+ },
2331
+ "added_by": {
2332
+ "$ref": "#/definitions/allowed-add-on-service/definitions/added_by"
2333
+ },
2334
+ "addon_service": {
2335
+ "$ref": "#/definitions/allowed-add-on-service/definitions/addon_service"
2336
+ },
2337
+ "id": {
2338
+ "$ref": "#/definitions/allowed-add-on-service/definitions/id"
2339
+ }
2340
+ }
2341
+ },
2143
2342
  "app-feature": {
2144
2343
  "description": "An app feature represents a Heroku labs capability that can be enabled or disabled for an app on Heroku.",
2145
2344
  "$schema": "http://json-schema.org/draft-04/hyper-schema",
@@ -4028,7 +4227,7 @@
4028
4227
  "$schema": "http://json-schema.org/draft-04/hyper-schema",
4029
4228
  "title": "Heroku Platform API - Audit Trail Archive",
4030
4229
  "description": "An audit trail archive represents a monthly json zipped file containing events",
4031
- "stability": "development",
4230
+ "stability": "production",
4032
4231
  "strictProperties": true,
4033
4232
  "type": [
4034
4233
  "object"
@@ -4135,7 +4334,7 @@
4135
4334
  "$schema": "http://json-schema.org/draft-04/hyper-schema",
4136
4335
  "title": "Heroku Platform API - Audit Trail Event",
4137
4336
  "description": "An audit trail event represents some action on the platform",
4138
- "stability": "development",
4337
+ "stability": "production",
4139
4338
  "strictProperties": true,
4140
4339
  "type": [
4141
4340
  "object"
@@ -5309,11 +5508,19 @@
5309
5508
  "type": [
5310
5509
  "string"
5311
5510
  ]
5511
+ },
5512
+ "sni_endpoint": {
5513
+ "description": "null or unique identifier or name for SNI endpoint",
5514
+ "type": [
5515
+ "null",
5516
+ "string"
5517
+ ]
5312
5518
  }
5313
5519
  },
5314
5520
  "links": [
5315
5521
  {
5316
- "description": "Create a new domain.",
5522
+ "deactivate_on": "2021-10-31",
5523
+ "description": "Create a new domain. Deprecated in favor of this same endpoint, but with a new required attribute of `sni_endpoint`. During the transitional phase sni_endpoint can be omitted entirely (current behavior), can be a valid id, or can be null which will skip auto-association.",
5317
5524
  "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/domains",
5318
5525
  "method": "POST",
5319
5526
  "rel": "create",
@@ -5333,8 +5540,58 @@
5333
5540
  "targetSchema": {
5334
5541
  "$ref": "#/definitions/domain"
5335
5542
  },
5543
+ "title": "Create - Deprecated"
5544
+ },
5545
+ {
5546
+ "description": "Create a new domain.",
5547
+ "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/domains",
5548
+ "method": "POST",
5549
+ "rel": "create",
5550
+ "schema": {
5551
+ "properties": {
5552
+ "hostname": {
5553
+ "$ref": "#/definitions/domain/definitions/hostname"
5554
+ },
5555
+ "sni_endpoint": {
5556
+ "$ref": "#/definitions/domain/definitions/sni_endpoint"
5557
+ }
5558
+ },
5559
+ "required": [
5560
+ "hostname",
5561
+ "sni_endpoint"
5562
+ ],
5563
+ "type": [
5564
+ "object"
5565
+ ]
5566
+ },
5567
+ "targetSchema": {
5568
+ "$ref": "#/definitions/domain"
5569
+ },
5336
5570
  "title": "Create"
5337
5571
  },
5572
+ {
5573
+ "description": "Associate an SNI endpoint",
5574
+ "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/domains/{(%23%2Fdefinitions%2Fdomain%2Fdefinitions%2Fidentity)}",
5575
+ "method": "PATCH",
5576
+ "rel": "update",
5577
+ "schema": {
5578
+ "properties": {
5579
+ "sni_endpoint": {
5580
+ "$ref": "#/definitions/domain/definitions/sni_endpoint"
5581
+ }
5582
+ },
5583
+ "required": [
5584
+ "sni_endpoint"
5585
+ ],
5586
+ "type": [
5587
+ "object"
5588
+ ]
5589
+ },
5590
+ "targetSchema": {
5591
+ "$ref": "#/definitions/domain"
5592
+ },
5593
+ "title": "Update"
5594
+ },
5338
5595
  {
5339
5596
  "description": "Delete an existing domain",
5340
5597
  "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/domains/{(%23%2Fdefinitions%2Fdomain%2Fdefinitions%2Fidentity)}",
@@ -5412,6 +5669,21 @@
5412
5669
  },
5413
5670
  "status": {
5414
5671
  "$ref": "#/definitions/domain/definitions/status"
5672
+ },
5673
+ "sni_endpoint": {
5674
+ "description": "sni endpoint the domain is associated with",
5675
+ "properties": {
5676
+ "name": {
5677
+ "$ref": "#/definitions/sni-endpoint/definitions/name"
5678
+ },
5679
+ "id": {
5680
+ "$ref": "#/definitions/sni-endpoint/definitions/id"
5681
+ }
5682
+ },
5683
+ "type": [
5684
+ "null",
5685
+ "object"
5686
+ ]
5415
5687
  }
5416
5688
  }
5417
5689
  },
@@ -12122,7 +12394,7 @@
12122
12394
  "size": 2048,
12123
12395
  "stack": {
12124
12396
  "id": "01234567-89ab-cdef-0123-456789abcdef",
12125
- "name": "cedar-14"
12397
+ "name": "heroku-18"
12126
12398
  },
12127
12399
  "updated_at": "2012-01-01T12:00:00Z"
12128
12400
  }
@@ -12790,7 +13062,10 @@
12790
13062
  "string"
12791
13063
  ]
12792
13064
  }
12793
- }
13065
+ },
13066
+ "type": [
13067
+ "object"
13068
+ ]
12794
13069
  },
12795
13070
  "formation": {
12796
13071
  "description": "formations for application",
@@ -13180,6 +13455,24 @@
13180
13455
  "object"
13181
13456
  ],
13182
13457
  "definitions": {
13458
+ "acm": {
13459
+ "readOnly": true,
13460
+ "type": [
13461
+ "boolean"
13462
+ ]
13463
+ },
13464
+ "ca_signed?": {
13465
+ "readOnly": true,
13466
+ "type": [
13467
+ "boolean"
13468
+ ]
13469
+ },
13470
+ "cert_domains": {
13471
+ "readOnly": true,
13472
+ "type": [
13473
+ "array"
13474
+ ]
13475
+ },
13183
13476
  "certificate_chain": {
13184
13477
  "description": "raw contents of the public certificate chain (eg: .crt or .pem file)",
13185
13478
  "example": "-----BEGIN CERTIFICATE----- ...",
@@ -13205,6 +13498,22 @@
13205
13498
  "string"
13206
13499
  ]
13207
13500
  },
13501
+ "display_name": {
13502
+ "description": "unique name for SSL endpoint",
13503
+ "example": "example",
13504
+ "pattern": "^[a-z][a-z0-9-]{2,29}$",
13505
+ "readOnly": false,
13506
+ "type": [
13507
+ "string"
13508
+ ]
13509
+ },
13510
+ "expires_at": {
13511
+ "readOnly": true,
13512
+ "format": "date-time",
13513
+ "type": [
13514
+ "string"
13515
+ ]
13516
+ },
13208
13517
  "id": {
13209
13518
  "description": "unique identifier of this SSL endpoint",
13210
13519
  "example": "01234567-89ab-cdef-0123-456789abcdef",
@@ -13224,6 +13533,12 @@
13224
13533
  }
13225
13534
  ]
13226
13535
  },
13536
+ "issuer": {
13537
+ "readOnly": true,
13538
+ "type": [
13539
+ "string"
13540
+ ]
13541
+ },
13227
13542
  "name": {
13228
13543
  "description": "unique name for SSL endpoint",
13229
13544
  "example": "example",
@@ -13250,6 +13565,25 @@
13250
13565
  "string"
13251
13566
  ]
13252
13567
  },
13568
+ "self_signed?": {
13569
+ "readOnly": true,
13570
+ "type": [
13571
+ "boolean"
13572
+ ]
13573
+ },
13574
+ "starts_at": {
13575
+ "readOnly": true,
13576
+ "format": "date-time",
13577
+ "type": [
13578
+ "string"
13579
+ ]
13580
+ },
13581
+ "subject": {
13582
+ "readOnly": true,
13583
+ "type": [
13584
+ "string"
13585
+ ]
13586
+ },
13253
13587
  "updated_at": {
13254
13588
  "description": "when endpoint was updated",
13255
13589
  "example": "2012-01-01T12:00:00Z",
@@ -13378,12 +13712,62 @@
13378
13712
  "created_at": {
13379
13713
  "$ref": "#/definitions/ssl-endpoint/definitions/created_at"
13380
13714
  },
13715
+ "display_name": {
13716
+ "$ref": "#/definitions/ssl-endpoint/definitions/display_name"
13717
+ },
13718
+ "domains": {
13719
+ "description": "domains associated with this endpoint",
13720
+ "type": [
13721
+ "array"
13722
+ ],
13723
+ "items": {
13724
+ "$ref": "#/definitions/domain/definitions/id"
13725
+ }
13726
+ },
13381
13727
  "id": {
13382
13728
  "$ref": "#/definitions/ssl-endpoint/definitions/id"
13383
13729
  },
13384
13730
  "name": {
13385
13731
  "$ref": "#/definitions/ssl-endpoint/definitions/name"
13386
13732
  },
13733
+ "ssl_cert": {
13734
+ "description": "certificate provided by this endpoint",
13735
+ "type": [
13736
+ "object"
13737
+ ],
13738
+ "properties": {
13739
+ "ca_signed?": {
13740
+ "$ref": "#/definitions/ssl-endpoint/definitions/ca_signed?"
13741
+ },
13742
+ "cert_domains": {
13743
+ "$ref": "#/definitions/ssl-endpoint/definitions/cert_domains"
13744
+ },
13745
+ "expires_at": {
13746
+ "$ref": "#/definitions/ssl-endpoint/definitions/expires_at"
13747
+ },
13748
+ "issuer": {
13749
+ "$ref": "#/definitions/ssl-endpoint/definitions/issuer"
13750
+ },
13751
+ "self_signed?": {
13752
+ "$ref": "#/definitions/ssl-endpoint/definitions/self_signed?"
13753
+ },
13754
+ "starts_at": {
13755
+ "$ref": "#/definitions/ssl-endpoint/definitions/starts_at"
13756
+ },
13757
+ "subject": {
13758
+ "$ref": "#/definitions/ssl-endpoint/definitions/subject"
13759
+ },
13760
+ "id": {
13761
+ "description": "unique identifier of this SSL certificate",
13762
+ "example": "01234567-89ab-cdef-0123-456789abcdef",
13763
+ "format": "uuid",
13764
+ "readOnly": true,
13765
+ "type": [
13766
+ "string"
13767
+ ]
13768
+ }
13769
+ }
13770
+ },
13387
13771
  "updated_at": {
13388
13772
  "$ref": "#/definitions/ssl-endpoint/definitions/updated_at"
13389
13773
  }
@@ -13437,7 +13821,7 @@
13437
13821
  },
13438
13822
  "name": {
13439
13823
  "description": "unique name of stack",
13440
- "example": "cedar-14",
13824
+ "example": "heroku-18",
13441
13825
  "readOnly": true,
13442
13826
  "type": [
13443
13827
  "string"
@@ -14997,6 +15381,15 @@
14997
15381
  "boolean",
14998
15382
  "null"
14999
15383
  ]
15384
+ },
15385
+ "addons-controls": {
15386
+ "description": "Whether add-on service rules should be applied to add-on installations",
15387
+ "example": true,
15388
+ "readOnly": false,
15389
+ "type": [
15390
+ "boolean",
15391
+ "null"
15392
+ ]
15000
15393
  }
15001
15394
  },
15002
15395
  "links": [
@@ -15022,6 +15415,9 @@
15022
15415
  "properties": {
15023
15416
  "whitelisting-enabled": {
15024
15417
  "$ref": "#/definitions/team-preferences/definitions/whitelisting-enabled"
15418
+ },
15419
+ "addons-controls": {
15420
+ "$ref": "#/definitions/team-preferences/definitions/addons-controls"
15025
15421
  }
15026
15422
  }
15027
15423
  },
@@ -15037,6 +15433,9 @@
15037
15433
  },
15038
15434
  "whitelisting-enabled": {
15039
15435
  "$ref": "#/definitions/team-preferences/definitions/whitelisting-enabled"
15436
+ },
15437
+ "addons-controls": {
15438
+ "$ref": "#/definitions/team-preferences/definitions/addons-controls"
15040
15439
  }
15041
15440
  }
15042
15441
  },
@@ -17154,6 +17553,9 @@
17154
17553
  "add-on": {
17155
17554
  "$ref": "#/definitions/add-on"
17156
17555
  },
17556
+ "allowed-add-on-service": {
17557
+ "$ref": "#/definitions/allowed-add-on-service"
17558
+ },
17157
17559
  "app-feature": {
17158
17560
  "$ref": "#/definitions/app-feature"
17159
17561
  },