Class: Release

Inherits:
ApiModule show all
Defined in:
lib/api/release/release.rb

Instance Method Summary collapse

Methods inherited from ApiModule

#initialize

Constructor Details

This class inherits a constructor from ApiModule

Instance Method Details

#archive(appid:, squence:) ⇒ Object



9
10
11
12
13
14
# File 'lib/api/release/release.rb', line 9

def archive(appid:, squence:)
  method = "POST"
  endpoint = "app/" << appid << "/" << sequence << "/archive"
  uri = ApiUri::build_uri(endpoint)
  return @client.request_json(method, uri)
end

#create(appid:, options:) ⇒ Object



2
3
4
5
6
7
# File 'lib/api/release/release.rb', line 2

def create(appid:,  options:)
  method = "POST"
  endpoint = "app/" << appid << "/release"
  uri = ApiUri::build_uri(endpoint)
  return @client.request_json(method, uri)
end

#get_config(appid:, sequence:) ⇒ Object



37
38
39
40
41
42
# File 'lib/api/release/release.rb', line 37

def get_config(appid:, sequence:)
  method = "GET"
  endpoint = "app/" << appid << "/" << sequence << "/raw"
  uri = ApiUri::build_uri(endpoint)
  return @client.request_json(method, uri)
end

#get_preflight_checks(appid:, sequence:) ⇒ Object



16
17
18
19
20
21
# File 'lib/api/release/release.rb', line 16

def get_preflight_checks(appid:, sequence:)
  method = "GET"
  endpoint = "app/" << appid << "/" << sequence << "/preflightchecks"
  uri = ApiUri::build_uri(endpoint)
  return @client.request_json(method, uri)
end

#get_properties(appid:, sequence:) ⇒ Object



30
31
32
33
34
35
# File 'lib/api/release/release.rb', line 30

def get_properties(appid:, sequence:)
  method = "GET"
  endpoint = "app/" << appid << "/" << sequence << "/properties"
  uri = ApiUri::build_uri(endpoint)
  return @client.request_json(method, uri)
end

#promote(appid:, sequence:, options:) ⇒ Object



23
24
25
26
27
28
# File 'lib/api/release/release.rb', line 23

def promote(appid:, sequence:, options:)
  method = "POST"
  endpoint = "app/" << appid << "/" << sequence << "/promote"
  uri = ApiUri::build_uri(endpoint)
  return @client.request_json(method, uri, options)
end

#update_config(appid:, sequence:) ⇒ Object



44
45
46
47
48
49
# File 'lib/api/release/release.rb', line 44

def update_config(appid:, sequence:)
  method = "PUT"
  endpoint = "app/" << appid << "/" << sequence << "/raw"
  uri = ApiUri::build_uri(endpoint)
  return @client.request_json(method, uri)
end