files.com 1.0.84 → 1.0.85

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: 0741a8ed2013b476c86572a9d38dc4864c23febec027a8ffe466e6d3ebdba3e1
4
- data.tar.gz: e1daa596cc9143d72ee07c06765f9e889150ac759cf8607ac53bedd1086098d0
3
+ metadata.gz: 4f256669e61998c0d04e226d0f790790fe0727fff5a0a4ff5d91711e91b207dc
4
+ data.tar.gz: 13c775f7f838a326c807878ea590e4ebb326177b557ef7ab4934a8e3888e2f0d
5
5
  SHA512:
6
- metadata.gz: 7b5a662c8426e5fddfe6bab29d269f9b995ff45bf32448ce970f5200abad0d7d203afdc262e1bd0bc769b24dbee7d56120b66d6761a096ead04f92fddde9eb23
7
- data.tar.gz: 336b27d99c16d94398fca3557624894e98553cab0f978936d49b517c6ec5784a3f875052e206f76cd61d2d98d5a0dc9d2df0d9fdaf27ae60bfea0d34f3ce5d90
6
+ metadata.gz: dc7836b465ba29c3161ef92d853994f4fe186623c58bb3fa9f46e126dcbb6f34aa189a90b21d80c49cb3b8610af3e64a84dde4a017743df29357849bee536222
7
+ data.tar.gz: 7c09856639a412cfe9e24aad75fdf3bfdca104d7f7077126f3c4c4f9b7b192251a0fd648e11c38e720f45afc78a45bf958a38fe09c33198435c25625c2e8cdc6
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.84
1
+ 1.0.85
@@ -0,0 +1,45 @@
1
+ # App
2
+
3
+ ## Example App Object
4
+
5
+ ```
6
+ {
7
+ "name": "",
8
+ "extended_description": "",
9
+ "documentation_links": "Important Info => http://files.test/learn-more",
10
+ "sso_strategy_type": "",
11
+ "remote_server_type": "",
12
+ "folder_behavior_type": "",
13
+ "external_homepage_url": "",
14
+ "app_type": "",
15
+ "featured": true
16
+ }
17
+ ```
18
+
19
+ * `name` (string): Name of the App
20
+ * `extended_description` (string): Long form description of the App
21
+ * `documentation_links` (string): Collection of named links to documentation
22
+ * `sso_strategy_type` (string): Associated SSO Strategy type, if any
23
+ * `remote_server_type` (string): Associated Remote Server type, if any
24
+ * `folder_behavior_type` (string): Associated Folder Behavior type, if any
25
+ * `external_homepage_url` (string): Link to external homepage
26
+ * `app_type` (string): The type of the App
27
+ * `featured` (boolean): Is featured on the App listing?
28
+
29
+
30
+ ---
31
+
32
+ ## List Apps
33
+
34
+ ```
35
+ Files::App.list(
36
+ page: 1,
37
+ per_page: 1
38
+ )
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ * `page` (int64): Current page number.
44
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
45
+ * `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
@@ -29,6 +29,7 @@ require "files.com/list"
29
29
  require "files.com/models/account_line_item"
30
30
  require "files.com/models/action"
31
31
  require "files.com/models/api_key"
32
+ require "files.com/models/app"
32
33
  require "files.com/models/as2_key"
33
34
  require "files.com/models/auto"
34
35
  require "files.com/models/automation"
@@ -0,0 +1,76 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class App
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # string - Name of the App
13
+ def name
14
+ @attributes[:name]
15
+ end
16
+
17
+ # string - Long form description of the App
18
+ def extended_description
19
+ @attributes[:extended_description]
20
+ end
21
+
22
+ # string - Collection of named links to documentation
23
+ def documentation_links
24
+ @attributes[:documentation_links]
25
+ end
26
+
27
+ # string - Associated SSO Strategy type, if any
28
+ def sso_strategy_type
29
+ @attributes[:sso_strategy_type]
30
+ end
31
+
32
+ # string - Associated Remote Server type, if any
33
+ def remote_server_type
34
+ @attributes[:remote_server_type]
35
+ end
36
+
37
+ # string - Associated Folder Behavior type, if any
38
+ def folder_behavior_type
39
+ @attributes[:folder_behavior_type]
40
+ end
41
+
42
+ # string - Link to external homepage
43
+ def external_homepage_url
44
+ @attributes[:external_homepage_url]
45
+ end
46
+
47
+ # string - The type of the App
48
+ def app_type
49
+ @attributes[:app_type]
50
+ end
51
+
52
+ # boolean - Is featured on the App listing?
53
+ def featured
54
+ @attributes[:featured]
55
+ end
56
+
57
+ # Parameters:
58
+ # page - int64 - Current page number.
59
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
60
+ # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
61
+ def self.list(params = {}, options = {})
62
+ raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
63
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
64
+ raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
65
+
66
+ response, options = Api.send_request("/apps", :get, params, options)
67
+ response.data.map do |entity_data|
68
+ App.new(entity_data, options)
69
+ end
70
+ end
71
+
72
+ def self.all(params = {}, options = {})
73
+ list(params, options)
74
+ end
75
+ end
76
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.84
4
+ version: 1.0.85
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
@@ -87,6 +87,7 @@ files:
87
87
  - docs/account_line_item.md
88
88
  - docs/action.md
89
89
  - docs/api_key.md
90
+ - docs/app.md
90
91
  - docs/as2_key.md
91
92
  - docs/auto.md
92
93
  - docs/automation.md
@@ -144,6 +145,7 @@ files:
144
145
  - lib/files.com/models/account_line_item.rb
145
146
  - lib/files.com/models/action.rb
146
147
  - lib/files.com/models/api_key.rb
148
+ - lib/files.com/models/app.rb
147
149
  - lib/files.com/models/as2_key.rb
148
150
  - lib/files.com/models/auto.rb
149
151
  - lib/files.com/models/automation.rb