platform-api 2.0.0 → 2.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c4aae516003543d56b95c31564c5ac085c712fd
4
- data.tar.gz: 4fc170c197b77bb8ecf91c25b92bf80299422fcb
3
+ metadata.gz: 20ee97a7756d77bbdbe14370fa5e7b5539a6ea06
4
+ data.tar.gz: 2a9ed2ac554ecb7dab0eaf60cf43f37218791319
5
5
  SHA512:
6
- metadata.gz: 386690b8e56c1d7ce38431f6ee01767f790dd6d51e35d588ff9281469f937394d3dd0241c8b4e2eaa7ab24bb5e01de0fe45761ae584903674c1bc944334c19ac
7
- data.tar.gz: 0ae5ff2b89df9af9bc455dde3117f545107a480520d23fd12ab30a6add339e9233775e2b9cdb6959532ff9c27f55be04a6590524b1ee2a578cf28700f2630d27
6
+ metadata.gz: 871fb94ca5bb7da43e78a6493cebe088a2067a98e1d4e5ab74cedd44d541de5563f4f37b7d1a8d1b84775cfb5397cc9d48ce837ae39fd98bbd3d17742f785a23
7
+ data.tar.gz: b96e643c17c40cf91d7c4e3fc383c6ea46a350349d06a29286ab58be65c400d2cf492f8b80d160e45348a55f7d7801785988f9ccc5d9cb99cdfdd8efb026e59a
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- platform-api (2.0.0)
5
- heroics (~> 0.0.22)
4
+ platform-api (2.1.0)
5
+ heroics (~> 0.0.23)
6
6
  moneta (~> 0.8.1)
7
7
 
8
8
  GEM
@@ -11,8 +11,8 @@ GEM
11
11
  coderay (1.1.1)
12
12
  diff-lcs (1.3)
13
13
  erubis (2.7.0)
14
- excon (0.55.0)
15
- heroics (0.0.22)
14
+ excon (0.57.0)
15
+ heroics (0.0.23)
16
16
  erubis (~> 2.0)
17
17
  excon
18
18
  multi_json (>= 1.9.2)
@@ -1095,6 +1095,27 @@ module PlatformAPI
1095
1095
  def update(app_id_or_app_name, body = {})
1096
1096
  @client.app.update(app_id_or_app_name, body)
1097
1097
  end
1098
+
1099
+ # Enable ACM flag for an app
1100
+ #
1101
+ # @param app_id_or_app_name: unique identifier of app or unique name of app
1102
+ def enable_acm(app_id_or_app_name)
1103
+ @client.app.enable_acm(app_id_or_app_name)
1104
+ end
1105
+
1106
+ # Disable ACM flag for an app
1107
+ #
1108
+ # @param app_id_or_app_name: unique identifier of app or unique name of app
1109
+ def disable_acm(app_id_or_app_name)
1110
+ @client.app.disable_acm(app_id_or_app_name)
1111
+ end
1112
+
1113
+ # Refresh ACM for an app
1114
+ #
1115
+ # @param app_id_or_app_name: unique identifier of app or unique name of app
1116
+ def refresh_acm(app_id_or_app_name)
1117
+ @client.app.refresh_acm(app_id_or_app_name)
1118
+ end
1098
1119
  end
1099
1120
 
1100
1121
  # A build result contains the output from a build.
@@ -5829,9 +5850,42 @@ module PlatformAPI
5829
5850
  "$ref": "#/definitions/app"
5830
5851
  },
5831
5852
  "title": "Update"
5853
+ },
5854
+ {
5855
+ "description": "Enable ACM flag for an app",
5856
+ "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/acm",
5857
+ "method": "POST",
5858
+ "rel": "update",
5859
+ "targetSchema": {
5860
+ "$ref": "#/definitions/app"
5861
+ },
5862
+ "title": "Enable ACM"
5863
+ },
5864
+ {
5865
+ "description": "Disable ACM flag for an app",
5866
+ "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/acm",
5867
+ "method": "DELETE",
5868
+ "rel": "delete",
5869
+ "targetSchema": {
5870
+ "$ref": "#/definitions/app"
5871
+ },
5872
+ "title": "Disable ACM"
5873
+ },
5874
+ {
5875
+ "description": "Refresh ACM for an app",
5876
+ "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/acm",
5877
+ "method": "PATCH",
5878
+ "rel": "update",
5879
+ "targetSchema": {
5880
+ "$ref": "#/definitions/app"
5881
+ },
5882
+ "title": "Refresh ACM"
5832
5883
  }
