platform-api 3.8.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/rspec.yml +31 -0
- data/CHANGELOG.md +5 -1
- data/README.md +4 -21
- data/Rakefile +1 -1
- data/lib/platform-api/client.rb +136 -68
- data/lib/platform-api/version.rb +1 -1
- data/schema.json +126 -46
- metadata +4 -4
- data/.circleci/config.yml +0 -94
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 52250589350e16aa52fe43d0540f27128e092885cfb546738a094c970809ca02
|
|
4
|
+
data.tar.gz: 801a2ce042978af42acd27e4eb9876dda2bac633bbfc0fd4512ce07af5cc798f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60b3f38af31cf1231b84a01dd0fdb5cc4499f5c54ce9c0c9d174f605fc888db6b29c2b3deecb5fd864ad23134a9482753058a46ec958459d15beb379e1dbe807
|
|
7
|
+
data.tar.gz: 025f9f9f5bc3f55a2bb09052ca81a8dee8fbfb4ba5a55fc71bd96a143981cbef9cc26128eb15613883abbf7064940a5448081de9d222966e609c0da23203500c
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: CI tests
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
jobs:
|
|
5
|
+
test:
|
|
6
|
+
runs-on: ubuntu-latest
|
|
7
|
+
strategy:
|
|
8
|
+
matrix:
|
|
9
|
+
ruby: [ '3.2', '3.3', '3.4', '4.0' ]
|
|
10
|
+
env:
|
|
11
|
+
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
|
|
12
|
+
HEROKU_API_USER: ${{ secrets.HEROKU_API_USER }}
|
|
13
|
+
|
|
14
|
+
name: Setup env & run tests with Ruby ${{ matrix.ruby }}
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout repo
|
|
17
|
+
uses: actions/checkout@v3
|
|
18
|
+
|
|
19
|
+
- name: Setup Ruby
|
|
20
|
+
uses: ruby/setup-ruby@v1
|
|
21
|
+
with:
|
|
22
|
+
ruby-version: ${{ matrix.ruby }}
|
|
23
|
+
|
|
24
|
+
- name: "Set bundler path"
|
|
25
|
+
run: bundle config set path 'vendor/bundle'
|
|
26
|
+
- name: "Install dependencies"
|
|
27
|
+
run: bundle install --jobs=4 --retry=3
|
|
28
|
+
- name: "Hatchet setup"
|
|
29
|
+
run: bundle exec hatchet ci:setup
|
|
30
|
+
- name: "Run tests"
|
|
31
|
+
run: bundle exec rspec
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -26,7 +26,7 @@ gem install platform-api
|
|
|
26
26
|
|
|
27
27
|
## API documentation
|
|
28
28
|
|
|
29
|
-
Jump right to the [API documentation](
|
|
29
|
+
Jump right to the [API documentation](https://www.rubydoc.info/gems/platform-api)
|
|
30
30
|
for the nitty gritty details.
|
|
31
31
|
|
|
32
32
|
## Usage guide
|
|
@@ -51,7 +51,7 @@ For example, to get information about the `web` formation on the `sushi` app
|
|
|
51
51
|
you'd invoke `heroku.formation.info('sushi', 'web')` and it would return a
|
|
52
52
|
Ruby object that matches the one given in the [response example](https://devcenter.heroku.com/articles/platform-api-reference#formation-info).
|
|
53
53
|
|
|
54
|
-
The [API documentation](
|
|
54
|
+
The [API documentation](https://www.rubydoc.info/gems/platform-api) contains a
|
|
55
55
|
description of all available resources and methods.
|
|
56
56
|
|
|
57
57
|
### Handling errors
|
|
@@ -217,7 +217,7 @@ $ heroku labs:enable websockets
|
|
|
217
217
|
$ heroku addons:add openredis:micro # $10/month
|
|
218
218
|
Adding openredis:micro on floating-retreat-4255... done, v10 ($10/mo)
|
|
219
219
|
Use `heroku addons:docs openredis` to view documentation.
|
|
220
|
-
$ git push heroku
|
|
220
|
+
$ git push heroku main
|
|
221
221
|
Initializing repository, done.
|
|
222
222
|
Counting objects: 489, done.
|
|
223
223
|
Delta compression using up to 4 threads.
|
|
@@ -370,23 +370,6 @@ Remember to commit and push the changes to Github.
|
|
|
370
370
|
* `git commit -m 'vX.Y.Z' to stage the version and Gemfile.lock changes
|
|
371
371
|
* `rake release` to push git changes and to release to Rubygems
|
|
372
372
|
|
|
373
|
-
### Building API documentation
|
|
374
|
-
|
|
375
|
-
Build documentation with:
|
|
376
|
-
|
|
377
|
-
```
|
|
378
|
-
rake yard
|
|
379
|
-
```
|
|
380
|
-
|
|
381
|
-
And then visit `doc/index.html` to read it. Alternately, build and publish
|
|
382
|
-
it to Github Pages in one step with:
|
|
383
|
-
|
|
384
|
-
```
|
|
385
|
-
rake publish_docs
|
|
386
|
-
```
|
|
387
|
-
|
|
388
|
-
You can see it live on [Github Pages](http://heroku.github.io/platform-api/).
|
|
389
|
-
|
|
390
373
|
## Contributing
|
|
391
374
|
|
|
392
375
|
1. [Fork the repository](https://github.com/heroku/platform-api/fork).
|
|
@@ -404,7 +387,7 @@ $ git clone https://github.com/heroku/ruby-getting-started.git
|
|
|
404
387
|
$ cd ruby-getting-started/
|
|
405
388
|
$ heroku create <memorable-name-here>
|
|
406
389
|
$ heroku webhooks:add -i api:dyno -l notify -u https://example.com/hooks
|
|
407
|
-
$ git push heroku
|
|
390
|
+
$ git push heroku main
|
|
408
391
|
```
|
|
409
392
|
|
|
410
393
|
Now you can specify your app name while you run tests:
|
data/Rakefile
CHANGED
data/lib/platform-api/client.rb
CHANGED
|
@@ -83,7 +83,7 @@ module PlatformAPI
|
|
|
83
83
|
|
|
84
84
|
# Get the default options.
|
|
85
85
|
def self.default_options
|
|
86
|
-
default_headers = {"Accept"=>"application/vnd.heroku+json; version=3", "User-Agent"=>"platform-api/3.
|
|
86
|
+
default_headers = {"Accept" => "application/vnd.heroku+json; version=3", "User-Agent" => "platform-api/3.9.0"}
|
|
87
87
|
{
|
|
88
88
|
default_headers: default_headers,
|
|
89
89
|
url: "https://api.heroku.com"
|
|
@@ -4366,8 +4366,7 @@ module PlatformAPI
|
|
|
4366
4366
|
"type": [
|
|
4367
4367
|
"object"
|
|
4368
4368
|
],
|
|
4369
|
-
"definitions": {
|
|
4370
|
-
},
|
|
4369
|
+
"definitions": {},
|
|
4371
4370
|
"links": [
|
|
4372
4371
|
{
|
|
4373
4372
|
"description": "Mark an add-on as provisioned for use.",
|
|
@@ -4390,8 +4389,7 @@ module PlatformAPI
|
|
|
4390
4389
|
"title": "Deprovision"
|
|
4391
4390
|
}
|
|
4392
4391
|
],
|
|
4393
|
-
"properties": {
|
|
4394
|
-
}
|
|
4392
|
+
"properties": {}
|
|
4395
4393
|
},
|
|
4396
4394
|
"add-on-attachment": {
|
|
4397
4395
|
"description": "An add-on attachment represents a connection between an app and an add-on that it has been given access to.",
|
|
@@ -4462,6 +4460,21 @@ module PlatformAPI
|
|
|
4462
4460
|
"string"
|
|
4463
4461
|
]
|
|
4464
4462
|
},
|
|
4463
|
+
"namespace_config": {
|
|
4464
|
+
"description": "attachment namespace config, used to specify namespace via key-value pairs",
|
|
4465
|
+
"example": {
|
|
4466
|
+
"cred": "analyst"
|
|
4467
|
+
},
|
|
4468
|
+
"type": [
|
|
4469
|
+
"null",
|
|
4470
|
+
"object"
|
|
4471
|
+
],
|
|
4472
|
+
"additionalProperties": {
|
|
4473
|
+
"type": [
|
|
4474
|
+
"string"
|
|
4475
|
+
]
|
|
4476
|
+
}
|
|
4477
|
+
},
|
|
4465
4478
|
"updated_at": {
|
|
4466
4479
|
"description": "when add-on attachment was updated",
|
|
4467
4480
|
"example": "2012-01-01T12:00:00Z",
|
|
@@ -4513,6 +4526,9 @@ module PlatformAPI
|
|
|
4513
4526
|
},
|
|
4514
4527
|
"namespace": {
|
|
4515
4528
|
"$ref": "#/definitions/add-on-attachment/definitions/namespace"
|
|
4529
|
+
},
|
|
4530
|
+
"namespace_config": {
|
|
4531
|
+
"$ref": "#/definitions/add-on-attachment/definitions/namespace_config"
|
|
4516
4532
|
}
|
|
4517
4533
|
},
|
|
4518
4534
|
"required": [
|
|
@@ -5605,46 +5621,52 @@ module PlatformAPI
|
|
|
5605
5621
|
},
|
|
5606
5622
|
"addon_service": {
|
|
5607
5623
|
"description": "identity of add-on service",
|
|
5608
|
-
"
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
"
|
|
5612
|
-
"$ref": "#/definitions/add-on-service/definitions/id"
|
|
5613
|
-
},
|
|
5614
|
-
"name": {
|
|
5615
|
-
"$ref": "#/definitions/add-on-service/definitions/name"
|
|
5616
|
-
}
|
|
5624
|
+
"identity": {
|
|
5625
|
+
"anyOf": [
|
|
5626
|
+
{
|
|
5627
|
+
"$ref": "#/definitions/add-on-service/definitions/id"
|
|
5617
5628
|
},
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5629
|
+
{
|
|
5630
|
+
"$ref": "#/definitions/add-on-service/definitions/name"
|
|
5631
|
+
}
|
|
5632
|
+
]
|
|
5633
|
+
},
|
|
5634
|
+
"properties": {
|
|
5635
|
+
"id": {
|
|
5636
|
+
"$ref": "#/definitions/add-on-service/definitions/id"
|
|
5622
5637
|
},
|
|
5623
|
-
{
|
|
5624
|
-
"$ref": "#/definitions/add-on-service"
|
|
5638
|
+
"name": {
|
|
5639
|
+
"$ref": "#/definitions/add-on-service/definitions/name"
|
|
5625
5640
|
}
|
|
5641
|
+
},
|
|
5642
|
+
"strictProperties": true,
|
|
5643
|
+
"type": [
|
|
5644
|
+
"object"
|
|
5626
5645
|
]
|
|
5627
5646
|
},
|
|
5628
5647
|
"plan": {
|
|
5629
5648
|
"description": "identity of add-on plan",
|
|
5630
|
-
"
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
"
|
|
5634
|
-
"$ref": "#/definitions/plan/definitions/id"
|
|
5635
|
-
},
|
|
5636
|
-
"name": {
|
|
5637
|
-
"$ref": "#/definitions/plan/definitions/name"
|
|
5638
|
-
}
|
|
5649
|
+
"identity": {
|
|
5650
|
+
"anyOf": [
|
|
5651
|
+
{
|
|
5652
|
+
"$ref": "#/definitions/plan/definitions/id"
|
|
5639
5653
|
},
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5654
|
+
{
|
|
5655
|
+
"$ref": "#/definitions/plan/definitions/name"
|
|
5656
|
+
}
|
|
5657
|
+
]
|
|
5658
|
+
},
|
|
5659
|
+
"properties": {
|
|
5660
|
+
"id": {
|
|
5661
|
+
"$ref": "#/definitions/plan/definitions/id"
|
|
5644
5662
|
},
|
|
5645
|
-
{
|
|
5646
|
-
"$ref": "#/definitions/plan"
|
|
5663
|
+
"name": {
|
|
5664
|
+
"$ref": "#/definitions/plan/definitions/name"
|
|
5647
5665
|
}
|
|
5666
|
+
},
|
|
5667
|
+
"strictProperties": true,
|
|
5668
|
+
"type": [
|
|
5669
|
+
"object"
|
|
5648
5670
|
]
|
|
5649
5671
|
},
|
|
5650
5672
|
"provision_message": {
|
|
@@ -8367,6 +8389,14 @@ module PlatformAPI
|
|
|
8367
8389
|
"string"
|
|
8368
8390
|
]
|
|
8369
8391
|
},
|
|
8392
|
+
"generation": {
|
|
8393
|
+
"description": "generation of build",
|
|
8394
|
+
"example": "cedar",
|
|
8395
|
+
"readOnly": true,
|
|
8396
|
+
"type": [
|
|
8397
|
+
"string"
|
|
8398
|
+
]
|
|
8399
|
+
},
|
|
8370
8400
|
"id": {
|
|
8371
8401
|
"description": "unique identifier of build",
|
|
8372
8402
|
"example": "01234567-89ab-cdef-0123-456789abcdef",
|
|
@@ -8585,6 +8615,9 @@ module PlatformAPI
|
|
|
8585
8615
|
"created_at": {
|
|
8586
8616
|
"$ref": "#/definitions/build/definitions/created_at"
|
|
8587
8617
|
},
|
|
8618
|
+
"generation": {
|
|
8619
|
+
"$ref": "#/definitions/build/definitions/generation"
|
|
8620
|
+
},
|
|
8588
8621
|
"id": {
|
|
8589
8622
|
"$ref": "#/definitions/build/definitions/id"
|
|
8590
8623
|
},
|
|
@@ -10762,6 +10795,14 @@ module PlatformAPI
|
|
|
10762
10795
|
"type": [
|
|
10763
10796
|
"boolean"
|
|
10764
10797
|
]
|
|
10798
|
+
},
|
|
10799
|
+
"partner_benefits": {
|
|
10800
|
+
"description": "whether the enterprise account is part of the Salesforce Partner Program",
|
|
10801
|
+
"example": false,
|
|
10802
|
+
"readOnly": true,
|
|
10803
|
+
"type": [
|
|
10804
|
+
"boolean"
|
|
10805
|
+
]
|
|
10765
10806
|
}
|
|
10766
10807
|
},
|
|
10767
10808
|
"links": [
|
|
@@ -10829,6 +10870,9 @@ module PlatformAPI
|
|
|
10829
10870
|
"trial": {
|
|
10830
10871
|
"$ref": "#/definitions/enterprise-account/definitions/trial"
|
|
10831
10872
|
},
|
|
10873
|
+
"partner_benefits": {
|
|
10874
|
+
"$ref": "#/definitions/enterprise-account/definitions/partner_benefits"
|
|
10875
|
+
},
|
|
10832
10876
|
"identity_provider": {
|
|
10833
10877
|
"$ref": "#/definitions/enterprise-account/definitions/identity_provider"
|
|
10834
10878
|
}
|
|
@@ -10930,18 +10974,16 @@ module PlatformAPI
|
|
|
10930
10974
|
"example": {
|
|
10931
10975
|
"id": "01234567-89ab-cdef-0123-456789abcdef"
|
|
10932
10976
|
},
|
|
10933
|
-
"
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
"id"
|
|
10937
|
-
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
|
|
10943
|
-
}
|
|
10944
|
-
],
|
|
10977
|
+
"identity": {
|
|
10978
|
+
"anyOf": [
|
|
10979
|
+
{
|
|
10980
|
+
"$ref": "#/definitions/dyno_size/definitions/id"
|
|
10981
|
+
},
|
|
10982
|
+
{
|
|
10983
|
+
"$ref": "#/definitions/dyno_size/definitions/name"
|
|
10984
|
+
}
|
|
10985
|
+
]
|
|
10986
|
+
},
|
|
10945
10987
|
"properties": {
|
|
10946
10988
|
"id": {
|
|
10947
10989
|
"description": "unique identifier of the dyno size",
|
|
@@ -10962,9 +11004,6 @@ module PlatformAPI
|
|
|
10962
11004
|
}
|
|
10963
11005
|
},
|
|
10964
11006
|
"readOnly": false,
|
|
10965
|
-
"required": [
|
|
10966
|
-
"id"
|
|
10967
|
-
],
|
|
10968
11007
|
"type": [
|
|
10969
11008
|
"object"
|
|
10970
11009
|
]
|
|
@@ -13127,11 +13166,8 @@ module PlatformAPI
|
|
|
13127
13166
|
]
|
|
13128
13167
|
}
|
|
13129
13168
|
},
|
|
13130
|
-
"links": [
|
|
13131
|
-
|
|
13132
|
-
],
|
|
13133
|
-
"properties": {
|
|
13134
|
-
}
|
|
13169
|
+
"links": [],
|
|
13170
|
+
"properties": {}
|
|
13135
13171
|
},
|
|
13136
13172
|
"oauth-token": {
|
|
13137
13173
|
"description": "OAuth tokens provide access for authorized clients to act on behalf of a Heroku user to automate, customize or extend their usage of the platform. For more information please refer to the [Heroku OAuth documentation](https://devcenter.heroku.com/articles/oauth)",
|
|
@@ -13610,6 +13646,16 @@ module PlatformAPI
|
|
|
13610
13646
|
"type": [
|
|
13611
13647
|
"string"
|
|
13612
13648
|
]
|
|
13649
|
+
},
|
|
13650
|
+
"deleted_at": {
|
|
13651
|
+
"description": "when OCI image was deleted",
|
|
13652
|
+
"example": "2012-01-01T12:00:00Z",
|
|
13653
|
+
"format": "date-time",
|
|
13654
|
+
"readOnly": true,
|
|
13655
|
+
"type": [
|
|
13656
|
+
"string",
|
|
13657
|
+
"null"
|
|
13658
|
+
]
|
|
13613
13659
|
}
|
|
13614
13660
|
},
|
|
13615
13661
|
"links": [
|
|
@@ -13723,6 +13769,9 @@ module PlatformAPI
|
|
|
13723
13769
|
},
|
|
13724
13770
|
"architecture": {
|
|
13725
13771
|
"$ref": "#/definitions/oci-image/definitions/architecture"
|
|
13772
|
+
},
|
|
13773
|
+
"deleted_at": {
|
|
13774
|
+
"$ref": "#/definitions/oci-image/definitions/deleted_at"
|
|
13726
13775
|
}
|
|
13727
13776
|
}
|
|
13728
13777
|
},
|
|
@@ -14194,8 +14243,7 @@ module PlatformAPI
|
|
|
14194
14243
|
"type": [
|
|
14195
14244
|
"object"
|
|
14196
14245
|
],
|
|
14197
|
-
"definitions": {
|
|
14198
|
-
},
|
|
14246
|
+
"definitions": {},
|
|
14199
14247
|
"properties": {
|
|
14200
14248
|
"app": {
|
|
14201
14249
|
"description": "app that the build belongs to",
|
|
@@ -14999,6 +15047,18 @@ module PlatformAPI
|
|
|
14999
15047
|
"type": [
|
|
15000
15048
|
"object"
|
|
15001
15049
|
]
|
|
15050
|
+
},
|
|
15051
|
+
"release": {
|
|
15052
|
+
"description": "the specific release to promote from (optional, defaults to current release)",
|
|
15053
|
+
"properties": {
|
|
15054
|
+
"id": {
|
|
15055
|
+
"$ref": "#/definitions/release/definitions/id"
|
|
15056
|
+
}
|
|
15057
|
+
},
|
|
15058
|
+
"strictProperties": true,
|
|
15059
|
+
"type": [
|
|
15060
|
+
"object"
|
|
15061
|
+
]
|
|
15002
15062
|
}
|
|
15003
15063
|
},
|
|
15004
15064
|
"type": [
|
|
@@ -15444,9 +15504,7 @@ module PlatformAPI
|
|
|
15444
15504
|
]
|
|
15445
15505
|
}
|
|
15446
15506
|
},
|
|
15447
|
-
"links": [
|
|
15448
|
-
|
|
15449
|
-
],
|
|
15507
|
+
"links": [],
|
|
15450
15508
|
"properties": {
|
|
15451
15509
|
"id": {
|
|
15452
15510
|
"$ref": "#/definitions/pipeline/definitions/owner/definitions/id"
|
|
@@ -15918,8 +15976,7 @@ module PlatformAPI
|
|
|
15918
15976
|
"object"
|
|
15919
15977
|
],
|
|
15920
15978
|
"definitions": {
|
|
15921
|
-
"identity": {
|
|
15922
|
-
},
|
|
15979
|
+
"identity": {},
|
|
15923
15980
|
"remaining": {
|
|
15924
15981
|
"description": "allowed requests remaining in current interval",
|
|
15925
15982
|
"example": 2399,
|
|
@@ -16190,7 +16247,8 @@ module PlatformAPI
|
|
|
16190
16247
|
"enum": [
|
|
16191
16248
|
"failed",
|
|
16192
16249
|
"pending",
|
|
16193
|
-
"succeeded"
|
|
16250
|
+
"succeeded",
|
|
16251
|
+
"expired"
|
|
16194
16252
|
],
|
|
16195
16253
|
"example": "succeeded",
|
|
16196
16254
|
"readOnly": true,
|
|
@@ -16869,9 +16927,7 @@ module PlatformAPI
|
|
|
16869
16927
|
]
|
|
16870
16928
|
}
|
|
16871
16929
|
},
|
|
16872
|
-
"links": [
|
|
16873
|
-
|
|
16874
|
-
],
|
|
16930
|
+
"links": [],
|
|
16875
16931
|
"properties": {
|
|
16876
16932
|
"id": {
|
|
16877
16933
|
"$ref": "#/definitions/review-app-config/definitions/deploy_target/definitions/id"
|
|
@@ -17159,6 +17215,16 @@ module PlatformAPI
|
|
|
17159
17215
|
"type": [
|
|
17160
17216
|
"string"
|
|
17161
17217
|
]
|
|
17218
|
+
},
|
|
17219
|
+
"deleted_at": {
|
|
17220
|
+
"description": "when slug was deleted",
|
|
17221
|
+
"example": "2012-01-01T12:00:00Z",
|
|
17222
|
+
"format": "date-time",
|
|
17223
|
+
"readOnly": true,
|
|
17224
|
+
"type": [
|
|
17225
|
+
"string",
|
|
17226
|
+
"null"
|
|
17227
|
+
]
|
|
17162
17228
|
}
|
|
17163
17229
|
},
|
|
17164
17230
|
"links": [
|
|
@@ -17289,6 +17355,9 @@ module PlatformAPI
|
|
|
17289
17355
|
},
|
|
17290
17356
|
"updated_at": {
|
|
17291
17357
|
"$ref": "#/definitions/slug/definitions/updated_at"
|
|
17358
|
+
},
|
|
17359
|
+
"deleted_at": {
|
|
17360
|
+
"$ref": "#/definitions/slug/definitions/deleted_at"
|
|
17292
17361
|
}
|
|
17293
17362
|
}
|
|
17294
17363
|
},
|
|
@@ -21141,8 +21210,7 @@ module PlatformAPI
|
|
|
21141
21210
|
"API-Key": "example_api_key_012345",
|
|
21142
21211
|
"Environment": "production"
|
|
21143
21212
|
},
|
|
21144
|
-
"default": {
|
|
21145
|
-
},
|
|
21213
|
+
"default": {},
|
|
21146
21214
|
"additionalProperties": false,
|
|
21147
21215
|
"maxItems": 20,
|
|
21148
21216
|
"patternProperties": {
|
data/lib/platform-api/version.rb
CHANGED
data/schema.json
CHANGED
|
@@ -738,6 +738,21 @@
|
|
|
738
738
|
"string"
|
|
739
739
|
]
|
|
740
740
|
},
|
|
741
|
+
"namespace_config": {
|
|
742
|
+
"description": "attachment namespace config, used to specify namespace via key-value pairs",
|
|
743
|
+
"example": {
|
|
744
|
+
"cred": "analyst"
|
|
745
|
+
},
|
|
746
|
+
"type": [
|
|
747
|
+
"null",
|
|
748
|
+
"object"
|
|
749
|
+
],
|
|
750
|
+
"additionalProperties": {
|
|
751
|
+
"type": [
|
|
752
|
+
"string"
|
|
753
|
+
]
|
|
754
|
+
}
|
|
755
|
+
},
|
|
741
756
|
"updated_at": {
|
|
742
757
|
"description": "when add-on attachment was updated",
|
|
743
758
|
"example": "2012-01-01T12:00:00Z",
|
|
@@ -789,6 +804,9 @@
|
|
|
789
804
|
},
|
|
790
805
|
"namespace": {
|
|
791
806
|
"$ref": "#/definitions/add-on-attachment/definitions/namespace"
|
|
807
|
+
},
|
|
808
|
+
"namespace_config": {
|
|
809
|
+
"$ref": "#/definitions/add-on-attachment/definitions/namespace_config"
|
|
792
810
|
}
|
|
793
811
|
},
|
|
794
812
|
"required": [
|
|
@@ -1881,46 +1899,52 @@
|
|
|
1881
1899
|
},
|
|
1882
1900
|
"addon_service": {
|
|
1883
1901
|
"description": "identity of add-on service",
|
|
1884
|
-
"
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
"
|
|
1888
|
-
"$ref": "#/definitions/add-on-service/definitions/id"
|
|
1889
|
-
},
|
|
1890
|
-
"name": {
|
|
1891
|
-
"$ref": "#/definitions/add-on-service/definitions/name"
|
|
1892
|
-
}
|
|
1902
|
+
"identity": {
|
|
1903
|
+
"anyOf": [
|
|
1904
|
+
{
|
|
1905
|
+
"$ref": "#/definitions/add-on-service/definitions/id"
|
|
1893
1906
|
},
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1907
|
+
{
|
|
1908
|
+
"$ref": "#/definitions/add-on-service/definitions/name"
|
|
1909
|
+
}
|
|
1910
|
+
]
|
|
1911
|
+
},
|
|
1912
|
+
"properties": {
|
|
1913
|
+
"id": {
|
|
1914
|
+
"$ref": "#/definitions/add-on-service/definitions/id"
|
|
1898
1915
|
},
|
|
1899
|
-
{
|
|
1900
|
-
"$ref": "#/definitions/add-on-service"
|
|
1916
|
+
"name": {
|
|
1917
|
+
"$ref": "#/definitions/add-on-service/definitions/name"
|
|
1901
1918
|
}
|
|
1919
|
+
},
|
|
1920
|
+
"strictProperties": true,
|
|
1921
|
+
"type": [
|
|
1922
|
+
"object"
|
|
1902
1923
|
]
|
|
1903
1924
|
},
|
|
1904
1925
|
"plan": {
|
|
1905
1926
|
"description": "identity of add-on plan",
|
|
1906
|
-
"
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
"
|
|
1910
|
-
"$ref": "#/definitions/plan/definitions/id"
|
|
1911
|
-
},
|
|
1912
|
-
"name": {
|
|
1913
|
-
"$ref": "#/definitions/plan/definitions/name"
|
|
1914
|
-
}
|
|
1927
|
+
"identity": {
|
|
1928
|
+
"anyOf": [
|
|
1929
|
+
{
|
|
1930
|
+
"$ref": "#/definitions/plan/definitions/id"
|
|
1915
1931
|
},
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1932
|
+
{
|
|
1933
|
+
"$ref": "#/definitions/plan/definitions/name"
|
|
1934
|
+
}
|
|
1935
|
+
]
|
|
1936
|
+
},
|
|
1937
|
+
"properties": {
|
|
1938
|
+
"id": {
|
|
1939
|
+
"$ref": "#/definitions/plan/definitions/id"
|
|
1920
1940
|
},
|
|
1921
|
-
{
|
|
1922
|
-
"$ref": "#/definitions/plan"
|
|
1941
|
+
"name": {
|
|
1942
|
+
"$ref": "#/definitions/plan/definitions/name"
|
|
1923
1943
|
}
|
|
1944
|
+
},
|
|
1945
|
+
"strictProperties": true,
|
|
1946
|
+
"type": [
|
|
1947
|
+
"object"
|
|
1924
1948
|
]
|
|
1925
1949
|
},
|
|
1926
1950
|
"provision_message": {
|
|
@@ -4643,6 +4667,14 @@
|
|
|
4643
4667
|
"string"
|
|
4644
4668
|
]
|
|
4645
4669
|
},
|
|
4670
|
+
"generation": {
|
|
4671
|
+
"description": "generation of build",
|
|
4672
|
+
"example": "cedar",
|
|
4673
|
+
"readOnly": true,
|
|
4674
|
+
"type": [
|
|
4675
|
+
"string"
|
|
4676
|
+
]
|
|
4677
|
+
},
|
|
4646
4678
|
"id": {
|
|
4647
4679
|
"description": "unique identifier of build",
|
|
4648
4680
|
"example": "01234567-89ab-cdef-0123-456789abcdef",
|
|
@@ -4861,6 +4893,9 @@
|
|
|
4861
4893
|
"created_at": {
|
|
4862
4894
|
"$ref": "#/definitions/build/definitions/created_at"
|
|
4863
4895
|
},
|
|
4896
|
+
"generation": {
|
|
4897
|
+
"$ref": "#/definitions/build/definitions/generation"
|
|
4898
|
+
},
|
|
4864
4899
|
"id": {
|
|
4865
4900
|
"$ref": "#/definitions/build/definitions/id"
|
|
4866
4901
|
},
|
|
@@ -7038,6 +7073,14 @@
|
|
|
7038
7073
|
"type": [
|
|
7039
7074
|
"boolean"
|
|
7040
7075
|
]
|
|
7076
|
+
},
|
|
7077
|
+
"partner_benefits": {
|
|
7078
|
+
"description": "whether the enterprise account is part of the Salesforce Partner Program",
|
|
7079
|
+
"example": false,
|
|
7080
|
+
"readOnly": true,
|
|
7081
|
+
"type": [
|
|
7082
|
+
"boolean"
|
|
7083
|
+
]
|
|
7041
7084
|
}
|
|
7042
7085
|
},
|
|
7043
7086
|
"links": [
|
|
@@ -7105,6 +7148,9 @@
|
|
|
7105
7148
|
"trial": {
|
|
7106
7149
|
"$ref": "#/definitions/enterprise-account/definitions/trial"
|
|
7107
7150
|
},
|
|
7151
|
+
"partner_benefits": {
|
|
7152
|
+
"$ref": "#/definitions/enterprise-account/definitions/partner_benefits"
|
|
7153
|
+
},
|
|
7108
7154
|
"identity_provider": {
|
|
7109
7155
|
"$ref": "#/definitions/enterprise-account/definitions/identity_provider"
|
|
7110
7156
|
}
|
|
@@ -7206,18 +7252,16 @@
|
|
|
7206
7252
|
"example": {
|
|
7207
7253
|
"id": "01234567-89ab-cdef-0123-456789abcdef"
|
|
7208
7254
|
},
|
|
7209
|
-
"
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
"id"
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
}
|
|
7220
|
-
],
|
|
7255
|
+
"identity": {
|
|
7256
|
+
"anyOf": [
|
|
7257
|
+
{
|
|
7258
|
+
"$ref": "#/definitions/dyno_size/definitions/id"
|
|
7259
|
+
},
|
|
7260
|
+
{
|
|
7261
|
+
"$ref": "#/definitions/dyno_size/definitions/name"
|
|
7262
|
+
}
|
|
7263
|
+
]
|
|
7264
|
+
},
|
|
7221
7265
|
"properties": {
|
|
7222
7266
|
"id": {
|
|
7223
7267
|
"description": "unique identifier of the dyno size",
|
|
@@ -7238,9 +7282,6 @@
|
|
|
7238
7282
|
}
|
|
7239
7283
|
},
|
|
7240
7284
|
"readOnly": false,
|
|
7241
|
-
"required": [
|
|
7242
|
-
"id"
|
|
7243
|
-
],
|
|
7244
7285
|
"type": [
|
|
7245
7286
|
"object"
|
|
7246
7287
|
]
|
|
@@ -9883,6 +9924,16 @@
|
|
|
9883
9924
|
"type": [
|
|
9884
9925
|
"string"
|
|
9885
9926
|
]
|
|
9927
|
+
},
|
|
9928
|
+
"deleted_at": {
|
|
9929
|
+
"description": "when OCI image was deleted",
|
|
9930
|
+
"example": "2012-01-01T12:00:00Z",
|
|
9931
|
+
"format": "date-time",
|
|
9932
|
+
"readOnly": true,
|
|
9933
|
+
"type": [
|
|
9934
|
+
"string",
|
|
9935
|
+
"null"
|
|
9936
|
+
]
|
|
9886
9937
|
}
|
|
9887
9938
|
},
|
|
9888
9939
|
"links": [
|
|
@@ -9996,6 +10047,9 @@
|
|
|
9996
10047
|
},
|
|
9997
10048
|
"architecture": {
|
|
9998
10049
|
"$ref": "#/definitions/oci-image/definitions/architecture"
|
|
10050
|
+
},
|
|
10051
|
+
"deleted_at": {
|
|
10052
|
+
"$ref": "#/definitions/oci-image/definitions/deleted_at"
|
|
9999
10053
|
}
|
|
10000
10054
|
}
|
|
10001
10055
|
},
|
|
@@ -11271,6 +11325,18 @@
|
|
|
11271
11325
|
"type": [
|
|
11272
11326
|
"object"
|
|
11273
11327
|
]
|
|
11328
|
+
},
|
|
11329
|
+
"release": {
|
|
11330
|
+
"description": "the specific release to promote from (optional, defaults to current release)",
|
|
11331
|
+
"properties": {
|
|
11332
|
+
"id": {
|
|
11333
|
+
"$ref": "#/definitions/release/definitions/id"
|
|
11334
|
+
}
|
|
11335
|
+
},
|
|
11336
|
+
"strictProperties": true,
|
|
11337
|
+
"type": [
|
|
11338
|
+
"object"
|
|
11339
|
+
]
|
|
11274
11340
|
}
|
|
11275
11341
|
},
|
|
11276
11342
|
"type": [
|
|
@@ -12459,7 +12525,8 @@
|
|
|
12459
12525
|
"enum": [
|
|
12460
12526
|
"failed",
|
|
12461
12527
|
"pending",
|
|
12462
|
-
"succeeded"
|
|
12528
|
+
"succeeded",
|
|
12529
|
+
"expired"
|
|
12463
12530
|
],
|
|
12464
12531
|
"example": "succeeded",
|
|
12465
12532
|
"readOnly": true,
|
|
@@ -13426,6 +13493,16 @@
|
|
|
13426
13493
|
"type": [
|
|
13427
13494
|
"string"
|
|
13428
13495
|
]
|
|
13496
|
+
},
|
|
13497
|
+
"deleted_at": {
|
|
13498
|
+
"description": "when slug was deleted",
|
|
13499
|
+
"example": "2012-01-01T12:00:00Z",
|
|
13500
|
+
"format": "date-time",
|
|
13501
|
+
"readOnly": true,
|
|
13502
|
+
"type": [
|
|
13503
|
+
"string",
|
|
13504
|
+
"null"
|
|
13505
|
+
]
|
|
13429
13506
|
}
|
|
13430
13507
|
},
|
|
13431
13508
|
"links": [
|
|
@@ -13556,6 +13633,9 @@
|
|
|
13556
13633
|
},
|
|
13557
13634
|
"updated_at": {
|
|
13558
13635
|
"$ref": "#/definitions/slug/definitions/updated_at"
|
|
13636
|
+
},
|
|
13637
|
+
"deleted_at": {
|
|
13638
|
+
"$ref": "#/definitions/slug/definitions/deleted_at"
|
|
13559
13639
|
}
|
|
13560
13640
|
}
|
|
13561
13641
|
},
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: platform-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- jkakar
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 2026-02-19 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: bundler
|
|
@@ -170,8 +170,8 @@ executables: []
|
|
|
170
170
|
extensions: []
|
|
171
171
|
extra_rdoc_files: []
|
|
172
172
|
files:
|
|
173
|
-
- ".circleci/config.yml"
|
|
174
173
|
- ".github/workflows/check_changelog.yml"
|
|
174
|
+
- ".github/workflows/rspec.yml"
|
|
175
175
|
- ".gitignore"
|
|
176
176
|
- ".rspec"
|
|
177
177
|
- ".yardopts"
|
|
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
210
210
|
- !ruby/object:Gem::Version
|
|
211
211
|
version: '0'
|
|
212
212
|
requirements: []
|
|
213
|
-
rubygems_version: 3.6.
|
|
213
|
+
rubygems_version: 3.6.3
|
|
214
214
|
specification_version: 4
|
|
215
215
|
summary: Ruby HTTP client for the Heroku API.
|
|
216
216
|
test_files: []
|
data/.circleci/config.yml
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
references:
|
|
3
|
-
unit: &unit
|
|
4
|
-
run:
|
|
5
|
-
name: Run test suite
|
|
6
|
-
command: bundle exec rspec ./spec
|
|
7
|
-
hatchet_setup: &hatchet_setup
|
|
8
|
-
run:
|
|
9
|
-
name: Hatchet setup
|
|
10
|
-
command: |
|
|
11
|
-
bundle exec hatchet ci:setup
|
|
12
|
-
bundle: &bundle
|
|
13
|
-
run:
|
|
14
|
-
name: install dependencies
|
|
15
|
-
command: |
|
|
16
|
-
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
|
17
|
-
jobs:
|
|
18
|
-
"ruby-2.2":
|
|
19
|
-
docker:
|
|
20
|
-
- image: circleci/ruby:2.2
|
|
21
|
-
steps:
|
|
22
|
-
- checkout
|
|
23
|
-
- <<: *bundle
|
|
24
|
-
- <<: *hatchet_setup
|
|
25
|
-
- <<: *unit
|
|
26
|
-
"ruby-2.3":
|
|
27
|
-
docker:
|
|
28
|
-
- image: circleci/ruby:2.3
|
|
29
|
-
steps:
|
|
30
|
-
- checkout
|
|
31
|
-
- <<: *bundle
|
|
32
|
-
- <<: *hatchet_setup
|
|
33
|
-
- <<: *unit
|
|
34
|
-
"ruby-2.4":
|
|
35
|
-
docker:
|
|
36
|
-
- image: circleci/ruby:2.4
|
|
37
|
-
steps:
|
|
38
|
-
- checkout
|
|
39
|
-
- <<: *bundle
|
|
40
|
-
- <<: *hatchet_setup
|
|
41
|
-
- <<: *unit
|
|
42
|
-
"ruby-2.5":
|
|
43
|
-
docker:
|
|
44
|
-
- image: circleci/ruby:2.5
|
|
45
|
-
steps:
|
|
46
|
-
- checkout
|
|
47
|
-
- <<: *bundle
|
|
48
|
-
- <<: *hatchet_setup
|
|
49
|
-
- <<: *unit
|
|
50
|
-
"ruby-2.6":
|
|
51
|
-
docker:
|
|
52
|
-
- image: circleci/ruby:2.6
|
|
53
|
-
steps:
|
|
54
|
-
- checkout
|
|
55
|
-
- <<: *bundle
|
|
56
|
-
- <<: *hatchet_setup
|
|
57
|
-
- <<: *unit
|
|
58
|
-
"ruby-2.7":
|
|
59
|
-
docker:
|
|
60
|
-
- image: circleci/ruby:2.7
|
|
61
|
-
steps:
|
|
62
|
-
- checkout
|
|
63
|
-
- <<: *bundle
|
|
64
|
-
- <<: *hatchet_setup
|
|
65
|
-
- <<: *unit
|
|
66
|
-
"ruby-3.0":
|
|
67
|
-
docker:
|
|
68
|
-
- image: circleci/ruby:3.0
|
|
69
|
-
steps:
|
|
70
|
-
- checkout
|
|
71
|
-
- <<: *bundle
|
|
72
|
-
- <<: *hatchet_setup
|
|
73
|
-
- <<: *unit
|
|
74
|
-
"ruby-3.1":
|
|
75
|
-
docker:
|
|
76
|
-
- image: circleci/ruby:3.1
|
|
77
|
-
steps:
|
|
78
|
-
- checkout
|
|
79
|
-
- <<: *bundle
|
|
80
|
-
- <<: *hatchet_setup
|
|
81
|
-
- <<: *unit
|
|
82
|
-
|
|
83
|
-
workflows:
|
|
84
|
-
version: 2
|
|
85
|
-
build:
|
|
86
|
-
jobs:
|
|
87
|
-
- "ruby-2.2"
|
|
88
|
-
- "ruby-2.3"
|
|
89
|
-
- "ruby-2.4"
|
|
90
|
-
- "ruby-2.5"
|
|
91
|
-
- "ruby-2.6"
|
|
92
|
-
- "ruby-2.7"
|
|
93
|
-
- "ruby-3.0"
|
|
94
|
-
- "ruby-3.1"
|