sfrest 0.0.42 → 0.0.43

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: 1aaa8110a7f4f77dbf3e382c6eab356eaba212ac1e7c781549701e06e1dcfd76
4
- data.tar.gz: 4547d55501b96104f8db759ecff0164b8ed7f2fd3aba313fd79c13975c74e7ac
3
+ metadata.gz: 072b940e3399ceb72f13d948ea766039eb4452c62925b1c2a1492072c5fb8557
4
+ data.tar.gz: 23e9bee2aefc2abce1b9aa86c0c99fee8fb3d7c4ca716b8957923f75ca0e0c5c
5
5
  SHA512:
6
- metadata.gz: 3fe6355a532f008da04903c25e27e7f6ddf28541bcd29768979178c3a0dce17b776fe17b8ced00e7f23c02e6d247a46fd4099a1ff412bbdfe951fe8ca3e0382d
7
- data.tar.gz: 36de7a3762555fa9b6ca39f270f0cee99f95661ccc760738e4fd5ccd4668689890f8507abd85921c66fb27a686ffbebd8532d8bda18b0c96378a4697ff550afc
6
+ metadata.gz: f07d0676a52f33daf4d63564066fd3318ab25a11032d464444bc4111716b364618c71febb5ec948c073af6fc4b429baccc8ee7d3b3b01b0a67c165b08872e555
7
+ data.tar.gz: 5be39a40373a247f71142b07d942644a3c9469e312e1460e3dd4e449e346da69276a401c28dee62446bf46d69048391fa62848542311c9d5f3e5969085f13184
data/lib/sfrest/update.rb CHANGED
@@ -100,6 +100,22 @@ module SFRest
100
100
  @multi_stack ||= @conn.codebase.list['stacks'].size > 1
101
101
  end
102
102
 
103
+ # Terminates an updater.
104
+ def terminate_updater(update_id)
105
+ current_path = "/api/v1/update/#{update_id}"
106
+ @conn.delete(current_path)
107
+ end
108
+
109
+ # Changes the updater start time.
110
+ def change_updater_start_time(updater_id, new_update_time)
111
+ current_path = '/api/v1/update/change_time'
112
+ payload = {
113
+ 'updater_id' => updater_id,
114
+ 'new_update_time' => new_update_time
115
+ }.to_json
116
+ @conn.post(current_path, payload)
117
+ end
118
+
103
119
  # Determines if the v2 endpoint exists.
104
120
  # A factory with the endpoint will raise an SFRest::BadRequestError
105
121
  # A factory without the endpoint will raise SFRest::InvalidResponse
@@ -2,5 +2,5 @@
2
2
 
3
3
  module SFRest
4
4
  # Just tracks the version of sfrest.
5
- VERSION = '0.0.42'
5
+ VERSION = '0.0.43'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sfrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.42
4
+ version: 0.0.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - ACSF Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-16 00:00:00.000000000 Z
11
+ date: 2022-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon