files.com 1.1.613 → 1.1.614

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
  SHA256:
3
- metadata.gz: 209565b162c92e731e627e005d61064dd03b488198ee468ba9b1b64ea11c15a5
4
- data.tar.gz: f5843c5fe698e0a7a52ae6195d803b55bfc4e4874b94b0e84d6aa3d6077e5787
3
+ metadata.gz: 9fe3c25fb2e54ac1a0848189fc6a0aa18add7043bd0580cfc33d911876b9af54
4
+ data.tar.gz: 8de8ea19756e9cde05ee7fdc9f950e342d97d84e909db0589e7eee3c5f5da022
5
5
  SHA512:
6
- metadata.gz: ba26c2b71bb52e33d8e72d8551bb352ba38b2cdfa332e5205606055d6403a331f2f6c72eece56c66d8da362f564fbd673ca82b2581997f7e334bf9cdd9d5bd8c
7
- data.tar.gz: 63d1013e6eb742c59e5ba071e971794fe7b5cc60a0900ff5fc5ea122c2869e1ae1e2624820c90932642175f830d54ffff4c3c781a66cb352b2af1e4c89089b44
6
+ metadata.gz: de8127575b344f21fb5e21292e16ef5147676900450a7f0fb313d36d7152b5ea3c1573ac3ec595385273a4344bf90e58515270cae1ec3dbb7a040fd408f3ae96
7
+ data.tar.gz: 5c04e3b18b9da018208fd55d67582a233697188ec719a986d31b7082e5abeb769f3b30b08647423ed40a1d9ea6f2ce29982ac0e77c104b25b97a722b792660a3
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.613
1
+ 1.1.614
@@ -7,6 +7,7 @@
7
7
  "id": 1,
8
8
  "key_type": "gpg",
9
9
  "inactivity_days": 12,
10
+ "expiration_days": 365,
10
11
  "apply_to_all_workspaces": true,
11
12
  "name": "inactive gpg keys",
12
13
  "workspace_id": 12
@@ -16,6 +17,7 @@
16
17
  * `id` (int64): Key Lifecycle Rule ID
17
18
  * `key_type` (string): Key type for which the rule will apply (gpg or ssh).
18
19
  * `inactivity_days` (int64): Number of days of inactivity before the rule applies.
20
+ * `expiration_days` (int64): Number of days after creation before an SSH key expires. Applies only to SSH keys.
19
21
  * `apply_to_all_workspaces` (boolean): If true, a default-workspace rule also applies to keys in all workspaces.
20
22
  * `name` (string): Key Lifecycle Rule name
21
23
  * `workspace_id` (int64): Workspace ID. `0` means the default workspace.
@@ -57,6 +59,7 @@ Files::KeyLifecycleRule.find(id)
57
59
  ```
58
60
  Files::KeyLifecycleRule.create(
59
61
  apply_to_all_workspaces: true,
62
+ expiration_days: 365,
60
63
  key_type: "gpg",
61
64
  inactivity_days: 12,
62
65
  name: "inactive gpg keys",
@@ -67,6 +70,7 @@ Files::KeyLifecycleRule.create(
67
70
  ### Parameters
68
71
 
69
72
  * `apply_to_all_workspaces` (boolean): If true, a default-workspace rule also applies to keys in all workspaces.
73
+ * `expiration_days` (int64): Number of days after creation before an SSH key expires. Applies only to SSH keys.
70
74
  * `key_type` (string): Key type for which the rule will apply (gpg or ssh).
71
75
  * `inactivity_days` (int64): Number of days of inactivity before the rule applies.
72
76
  * `name` (string): Key Lifecycle Rule name
@@ -80,6 +84,7 @@ Files::KeyLifecycleRule.create(
80
84
  ```
