files.com 1.1.772 → 1.1.773
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 +4 -4
- data/_VERSION +1 -1
- data/docs/as2_partner.md +10 -2
- data/docs/as2_station.md +20 -13
- data/docs/event_subscription.md +12 -5
- data/lib/files.com/models/as2_partner.rb +31 -2
- data/lib/files.com/models/as2_station.rb +41 -13
- data/lib/files.com/models/event_subscription.rb +4 -4
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 07f3cc24cf0891a91c9feaf9fdeeae39301d8b23a32207616eba7db5cc070ace
|
|
4
|
+
data.tar.gz: b1619f673e77c0a9423c8083ec425a6ea26f61cd9a1d6aa9629be3d6e0f70cf6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85ca525bf43d05c3cf61e12aaea2fc9c22a97f8b2c31a8e136e6840d7578e8e88bb703d49c850068286195f89bf5c943371dead5f15ab813cae0a700f661e1f5
|
|
7
|
+
data.tar.gz: 4fad3a9f835494fc420493feac4aed82c9ad1d4a23a14674fffdcaece12c3d5ba5480b53a60a337851d5a1bfcc840cae3b4988eabe7c58c8123f131091bcf9fc
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.773
|
data/docs/as2_partner.md
CHANGED
|
@@ -50,6 +50,8 @@
|
|
|
50
50
|
* `public_certificate_not_before` (string): Not before value of public certificate used for message security.
|
|
51
51
|
* `public_certificate_not_after` (string): Not after value of public certificate used for message security.
|
|
52
52
|
* `http_auth_password` (string): Password to send to server for HTTP Authentication.
|
|
53
|
+
* `pkcs12` (string): Base64-encoded PKCS#12 (.pfx or .p12) file containing the partner's public certificate. Provide this instead of public_certificate. Any private key in the file is discarded. A public-only file must contain exactly one certificate.
|
|
54
|
+
* `pkcs12_password` (string): Password for pkcs12. The file and password are used only for import; the extracted public certificate is stored as PEM.
|
|
53
55
|
|
|
54
56
|
|
|
55
57
|
---
|
|
@@ -97,7 +99,7 @@ Files::As2Partner.create(
|
|
|
97
99
|
as2_station_id: 1,
|
|
98
100
|
name: "AS2 Partner Name",
|
|
99
101
|
uri: "example",
|
|
100
|
-
public_certificate: "
|
|
102
|
+
public_certificate: "example"
|
|
101
103
|
)
|
|
102
104
|
```
|
|
103
105
|
|
|
@@ -114,7 +116,9 @@ Files::As2Partner.create(
|
|
|
114
116
|
* `as2_station_id` (int64): Required - ID of the AS2 Station associated with this partner.
|
|
115
117
|
* `name` (string): Required - The partner's formal AS2 name.
|
|
116
118
|
* `uri` (string): Required - Public URI where we will send the AS2 messages (via HTTP/HTTPS).
|
|
117
|
-
* `public_certificate` (string):
|
|
119
|
+
* `public_certificate` (string): Public certificate for AS2 Partner. Note: This is the certificate for AS2 message security, not a certificate used for HTTPS authentication.
|
|
120
|
+
* `pkcs12` (string): Base64-encoded PKCS#12 (.pfx or .p12) file containing the partner's public certificate. Provide this instead of public_certificate. Any private key in the file is discarded. A public-only file must contain exactly one certificate.
|
|
121
|
+
* `pkcs12_password` (string): Password for pkcs12. The file and password are used only for import; the extracted public certificate is stored as PEM.
|
|
118
122
|
|
|
119
123
|
|
|
120
124
|
---
|
|
@@ -150,6 +154,8 @@ Files::As2Partner.update(id,
|
|
|
150
154
|
* `name` (string): The partner's formal AS2 name.
|
|
151
155
|
* `uri` (string): Public URI where we will send the AS2 messages (via HTTP/HTTPS).
|
|
152
156
|
* `public_certificate` (string): Public certificate for AS2 Partner. Note: This is the certificate for AS2 message security, not a certificate used for HTTPS authentication.
|
|
157
|
+
* `pkcs12` (string): Base64-encoded PKCS#12 (.pfx or .p12) file containing the partner's public certificate. Provide this instead of public_certificate. Any private key in the file is discarded. A public-only file must contain exactly one certificate.
|
|
158
|
+
* `pkcs12_password` (string): Password for pkcs12. The file and password are used only for import; the extracted public certificate is stored as PEM.
|
|
153
159
|
|
|
154
160
|
|
|
155
161
|
---
|
|
@@ -200,6 +206,8 @@ as2_partner.update(
|
|
|
200
206
|
* `name` (string): The partner's formal AS2 name.
|
|
201
207
|
* `uri` (string): Public URI where we will send the AS2 messages (via HTTP/HTTPS).
|
|
202
208
|
* `public_certificate` (string): Public certificate for AS2 Partner. Note: This is the certificate for AS2 message security, not a certificate used for HTTPS authentication.
|
|
209
|
+
* `pkcs12` (string): Base64-encoded PKCS#12 (.pfx or .p12) file containing the partner's public certificate. Provide this instead of public_certificate. Any private key in the file is discarded. A public-only file must contain exactly one certificate.
|
|
210
|
+
* `pkcs12_password` (string): Password for pkcs12. The file and password are used only for import; the extracted public certificate is stored as PEM.
|
|
203
211
|
|
|
204
212
|
|
|
205
213
|
---
|
data/docs/as2_station.md
CHANGED
|
@@ -37,8 +37,10 @@
|
|
|
37
37
|
* `public_certificate_not_before` (string): Not before value of public certificate used for message security.
|
|
38
38
|
* `public_certificate_not_after` (string): Not after value of public certificate used for message security.
|
|
39
39
|
* `private_key_password_md5` (string): MD5 hash of private key password used for message security.
|
|
40
|
-
* `private_key` (string):
|
|
41
|
-
* `private_key_password` (string):
|
|
40
|
+
* `private_key` (string): PEM-encoded private key matching public_certificate.
|
|
41
|
+
* `private_key_password` (string): Password for the PEM-encoded private key.
|
|
42
|
+
* `pkcs12` (string): Base64-encoded PKCS#12 (.pfx or .p12) file containing the identity's certificate and private key. Provide this instead of public_certificate and private_key.
|
|
43
|
+
* `pkcs12_password` (string): Password for pkcs12. The file and password are used only for import; the extracted certificate and private key are stored as PEM.
|
|
42
44
|
|
|
43
45
|
|
|
44
46
|
---
|
|
@@ -78,8 +80,7 @@ Files::As2Station.find(id)
|
|
|
78
80
|
Files::As2Station.create(
|
|
79
81
|
name: "AS2 Station Name",
|
|
80
82
|
workspace_id: 1,
|
|
81
|
-
public_certificate: "
|
|
82
|
-
private_key: "private_key"
|
|
83
|
+
public_certificate: "example"
|
|
83
84
|
)
|
|
84
85
|
```
|
|
85
86
|
|
|
@@ -87,9 +88,11 @@ Files::As2Station.create(
|
|
|
87
88
|
|
|
88
89
|
* `name` (string): Required - The station's formal AS2 name.
|
|
89
90
|
* `workspace_id` (int64): ID of the Workspace associated with this AS2 Station.
|
|
90
|
-
* `public_certificate` (string):
|
|
91
|
-
* `private_key` (string):
|
|
92
|
-
* `private_key_password` (string):
|
|
91
|
+
* `public_certificate` (string): Public certificate used for message security.
|
|
92
|
+
* `private_key` (string): PEM-encoded private key matching public_certificate.
|
|
93
|
+
* `private_key_password` (string): Password for the PEM-encoded private key.
|
|
94
|
+
* `pkcs12` (string): Base64-encoded PKCS#12 (.pfx or .p12) file containing the identity's certificate and private key. Provide this instead of public_certificate and private_key.
|
|
95
|
+
* `pkcs12_password` (string): Password for pkcs12. The file and password are used only for import; the extracted certificate and private key are stored as PEM.
|
|
93
96
|
|
|
94
97
|
|
|
95
98
|
---
|
|
@@ -107,9 +110,11 @@ Files::As2Station.update(id,
|
|
|
107
110
|
|
|
108
111
|
* `id` (int64): Required - As2 Station ID.
|
|
109
112
|
* `name` (string): The station's formal AS2 name.
|
|
110
|
-
* `public_certificate` (string):
|
|
111
|
-
* `private_key` (string):
|
|
112
|
-
* `private_key_password` (string):
|
|
113
|
+
* `public_certificate` (string): Public certificate used for message security.
|
|
114
|
+
* `private_key` (string): PEM-encoded private key matching public_certificate.
|
|
115
|
+
* `private_key_password` (string): Password for the PEM-encoded private key.
|
|
116
|
+
* `pkcs12` (string): Base64-encoded PKCS#12 (.pfx or .p12) file containing the identity's replacement certificate and private key. Provide this instead of public_certificate and private_key.
|
|
117
|
+
* `pkcs12_password` (string): Password for pkcs12. The file and password are used only for import; the extracted certificate and private key are stored as PEM.
|
|
113
118
|
|
|
114
119
|
|
|
115
120
|
---
|
|
@@ -142,9 +147,11 @@ as2_station.update(
|
|
|
142
147
|
|
|
143
148
|
* `id` (int64): Required - As2 Station ID.
|
|
144
149
|
* `name` (string): The station's formal AS2 name.
|
|
145
|
-
* `public_certificate` (string):
|
|
146
|
-
* `private_key` (string):
|
|
147
|
-
* `private_key_password` (string):
|
|
150
|
+
* `public_certificate` (string): Public certificate used for message security.
|
|
151
|
+
* `private_key` (string): PEM-encoded private key matching public_certificate.
|
|
152
|
+
* `private_key_password` (string): Password for the PEM-encoded private key.
|
|
153
|
+
* `pkcs12` (string): Base64-encoded PKCS#12 (.pfx or .p12) file containing the identity's replacement certificate and private key. Provide this instead of public_certificate and private_key.
|
|
154
|
+
* `pkcs12_password` (string): Password for pkcs12. The file and password are used only for import; the extracted certificate and private key are stored as PEM.
|
|
148
155
|
|
|
149
156
|
|
|
150
157
|
---
|
data/docs/event_subscription.md
CHANGED
|
@@ -16,7 +16,14 @@
|
|
|
16
16
|
"event_types": [
|
|
17
17
|
"sync_run.failure.v1"
|
|
18
18
|
],
|
|
19
|
-
"filter":
|
|
19
|
+
"filter": {
|
|
20
|
+
"payload.sync_name": {
|
|
21
|
+
"prefix": "Nightly"
|
|
22
|
+
},
|
|
23
|
+
"payload.event_errors": {
|
|
24
|
+
"exists": true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
20
27
|
"delivery_policy": "example",
|
|
21
28
|
"event_target_ids": [
|
|
22
29
|
1
|
|
@@ -36,7 +43,7 @@
|
|
|
36
43
|
* `message_only` (boolean): If true, notification email bodies contain only the custom message, omitting event details and the review button. Requires a custom message, defaults to false, and does not affect non-email targets.
|
|
37
44
|
* `enabled` (boolean): Whether this Event Subscription can dispatch events.
|
|
38
45
|
* `event_types` (array(string)): Event type strings matched by this subscription. Blank means all event types. Valid values: `automation_run.canceled.v1`, `automation_run.failure.v1`, `automation_run.failure_will_retry.v1`, `automation_run.partial_failure.v1`, `automation_run.partial_failure_will_retry.v1`, `automation_run.skipped.v1`, `automation_run.success.v1`, `expectation_evaluation.invalid.v1`, `expectation_evaluation.late.v1`, `expectation_evaluation.missing.v1`, `expectation_evaluation.success.v1`, `expectation_incident.acknowledged.v1`, `expectation_incident.open.v1`, `expectation_incident.resolved.v1`, `expectation_incident.snoozed.v1`, `external_event.client_log.failure.v1`, `external_event.client_log.partial_failure.v1`, `external_event.client_log.skipped.v1`, `external_event.client_log.success.v1`, `pending_work_event.failure.v1`, `pending_work_event.partial_failure.v1`, `pending_work_event.skipped.v1`, `pending_work_event.success.v1`, `siem_http_destination_event.failure.v1`, `siem_http_destination_event.partial_failure.v1`, `siem_http_destination_event.skipped.v1`, `siem_http_destination_event.success.v1`, `sso_event.ldap_login.failure.v1`, `sso_event.ldap_login.partial_failure.v1`, `sso_event.ldap_login.skipped.v1`, `sso_event.ldap_login.success.v1`, `sso_event.ldap_sync.failure.v1`, `sso_event.ldap_sync.partial_failure.v1`, `sso_event.ldap_sync.skipped.v1`, `sso_event.ldap_sync.success.v1`, `sso_event.saml_login.failure.v1`, `sso_event.saml_login.partial_failure.v1`, `sso_event.saml_login.skipped.v1`, `sso_event.saml_login.success.v1`, `sync_run.failure.v1`, `sync_run.partial_failure.v1`, `sync_run.skipped.v1`, `sync_run.success.v1`, `user_security_event.lockout.v1`
|
|
39
|
-
* `filter` (object):
|
|
46
|
+
* `filter` (object): Conditions on event fields that an event must meet to be delivered, keyed by dot-notation field path. All conditions must match.
|
|
40
47
|
* `delivery_policy` (object): Event Subscription delivery policy.
|
|
41
48
|
* `event_target_ids` (array(int64)): Event Target IDs this subscription sends to.
|
|
42
49
|
* `created_at` (date-time): Event Subscription create date/time.
|
|
@@ -103,7 +110,7 @@ Files::EventSubscription.create(
|
|
|
103
110
|
* `message_only` (boolean): If true, notification email bodies contain only the custom message, omitting event details and the review button. Requires a custom message, defaults to false, and does not affect non-email targets.
|
|
104
111
|
* `enabled` (boolean): Whether this Event Subscription can dispatch events.
|
|
105
112
|
* `event_types` (array(string)): Event type strings matched by this subscription. Blank means all event types. Valid values: `automation_run.canceled.v1`, `automation_run.failure.v1`, `automation_run.failure_will_retry.v1`, `automation_run.partial_failure.v1`, `automation_run.partial_failure_will_retry.v1`, `automation_run.skipped.v1`, `automation_run.success.v1`, `expectation_evaluation.invalid.v1`, `expectation_evaluation.late.v1`, `expectation_evaluation.missing.v1`, `expectation_evaluation.success.v1`, `expectation_incident.acknowledged.v1`, `expectation_incident.open.v1`, `expectation_incident.resolved.v1`, `expectation_incident.snoozed.v1`, `external_event.client_log.failure.v1`, `external_event.client_log.partial_failure.v1`, `external_event.client_log.skipped.v1`, `external_event.client_log.success.v1`, `pending_work_event.failure.v1`, `pending_work_event.partial_failure.v1`, `pending_work_event.skipped.v1`, `pending_work_event.success.v1`, `siem_http_destination_event.failure.v1`, `siem_http_destination_event.partial_failure.v1`, `siem_http_destination_event.skipped.v1`, `siem_http_destination_event.success.v1`, `sso_event.ldap_login.failure.v1`, `sso_event.ldap_login.partial_failure.v1`, `sso_event.ldap_login.skipped.v1`, `sso_event.ldap_login.success.v1`, `sso_event.ldap_sync.failure.v1`, `sso_event.ldap_sync.partial_failure.v1`, `sso_event.ldap_sync.skipped.v1`, `sso_event.ldap_sync.success.v1`, `sso_event.saml_login.failure.v1`, `sso_event.saml_login.partial_failure.v1`, `sso_event.saml_login.skipped.v1`, `sso_event.saml_login.success.v1`, `sync_run.failure.v1`, `sync_run.partial_failure.v1`, `sync_run.skipped.v1`, `sync_run.success.v1`, `user_security_event.lockout.v1`
|
|
106
|
-
* `filter` (object):
|
|
113
|
+
* `filter` (object): Conditions on event fields that an event must meet to be delivered, keyed by dot-notation field path. All conditions must match.
|
|
107
114
|
* `delivery_policy` (object): Event Subscription delivery policy.
|
|
108
115
|
* `event_target_ids` (array(int64)): Event Target IDs this subscription sends to.
|
|
109
116
|
|
|
@@ -140,7 +147,7 @@ Files::EventSubscription.update(id,
|
|
|
140
147
|
* `message_only` (boolean): If true, notification email bodies contain only the custom message, omitting event details and the review button. Requires a custom message, defaults to false, and does not affect non-email targets.
|
|
141
148
|
* `enabled` (boolean): Whether this Event Subscription can dispatch events.
|
|
142
149
|
* `event_types` (array(string)): Event type strings matched by this subscription. Blank means all event types. Valid values: `automation_run.canceled.v1`, `automation_run.failure.v1`, `automation_run.failure_will_retry.v1`, `automation_run.partial_failure.v1`, `automation_run.partial_failure_will_retry.v1`, `automation_run.skipped.v1`, `automation_run.success.v1`, `expectation_evaluation.invalid.v1`, `expectation_evaluation.late.v1`, `expectation_evaluation.missing.v1`, `expectation_evaluation.success.v1`, `expectation_incident.acknowledged.v1`, `expectation_incident.open.v1`, `expectation_incident.resolved.v1`, `expectation_incident.snoozed.v1`, `external_event.client_log.failure.v1`, `external_event.client_log.partial_failure.v1`, `external_event.client_log.skipped.v1`, `external_event.client_log.success.v1`, `pending_work_event.failure.v1`, `pending_work_event.partial_failure.v1`, `pending_work_event.skipped.v1`, `pending_work_event.success.v1`, `siem_http_destination_event.failure.v1`, `siem_http_destination_event.partial_failure.v1`, `siem_http_destination_event.skipped.v1`, `siem_http_destination_event.success.v1`, `sso_event.ldap_login.failure.v1`, `sso_event.ldap_login.partial_failure.v1`, `sso_event.ldap_login.skipped.v1`, `sso_event.ldap_login.success.v1`, `sso_event.ldap_sync.failure.v1`, `sso_event.ldap_sync.partial_failure.v1`, `sso_event.ldap_sync.skipped.v1`, `sso_event.ldap_sync.success.v1`, `sso_event.saml_login.failure.v1`, `sso_event.saml_login.partial_failure.v1`, `sso_event.saml_login.skipped.v1`, `sso_event.saml_login.success.v1`, `sync_run.failure.v1`, `sync_run.partial_failure.v1`, `sync_run.skipped.v1`, `sync_run.success.v1`, `user_security_event.lockout.v1`
|
|
143
|
-
* `filter` (object):
|
|
150
|
+
* `filter` (object): Conditions on event fields that an event must meet to be delivered, keyed by dot-notation field path. All conditions must match.
|
|
144
151
|
* `delivery_policy` (object): Event Subscription delivery policy.
|
|
145
152
|
* `event_target_ids` (array(int64)): Event Target IDs this subscription sends to.
|
|
146
153
|
|
|
@@ -192,7 +199,7 @@ event_subscription.update(
|
|
|
192
199
|
* `message_only` (boolean): If true, notification email bodies contain only the custom message, omitting event details and the review button. Requires a custom message, defaults to false, and does not affect non-email targets.
|
|
193
200
|
* `enabled` (boolean): Whether this Event Subscription can dispatch events.
|
|
194
201
|
* `event_types` (array(string)): Event type strings matched by this subscription. Blank means all event types. Valid values: `automation_run.canceled.v1`, `automation_run.failure.v1`, `automation_run.failure_will_retry.v1`, `automation_run.partial_failure.v1`, `automation_run.partial_failure_will_retry.v1`, `automation_run.skipped.v1`, `automation_run.success.v1`, `expectation_evaluation.invalid.v1`, `expectation_evaluation.late.v1`, `expectation_evaluation.missing.v1`, `expectation_evaluation.success.v1`, `expectation_incident.acknowledged.v1`, `expectation_incident.open.v1`, `expectation_incident.resolved.v1`, `expectation_incident.snoozed.v1`, `external_event.client_log.failure.v1`, `external_event.client_log.partial_failure.v1`, `external_event.client_log.skipped.v1`, `external_event.client_log.success.v1`, `pending_work_event.failure.v1`, `pending_work_event.partial_failure.v1`, `pending_work_event.skipped.v1`, `pending_work_event.success.v1`, `siem_http_destination_event.failure.v1`, `siem_http_destination_event.partial_failure.v1`, `siem_http_destination_event.skipped.v1`, `siem_http_destination_event.success.v1`, `sso_event.ldap_login.failure.v1`, `sso_event.ldap_login.partial_failure.v1`, `sso_event.ldap_login.skipped.v1`, `sso_event.ldap_login.success.v1`, `sso_event.ldap_sync.failure.v1`, `sso_event.ldap_sync.partial_failure.v1`, `sso_event.ldap_sync.skipped.v1`, `sso_event.ldap_sync.success.v1`, `sso_event.saml_login.failure.v1`, `sso_event.saml_login.partial_failure.v1`, `sso_event.saml_login.skipped.v1`, `sso_event.saml_login.success.v1`, `sync_run.failure.v1`, `sync_run.partial_failure.v1`, `sync_run.skipped.v1`, `sync_run.success.v1`, `user_security_event.lockout.v1`
|
|
195
|
-
* `filter` (object):
|
|
202
|
+
* `filter` (object): Conditions on event fields that an event must meet to be delivered, keyed by dot-notation field path. All conditions must match.
|
|
196
203
|
* `delivery_policy` (object): Event Subscription delivery policy.
|
|
197
204
|
* `event_target_ids` (array(int64)): Event Target IDs this subscription sends to.
|
|
198
205
|
|
|
@@ -198,6 +198,24 @@ module Files
|
|
|
198
198
|
@attributes[:http_auth_password] = value
|
|
199
199
|
end
|
|
200
200
|
|
|
201
|
+
# string - Base64-encoded PKCS#12 (.pfx or .p12) file containing the partner's public certificate. Provide this instead of public_certificate. Any private key in the file is discarded. A public-only file must contain exactly one certificate.
|
|
202
|
+
def pkcs12
|
|
203
|
+
@attributes[:pkcs12]
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
def pkcs12=(value)
|
|
207
|
+
@attributes[:pkcs12] = value
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# string - Password for pkcs12. The file and password are used only for import; the extracted public certificate is stored as PEM.
|
|
211
|
+
def pkcs12_password
|
|
212
|
+
@attributes[:pkcs12_password]
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
def pkcs12_password=(value)
|
|
216
|
+
@attributes[:pkcs12_password] = value
|
|
217
|
+
end
|
|
218
|
+
|
|
201
219
|
# Parameters:
|
|
202
220
|
# enable_dedicated_ips - boolean - If `true`, we will use your site's dedicated IPs for all outbound connections to this AS2 Partner.
|
|
203
221
|
# http_auth_username - string - Username to send to server for HTTP Authentication.
|
|
@@ -210,6 +228,8 @@ module Files
|
|
|
210
228
|
# name - string - The partner's formal AS2 name.
|
|
211
229
|
# uri - string - Public URI where we will send the AS2 messages (via HTTP/HTTPS).
|
|
212
230
|
# public_certificate - string - Public certificate for AS2 Partner. Note: This is the certificate for AS2 message security, not a certificate used for HTTPS authentication.
|
|
231
|
+
# pkcs12 - string - Base64-encoded PKCS#12 (.pfx or .p12) file containing the partner's public certificate. Provide this instead of public_certificate. Any private key in the file is discarded. A public-only file must contain exactly one certificate.
|
|
232
|
+
# pkcs12_password - string - Password for pkcs12. The file and password are used only for import; the extracted public certificate is stored as PEM.
|
|
213
233
|
def update(params = {})
|
|
214
234
|
params ||= {}
|
|
215
235
|
params[:id] = @attributes[:id]
|
|
@@ -224,6 +244,8 @@ module Files
|
|
|
224
244
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
225
245
|
raise InvalidParameterError.new("Bad parameter: uri must be an String") if params[:uri] and !params[:uri].is_a?(String)
|
|
226
246
|
raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params[:public_certificate] and !params[:public_certificate].is_a?(String)
|
|
247
|
+
raise InvalidParameterError.new("Bad parameter: pkcs12 must be an String") if params[:pkcs12] and !params[:pkcs12].is_a?(String)
|
|
248
|
+
raise InvalidParameterError.new("Bad parameter: pkcs12_password must be an String") if params[:pkcs12_password] and !params[:pkcs12_password].is_a?(String)
|
|
227
249
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
228
250
|
|
|
229
251
|
response, options = Api.send_request("/as2_partners/#{@attributes[:id]}", :patch, params, @options) { |reply| reply.require_object("As2Partner") }
|
|
@@ -317,7 +339,9 @@ module Files
|
|
|
317
339
|
# as2_station_id (required) - int64 - ID of the AS2 Station associated with this partner.
|
|
318
340
|
# name (required) - string - The partner's formal AS2 name.
|
|
319
341
|
# uri (required) - string - Public URI where we will send the AS2 messages (via HTTP/HTTPS).
|
|
320
|
-
# public_certificate
|
|
342
|
+
# public_certificate - string - Public certificate for AS2 Partner. Note: This is the certificate for AS2 message security, not a certificate used for HTTPS authentication.
|
|
343
|
+
# pkcs12 - string - Base64-encoded PKCS#12 (.pfx or .p12) file containing the partner's public certificate. Provide this instead of public_certificate. Any private key in the file is discarded. A public-only file must contain exactly one certificate.
|
|
344
|
+
# pkcs12_password - string - Password for pkcs12. The file and password are used only for import; the extracted public certificate is stored as PEM.
|
|
321
345
|
#
|
|
322
346
|
# params:: Hash of API operation parameter values.
|
|
323
347
|
# options:: Hash of optional request configuration passed to Files::Api.send_request.
|
|
@@ -335,10 +359,11 @@ module Files
|
|
|
335
359
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
336
360
|
raise InvalidParameterError.new("Bad parameter: uri must be an String") if params[:uri] and !params[:uri].is_a?(String)
|
|
337
361
|
raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params[:public_certificate] and !params[:public_certificate].is_a?(String)
|
|
362
|
+
raise InvalidParameterError.new("Bad parameter: pkcs12 must be an String") if params[:pkcs12] and !params[:pkcs12].is_a?(String)
|
|
363
|
+
raise InvalidParameterError.new("Bad parameter: pkcs12_password must be an String") if params[:pkcs12_password] and !params[:pkcs12_password].is_a?(String)
|
|
338
364
|
raise MissingParameterError.new("Parameter missing: as2_station_id") unless params[:as2_station_id]
|
|
339
365
|
raise MissingParameterError.new("Parameter missing: name") unless params[:name]
|
|
340
366
|
raise MissingParameterError.new("Parameter missing: uri") unless params[:uri]
|
|
341
|
-
raise MissingParameterError.new("Parameter missing: public_certificate") unless params[:public_certificate]
|
|
342
367
|
|
|
343
368
|
response, options = Api.send_request("/as2_partners", :post, params, options) { |reply| reply.require_object("As2Partner") }
|
|
344
369
|
As2Partner.new(response.data, options)
|
|
@@ -356,6 +381,8 @@ module Files
|
|
|
356
381
|
# name - string - The partner's formal AS2 name.
|
|
357
382
|
# uri - string - Public URI where we will send the AS2 messages (via HTTP/HTTPS).
|
|
358
383
|
# public_certificate - string - Public certificate for AS2 Partner. Note: This is the certificate for AS2 message security, not a certificate used for HTTPS authentication.
|
|
384
|
+
# pkcs12 - string - Base64-encoded PKCS#12 (.pfx or .p12) file containing the partner's public certificate. Provide this instead of public_certificate. Any private key in the file is discarded. A public-only file must contain exactly one certificate.
|
|
385
|
+
# pkcs12_password - string - Password for pkcs12. The file and password are used only for import; the extracted public certificate is stored as PEM.
|
|
359
386
|
#
|
|
360
387
|
# params:: Hash of API operation parameter values.
|
|
361
388
|
# options:: Hash of optional request configuration passed to Files::Api.send_request.
|
|
@@ -375,6 +402,8 @@ module Files
|
|
|
375
402
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
376
403
|
raise InvalidParameterError.new("Bad parameter: uri must be an String") if params[:uri] and !params[:uri].is_a?(String)
|
|
377
404
|
raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params[:public_certificate] and !params[:public_certificate].is_a?(String)
|
|
405
|
+
raise InvalidParameterError.new("Bad parameter: pkcs12 must be an String") if params[:pkcs12] and !params[:pkcs12].is_a?(String)
|
|
406
|
+
raise InvalidParameterError.new("Bad parameter: pkcs12_password must be an String") if params[:pkcs12_password] and !params[:pkcs12_password].is_a?(String)
|
|
378
407
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
379
408
|
|
|
380
409
|
response, options = Api.send_request("/as2_partners/#{params[:id]}", :patch, params, options) { |reply| reply.require_object("As2Partner") }
|
|
@@ -144,7 +144,7 @@ module Files
|
|
|
144
144
|
@attributes[:private_key_password_md5] = value
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
-
# string
|
|
147
|
+
# string - PEM-encoded private key matching public_certificate.
|
|
148
148
|
def private_key
|
|
149
149
|
@attributes[:private_key]
|
|
150
150
|
end
|
|
@@ -153,7 +153,7 @@ module Files
|
|
|
153
153
|
@attributes[:private_key] = value
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
-
# string
|
|
156
|
+
# string - Password for the PEM-encoded private key.
|
|
157
157
|
def private_key_password
|
|
158
158
|
@attributes[:private_key_password]
|
|
159
159
|
end
|
|
@@ -162,11 +162,31 @@ module Files
|
|
|
162
162
|
@attributes[:private_key_password] = value
|
|
163
163
|
end
|
|
164
164
|
|
|
165
|
+
# string - Base64-encoded PKCS#12 (.pfx or .p12) file containing the identity's certificate and private key. Provide this instead of public_certificate and private_key.
|
|
166
|
+
def pkcs12
|
|
167
|
+
@attributes[:pkcs12]
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
def pkcs12=(value)
|
|
171
|
+
@attributes[:pkcs12] = value
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# string - Password for pkcs12. The file and password are used only for import; the extracted certificate and private key are stored as PEM.
|
|
175
|
+
def pkcs12_password
|
|
176
|
+
@attributes[:pkcs12_password]
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
def pkcs12_password=(value)
|
|
180
|
+
@attributes[:pkcs12_password] = value
|
|
181
|
+
end
|
|
182
|
+
|
|
165
183
|
# Parameters:
|
|
166
184
|
# name - string - The station's formal AS2 name.
|
|
167
|
-
# public_certificate - string
|
|
168
|
-
# private_key - string
|
|
169
|
-
# private_key_password - string
|
|
185
|
+
# public_certificate - string - Public certificate used for message security.
|
|
186
|
+
# private_key - string - PEM-encoded private key matching public_certificate.
|
|
187
|
+
# private_key_password - string - Password for the PEM-encoded private key.
|
|
188
|
+
# pkcs12 - string - Base64-encoded PKCS#12 (.pfx or .p12) file containing the identity's replacement certificate and private key. Provide this instead of public_certificate and private_key.
|
|
189
|
+
# pkcs12_password - string - Password for pkcs12. The file and password are used only for import; the extracted certificate and private key are stored as PEM.
|
|
170
190
|
def update(params = {})
|
|
171
191
|
params ||= {}
|
|
172
192
|
params[:id] = @attributes[:id]
|
|
@@ -176,6 +196,8 @@ module Files
|
|
|
176
196
|
raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params[:public_certificate] and !params[:public_certificate].is_a?(String)
|
|
177
197
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
|
178
198
|
raise InvalidParameterError.new("Bad parameter: private_key_password must be an String") if params[:private_key_password] and !params[:private_key_password].is_a?(String)
|
|
199
|
+
raise InvalidParameterError.new("Bad parameter: pkcs12 must be an String") if params[:pkcs12] and !params[:pkcs12].is_a?(String)
|
|
200
|
+
raise InvalidParameterError.new("Bad parameter: pkcs12_password must be an String") if params[:pkcs12_password] and !params[:pkcs12_password].is_a?(String)
|
|
179
201
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
180
202
|
|
|
181
203
|
response, options = Api.send_request("/as2_stations/#{@attributes[:id]}", :patch, params, @options) { |reply| reply.require_object("As2Station") }
|
|
@@ -260,9 +282,11 @@ module Files
|
|
|
260
282
|
# Parameters:
|
|
261
283
|
# name (required) - string - The station's formal AS2 name.
|
|
262
284
|
# workspace_id - int64 - ID of the Workspace associated with this AS2 Station.
|
|
263
|
-
# public_certificate
|
|
264
|
-
# private_key
|
|
265
|
-
# private_key_password - string
|
|
285
|
+
# public_certificate - string - Public certificate used for message security.
|
|
286
|
+
# private_key - string - PEM-encoded private key matching public_certificate.
|
|
287
|
+
# private_key_password - string - Password for the PEM-encoded private key.
|
|
288
|
+
# pkcs12 - string - Base64-encoded PKCS#12 (.pfx or .p12) file containing the identity's certificate and private key. Provide this instead of public_certificate and private_key.
|
|
289
|
+
# pkcs12_password - string - Password for pkcs12. The file and password are used only for import; the extracted certificate and private key are stored as PEM.
|
|
266
290
|
#
|
|
267
291
|
# params:: Hash of API operation parameter values.
|
|
268
292
|
# options:: Hash of optional request configuration passed to Files::Api.send_request.
|
|
@@ -274,9 +298,9 @@ module Files
|
|
|
274
298
|
raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params[:public_certificate] and !params[:public_certificate].is_a?(String)
|
|
275
299
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
|
276
300
|
raise InvalidParameterError.new("Bad parameter: private_key_password must be an String") if params[:private_key_password] and !params[:private_key_password].is_a?(String)
|
|
301
|
+
raise InvalidParameterError.new("Bad parameter: pkcs12 must be an String") if params[:pkcs12] and !params[:pkcs12].is_a?(String)
|
|
302
|
+
raise InvalidParameterError.new("Bad parameter: pkcs12_password must be an String") if params[:pkcs12_password] and !params[:pkcs12_password].is_a?(String)
|
|
277
303
|
raise MissingParameterError.new("Parameter missing: name") unless params[:name]
|
|
278
|
-
raise MissingParameterError.new("Parameter missing: public_certificate") unless params[:public_certificate]
|
|
279
|
-
raise MissingParameterError.new("Parameter missing: private_key") unless params[:private_key]
|
|
280
304
|
|
|
281
305
|
response, options = Api.send_request("/as2_stations", :post, params, options) { |reply| reply.require_object("As2Station") }
|
|
282
306
|
As2Station.new(response.data, options)
|
|
@@ -284,9 +308,11 @@ module Files
|
|
|
284
308
|
|
|
285
309
|
# Parameters:
|
|
286
310
|
# name - string - The station's formal AS2 name.
|
|
287
|
-
# public_certificate - string
|
|
288
|
-
# private_key - string
|
|
289
|
-
# private_key_password - string
|
|
311
|
+
# public_certificate - string - Public certificate used for message security.
|
|
312
|
+
# private_key - string - PEM-encoded private key matching public_certificate.
|
|
313
|
+
# private_key_password - string - Password for the PEM-encoded private key.
|
|
314
|
+
# pkcs12 - string - Base64-encoded PKCS#12 (.pfx or .p12) file containing the identity's replacement certificate and private key. Provide this instead of public_certificate and private_key.
|
|
315
|
+
# pkcs12_password - string - Password for pkcs12. The file and password are used only for import; the extracted certificate and private key are stored as PEM.
|
|
290
316
|
#
|
|
291
317
|
# params:: Hash of API operation parameter values.
|
|
292
318
|
# options:: Hash of optional request configuration passed to Files::Api.send_request.
|
|
@@ -300,6 +326,8 @@ module Files
|
|
|
300
326
|
raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params[:public_certificate] and !params[:public_certificate].is_a?(String)
|
|
301
327
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
|
302
328
|
raise InvalidParameterError.new("Bad parameter: private_key_password must be an String") if params[:private_key_password] and !params[:private_key_password].is_a?(String)
|
|
329
|
+
raise InvalidParameterError.new("Bad parameter: pkcs12 must be an String") if params[:pkcs12] and !params[:pkcs12].is_a?(String)
|
|
330
|
+
raise InvalidParameterError.new("Bad parameter: pkcs12_password must be an String") if params[:pkcs12_password] and !params[:pkcs12_password].is_a?(String)
|
|
303
331
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
304
332
|
|
|
305
333
|
response, options = Api.send_request("/as2_stations/#{params[:id]}", :patch, params, options) { |reply| reply.require_object("As2Station") }
|
|
@@ -99,7 +99,7 @@ module Files
|
|
|
99
99
|
@attributes[:event_types] = value
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
# object -
|
|
102
|
+
# object - Conditions on event fields that an event must meet to be delivered, keyed by dot-notation field path. All conditions must match.
|
|
103
103
|
def filter
|
|
104
104
|
@attributes[:filter]
|
|
105
105
|
end
|
|
@@ -146,7 +146,7 @@ module Files
|
|
|
146
146
|
# message_only - boolean - If true, notification email bodies contain only the custom message, omitting event details and the review button. Requires a custom message, defaults to false, and does not affect non-email targets.
|
|
147
147
|
# enabled - boolean - Whether this Event Subscription can dispatch events.
|
|
148
148
|
# event_types - array(string) - Event type strings matched by this subscription. Blank means all event types. Valid values: `automation_run.canceled.v1`, `automation_run.failure.v1`, `automation_run.failure_will_retry.v1`, `automation_run.partial_failure.v1`, `automation_run.partial_failure_will_retry.v1`, `automation_run.skipped.v1`, `automation_run.success.v1`, `expectation_evaluation.invalid.v1`, `expectation_evaluation.late.v1`, `expectation_evaluation.missing.v1`, `expectation_evaluation.success.v1`, `expectation_incident.acknowledged.v1`, `expectation_incident.open.v1`, `expectation_incident.resolved.v1`, `expectation_incident.snoozed.v1`, `external_event.client_log.failure.v1`, `external_event.client_log.partial_failure.v1`, `external_event.client_log.skipped.v1`, `external_event.client_log.success.v1`, `pending_work_event.failure.v1`, `pending_work_event.partial_failure.v1`, `pending_work_event.skipped.v1`, `pending_work_event.success.v1`, `siem_http_destination_event.failure.v1`, `siem_http_destination_event.partial_failure.v1`, `siem_http_destination_event.skipped.v1`, `siem_http_destination_event.success.v1`, `sso_event.ldap_login.failure.v1`, `sso_event.ldap_login.partial_failure.v1`, `sso_event.ldap_login.skipped.v1`, `sso_event.ldap_login.success.v1`, `sso_event.ldap_sync.failure.v1`, `sso_event.ldap_sync.partial_failure.v1`, `sso_event.ldap_sync.skipped.v1`, `sso_event.ldap_sync.success.v1`, `sso_event.saml_login.failure.v1`, `sso_event.saml_login.partial_failure.v1`, `sso_event.saml_login.skipped.v1`, `sso_event.saml_login.success.v1`, `sync_run.failure.v1`, `sync_run.partial_failure.v1`, `sync_run.skipped.v1`, `sync_run.success.v1`, `user_security_event.lockout.v1`
|
|
149
|
-
# filter - object -
|
|
149
|
+
# filter - object - Conditions on event fields that an event must meet to be delivered, keyed by dot-notation field path. All conditions must match.
|
|
150
150
|
# delivery_policy - object - Event Subscription delivery policy.
|
|
151
151
|
# event_target_ids - array(int64) - Event Target IDs this subscription sends to.
|
|
152
152
|
def update(params = {})
|
|
@@ -252,7 +252,7 @@ module Files
|
|
|
252
252
|
# message_only - boolean - If true, notification email bodies contain only the custom message, omitting event details and the review button. Requires a custom message, defaults to false, and does not affect non-email targets.
|
|
253
253
|
# enabled - boolean - Whether this Event Subscription can dispatch events.
|
|
254
254
|
# event_types - array(string) - Event type strings matched by this subscription. Blank means all event types. Valid values: `automation_run.canceled.v1`, `automation_run.failure.v1`, `automation_run.failure_will_retry.v1`, `automation_run.partial_failure.v1`, `automation_run.partial_failure_will_retry.v1`, `automation_run.skipped.v1`, `automation_run.success.v1`, `expectation_evaluation.invalid.v1`, `expectation_evaluation.late.v1`, `expectation_evaluation.missing.v1`, `expectation_evaluation.success.v1`, `expectation_incident.acknowledged.v1`, `expectation_incident.open.v1`, `expectation_incident.resolved.v1`, `expectation_incident.snoozed.v1`, `external_event.client_log.failure.v1`, `external_event.client_log.partial_failure.v1`, `external_event.client_log.skipped.v1`, `external_event.client_log.success.v1`, `pending_work_event.failure.v1`, `pending_work_event.partial_failure.v1`, `pending_work_event.skipped.v1`, `pending_work_event.success.v1`, `siem_http_destination_event.failure.v1`, `siem_http_destination_event.partial_failure.v1`, `siem_http_destination_event.skipped.v1`, `siem_http_destination_event.success.v1`, `sso_event.ldap_login.failure.v1`, `sso_event.ldap_login.partial_failure.v1`, `sso_event.ldap_login.skipped.v1`, `sso_event.ldap_login.success.v1`, `sso_event.ldap_sync.failure.v1`, `sso_event.ldap_sync.partial_failure.v1`, `sso_event.ldap_sync.skipped.v1`, `sso_event.ldap_sync.success.v1`, `sso_event.saml_login.failure.v1`, `sso_event.saml_login.partial_failure.v1`, `sso_event.saml_login.skipped.v1`, `sso_event.saml_login.success.v1`, `sync_run.failure.v1`, `sync_run.partial_failure.v1`, `sync_run.skipped.v1`, `sync_run.success.v1`, `user_security_event.lockout.v1`
|
|
255
|
-
# filter - object -
|
|
255
|
+
# filter - object - Conditions on event fields that an event must meet to be delivered, keyed by dot-notation field path. All conditions must match.
|
|
256
256
|
# delivery_policy - object - Event Subscription delivery policy.
|
|
257
257
|
# event_target_ids - array(int64) - Event Target IDs this subscription sends to.
|
|
258
258
|
#
|
|
@@ -286,7 +286,7 @@ module Files
|
|
|
286
286
|
# message_only - boolean - If true, notification email bodies contain only the custom message, omitting event details and the review button. Requires a custom message, defaults to false, and does not affect non-email targets.
|
|
287
287
|
# enabled - boolean - Whether this Event Subscription can dispatch events.
|
|
288
288
|
# event_types - array(string) - Event type strings matched by this subscription. Blank means all event types. Valid values: `automation_run.canceled.v1`, `automation_run.failure.v1`, `automation_run.failure_will_retry.v1`, `automation_run.partial_failure.v1`, `automation_run.partial_failure_will_retry.v1`, `automation_run.skipped.v1`, `automation_run.success.v1`, `expectation_evaluation.invalid.v1`, `expectation_evaluation.late.v1`, `expectation_evaluation.missing.v1`, `expectation_evaluation.success.v1`, `expectation_incident.acknowledged.v1`, `expectation_incident.open.v1`, `expectation_incident.resolved.v1`, `expectation_incident.snoozed.v1`, `external_event.client_log.failure.v1`, `external_event.client_log.partial_failure.v1`, `external_event.client_log.skipped.v1`, `external_event.client_log.success.v1`, `pending_work_event.failure.v1`, `pending_work_event.partial_failure.v1`, `pending_work_event.skipped.v1`, `pending_work_event.success.v1`, `siem_http_destination_event.failure.v1`, `siem_http_destination_event.partial_failure.v1`, `siem_http_destination_event.skipped.v1`, `siem_http_destination_event.success.v1`, `sso_event.ldap_login.failure.v1`, `sso_event.ldap_login.partial_failure.v1`, `sso_event.ldap_login.skipped.v1`, `sso_event.ldap_login.success.v1`, `sso_event.ldap_sync.failure.v1`, `sso_event.ldap_sync.partial_failure.v1`, `sso_event.ldap_sync.skipped.v1`, `sso_event.ldap_sync.success.v1`, `sso_event.saml_login.failure.v1`, `sso_event.saml_login.partial_failure.v1`, `sso_event.saml_login.skipped.v1`, `sso_event.saml_login.success.v1`, `sync_run.failure.v1`, `sync_run.partial_failure.v1`, `sync_run.skipped.v1`, `sync_run.success.v1`, `user_security_event.lockout.v1`
|
|
289
|
-
# filter - object -
|
|
289
|
+
# filter - object - Conditions on event fields that an event must meet to be delivered, keyed by dot-notation field path. All conditions must match.
|
|
290
290
|
# delivery_policy - object - Event Subscription delivery policy.
|
|
291
291
|
# event_target_ids - array(int64) - Event Target IDs this subscription sends to.
|
|
292
292
|
#
|
data/lib/files.com/version.rb
CHANGED