5833
5884
  ],
5834
5885
  "properties": {
5886
+ "acm": {
5887
+ "$ref": "#/definitions/app/definitions/acm"
5888
+ },
5835
5889
  "archived_at": {
5836
5890
  "$ref": "#/definitions/app/definitions/archived_at"
5837
5891
  },
@@ -6931,6 +6985,15 @@ module PlatformAPI
6931
6985
  "object"
6932
6986
  ],
6933
6987
  "definitions": {
6988
+ "acm_status": {
6989
+ "description": "status of this record's ACM",
6990
+ "example": "pending",
6991
+ "readOnly": true,
6992
+ "type": [
6993
+ "null",
6994
+ "string"
6995
+ ]
6996
+ },
6934
6997
  "created_at": {
6935
6998
  "description": "when domain was created",
6936
6999
  "example": "2012-01-01T12:00:00Z",
@@ -7068,6 +7131,9 @@ module PlatformAPI
7068
7131
  }
7069
7132
  ],
7070
7133
  "properties": {
7134
+ "acm_status": {
7135
+ "$ref": "#/definitions/domain/definitions/acm_status"
7136
+ },
7071
7137
  "app": {
7072
7138
  "description": "app that owns the domain",
7073
7139
  "properties": {
@@ -1,3 +1,3 @@
1
1
  module PlatformAPI
2
- VERSION = '2.0.0'
2
+ VERSION = '2.1.0'
3
3
  end
@@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'netrc'
27
27
  spec.add_development_dependency 'rspec'
28
28
 
29
- spec.add_dependency 'heroics', '~> 0.0.22'
29
+ spec.add_dependency 'heroics', '~> 0.0.23'
30
30
  spec.add_dependency 'moneta', '~> 0.8.1'
31
31
  end
@@ -2715,9 +2715,42 @@
2715
2715
  "$ref": "#/definitions/app"
2716
2716
  },
2717
2717
  "title": "Update"
2718
+ },
2719
+ {
2720
+ "description": "Enable ACM flag for an app",
2721
+ "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/acm",
2722
+ "method": "POST",
2723
+ "rel": "update",
2724
+ "targetSchema": {
2725
+ "$ref": "#/definitions/app"
2726
+ },
2727
+ "title": "Enable ACM"
2728
+ },
2729
+ {
2730
+ "description": "Disable ACM flag for an app",
2731
+ "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/acm",
2732
+ "method": "DELETE",
2733
+ "rel": "delete",
2734
+ "targetSchema": {
2735
+ "$ref": "#/definitions/app"
2736
+ },
2737
+ "title": "Disable ACM"
2738
+ },
2739
+ {
2740
+ "description": "Refresh ACM for an app",
2741
+ "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/acm",
2742
+ "method": "PATCH",
2743
+ "rel": "update",
2744
+ "targetSchema": {
2745
+ "$ref": "#/definitions/app"
2746
+ },
2747
+ "title": "Refresh ACM"
2718
2748
  }
2719
2749
  ],
2720
2750
  "properties": {
2751
+ "acm": {
2752
+ "$ref": "#/definitions/app/definitions/acm"
2753
+ },
2721
2754
  "archived_at": {
2722
2755
  "$ref": "#/definitions/app/definitions/archived_at"
2723
2756
  },
@@ -3817,6 +3850,15 @@
3817
3850
  "object"
3818
3851
  ],
3819
3852
  "definitions": {
3853
+ "acm_status": {
3854
+ "description": "status of this record's ACM",
3855
+ "example": "pending",
3856
+ "readOnly": true,
3857
+ "type": [
3858
+ "null",
3859
+ "string"
3860
+ ]
3861
+ },
3820
3862
  "created_at": {
3821
3863
  "description": "when domain was created",
3822
3864
  "example": "2012-01-01T12:00:00Z",
@@ -3954,6 +3996,9 @@
3954
3996
  }
3955
3997
  ],
3956
3998
  "properties": {
3999
+ "acm_status": {
4000
+ "$ref": "#/definitions/domain/definitions/acm_status"
4001
+ },
3957
4002
  "app": {
3958
4003
  "description": "app that owns the domain",
3959
4004
  "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: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jkakar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-17 00:00:00.000000000 Z
11
+ date: 2017-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.0.22
103
+ version: 0.0.23
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.0.22
110
+ version: 0.0.23
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: moneta
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.6.8
171
+ rubygems_version: 2.5.1
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Ruby HTTP client for the Heroku API.