platform-api 3.2.0 → 3.3.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/CHANGELOG.md +4 -0
- data/lib/platform-api/client.rb +183 -45
- data/lib/platform-api/version.rb +1 -1
- data/schema.json +159 -30
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 775b3ebd7968c6a1b1020cbbd50d99da0ad114e4029466bb84c18866032806fe
|
4
|
+
data.tar.gz: 82c37b81372786f9f17c34fe34e4697b9a69473988f031487d89bd15867687de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4cb07e01e08984f9ecf719a3e224b4aba9bb98a32a1958a8b0601a2a9f57bf5e6cb17dfc85f78f7cbb43faff1b4781fb72d01ba376a36fd7996577bb70f71e7
|
7
|
+
data.tar.gz: 99ea044167c91df670b2b7eea460a0318b7bfb90be0d5e128ead80c35f3f39add880ec69394544a5465f25ddf3ceb373659c7e5668a31dbbe096d37ceae5d9b6
|
data/CHANGELOG.md
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.3.0"}
|
87
87
|
{
|
88
88
|
default_headers: default_headers,
|
89
89
|
url: "https://api.heroku.com"
|
@@ -784,7 +784,7 @@ module PlatformAPI
|
|
784
784
|
@vpn_connection_resource ||= VpnConnection.new(@client)
|
785
785
|
end
|
786
786
|
|
787
|
-
# Entities that have been whitelisted to be used by
|
787
|
+
# Entities that have been whitelisted to be used by a Team. Deprecated in favor of [Allowed Add-on Service](#allowed-add-on-service) endpoints.
|
788
788
|
#
|
789
789
|
# @return [WhitelistedAddonService]
|
790
790
|
def whitelisted_addon_service
|
@@ -1514,7 +1514,7 @@ module PlatformAPI
|
|
1514
1514
|
@client = client
|
1515
1515
|
end
|
1516
1516
|
|
1517
|
-
# List existing events.
|
1517
|
+
# List existing events. Returns all events for one date, defaulting to current date. Order, actor, action, and type, and date query params can be specified as query parameters. For example, '/enterprise-accounts/:id/events?order=desc&actor=user@example.com&action=create&type=app&date=2020-09-30' would return events in descending order and only return app created events by the user with user@example.com email address.
|
1518
1518
|
#
|
1519
1519
|
# @param enterprise_account_id: unique identifier of the enterprise account
|
1520
1520
|
def list(enterprise_account_id)
|
@@ -3413,7 +3413,7 @@ module PlatformAPI
|
|
3413
3413
|
@client = client
|
3414
3414
|
end
|
3415
3415
|
|
3416
|
-
# Retrieves usage for an enterprise team for a range of days. Start and end dates can be specified as query parameters using the date format, YYYY-MM-DD format. For example, '/teams/example-team/usage?start=2019-01-01&end=2019-01-31' specifies all days in January for 2019.
|
3416
|
+
# Retrieves usage for an enterprise team for a range of days. Start and end dates can be specified as query parameters using the date format, YYYY-MM-DD format. For example, '/teams/example-team/usage/daily?start=2019-01-01&end=2019-01-31' specifies all days in January for 2019.
|
3417
3417
|
#
|
3418
3418
|
# @param team_id: unique identifier of team
|
3419
3419
|
def info(team_id)
|
@@ -3427,7 +3427,7 @@ module PlatformAPI
|
|
3427
3427
|
@client = client
|
3428
3428
|
end
|
3429
3429
|
|
3430
|
-
# Retrieves usage for an enterprise team for a range of months. Start and end dates can be specified as query parameters using the date format, YYYY-MM format. For example, '/teams/example-team/usage?start=2019-01&end=2019-02' specifies usage in January and February for 2019. If no end date is specified, one month of usage is returned.
|
3430
|
+
# Retrieves usage for an enterprise team for a range of months. Start and end dates can be specified as query parameters using the date format, YYYY-MM format. For example, '/teams/example-team/usage/monthly?start=2019-01&end=2019-02' specifies usage in January and February for 2019. If no end date is specified, one month of usage is returned.
|
3431
3431
|
#
|
3432
3432
|
# @param team_id: unique identifier of team
|
3433
3433
|
def info(team_id)
|
@@ -3621,35 +3621,44 @@ module PlatformAPI
|
|
3621
3621
|
def info(space_id_or_space_name, vpn_connection_id_or_vpn_connection_name)
|
3622
3622
|
@client.vpn_connection.info(space_id_or_space_name, vpn_connection_id_or_vpn_connection_name)
|
3623
3623
|
end
|
3624
|
+
|
3625
|
+
# Update a VPN connection in a private space.
|
3626
|
+
#
|
3627
|
+
# @param space_id_or_space_name: unique identifier of space or unique name of space
|
3628
|
+
# @param vpn_connection_id_or_vpn_connection_name: VPN ID or VPN Name
|
3629
|
+
# @param body: the object to pass as the request payload
|
3630
|
+
def update(space_id_or_space_name, vpn_connection_id_or_vpn_connection_name, body = {})
|
3631
|
+
@client.vpn_connection.update(space_id_or_space_name, vpn_connection_id_or_vpn_connection_name, body)
|
3632
|
+
end
|
3624
3633
|
end
|
3625
3634
|
|
3626
|
-
# Entities that have been whitelisted to be used by
|
3635
|
+
# Entities that have been whitelisted to be used by a Team. Deprecated in favor of [Allowed Add-on Service](#allowed-add-on-service) endpoints.
|
3627
3636
|
class WhitelistedAddonService
|
3628
3637
|
def initialize(client)
|
3629
3638
|
@client = client
|
3630
3639
|
end
|
3631
3640
|
|
3632
|
-
# List all whitelisted Add-on Services for
|
3641
|
+
# List all whitelisted Add-on Services for a Team - Deprecated in favor of [`GET /teams/{team_name_or_id}/allowed-addon-services`](#allowed-add-on-service-list-by-team) endpoint.
|
3633
3642
|
#
|
3634
3643
|
# @param team_name_or_team_id: unique name of team or unique identifier of team
|
3635
|
-
def
|
3636
|
-
@client.whitelisted_addon_service.
|
3644
|
+
def list_by_team_deprecated(team_name_or_team_id)
|
3645
|
+
@client.whitelisted_addon_service.list_by_team_deprecated(team_name_or_team_id)
|
3637
3646
|
end
|
3638
3647
|
|
3639
|
-
# Whitelist an Add-on Service
|
3648
|
+
# Whitelist an Add-on Service - Deprecated in favor of [`POST /teams/{team_name_or_id}/allowed-addon-services`](#allowed-add-on-service-create-by-team) endpoint.
|
3640
3649
|
#
|
3641
3650
|
# @param team_name_or_team_id: unique name of team or unique identifier of team
|
3642
3651
|
# @param body: the object to pass as the request payload
|
3643
|
-
def
|
3644
|
-
@client.whitelisted_addon_service.
|
3652
|
+
def create_by_team_deprecated(team_name_or_team_id, body = {})
|
3653
|
+
@client.whitelisted_addon_service.create_by_team_deprecated(team_name_or_team_id, body)
|
3645
3654
|
end
|
3646
3655
|
|
3647
|
-
# Remove a whitelisted entity
|
3656
|
+
# Remove a whitelisted entity - Deprecated in favor of [`DELETE /teams/{team_name_or_id}/allowed-addon-services/{allowed_add_on_service_id_or_name}`](#allowed-add-on-service-delete-by-team) endpoint.
|
3648
3657
|
#
|
3649
3658
|
# @param team_name_or_team_id: unique name of team or unique identifier of team
|
3650
3659
|
# @param whitelisted_addon_service_id_or_addon_service_name: unique identifier for this whitelisting entity or unique name of this add-on-service
|
3651
|
-
def
|
3652
|
-
@client.whitelisted_addon_service.
|
3660
|
+
def delete_by_team_deprecated(team_name_or_team_id, whitelisted_addon_service_id_or_addon_service_name)
|
3661
|
+
@client.whitelisted_addon_service.delete_by_team_deprecated(team_name_or_team_id, whitelisted_addon_service_id_or_addon_service_name)
|
3653
3662
|
end
|
3654
3663
|
end
|
3655
3664
|
|
@@ -3884,6 +3893,15 @@ module PlatformAPI
|
|
3884
3893
|
"string"
|
3885
3894
|
]
|
3886
3895
|
},
|
3896
|
+
"country_of_residence": {
|
3897
|
+
"description": "country where account owner resides",
|
3898
|
+
"example": "United States",
|
3899
|
+
"readOnly": false,
|
3900
|
+
"type": [
|
3901
|
+
"string",
|
3902
|
+
"null"
|
3903
|
+
]
|
3904
|
+
},
|
3887
3905
|
"email": {
|
3888
3906
|
"description": "unique email address of account",
|
3889
3907
|
"example": "username@example.com",
|
@@ -4017,7 +4035,8 @@ module PlatformAPI
|
|
4017
4035
|
]
|
4018
4036
|
},
|
4019
4037
|
"acknowledged_msa": {
|
4020
|
-
"
|
4038
|
+
"deprecated": true,
|
4039
|
+
"description": "deprecated. whether account has acknowledged the MSA terms of service",
|
4021
4040
|
"example": false,
|
4022
4041
|
"readOnly": true,
|
4023
4042
|
"type": [
|
@@ -4025,7 +4044,8 @@ module PlatformAPI
|
|
4025
4044
|
]
|
4026
4045
|
},
|
4027
4046
|
"acknowledged_msa_at": {
|
4028
|
-
"
|
4047
|
+
"deprecated": true,
|
4048
|
+
"description": "deprecated. when account has acknowledged the MSA terms of service",
|
4029
4049
|
"example": "2012-01-01T12:00:00Z",
|
4030
4050
|
"format": "date-time",
|
4031
4051
|
"readOnly": true,
|
@@ -4035,7 +4055,8 @@ module PlatformAPI
|
|
4035
4055
|
]
|
4036
4056
|
},
|
4037
4057
|
"italian_customer_terms": {
|
4038
|
-
"
|
4058
|
+
"deprecated": true,
|
4059
|
+
"description": "deprecated. whether account has acknowledged the Italian customer terms of service",
|
4039
4060
|
"example": "affirmatively_accepted",
|
4040
4061
|
"readOnly": true,
|
4041
4062
|
"type": [
|
@@ -4044,7 +4065,8 @@ module PlatformAPI
|
|
4044
4065
|
]
|
4045
4066
|
},
|
4046
4067
|
"italian_partner_terms": {
|
4047
|
-
"
|
4068
|
+
"deprecated": true,
|
4069
|
+
"description": "deprecated. whether account has acknowledged the Italian provider terms of service",
|
4048
4070
|
"example": "affirmatively_accepted",
|
4049
4071
|
"readOnly": true,
|
4050
4072
|
"type": [
|
@@ -4276,6 +4298,9 @@ module PlatformAPI
|
|
4276
4298
|
"italian_partner_terms": {
|
4277
4299
|
"$ref": "#/definitions/account/definitions/italian_partner_terms"
|
4278
4300
|
},
|
4301
|
+
"country_of_residence": {
|
4302
|
+
"$ref": "#/definitions/account/definitions/country_of_residence"
|
4303
|
+
},
|
4279
4304
|
"default_organization": {
|
4280
4305
|
"description": "team selected by default",
|
4281
4306
|
"properties": {
|
@@ -7902,12 +7927,24 @@ module PlatformAPI
|
|
7902
7927
|
},
|
7903
7928
|
"month": {
|
7904
7929
|
"description": "month of the archive",
|
7905
|
-
"
|
7930
|
+
"enum": [
|
7931
|
+
"01",
|
7932
|
+
"02",
|
7933
|
+
"03",
|
7934
|
+
"04",
|
7935
|
+
"05",
|
7936
|
+
"06",
|
7937
|
+
"07",
|
7938
|
+
"08",
|
7939
|
+
"09",
|
7940
|
+
"10",
|
7941
|
+
"11",
|
7942
|
+
"12"
|
7943
|
+
],
|
7944
|
+
"example": "10",
|
7906
7945
|
"readOnly": true,
|
7907
|
-
"minimum": 1,
|
7908
|
-
"maximum": 12,
|
7909
7946
|
"type": [
|
7910
|
-
"
|
7947
|
+
"string"
|
7911
7948
|
]
|
7912
7949
|
},
|
7913
7950
|
"year": {
|
@@ -8004,13 +8041,6 @@ module PlatformAPI
|
|
8004
8041
|
"string"
|
8005
8042
|
]
|
8006
8043
|
},
|
8007
|
-
"identity": {
|
8008
|
-
"anyOf": [
|
8009
|
-
{
|
8010
|
-
"$ref": "#/definitions/audit-trail-event/definitions/id"
|
8011
|
-
}
|
8012
|
-
]
|
8013
|
-
},
|
8014
8044
|
"type": {
|
8015
8045
|
"description": "type of event",
|
8016
8046
|
"readOnly": true,
|
@@ -8159,7 +8189,7 @@ module PlatformAPI
|
|
8159
8189
|
},
|
8160
8190
|
"links": [
|
8161
8191
|
{
|
8162
|
-
"description": "List existing events.",
|
8192
|
+
"description": "List existing events. Returns all events for one date, defaulting to current date. Order, actor, action, and type, and date query params can be specified as query parameters. For example, '/enterprise-accounts/:id/events?order=desc&actor=user@example.com&action=create&type=app&date=2020-09-30' would return events in descending order and only return app created events by the user with user@example.com email address.",
|
8163
8193
|
"href": "/enterprise-accounts/{(%23%2Fdefinitions%2Fenterprise-account%2Fdefinitions%2Fidentity)}/events",
|
8164
8194
|
"method": "GET",
|
8165
8195
|
"rel": "instances",
|
@@ -10144,8 +10174,8 @@ module PlatformAPI
|
|
10144
10174
|
"description": "Retrieves usage for an enterprise account for a range of days. Start and end dates can be specified as query parameters using the date format, YYYY-MM-DD format. For example, '/enterprise-accounts/example-account/usage/daily?start=2019-01-01&end=2019-01-31' specifies all days in January for 2019.",
|
10145
10175
|
"href": "/enterprise-accounts/{(%23%2Fdefinitions%2Fenterprise-account%2Fdefinitions%2Fid)}/usage/daily",
|
10146
10176
|
"method": "GET",
|
10147
|
-
"title": "Info",
|
10148
10177
|
"rel": "instances",
|
10178
|
+
"title": "Info",
|
10149
10179
|
"targetSchema": {
|
10150
10180
|
"items": {
|
10151
10181
|
"$ref": "#/definitions/enterprise-account-usage-daily"
|
@@ -16196,7 +16226,8 @@ module PlatformAPI
|
|
16196
16226
|
"example": "example.herokussl.com",
|
16197
16227
|
"readOnly": false,
|
16198
16228
|
"type": [
|
16199
|
-
"string"
|
16229
|
+
"string",
|
16230
|
+
"null"
|
16200
16231
|
]
|
16201
16232
|
},
|
16202
16233
|
"created_at": {
|
@@ -16252,6 +16283,26 @@ module PlatformAPI
|
|
16252
16283
|
"type": [
|
16253
16284
|
"string"
|
16254
16285
|
]
|
16286
|
+
},
|
16287
|
+
"domains": {
|
16288
|
+
"description": "domains associated with this SSL certificate",
|
16289
|
+
"type": [
|
16290
|
+
"array"
|
16291
|
+
],
|
16292
|
+
"readOnly": true,
|
16293
|
+
"items": {
|
16294
|
+
"$ref": "#/definitions/domain/definitions/id"
|
16295
|
+
}
|
16296
|
+
},
|
16297
|
+
"display_name": {
|
16298
|
+
"description": "unique name for SSL certificate",
|
16299
|
+
"example": "example",
|
16300
|
+
"pattern": "^[a-z][a-z0-9-]{2,29}$",
|
16301
|
+
"readOnly": false,
|
16302
|
+
"type": [
|
16303
|
+
"string",
|
16304
|
+
"null"
|
16305
|
+
]
|
16255
16306
|
}
|
16256
16307
|
},
|
16257
16308
|
"links": [
|
@@ -16363,6 +16414,65 @@ module PlatformAPI
|
|
16363
16414
|
},
|
16364
16415
|
"updated_at": {
|
16365
16416
|
"$ref": "#/definitions/sni-endpoint/definitions/updated_at"
|
16417
|
+
},
|
16418
|
+
"display_name": {
|
16419
|
+
"$ref": "#/definitions/sni-endpoint/definitions/display_name"
|
16420
|
+
},
|
16421
|
+
"domains": {
|
16422
|
+
"$ref": "#/definitions/sni-endpoint/definitions/domains"
|
16423
|
+
},
|
16424
|
+
"app": {
|
16425
|
+
"description": "application that this SSL certificate is on",
|
16426
|
+
"properties": {
|
16427
|
+
"id": {
|
16428
|
+
"$ref": "#/definitions/app/definitions/id"
|
16429
|
+
},
|
16430
|
+
"name": {
|
16431
|
+
"$ref": "#/definitions/app/definitions/name"
|
16432
|
+
}
|
16433
|
+
},
|
16434
|
+
"strictProperties": true,
|
16435
|
+
"type": [
|
16436
|
+
"object"
|
16437
|
+
]
|
16438
|
+
},
|
16439
|
+
"ssl_cert": {
|
16440
|
+
"description": "certificate provided by this endpoint",
|
16441
|
+
"type": [
|
16442
|
+
"object"
|
16443
|
+
],
|
16444
|
+
"properties": {
|
16445
|
+
"ca_signed?": {
|
16446
|
+
"$ref": "#/definitions/ssl-endpoint/definitions/ca_signed?"
|
16447
|
+
},
|
16448
|
+
"cert_domains": {
|
16449
|
+
"$ref": "#/definitions/ssl-endpoint/definitions/cert_domains"
|
16450
|
+
},
|
16451
|
+
"expires_at": {
|
16452
|
+
"$ref": "#/definitions/ssl-endpoint/definitions/expires_at"
|
16453
|
+
},
|
16454
|
+
"issuer": {
|
16455
|
+
"$ref": "#/definitions/ssl-endpoint/definitions/issuer"
|
16456
|
+
},
|
16457
|
+
"self_signed?": {
|
16458
|
+
"$ref": "#/definitions/ssl-endpoint/definitions/self_signed?"
|
16459
|
+
},
|
16460
|
+
"starts_at": {
|
16461
|
+
"$ref": "#/definitions/ssl-endpoint/definitions/starts_at"
|
16462
|
+
},
|
16463
|
+
"subject": {
|
16464
|
+
"$ref": "#/definitions/ssl-endpoint/definitions/subject"
|
16465
|
+
},
|
16466
|
+
"id": {
|
16467
|
+
"description": "unique identifier of this SSL certificate",
|
16468
|
+
"example": "01234567-89ab-cdef-0123-456789abcdef",
|
16469
|
+
"format": "uuid",
|
16470
|
+
"readOnly": true,
|
16471
|
+
"type": [
|
16472
|
+
"string"
|
16473
|
+
]
|
16474
|
+
}
|
16475
|
+
}
|
16366
16476
|
}
|
16367
16477
|
}
|
16368
16478
|
},
|
@@ -17163,7 +17273,8 @@ module PlatformAPI
|
|
17163
17273
|
"pattern": "^[a-z][a-z0-9-]{2,29}$",
|
17164
17274
|
"readOnly": false,
|
17165
17275
|
"type": [
|
17166
|
-
"string"
|
17276
|
+
"string",
|
17277
|
+
"null"
|
17167
17278
|
]
|
17168
17279
|
},
|
17169
17280
|
"expires_at": {
|
@@ -19033,7 +19144,8 @@ module PlatformAPI
|
|
19033
19144
|
"$ref": "#/definitions/team/definitions/identity"
|
19034
19145
|
},
|
19035
19146
|
"whitelisting-enabled": {
|
19036
|
-
"
|
19147
|
+
"deactivate_on": "2021-02-05",
|
19148
|
+
"description": "Whether whitelisting rules should be applied to add-on installations. Deprecated in favor of `addons-controls`",
|
19037
19149
|
"example": true,
|
19038
19150
|
"readOnly": false,
|
19039
19151
|
"type": [
|
@@ -19227,7 +19339,7 @@ module PlatformAPI
|
|
19227
19339
|
},
|
19228
19340
|
"links": [
|
19229
19341
|
{
|
19230
|
-
"description": "Retrieves usage for an enterprise team for a range of days. Start and end dates can be specified as query parameters using the date format, YYYY-MM-DD format. For example, '/teams/example-team/usage?start=2019-01-01&end=2019-01-31' specifies all days in January for 2019.",
|
19342
|
+
"description": "Retrieves usage for an enterprise team for a range of days. Start and end dates can be specified as query parameters using the date format, YYYY-MM-DD format. For example, '/teams/example-team/usage/daily?start=2019-01-01&end=2019-01-31' specifies all days in January for 2019.",
|
19231
19343
|
"href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fid)}/usage/daily",
|
19232
19344
|
"method": "GET",
|
19233
19345
|
"title": "Info",
|
@@ -19388,11 +19500,11 @@ module PlatformAPI
|
|
19388
19500
|
},
|
19389
19501
|
"links": [
|
19390
19502
|
{
|
19391
|
-
"description": "Retrieves usage for an enterprise team for a range of months. Start and end dates can be specified as query parameters using the date format, YYYY-MM format. For example, '/teams/example-team/usage?start=2019-01&end=2019-02' specifies usage in January and February for 2019. If no end date is specified, one month of usage is returned.",
|
19503
|
+
"description": "Retrieves usage for an enterprise team for a range of months. Start and end dates can be specified as query parameters using the date format, YYYY-MM format. For example, '/teams/example-team/usage/monthly?start=2019-01&end=2019-02' specifies usage in January and February for 2019. If no end date is specified, one month of usage is returned.",
|
19392
19504
|
"href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fid)}/usage/monthly",
|
19393
19505
|
"method": "GET",
|
19394
|
-
"rel": "instances",
|
19395
19506
|
"title": "Info",
|
19507
|
+
"rel": "instances",
|
19396
19508
|
"targetSchema": {
|
19397
19509
|
"items": {
|
19398
19510
|
"$ref": "#/definitions/team-usage-monthly"
|
@@ -21020,11 +21132,34 @@ module PlatformAPI
|
|
21020
21132
|
"$ref": "#/definitions/vpn-connection"
|
21021
21133
|
},
|
21022
21134
|
"title": "Info"
|
21135
|
+
},
|
21136
|
+
{
|
21137
|
+
"description": "Update a VPN connection in a private space.",
|
21138
|
+
"href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/vpn-connections/{(%23%2Fdefinitions%2Fvpn-connection%2Fdefinitions%2Fidentity)}",
|
21139
|
+
"rel": "update",
|
21140
|
+
"schema": {
|
21141
|
+
"properties": {
|
21142
|
+
"routable_cidrs": {
|
21143
|
+
"$ref": "#/definitions/vpn-connection/definitions/routable_cidrs"
|
21144
|
+
}
|
21145
|
+
},
|
21146
|
+
"required": [
|
21147
|
+
"routable_cidrs"
|
21148
|
+
],
|
21149
|
+
"type": [
|
21150
|
+
"object"
|
21151
|
+
]
|
21152
|
+
},
|
21153
|
+
"targetSchema": {
|
21154
|
+
"$ref": "#/definitions/vpn-connection"
|
21155
|
+
},
|
21156
|
+
"method": "PATCH",
|
21157
|
+
"title": "Update"
|
21023
21158
|
}
|
21024
21159
|
]
|
21025
21160
|
},
|
21026
21161
|
"whitelisted-add-on-service": {
|
21027
|
-
"description": "Entities that have been whitelisted to be used by
|
21162
|
+
"description": "Entities that have been whitelisted to be used by a Team. Deprecated in favor of [Allowed Add-on Service](#allowed-add-on-service) endpoints.",
|
21028
21163
|
"$schema": "http://json-schema.org/draft-04/hyper-schema",
|
21029
21164
|
"stability": "prototype",
|
21030
21165
|
"strictProperties": true,
|
@@ -21105,7 +21240,8 @@ module PlatformAPI
|
|
21105
21240
|
},
|
21106
21241
|
"links": [
|
21107
21242
|
{
|
21108
|
-
"
|
21243
|
+
"deactivate_on": "2021-02-05",
|
21244
|
+
"description": "List all whitelisted Add-on Services for a Team - Deprecated in favor of [`GET /teams/{team_name_or_id}/allowed-addon-services`](#allowed-add-on-service-list-by-team) endpoint.",
|
21109
21245
|
"href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/whitelisted-addon-services",
|
21110
21246
|
"method": "GET",
|
21111
21247
|
"rel": "instances",
|
@@ -21117,10 +21253,11 @@ module PlatformAPI
|
|
21117
21253
|
"array"
|
21118
21254
|
]
|
21119
21255
|
},
|
21120
|
-
"title": "List By Team"
|
21256
|
+
"title": "List By Team - Deprecated"
|
21121
21257
|
},
|
21122
21258
|
{
|
21123
|
-
"
|
21259
|
+
"deactivate_on": "2021-02-05",
|
21260
|
+
"description": "Whitelist an Add-on Service - Deprecated in favor of [`POST /teams/{team_name_or_id}/allowed-addon-services`](#allowed-add-on-service-create-by-team) endpoint.",
|
21124
21261
|
"href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/whitelisted-addon-services",
|
21125
21262
|
"method": "POST",
|
21126
21263
|
"rel": "create",
|
@@ -21146,17 +21283,18 @@ module PlatformAPI
|
|
21146
21283
|
"array"
|
21147
21284
|
]
|
21148
21285
|
},
|
21149
|
-
"title": "Create By Team"
|
21286
|
+
"title": "Create By Team - Deprecated"
|
21150
21287
|
},
|
21151
21288
|
{
|
21152
|
-
"
|
21289
|
+
"deactivate_on": "2021-02-05",
|
21290
|
+
"description": "Remove a whitelisted entity - Deprecated in favor of [`DELETE /teams/{team_name_or_id}/allowed-addon-services/{allowed_add_on_service_id_or_name}`](#allowed-add-on-service-delete-by-team) endpoint.",
|
21153
21291
|
"href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/whitelisted-addon-services/{(%23%2Fdefinitions%2Fwhitelisted-add-on-service%2Fdefinitions%2Fidentity)}",
|
21154
21292
|
"method": "DELETE",
|
21155
21293
|
"rel": "destroy",
|
21156
21294
|
"targetSchema": {
|
21157
21295
|
"$ref": "#/definitions/whitelisted-add-on-service"
|
21158
21296
|
},
|
21159
|
-
"title": "Delete By Team"
|
21297
|
+
"title": "Delete By Team - Deprecated"
|
21160
21298
|
}
|
21161
21299
|
],
|
21162
21300
|
"properties": {
|
data/lib/platform-api/version.rb
CHANGED
data/schema.json
CHANGED
@@ -228,6 +228,15 @@
|
|
228
228
|
"string"
|
229
229
|
]
|
230
230
|
},
|
231
|
+
"country_of_residence": {
|
232
|
+
"description": "country where account owner resides",
|
233
|
+
"example": "United States",
|
234
|
+
"readOnly": false,
|
235
|
+
"type": [
|
236
|
+
"string",
|
237
|
+
"null"
|
238
|
+
]
|
239
|
+
},
|
231
240
|
"email": {
|
232
241
|
"description": "unique email address of account",
|
233
242
|
"example": "username@example.com",
|
@@ -361,7 +370,8 @@
|
|
361
370
|
]
|
362
371
|
},
|
363
372
|
"acknowledged_msa": {
|
364
|
-
"
|
373
|
+
"deprecated": true,
|
374
|
+
"description": "deprecated. whether account has acknowledged the MSA terms of service",
|
365
375
|
"example": false,
|
366
376
|
"readOnly": true,
|
367
377
|
"type": [
|
@@ -369,7 +379,8 @@
|
|
369
379
|
]
|
370
380
|
},
|
371
381
|
"acknowledged_msa_at": {
|
372
|
-
"
|
382
|
+
"deprecated": true,
|
383
|
+
"description": "deprecated. when account has acknowledged the MSA terms of service",
|
373
384
|
"example": "2012-01-01T12:00:00Z",
|
374
385
|
"format": "date-time",
|
375
386
|
"readOnly": true,
|
@@ -379,7 +390,8 @@
|
|
379
390
|
]
|
380
391
|
},
|
381
392
|
"italian_customer_terms": {
|
382
|
-
"
|
393
|
+
"deprecated": true,
|
394
|
+
"description": "deprecated. whether account has acknowledged the Italian customer terms of service",
|
383
395
|
"example": "affirmatively_accepted",
|
384
396
|
"readOnly": true,
|
385
397
|
"type": [
|
@@ -388,7 +400,8 @@
|
|
388
400
|
]
|
389
401
|
},
|
390
402
|
"italian_partner_terms": {
|
391
|
-
"
|
403
|
+
"deprecated": true,
|
404
|
+
"description": "deprecated. whether account has acknowledged the Italian provider terms of service",
|
392
405
|
"example": "affirmatively_accepted",
|
393
406
|
"readOnly": true,
|
394
407
|
"type": [
|
@@ -620,6 +633,9 @@
|
|
620
633
|
"italian_partner_terms": {
|
621
634
|
"$ref": "#/definitions/account/definitions/italian_partner_terms"
|
622
635
|
},
|
636
|
+
"country_of_residence": {
|
637
|
+
"$ref": "#/definitions/account/definitions/country_of_residence"
|
638
|
+
},
|
623
639
|
"default_organization": {
|
624
640
|
"description": "team selected by default",
|
625
641
|
"properties": {
|
@@ -4246,12 +4262,24 @@
|
|
4246
4262
|
},
|
4247
4263
|
"month": {
|
4248
4264
|
"description": "month of the archive",
|
4249
|
-
"
|
4265
|
+
"enum": [
|
4266
|
+
"01",
|
4267
|
+
"02",
|
4268
|
+
"03",
|
4269
|
+
"04",
|
4270
|
+
"05",
|
4271
|
+
"06",
|
4272
|
+
"07",
|
4273
|
+
"08",
|
4274
|
+
"09",
|
4275
|
+
"10",
|
4276
|
+
"11",
|
4277
|
+
"12"
|
4278
|
+
],
|
4279
|
+
"example": "10",
|
4250
4280
|
"readOnly": true,
|
4251
|
-
"minimum": 1,
|
4252
|
-
"maximum": 12,
|
4253
4281
|
"type": [
|
4254
|
-
"
|
4282
|
+
"string"
|
4255
4283
|
]
|
4256
4284
|
},
|
4257
4285
|
"year": {
|
@@ -4348,13 +4376,6 @@
|
|
4348
4376
|
"string"
|
4349
4377
|
]
|
4350
4378
|
},
|
4351
|
-
"identity": {
|
4352
|
-
"anyOf": [
|
4353
|
-
{
|
4354
|
-
"$ref": "#/definitions/audit-trail-event/definitions/id"
|
4355
|
-
}
|
4356
|
-
]
|
4357
|
-
},
|
4358
4379
|
"type": {
|
4359
4380
|
"description": "type of event",
|
4360
4381
|
"readOnly": true,
|
@@ -4503,7 +4524,7 @@
|
|
4503
4524
|
},
|
4504
4525
|
"links": [
|
4505
4526
|
{
|
4506
|
-
"description": "List existing events.",
|
4527
|
+
"description": "List existing events. Returns all events for one date, defaulting to current date. Order, actor, action, and type, and date query params can be specified as query parameters. For example, '/enterprise-accounts/:id/events?order=desc&actor=user@example.com&action=create&type=app&date=2020-09-30' would return events in descending order and only return app created events by the user with user@example.com email address.",
|
4507
4528
|
"href": "/enterprise-accounts/{(%23%2Fdefinitions%2Fenterprise-account%2Fdefinitions%2Fidentity)}/events",
|
4508
4529
|
"method": "GET",
|
4509
4530
|
"rel": "instances",
|
@@ -6488,8 +6509,8 @@
|
|
6488
6509
|
"description": "Retrieves usage for an enterprise account for a range of days. Start and end dates can be specified as query parameters using the date format, YYYY-MM-DD format. For example, '/enterprise-accounts/example-account/usage/daily?start=2019-01-01&end=2019-01-31' specifies all days in January for 2019.",
|
6489
6510
|
"href": "/enterprise-accounts/{(%23%2Fdefinitions%2Fenterprise-account%2Fdefinitions%2Fid)}/usage/daily",
|
6490
6511
|
"method": "GET",
|
6491
|
-
"title": "Info",
|
6492
6512
|
"rel": "instances",
|
6513
|
+
"title": "Info",
|
6493
6514
|
"targetSchema": {
|
6494
6515
|
"items": {
|
6495
6516
|
"$ref": "#/definitions/enterprise-account-usage-daily"
|
@@ -12537,7 +12558,8 @@
|
|
12537
12558
|
"example": "example.herokussl.com",
|
12538
12559
|
"readOnly": false,
|
12539
12560
|
"type": [
|
12540
|
-
"string"
|
12561
|
+
"string",
|
12562
|
+
"null"
|
12541
12563
|
]
|
12542
12564
|
},
|
12543
12565
|
"created_at": {
|
@@ -12593,6 +12615,26 @@
|
|
12593
12615
|
"type": [
|
12594
12616
|
"string"
|
12595
12617
|
]
|
12618
|
+
},
|
12619
|
+
"domains": {
|
12620
|
+
"description": "domains associated with this SSL certificate",
|
12621
|
+
"type": [
|
12622
|
+
"array"
|
12623
|
+
],
|
12624
|
+
"readOnly": true,
|
12625
|
+
"items": {
|
12626
|
+
"$ref": "#/definitions/domain/definitions/id"
|
12627
|
+
}
|
12628
|
+
},
|
12629
|
+
"display_name": {
|
12630
|
+
"description": "unique name for SSL certificate",
|
12631
|
+
"example": "example",
|
12632
|
+
"pattern": "^[a-z][a-z0-9-]{2,29}$",
|
12633
|
+
"readOnly": false,
|
12634
|
+
"type": [
|
12635
|
+
"string",
|
12636
|
+
"null"
|
12637
|
+
]
|
12596
12638
|
}
|
12597
12639
|
},
|
12598
12640
|
"links": [
|
@@ -12704,6 +12746,65 @@
|
|
12704
12746
|
},
|
12705
12747
|
"updated_at": {
|
12706
12748
|
"$ref": "#/definitions/sni-endpoint/definitions/updated_at"
|
12749
|
+
},
|
12750
|
+
"display_name": {
|
12751
|
+
"$ref": "#/definitions/sni-endpoint/definitions/display_name"
|
12752
|
+
},
|
12753
|
+
"domains": {
|
12754
|
+
"$ref": "#/definitions/sni-endpoint/definitions/domains"
|
12755
|
+
},
|
12756
|
+
"app": {
|
12757
|
+
"description": "application that this SSL certificate is on",
|
12758
|
+
"properties": {
|
12759
|
+
"id": {
|
12760
|
+
"$ref": "#/definitions/app/definitions/id"
|
12761
|
+
},
|
12762
|
+
"name": {
|
12763
|
+
"$ref": "#/definitions/app/definitions/name"
|
12764
|
+
}
|
12765
|
+
},
|
12766
|
+
"strictProperties": true,
|
12767
|
+
"type": [
|
12768
|
+
"object"
|
12769
|
+
]
|
12770
|
+
},
|
12771
|
+
"ssl_cert": {
|
12772
|
+
"description": "certificate provided by this endpoint",
|
12773
|
+
"type": [
|
12774
|
+
"object"
|
12775
|
+
],
|
12776
|
+
"properties": {
|
12777
|
+
"ca_signed?": {
|
12778
|
+
"$ref": "#/definitions/ssl-endpoint/definitions/ca_signed?"
|
12779
|
+
},
|
12780
|
+
"cert_domains": {
|
12781
|
+
"$ref": "#/definitions/ssl-endpoint/definitions/cert_domains"
|
12782
|
+
},
|
12783
|
+
"expires_at": {
|
12784
|
+
"$ref": "#/definitions/ssl-endpoint/definitions/expires_at"
|
12785
|
+
},
|
12786
|
+
"issuer": {
|
12787
|
+
"$ref": "#/definitions/ssl-endpoint/definitions/issuer"
|
12788
|
+
},
|
12789
|
+
"self_signed?": {
|
12790
|
+
"$ref": "#/definitions/ssl-endpoint/definitions/self_signed?"
|
12791
|
+
},
|
12792
|
+
"starts_at": {
|
12793
|
+
"$ref": "#/definitions/ssl-endpoint/definitions/starts_at"
|
12794
|
+
},
|
12795
|
+
"subject": {
|
12796
|
+
"$ref": "#/definitions/ssl-endpoint/definitions/subject"
|
12797
|
+
},
|
12798
|
+
"id": {
|
12799
|
+
"description": "unique identifier of this SSL certificate",
|
12800
|
+
"example": "01234567-89ab-cdef-0123-456789abcdef",
|
12801
|
+
"format": "uuid",
|
12802
|
+
"readOnly": true,
|
12803
|
+
"type": [
|
12804
|
+
"string"
|
12805
|
+
]
|
12806
|
+
}
|
12807
|
+
}
|
12707
12808
|
}
|
12708
12809
|
}
|
12709
12810
|
},
|
@@ -13504,7 +13605,8 @@
|
|
13504
13605
|
"pattern": "^[a-z][a-z0-9-]{2,29}$",
|
13505
13606
|
"readOnly": false,
|
13506
13607
|
"type": [
|
13507
|
-
"string"
|
13608
|
+
"string",
|
13609
|
+
"null"
|
13508
13610
|
]
|
13509
13611
|
},
|
13510
13612
|
"expires_at": {
|
@@ -15374,7 +15476,8 @@
|
|
15374
15476
|
"$ref": "#/definitions/team/definitions/identity"
|
15375
15477
|
},
|
15376
15478
|
"whitelisting-enabled": {
|
15377
|
-
"
|
15479
|
+
"deactivate_on": "2021-02-05",
|
15480
|
+
"description": "Whether whitelisting rules should be applied to add-on installations. Deprecated in favor of `addons-controls`",
|
15378
15481
|
"example": true,
|
15379
15482
|
"readOnly": false,
|
15380
15483
|
"type": [
|
@@ -15568,7 +15671,7 @@
|
|
15568
15671
|
},
|
15569
15672
|
"links": [
|
15570
15673
|
{
|
15571
|
-
"description": "Retrieves usage for an enterprise team for a range of days. Start and end dates can be specified as query parameters using the date format, YYYY-MM-DD format. For example, '/teams/example-team/usage?start=2019-01-01&end=2019-01-31' specifies all days in January for 2019.",
|
15674
|
+
"description": "Retrieves usage for an enterprise team for a range of days. Start and end dates can be specified as query parameters using the date format, YYYY-MM-DD format. For example, '/teams/example-team/usage/daily?start=2019-01-01&end=2019-01-31' specifies all days in January for 2019.",
|
15572
15675
|
"href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fid)}/usage/daily",
|
15573
15676
|
"method": "GET",
|
15574
15677
|
"title": "Info",
|
@@ -15729,11 +15832,11 @@
|
|
15729
15832
|
},
|
15730
15833
|
"links": [
|
15731
15834
|
{
|
15732
|
-
"description": "Retrieves usage for an enterprise team for a range of months. Start and end dates can be specified as query parameters using the date format, YYYY-MM format. For example, '/teams/example-team/usage?start=2019-01&end=2019-02' specifies usage in January and February for 2019. If no end date is specified, one month of usage is returned.",
|
15835
|
+
"description": "Retrieves usage for an enterprise team for a range of months. Start and end dates can be specified as query parameters using the date format, YYYY-MM format. For example, '/teams/example-team/usage/monthly?start=2019-01&end=2019-02' specifies usage in January and February for 2019. If no end date is specified, one month of usage is returned.",
|
15733
15836
|
"href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fid)}/usage/monthly",
|
15734
15837
|
"method": "GET",
|
15735
|
-
"rel": "instances",
|
15736
15838
|
"title": "Info",
|
15839
|
+
"rel": "instances",
|
15737
15840
|
"targetSchema": {
|
15738
15841
|
"items": {
|
15739
15842
|
"$ref": "#/definitions/team-usage-monthly"
|
@@ -17361,11 +17464,34 @@
|
|
17361
17464
|
"$ref": "#/definitions/vpn-connection"
|
17362
17465
|
},
|
17363
17466
|
"title": "Info"
|
17467
|
+
},
|
17468
|
+
{
|
17469
|
+
"description": "Update a VPN connection in a private space.",
|
17470
|
+
"href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/vpn-connections/{(%23%2Fdefinitions%2Fvpn-connection%2Fdefinitions%2Fidentity)}",
|
17471
|
+
"rel": "update",
|
17472
|
+
"schema": {
|
17473
|
+
"properties": {
|
17474
|
+
"routable_cidrs": {
|
17475
|
+
"$ref": "#/definitions/vpn-connection/definitions/routable_cidrs"
|
17476
|
+
}
|
17477
|
+
},
|
17478
|
+
"required": [
|
17479
|
+
"routable_cidrs"
|
17480
|
+
],
|
17481
|
+
"type": [
|
17482
|
+
"object"
|
17483
|
+
]
|
17484
|
+
},
|
17485
|
+
"targetSchema": {
|
17486
|
+
"$ref": "#/definitions/vpn-connection"
|
17487
|
+
},
|
17488
|
+
"method": "PATCH",
|
17489
|
+
"title": "Update"
|
17364
17490
|
}
|
17365
17491
|
]
|
17366
17492
|
},
|
17367
17493
|
"whitelisted-add-on-service": {
|
17368
|
-
"description": "Entities that have been whitelisted to be used by
|
17494
|
+
"description": "Entities that have been whitelisted to be used by a Team. Deprecated in favor of [Allowed Add-on Service](#allowed-add-on-service) endpoints.",
|
17369
17495
|
"$schema": "http://json-schema.org/draft-04/hyper-schema",
|
17370
17496
|
"stability": "prototype",
|
17371
17497
|
"strictProperties": true,
|
@@ -17446,7 +17572,8 @@
|
|
17446
17572
|
},
|
17447
17573
|
"links": [
|
17448
17574
|
{
|
17449
|
-
"
|
17575
|
+
"deactivate_on": "2021-02-05",
|
17576
|
+
"description": "List all whitelisted Add-on Services for a Team - Deprecated in favor of [`GET /teams/{team_name_or_id}/allowed-addon-services`](#allowed-add-on-service-list-by-team) endpoint.",
|
17450
17577
|
"href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/whitelisted-addon-services",
|
17451
17578
|
"method": "GET",
|
17452
17579
|
"rel": "instances",
|
@@ -17458,10 +17585,11 @@
|
|
17458
17585
|
"array"
|
17459
17586
|
]
|
17460
17587
|
},
|
17461
|
-
"title": "List By Team"
|
17588
|
+
"title": "List By Team - Deprecated"
|
17462
17589
|
},
|
17463
17590
|
{
|
17464
|
-
"
|
17591
|
+
"deactivate_on": "2021-02-05",
|
17592
|
+
"description": "Whitelist an Add-on Service - Deprecated in favor of [`POST /teams/{team_name_or_id}/allowed-addon-services`](#allowed-add-on-service-create-by-team) endpoint.",
|
17465
17593
|
"href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/whitelisted-addon-services",
|
17466
17594
|
"method": "POST",
|
17467
17595
|
"rel": "create",
|
@@ -17487,17 +17615,18 @@
|
|
17487
17615
|
"array"
|
17488
17616
|
]
|
17489
17617
|
},
|
17490
|
-
"title": "Create By Team"
|
17618
|
+
"title": "Create By Team - Deprecated"
|
17491
17619
|
},
|
17492
17620
|
{
|
17493
|
-
"
|
17621
|
+
"deactivate_on": "2021-02-05",
|
17622
|
+
"description": "Remove a whitelisted entity - Deprecated in favor of [`DELETE /teams/{team_name_or_id}/allowed-addon-services/{allowed_add_on_service_id_or_name}`](#allowed-add-on-service-delete-by-team) endpoint.",
|
17494
17623
|
"href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/whitelisted-addon-services/{(%23%2Fdefinitions%2Fwhitelisted-add-on-service%2Fdefinitions%2Fidentity)}",
|
17495
17624
|
"method": "DELETE",
|
17496
17625
|
"rel": "destroy",
|
17497
17626
|
"targetSchema": {
|
17498
17627
|
"$ref": "#/definitions/whitelisted-add-on-service"
|
17499
17628
|
},
|
17500
|
-
"title": "Delete By Team"
|
17629
|
+
"title": "Delete By Team - Deprecated"
|
17501
17630
|
}
|
17502
17631
|
],
|
17503
17632
|
"properties": {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: platform-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jkakar
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -196,7 +196,7 @@ homepage: https://github.com/heroku/platform-api
|
|
196
196
|
licenses:
|
197
197
|
- MIT
|
198
198
|
metadata: {}
|
199
|
-
post_install_message:
|
199
|
+
post_install_message:
|
200
200
|
rdoc_options: []
|
201
201
|
require_paths:
|
202
202
|
- lib
|
@@ -211,8 +211,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
211
|
- !ruby/object:Gem::Version
|
212
212
|
version: '0'
|
213
213
|
requirements: []
|
214
|
-
rubygems_version: 3.
|
215
|
-
signing_key:
|
214
|
+
rubygems_version: 3.2.4
|
215
|
+
signing_key:
|
216
216
|
specification_version: 4
|
217
217
|
summary: Ruby HTTP client for the Heroku API.
|
218
218
|
test_files: []
|