aptible-api 1.2.23 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3304feee15e86575d19e5398e6b226d4bfc66b8c9fcbc2dcc2e9d21b238f7376
4
- data.tar.gz: 2b29e82e068c98d2417f84dd5135dab98b6e1a57116bc2a472960c8e2c924e0b
3
+ metadata.gz: 49046addfd3fae3383875f043b21e5ad8a09028f568c7f7545a420e63d50bcd8
4
+ data.tar.gz: bfe029ca214e1f0ea5f892b90162e012c77e2cc6dcef9db86583dc49c2a3a6ae
5
5
  SHA512:
6
- metadata.gz: '04594bdf637468bef62c65a99f642e01879642e9a47f4ac9256a15baa17adbdc9e04430487884d5450f3ba8a047867e1585001e45d9bf1ce1be9e15645f5abf8'
7
- data.tar.gz: 8f90e757af14dec972ad761a6c89394783c4900b69fa5fcbb4e5f57d139662a26f1118775ab6e8b9520e6f436b4bcd7f6d93e28e8c2a73490f9834211caa5828
6
+ metadata.gz: 2a915a1390a5183e291091bbadec3d8fc87463abc6e3e418556f38d2894533a831ca12ff663e5b7a81e3508ec836101eaf42b40ed2ddf703385d25c62df96a02
7
+ data.tar.gz: d6587b1a4e5800c7981abff113ea883177d32fb0748617d6346b537579190a92c2d9002fff7d5b156921c97a8c16f46a22d51e3d0d1ada5924e67839aa44d1ec
data/SECURITY.md ADDED
@@ -0,0 +1,23 @@
1
+ # Aptible Open Source Security Policies and Procedures
2
+
3
+ This document outlines security procedures and general policies for the Aptible open source projects as found on https://github.com/aptible.
4
+
5
+ * [Reporting a Vulnerability](#reporting-a-vulnerability)
6
+ * [Responsible Disclosure Policy](#responsible-disclosure-policy)
7
+
8
+ ## Reporting a Vulnerability
9
+
10
+ The Aptible team and community take all security vulnerabilities
11
+ seriously. Thank you for improving the security of our open source software. We appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions.
12
+
13
+ Report security vulnerabilities by emailing the Aptible security team at:
14
+
15
+ security@aptible.com
16
+
17
+ Security researchers can also privately report security vulnerabilities to repository maintainers using the GitHub "Report a Vulnerability" feature. [See how-to here](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability#privately-reporting-a-security-vulnerability).
18
+
19
+ The Aptible team will acknowledge your email within 24 business hours and send a detailed response within 48 business hours indicating the next steps in handling your report. The Aptible security team will keep you informed of the progress and may ask for additional information or guidance.
20
+
21
+ ## Responsible Disclosure Policy
22
+
23
+ Please see Aptible's Responsible Disclosure Policy here: https://www.aptible.com/legal/responsible-disclosure/
@@ -0,0 +1,24 @@
1
+ module Aptible
2
+ module Api
3
+ class ActivePlan < Resource
4
+ belongs_to :plan
5
+
6
+ field :id
7
+ field :plan_id
8
+ field :container_memory_limit_mb
9
+ field :cpu_allowed_profiles
10
+ field :disk_limit_gb
11
+ field :ephemeral_session_limit
12
+ field :environment_limit
13
+ field :vhost_limit
14
+ field :compliance_dashboard_access
15
+ field :available_plans
16
+ field :included_container_mb
17
+ field :included_disk_gb
18
+ field :included_vhosts
19
+ field :organization_id
20
+ field :created_at, type: Time
21
+ field :updated_at, type: Time
22
+ end
23
+ end
24
+ end
@@ -3,6 +3,7 @@ module Aptible
3
3
  class App < Resource
4
4
  belongs_to :account
5
5
  belongs_to :current_configuration
6
+ has_one :last_code_scan_result
6
7
  embeds_one :current_image
7
8
  embeds_one :last_operation
8
9
  embeds_one :last_deploy_operation
@@ -12,6 +13,9 @@ module Aptible
12
13
  has_many :vhosts
13
14
  has_many :ephemeral_sessions
14
15
  has_many :aws_instances
16
+ has_many :prerelease_commands
17
+ has_many :service_definitions
18
+ has_many :code_scan_results
15
19
  embeds_many :services
16
20
 
17
21
  field :id
@@ -0,0 +1,19 @@
1
+ module Aptible
2
+ module Api
3
+ class CodeScanResult < Resource
4
+ belongs_to :app
5
+ belongs_to :operation
6
+
7
+ field :id
8
+ field :dockerfile_present
9
+ field :procfile_present
10
+ field :aptible_yml_present
11
+ field :git_ref
12
+ field :git_commit
13
+
14
+ field :created_at, type: Time
15
+ field :updated_at, type: Time
16
+ field :deleted_at, type: Time
17
+ end
18
+ end
19
+ end
@@ -18,6 +18,7 @@ module Aptible
18
18
  field :aws_instance_id
19
19
  field :port_mapping
20
20
  field :mounts
21
+ field :instance_class
21
22
  end
22
23
  end
23
24
  end
@@ -10,6 +10,8 @@ module Aptible
10
10
  has_many :ssh_portal_connections
11
11
  has_many :ephemeral_sessions
12
12
 
13
+ has_one :code_scan_result
14
+
13
15
  field :id
14
16
  field :type
15
17
  field :status
@@ -0,0 +1,20 @@
1
+ module Aptible
2
+ module Api
3
+ class Plan < Resource
4
+ field :id
5
+ field :name
6
+ field :container_memory_limit_mb
7
+ field :cpu_allowed_profiles
8
+ field :disk_limit_gb
9
+ field :ephemeral_session_limit
10
+ field :environment_limit
11
+ field :vhost_limit
12
+ field :compliance_dashboard_access
13
+ field :included_container_mb
14
+ field :included_disk_gb
15
+ field :included_vhosts
16
+ field :created_at, type: Time
17
+ field :updated_at, type: Time
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,14 @@
1
+ module Aptible
2
+ module Api
3
+ class PrereleaseCommand < Resource
4
+ belongs_to :app
5
+
6
+ field :id
7
+
8
+ field :command
9
+ field :index
10
+ field :created_at, type: Time
11
+ field :updated_at, type: Time
12
+ end
13
+ end
14
+ end
@@ -43,3 +43,8 @@ require 'aptible/api/ephemeral_session'
43
43
  require 'aptible/api/ephemeral_container'
44
44
  require 'aptible/api/metric_drain'
45
45
  require 'aptible/api/backup_retention_policy'
46
+ require 'aptible/api/prerelease_command'
47
+ require 'aptible/api/service_definition'
48
+ require 'aptible/api/code_scan_result'
49
+ require 'aptible/api/active_plan'
50
+ require 'aptible/api/plan'
@@ -0,0 +1,14 @@
1
+ module Aptible
2
+ module Api
3
+ class ServiceDefinition < Resource
4
+ belongs_to :app
5
+
6
+ field :id
7
+
8
+ field :command
9
+ field :process_type
10
+ field :created_at, type: Time
11
+ field :updated_at, type: Time
12
+ end
13
+ end
14
+ end
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Api
3
- VERSION = '1.2.23'.freeze
3
+ VERSION = '1.4.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.23
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-24 00:00:00.000000000 Z
11
+ date: 2023-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-auth
@@ -194,9 +194,11 @@ files:
194
194
  - Procfile
195
195
  - README.md
196
196
  - Rakefile
197
+ - SECURITY.md
197
198
  - aptible-api.gemspec
198
199
  - lib/aptible/api.rb
199
200
  - lib/aptible/api/account.rb
201
+ - lib/aptible/api/active_plan.rb
200
202
  - lib/aptible/api/agent.rb
201
203
  - lib/aptible/api/ami.rb
202
204
  - lib/aptible/api/ami_release.rb
@@ -205,6 +207,7 @@ files:
205
207
  - lib/aptible/api/backup.rb
206
208
  - lib/aptible/api/backup_retention_policy.rb
207
209
  - lib/aptible/api/certificate.rb
210
+ - lib/aptible/api/code_scan_result.rb
208
211
  - lib/aptible/api/configuration.rb
209
212
  - lib/aptible/api/container.rb
210
213
  - lib/aptible/api/database.rb
@@ -220,9 +223,12 @@ files:
220
223
  - lib/aptible/api/metric_drain.rb
221
224
  - lib/aptible/api/operation.rb
222
225
  - lib/aptible/api/permission.rb
226
+ - lib/aptible/api/plan.rb
227
+ - lib/aptible/api/prerelease_command.rb
223
228
  - lib/aptible/api/release.rb
224
229
  - lib/aptible/api/resource.rb
225
230
  - lib/aptible/api/service.rb
231
+ - lib/aptible/api/service_definition.rb
226
232
  - lib/aptible/api/ssh_portal_connection.rb
227
233
  - lib/aptible/api/stack.rb
228
234
  - lib/aptible/api/stack_layer.rb