81
85
  Files::KeyLifecycleRule.update(id,
82
86
  apply_to_all_workspaces: true,
87
+ expiration_days: 365,
83
88
  key_type: "gpg",
84
89
  inactivity_days: 12,
85
90
  name: "inactive gpg keys",
@@ -91,6 +96,7 @@ Files::KeyLifecycleRule.update(id,
91
96
 
92
97
  * `id` (int64): Required - Key Lifecycle Rule ID.
93
98
  * `apply_to_all_workspaces` (boolean): If true, a default-workspace rule also applies to keys in all workspaces.
99
+ * `expiration_days` (int64): Number of days after creation before an SSH key expires. Applies only to SSH keys.
94
100
  * `key_type` (string): Key type for which the rule will apply (gpg or ssh).
95
101
  * `inactivity_days` (int64): Number of days of inactivity before the rule applies.
96
102
  * `name` (string): Key Lifecycle Rule name
@@ -119,6 +125,7 @@ key_lifecycle_rule = Files::KeyLifecycleRule.find(id)
119
125
 
120
126
  key_lifecycle_rule.update(
121
127
  apply_to_all_workspaces: true,
128
+ expiration_days: 365,
122
129
  key_type: "gpg",
123
130
  inactivity_days: 12,
124
131
  name: "inactive gpg keys",
@@ -130,6 +137,7 @@ key_lifecycle_rule.update(
130
137
 
131
138
  * `id` (int64): Required - Key Lifecycle Rule ID.
132
139
  * `apply_to_all_workspaces` (boolean): If true, a default-workspace rule also applies to keys in all workspaces.
140
+ * `expiration_days` (int64): Number of days after creation before an SSH key expires. Applies only to SSH keys.
133
141
  * `key_type` (string): Key type for which the rule will apply (gpg or ssh).
134
142
  * `inactivity_days` (int64): Number of days of inactivity before the rule applies.
135
143
  * `name` (string): Key Lifecycle Rule name
data/docs/public_key.md CHANGED
@@ -8,6 +8,8 @@
8
8
  "workspace_id": 1,
9
9
  "title": "My public key",
10
10
  "created_at": "2000-01-01T01:00:00Z",
11
+ "expires_at": "2000-01-01T01:00:00Z",
12
+ "expired": true,
11
13
  "fingerprint": "43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8",
12
14
  "fingerprint_sha256": "V5Q5t/ghT3R8Tol5GX9385bzmpygWVRnLuI9EXNrjCX",
13
15
  "status": "complete",
@@ -23,6 +25,8 @@
23
25
  * `workspace_id` (int64): Workspace ID (0 for default workspace).
24
26
  * `title` (string): Public key title
25
27
  * `created_at` (date-time): Public key created at date/time
28
+ * `expires_at` (date-time): Public key expiration date/time
29
+ * `expired` (boolean): Is this public key expired?
26
30
  * `fingerprint` (string): Public key fingerprint (MD5)
27
31
  * `fingerprint_sha256` (string): Public key fingerprint (SHA256)
28
32
  * `status` (string): Only returned when generating keys. Can be invalid, not_generated, generating, complete
@@ -36,6 +36,15 @@ module Files
36
36
  @attributes[:inactivity_days] = value
37
37
  end
38
38
 
39
+ # int64 - Number of days after creation before an SSH key expires. Applies only to SSH keys.
40
+ def expiration_days
41
+ @attributes[:expiration_days]
42
+ end
43
+
44
+ def expiration_days=(value)
45
+ @attributes[:expiration_days] = value
46
+ end
47
+
39
48
  # boolean - If true, a default-workspace rule also applies to keys in all workspaces.
40
49
  def apply_to_all_workspaces
41
50
  @attributes[:apply_to_all_workspaces]
@@ -65,6 +74,7 @@ module Files
65
74
 
66
75
  # Parameters:
67
76
  # apply_to_all_workspaces - boolean - If true, a default-workspace rule also applies to keys in all workspaces.
77
+ # expiration_days - int64 - Number of days after creation before an SSH key expires. Applies only to SSH keys.
68
78
  # key_type - string - Key type for which the rule will apply (gpg or ssh).
69
79
  # inactivity_days - int64 - Number of days of inactivity before the rule applies.
70
80
  # name - string - Key Lifecycle Rule name
@@ -74,6 +84,7 @@ module Files
74
84
  params[:id] = @attributes[:id]
75
85
  raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
76
86
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
87
+ raise InvalidParameterError.new("Bad parameter: expiration_days must be an Integer") if params[:expiration_days] and !params[:expiration_days].is_a?(Integer)
77
88
  raise InvalidParameterError.new("Bad parameter: key_type must be an String") if params[:key_type] and !params[:key_type].is_a?(String)
78
89
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
79
90
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
@@ -147,11 +158,13 @@ module Files
147
158
 
148
159
  # Parameters:
149
160
  # apply_to_all_workspaces - boolean - If true, a default-workspace rule also applies to keys in all workspaces.
161
+ # expiration_days - int64 - Number of days after creation before an SSH key expires. Applies only to SSH keys.
150
162
  # key_type - string - Key type for which the rule will apply (gpg or ssh).
151
163
  # inactivity_days - int64 - Number of days of inactivity before the rule applies.
152
164
  # name - string - Key Lifecycle Rule name
153
165
  # workspace_id - int64 - Workspace ID. `0` means the default workspace.
154
166
  def self.create(params = {}, options = {})
167
+ raise InvalidParameterError.new("Bad parameter: expiration_days must be an Integer") if params[:expiration_days] and !params[:expiration_days].is_a?(Integer)
155
168
  raise InvalidParameterError.new("Bad parameter: key_type must be an String") if params[:key_type] and !params[:key_type].is_a?(String)
156
169
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
157
170
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
@@ -163,6 +176,7 @@ module Files
163
176
 
164
177
  # Parameters:
165
178
  # apply_to_all_workspaces - boolean - If true, a default-workspace rule also applies to keys in all workspaces.
179
+ # expiration_days - int64 - Number of days after creation before an SSH key expires. Applies only to SSH keys.
166
180
  # key_type - string - Key type for which the rule will apply (gpg or ssh).
167
181
  # inactivity_days - int64 - Number of days of inactivity before the rule applies.
168
182
  # name - string - Key Lifecycle Rule name
@@ -171,6 +185,7 @@ module Files
171
185
  params ||= {}
172
186
  params[:id] = id
173
187
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
188
+ raise InvalidParameterError.new("Bad parameter: expiration_days must be an Integer") if params[:expiration_days] and !params[:expiration_days].is_a?(Integer)
174
189
  raise InvalidParameterError.new("Bad parameter: key_type must be an String") if params[:key_type] and !params[:key_type].is_a?(String)
175
190
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
176
191
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
@@ -41,6 +41,24 @@ module Files
41
41
  @attributes[:created_at]
42
42
  end
43
43
 
44
+ # date-time - Public key expiration date/time
45
+ def expires_at
46
+ @attributes[:expires_at]
47
+ end
48
+
49
+ def expires_at=(value)
50
+ @attributes[:expires_at] = value
51
+ end
52
+
53
+ # boolean - Is this public key expired?
54
+ def expired
55
+ @attributes[:expired]
56
+ end
57
+
58
+ def expired=(value)
59
+ @attributes[:expired] = value
60
+ end
61
+
44
62
  # string - Public key fingerprint (MD5)
45
63
  def fingerprint
46
64
  @attributes[:fingerprint]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.613"
4
+ VERSION = "1.1.614"
5
5
  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.1.613
4
+ version: 1.1.614
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com