fastly 8.3.0 → 8.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +36 -0
- data/Gemfile.lock +3 -2
- data/README.md +3 -1
- data/docs/BillingInvoicesApi.md +2 -2
- data/docs/ContentApi.md +1 -1
- data/docs/Invoicelineitems.md +1 -0
- data/docs/LoggingKafkaAdditional.md +1 -1
- data/docs/LoggingKafkaApi.md +2 -2
- data/docs/LoggingKafkaResponse.md +1 -1
- data/docs/LoggingKafkaResponsePost.md +1 -1
- data/docs/LoggingLogentriesAdditional.md +1 -1
- data/docs/LoggingLogentriesApi.md +4 -4
- data/docs/LoggingLogentriesResponse.md +1 -1
- data/docs/LoggingS3Additional.md +1 -0
- data/docs/LoggingS3Api.md +4 -0
- data/docs/LoggingS3Response.md +1 -0
- data/docs/LoggingSplunkAdditional.md +1 -1
- data/docs/LoggingSplunkApi.md +4 -4
- data/docs/LoggingSplunkResponse.md +1 -1
- data/docs/LoggingSyslogAdditional.md +1 -1
- data/docs/LoggingSyslogApi.md +4 -4
- data/docs/LoggingSyslogResponse.md +1 -1
- data/docs/{LoggingUseTls.md → LoggingUseTlsString.md} +1 -1
- data/lib/fastly/api/content_api.rb +2 -2
- data/lib/fastly/api/logging_datadog_api.rb +2 -2
- data/lib/fastly/api/logging_kafka_api.rb +2 -2
- data/lib/fastly/api/logging_logentries_api.rb +4 -4
- data/lib/fastly/api/logging_s3_api.rb +14 -0
- data/lib/fastly/api/logging_splunk_api.rb +4 -4
- data/lib/fastly/api/logging_syslog_api.rb +4 -4
- data/lib/fastly/models/invoicelineitems.rb +11 -1
- data/lib/fastly/models/logging_datadog_additional.rb +2 -2
- data/lib/fastly/models/logging_datadog_response.rb +2 -2
- data/lib/fastly/models/logging_kafka_additional.rb +2 -2
- data/lib/fastly/models/logging_kafka_response.rb +2 -2
- data/lib/fastly/models/logging_kafka_response_post.rb +2 -2
- data/lib/fastly/models/logging_logentries_additional.rb +2 -2
- data/lib/fastly/models/logging_logentries_response.rb +2 -2
- data/lib/fastly/models/logging_s3_additional.rb +30 -5
- data/lib/fastly/models/logging_s3_response.rb +30 -5
- data/lib/fastly/models/logging_splunk_additional.rb +2 -2
- data/lib/fastly/models/logging_splunk_response.rb +2 -2
- data/lib/fastly/models/logging_syslog_additional.rb +2 -2
- data/lib/fastly/models/logging_syslog_response.rb +2 -2
- data/lib/fastly/models/{logging_use_tls.rb → logging_use_tls_string.rb} +5 -5
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +1 -1
- data/sig.json +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cd5d32ca7ee80b1b7656cb7cff0c67fb276abe44353247cbf760d3b4c0f104f
|
4
|
+
data.tar.gz: 72de51b94f84f63a2acfa667cf33cc57c2876bba88a9f9885cc42932f40d52ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de18419c2e84b3c027c0265f701c28ac900878f47bb5382d31f17cdd6b647858b3664b960f11ee5a1204441590f418630c3e05a41546bfe39bf6a56617811d38
|
7
|
+
data.tar.gz: daf76593158215b0a8ebe5adbebc96d013c2c87460244f40f42664fcb9a12ca655af37a4a10b030a3423e30109165873e19f1421465eea9b36cf85596798af0a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,41 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v8.5.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v8.5.0) (2024-07-01)
|
4
|
+
|
5
|
+
**Bug fixes:**
|
6
|
+
|
7
|
+
- fix(logging): For several endpoints, correct use_tls to be string
|
8
|
+
|
9
|
+
**Enhancements:**
|
10
|
+
|
11
|
+
- feat(content): `/content/edge_check` endpoint now returns informational values in `hash` when a timeout occurs or when
|
12
|
+
an object is too large.
|
13
|
+
- feat(logging-datalog): Added additional regions
|
14
|
+
|
15
|
+
## [v8.4.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v8.4.0) (2024-06-27)
|
16
|
+
|
17
|
+
**Bug fixes:**
|
18
|
+
|
19
|
+
- bugfix(alerts-definitions): For Origin derived metrics, correct `all_bandwidth` type to `integer`
|
20
|
+
|
21
|
+
**Enhancements:**
|
22
|
+
|
23
|
+
- feat(logging-s3): Add `file_max_bytes` configuration field
|
24
|
+
- feat(alerts-definitions): Add `integration_id` parameter to the List Alert Definitions endpoint
|
25
|
+
- feat(alerts-definitions): For Origin derived metrics, add `all_status_4xx_excl_404_rate` and `all_status_404_rate` properties
|
26
|
+
- feat(alerts-definitions): For Domain derived metrics, add `status_4xx_excl_404_rate` and `status_404_rate` properties
|
27
|
+
- feat(alerts-definitions): For Stats derived metrics, add `status_4xx_excl_404_rate`, `status_404_rate`, `all_status_5xx_rate`,
|
28
|
+
`all_status_4xx_rate`, `all_status_gte_400_rate`, and `all_status_lt_500_rate` properties
|
29
|
+
- feat(billing-invoices): For invoice line items, added `ProductLine` property
|
30
|
+
|
31
|
+
**Documentation:**
|
32
|
+
|
33
|
+
- doc(billing-invoices): "Billing Invoices API" relabeled to "Invoices API"
|
34
|
+
- doc(billing-invoices): Updated documentation of `billing_start_date` and `billing_end_date` query parameters of
|
35
|
+
List of invoices endpoint
|
36
|
+
- doc(alerts-definitions): Updated documentation of several fields
|
37
|
+
- doc(notification-service): Updated documentation examples for several fields
|
38
|
+
|
3
39
|
## [v8.3.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v8.3.0) (2024-05-24)
|
4
40
|
|
5
41
|
**Bug fixes:**
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fastly (8.
|
4
|
+
fastly (8.5.0)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -12,7 +12,8 @@ GEM
|
|
12
12
|
coderay (1.1.3)
|
13
13
|
ethon (0.16.0)
|
14
14
|
ffi (>= 1.15.0)
|
15
|
-
ffi (1.
|
15
|
+
ffi (1.17.0-arm64-darwin)
|
16
|
+
ffi (1.17.0-x86_64-linux-gnu)
|
16
17
|
jaro_winkler (1.5.4)
|
17
18
|
method_source (1.0.0)
|
18
19
|
parallel (1.21.0)
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ A Ruby client library for interacting with most facets of the [Fastly API](https
|
|
8
8
|
To install via RubyGems, add the following to your project's `Gemfile`:
|
9
9
|
|
10
10
|
```ruby
|
11
|
-
gem 'fastly', '~> 8.
|
11
|
+
gem 'fastly', '~> 8.5.0'
|
12
12
|
```
|
13
13
|
|
14
14
|
Then run `bundle install`.
|
@@ -621,6 +621,8 @@ The fastly-ruby API client currently does not support the following endpoints:
|
|
621
621
|
- [`/resources/stores/kv/{store_id}/batch`](https://www.fastly.com/documentation/reference/api/services/resources/kv-store-item) (PUT)
|
622
622
|
- [`/tls/activations/{tls_activation_id}`](https://www.fastly.com/documentation/reference/api/tls/mutual-tls/activations) (GET, PATCH)
|
623
623
|
- [`/tls/activations`](https://www.fastly.com/documentation/reference/api/tls/mutual-tls/activations) (GET)
|
624
|
+
- [`/tls/preview/domains/{tls_preview_domain_id}`](https://www.fastly.com/documentation/reference/api/) (GET, PATCH)
|
625
|
+
- [`/tls/preview/domains`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
|
624
626
|
- [`/v1/channel/{service_id}/ts/h/limit/{max_entries}`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
|
625
627
|
- [`/v1/channel/{service_id}/ts/h`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
|
626
628
|
- [`/v1/channel/{service_id}/ts/{start_timestamp}`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
|
data/docs/BillingInvoicesApi.md
CHANGED
@@ -67,8 +67,8 @@ Returns the list of invoices, sorted by billing start date (newest to oldest).
|
|
67
67
|
```ruby
|
68
68
|
api_instance = Fastly::BillingInvoicesApi.new
|
69
69
|
opts = {
|
70
|
-
billing_start_date: '2023-01-
|
71
|
-
billing_end_date: '2023-01-
|
70
|
+
billing_start_date: '2023-01-01', # String |
|
71
|
+
billing_end_date: '2023-01-31', # String |
|
72
72
|
limit: 'limit_example', # String | Number of results per page. The maximum is 200.
|
73
73
|
cursor: 'cursor_example', # String | Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
|
74
74
|
}
|
data/docs/ContentApi.md
CHANGED
@@ -22,7 +22,7 @@ Method | HTTP request | Description
|
|
22
22
|
content_check(opts): <Array<Content>> # Check status of content in each POP's cache
|
23
23
|
```
|
24
24
|
|
25
|
-
Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour.
|
25
|
+
Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour. If the content takes too long to download, the hash will be set to `error-timeout-$pop`. If the response is too large, it will be set to `warning-too-large-$pop`.
|
26
26
|
|
27
27
|
### Examples
|
28
28
|
|
data/docs/Invoicelineitems.md
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
| **units** | **Float** | Total number of units of usage. | [optional] |
|
12
12
|
| **product_name** | **String** | The name of the product. | [optional] |
|
13
13
|
| **product_group** | **String** | The broader classification of the product (e.g., `Compute` or `Full-Site Delivery`). | [optional] |
|
14
|
+
| **product_line** | **String** | The broader classification of the product (e.g., `Network Services` or `Security`). | [optional] |
|
14
15
|
| **region** | **String** | The geographical area applicable for regionally based products. | [optional] |
|
15
16
|
| **usage_type** | **String** | The unit of measure (e.g., `requests` or `bandwidth`). | [optional] |
|
16
17
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
| **auth_method** | **String** | SASL authentication method. | [optional] |
|
14
14
|
| **user** | **String** | SASL user. | [optional] |
|
15
15
|
| **password** | **String** | SASL password. | [optional] |
|
16
|
-
| **use_tls** | [**
|
16
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
17
17
|
|
18
18
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
19
19
|
|
data/docs/LoggingKafkaApi.md
CHANGED
@@ -53,7 +53,7 @@ opts = {
|
|
53
53
|
auth_method: 'plain', # String | SASL authentication method.
|
54
54
|
user: 'user_example', # String | SASL user.
|
55
55
|
password: 'password_example', # String | SASL password.
|
56
|
-
use_tls: Fastly::
|
56
|
+
use_tls: Fastly::LoggingUseTlsString::no_tls, # LoggingUseTlsString |
|
57
57
|
}
|
58
58
|
|
59
59
|
begin
|
@@ -89,7 +89,7 @@ end
|
|
89
89
|
| **auth_method** | **String** | SASL authentication method. | [optional] |
|
90
90
|
| **user** | **String** | SASL user. | [optional] |
|
91
91
|
| **password** | **String** | SASL password. | [optional] |
|
92
|
-
| **use_tls** | [**
|
92
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
93
93
|
|
94
94
|
### Return type
|
95
95
|
|
@@ -27,7 +27,7 @@
|
|
27
27
|
| **auth_method** | **String** | SASL authentication method. | [optional] |
|
28
28
|
| **user** | **String** | SASL user. | [optional] |
|
29
29
|
| **password** | **String** | SASL password. | [optional] |
|
30
|
-
| **use_tls** | [**
|
30
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
31
31
|
|
32
32
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
33
33
|
|
@@ -27,7 +27,7 @@
|
|
27
27
|
| **auth_method** | **String** | SASL authentication method. | [optional] |
|
28
28
|
| **user** | **String** | SASL user. | [optional] |
|
29
29
|
| **password** | **String** | SASL password. | [optional] |
|
30
|
-
| **use_tls** | [**
|
30
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
31
31
|
|
32
32
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
33
33
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **port** | **Integer** | The port number. | [optional][default to 20000] |
|
8
8
|
| **token** | **String** | Use token based authentication. | [optional] |
|
9
|
-
| **use_tls** | [**
|
9
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
10
10
|
| **region** | **String** | The region to which to stream logs. | [optional] |
|
11
11
|
|
12
12
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
@@ -42,7 +42,7 @@ opts = {
|
|
42
42
|
format_version: 1, # Integer | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
|
43
43
|
port: 56, # Integer | The port number.
|
44
44
|
token: 'token_example', # String | Use token based authentication.
|
45
|
-
use_tls: Fastly::
|
45
|
+
use_tls: Fastly::LoggingUseTlsString::no_tls, # LoggingUseTlsString |
|
46
46
|
region: 'US', # String | The region to which to stream logs.
|
47
47
|
}
|
48
48
|
|
@@ -68,7 +68,7 @@ end
|
|
68
68
|
| **format_version** | **Integer** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional][default to FORMAT_VERSION::v2] |
|
69
69
|
| **port** | **Integer** | The port number. | [optional][default to 20000] |
|
70
70
|
| **token** | **String** | Use token based authentication. | [optional] |
|
71
|
-
| **use_tls** | [**
|
71
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
72
72
|
| **region** | **String** | The region to which to stream logs. | [optional] |
|
73
73
|
|
74
74
|
### Return type
|
@@ -221,7 +221,7 @@ opts = {
|
|
221
221
|
format_version: 1, # Integer | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
|
222
222
|
port: 56, # Integer | The port number.
|
223
223
|
token: 'token_example', # String | Use token based authentication.
|
224
|
-
use_tls: Fastly::
|
224
|
+
use_tls: Fastly::LoggingUseTlsString::no_tls, # LoggingUseTlsString |
|
225
225
|
region: 'US', # String | The region to which to stream logs.
|
226
226
|
}
|
227
227
|
|
@@ -248,7 +248,7 @@ end
|
|
248
248
|
| **format_version** | **Integer** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional][default to FORMAT_VERSION::v2] |
|
249
249
|
| **port** | **Integer** | The port number. | [optional][default to 20000] |
|
250
250
|
| **token** | **String** | Use token based authentication. | [optional] |
|
251
|
-
| **use_tls** | [**
|
251
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
252
252
|
| **region** | **String** | The region to which to stream logs. | [optional] |
|
253
253
|
|
254
254
|
### Return type
|
@@ -11,7 +11,7 @@
|
|
11
11
|
| **format_version** | **String** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional][default to '2'] |
|
12
12
|
| **port** | **Integer** | The port number. | [optional][default to 20000] |
|
13
13
|
| **token** | **String** | Use token based authentication. | [optional] |
|
14
|
-
| **use_tls** | [**
|
14
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
15
15
|
| **region** | **String** | The region to which to stream logs. | [optional] |
|
16
16
|
| **created_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
17
17
|
| **deleted_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
data/docs/LoggingS3Additional.md
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
| **secret_key** | **String** | The secret key for your S3 account. Not required if `iam_role` is provided. | [optional] |
|
16
16
|
| **server_side_encryption_kms_key_id** | **String** | Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. | [optional][default to 'null'] |
|
17
17
|
| **server_side_encryption** | **String** | Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. | [optional][default to 'null'] |
|
18
|
+
| **file_max_bytes** | **Integer** | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) | [optional] |
|
18
19
|
|
19
20
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
20
21
|
|
data/docs/LoggingS3Api.md
CHANGED
@@ -56,6 +56,7 @@ opts = {
|
|
56
56
|
secret_key: 'secret_key_example', # String | The secret key for your S3 account. Not required if `iam_role` is provided.
|
57
57
|
server_side_encryption_kms_key_id: 'server_side_encryption_kms_key_id_example', # String | Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`.
|
58
58
|
server_side_encryption: 'server_side_encryption_example', # String | Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption.
|
59
|
+
file_max_bytes: 56, # Integer | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
|
59
60
|
}
|
60
61
|
|
61
62
|
begin
|
@@ -94,6 +95,7 @@ end
|
|
94
95
|
| **secret_key** | **String** | The secret key for your S3 account. Not required if `iam_role` is provided. | [optional] |
|
95
96
|
| **server_side_encryption_kms_key_id** | **String** | Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. | [optional][default to 'null'] |
|
96
97
|
| **server_side_encryption** | **String** | Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. | [optional][default to 'null'] |
|
98
|
+
| **file_max_bytes** | **Integer** | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) | [optional] |
|
97
99
|
|
98
100
|
### Return type
|
99
101
|
|
@@ -259,6 +261,7 @@ opts = {
|
|
259
261
|
secret_key: 'secret_key_example', # String | The secret key for your S3 account. Not required if `iam_role` is provided.
|
260
262
|
server_side_encryption_kms_key_id: 'server_side_encryption_kms_key_id_example', # String | Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`.
|
261
263
|
server_side_encryption: 'server_side_encryption_example', # String | Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption.
|
264
|
+
file_max_bytes: 56, # Integer | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
|
262
265
|
}
|
263
266
|
|
264
267
|
begin
|
@@ -298,6 +301,7 @@ end
|
|
298
301
|
| **secret_key** | **String** | The secret key for your S3 account. Not required if `iam_role` is provided. | [optional] |
|
299
302
|
| **server_side_encryption_kms_key_id** | **String** | Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. | [optional][default to 'null'] |
|
300
303
|
| **server_side_encryption** | **String** | Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. | [optional][default to 'null'] |
|
304
|
+
| **file_max_bytes** | **Integer** | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) | [optional] |
|
301
305
|
|
302
306
|
### Return type
|
303
307
|
|
data/docs/LoggingS3Response.md
CHANGED
@@ -30,6 +30,7 @@
|
|
30
30
|
| **secret_key** | **String** | The secret key for your S3 account. Not required if `iam_role` is provided. | [optional] |
|
31
31
|
| **server_side_encryption_kms_key_id** | **String** | Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. | [optional][default to 'null'] |
|
32
32
|
| **server_side_encryption** | **String** | Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. | [optional][default to 'null'] |
|
33
|
+
| **file_max_bytes** | **Integer** | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) | [optional] |
|
33
34
|
|
34
35
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
35
36
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **url** | **String** | The URL to post logs to. | [optional] |
|
8
8
|
| **token** | **String** | A Splunk token for use in posting logs over HTTP to your collector. | [optional] |
|
9
|
-
| **use_tls** | [**
|
9
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
10
10
|
|
11
11
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
12
12
|
|
data/docs/LoggingSplunkApi.md
CHANGED
@@ -48,7 +48,7 @@ opts = {
|
|
48
48
|
request_max_bytes: 56, # Integer | The maximum number of bytes sent in one request. Defaults `0` for unbounded.
|
49
49
|
url: 'url_example', # String | The URL to post logs to.
|
50
50
|
token: 'token_example', # String | A Splunk token for use in posting logs over HTTP to your collector.
|
51
|
-
use_tls: Fastly::
|
51
|
+
use_tls: Fastly::LoggingUseTlsString::no_tls, # LoggingUseTlsString |
|
52
52
|
}
|
53
53
|
|
54
54
|
begin
|
@@ -79,7 +79,7 @@ end
|
|
79
79
|
| **request_max_bytes** | **Integer** | The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [optional][default to 0] |
|
80
80
|
| **url** | **String** | The URL to post logs to. | [optional] |
|
81
81
|
| **token** | **String** | A Splunk token for use in posting logs over HTTP to your collector. | [optional] |
|
82
|
-
| **use_tls** | [**
|
82
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
83
83
|
|
84
84
|
### Return type
|
85
85
|
|
@@ -237,7 +237,7 @@ opts = {
|
|
237
237
|
request_max_bytes: 56, # Integer | The maximum number of bytes sent in one request. Defaults `0` for unbounded.
|
238
238
|
url: 'url_example', # String | The URL to post logs to.
|
239
239
|
token: 'token_example', # String | A Splunk token for use in posting logs over HTTP to your collector.
|
240
|
-
use_tls: Fastly::
|
240
|
+
use_tls: Fastly::LoggingUseTlsString::no_tls, # LoggingUseTlsString |
|
241
241
|
}
|
242
242
|
|
243
243
|
begin
|
@@ -269,7 +269,7 @@ end
|
|
269
269
|
| **request_max_bytes** | **Integer** | The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [optional][default to 0] |
|
270
270
|
| **url** | **String** | The URL to post logs to. | [optional] |
|
271
271
|
| **token** | **String** | A Splunk token for use in posting logs over HTTP to your collector. | [optional] |
|
272
|
-
| **use_tls** | [**
|
272
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
273
273
|
|
274
274
|
### Return type
|
275
275
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
| **request_max_bytes** | **Integer** | The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [optional][default to 0] |
|
18
18
|
| **url** | **String** | The URL to post logs to. | [optional] |
|
19
19
|
| **token** | **String** | A Splunk token for use in posting logs over HTTP to your collector. | [optional] |
|
20
|
-
| **use_tls** | [**
|
20
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
21
21
|
| **created_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
22
22
|
| **deleted_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
23
23
|
| **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
@@ -8,7 +8,7 @@
|
|
8
8
|
| **hostname** | **String** | The hostname used for the syslog endpoint. | [optional] |
|
9
9
|
| **ipv4** | **String** | The IPv4 address used for the syslog endpoint. | [optional] |
|
10
10
|
| **token** | **String** | Whether to prepend each message with a specific token. | [optional][default to 'null'] |
|
11
|
-
| **use_tls** | [**
|
11
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
12
12
|
|
13
13
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
14
14
|
|
data/docs/LoggingSyslogApi.md
CHANGED
@@ -50,7 +50,7 @@ opts = {
|
|
50
50
|
hostname: 'hostname_example', # String | The hostname used for the syslog endpoint.
|
51
51
|
ipv4: 'ipv4_example', # String | The IPv4 address used for the syslog endpoint.
|
52
52
|
token: 'token_example', # String | Whether to prepend each message with a specific token.
|
53
|
-
use_tls: Fastly::
|
53
|
+
use_tls: Fastly::LoggingUseTlsString::no_tls, # LoggingUseTlsString |
|
54
54
|
}
|
55
55
|
|
56
56
|
begin
|
@@ -83,7 +83,7 @@ end
|
|
83
83
|
| **hostname** | **String** | The hostname used for the syslog endpoint. | [optional] |
|
84
84
|
| **ipv4** | **String** | The IPv4 address used for the syslog endpoint. | [optional] |
|
85
85
|
| **token** | **String** | Whether to prepend each message with a specific token. | [optional][default to 'null'] |
|
86
|
-
| **use_tls** | [**
|
86
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
87
87
|
|
88
88
|
### Return type
|
89
89
|
|
@@ -243,7 +243,7 @@ opts = {
|
|
243
243
|
hostname: 'hostname_example', # String | The hostname used for the syslog endpoint.
|
244
244
|
ipv4: 'ipv4_example', # String | The IPv4 address used for the syslog endpoint.
|
245
245
|
token: 'token_example', # String | Whether to prepend each message with a specific token.
|
246
|
-
use_tls: Fastly::
|
246
|
+
use_tls: Fastly::LoggingUseTlsString::no_tls, # LoggingUseTlsString |
|
247
247
|
}
|
248
248
|
|
249
249
|
begin
|
@@ -277,7 +277,7 @@ end
|
|
277
277
|
| **hostname** | **String** | The hostname used for the syslog endpoint. | [optional] |
|
278
278
|
| **ipv4** | **String** | The IPv4 address used for the syslog endpoint. | [optional] |
|
279
279
|
| **token** | **String** | Whether to prepend each message with a specific token. | [optional][default to 'null'] |
|
280
|
-
| **use_tls** | [**
|
280
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
281
281
|
|
282
282
|
### Return type
|
283
283
|
|
@@ -19,7 +19,7 @@
|
|
19
19
|
| **hostname** | **String** | The hostname used for the syslog endpoint. | [optional] |
|
20
20
|
| **ipv4** | **String** | The IPv4 address used for the syslog endpoint. | [optional] |
|
21
21
|
| **token** | **String** | Whether to prepend each message with a specific token. | [optional][default to 'null'] |
|
22
|
-
| **use_tls** | [**
|
22
|
+
| **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to '0'] |
|
23
23
|
| **created_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
24
24
|
| **deleted_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
25
25
|
| **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
@@ -18,7 +18,7 @@ module Fastly
|
|
18
18
|
@api_client = api_client
|
19
19
|
end
|
20
20
|
# Check status of content in each POP's cache
|
21
|
-
# Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour.
|
21
|
+
# Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour. If the content takes too long to download, the hash will be set to `error-timeout-$pop`. If the response is too large, it will be set to `warning-too-large-$pop`.
|
22
22
|
# @option opts [String] :url Full URL (host and path) to check on all nodes. if protocol is omitted, http will be assumed.
|
23
23
|
# @return [Array<Content>]
|
24
24
|
def content_check(opts = {})
|
@@ -27,7 +27,7 @@ module Fastly
|
|
27
27
|
end
|
28
28
|
|
29
29
|
# Check status of content in each POP's cache
|
30
|
-
# Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour.
|
30
|
+
# Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour. If the content takes too long to download, the hash will be set to `error-timeout-$pop`. If the response is too large, it will be set to `warning-too-large-$pop`.
|
31
31
|
# @option opts [String] :url Full URL (host and path) to check on all nodes. if protocol is omitted, http will be assumed.
|
32
32
|
# @return [Array<(Array<Content>, Integer, Hash)>] Array<Content> data, response status code and response headers
|
33
33
|
def content_check_with_http_info(opts = {})
|
@@ -69,7 +69,7 @@ module Fastly
|
|
69
69
|
if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
|
70
70
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
|
71
71
|
end
|
72
|
-
allowable_values = ["US", "EU"]
|
72
|
+
allowable_values = ["US", "US3", "US5", "EU (legacy, same as EU1)", "EU1", "AP1"]
|
73
73
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
74
74
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
75
75
|
end
|
@@ -408,7 +408,7 @@ module Fastly
|
|
408
408
|
if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
|
409
409
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
|
410
410
|
end
|
411
|
-
allowable_values = ["US", "EU"]
|
411
|
+
allowable_values = ["US", "US3", "US5", "EU (legacy, same as EU1)", "EU1", "AP1"]
|
412
412
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
413
413
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
414
414
|
end
|
@@ -39,7 +39,7 @@ module Fastly
|
|
39
39
|
# @option opts [String] :auth_method SASL authentication method.
|
40
40
|
# @option opts [String] :user SASL user.
|
41
41
|
# @option opts [String] :password SASL password.
|
42
|
-
# @option opts [
|
42
|
+
# @option opts [LoggingUseTlsString] :use_tls (default to '0')
|
43
43
|
# @return [LoggingKafkaResponsePost]
|
44
44
|
def create_log_kafka(opts = {})
|
45
45
|
data, _status_code, _headers = create_log_kafka_with_http_info(opts)
|
@@ -68,7 +68,7 @@ module Fastly
|
|
68
68
|
# @option opts [String] :auth_method SASL authentication method.
|
69
69
|
# @option opts [String] :user SASL user.
|
70
70
|
# @option opts [String] :password SASL password.
|
71
|
-
# @option opts [
|
71
|
+
# @option opts [LoggingUseTlsString] :use_tls (default to '0')
|
72
72
|
# @return [Array<(LoggingKafkaResponsePost, Integer, Hash)>] LoggingKafkaResponsePost data, response status code and response headers
|
73
73
|
def create_log_kafka_with_http_info(opts = {})
|
74
74
|
if @api_client.config.debugging
|
@@ -28,7 +28,7 @@ module Fastly
|
|
28
28
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
29
29
|
# @option opts [Integer] :port The port number. (default to 20000)
|
30
30
|
# @option opts [String] :token Use token based authentication.
|
31
|
-
# @option opts [
|
31
|
+
# @option opts [LoggingUseTlsString] :use_tls (default to '0')
|
32
32
|
# @option opts [String] :region The region to which to stream logs.
|
33
33
|
# @return [LoggingLogentriesResponse]
|
34
34
|
def create_log_logentries(opts = {})
|
@@ -47,7 +47,7 @@ module Fastly
|
|
47
47
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
48
48
|
# @option opts [Integer] :port The port number. (default to 20000)
|
49
49
|
# @option opts [String] :token Use token based authentication.
|
50
|
-
# @option opts [
|
50
|
+
# @option opts [LoggingUseTlsString] :use_tls (default to '0')
|
51
51
|
# @option opts [String] :region The region to which to stream logs.
|
52
52
|
# @return [Array<(LoggingLogentriesResponse, Integer, Hash)>] LoggingLogentriesResponse data, response status code and response headers
|
53
53
|
def create_log_logentries_with_http_info(opts = {})
|
@@ -367,7 +367,7 @@ module Fastly
|
|
367
367
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
368
368
|
# @option opts [Integer] :port The port number. (default to 20000)
|
369
369
|
# @option opts [String] :token Use token based authentication.
|
370
|
-
# @option opts [
|
370
|
+
# @option opts [LoggingUseTlsString] :use_tls (default to '0')
|
371
371
|
# @option opts [String] :region The region to which to stream logs.
|
372
372
|
# @return [LoggingLogentriesResponse]
|
373
373
|
def update_log_logentries(opts = {})
|
@@ -387,7 +387,7 @@ module Fastly
|
|
387
387
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
388
388
|
# @option opts [Integer] :port The port number. (default to 20000)
|
389
389
|
# @option opts [String] :token Use token based authentication.
|
390
|
-
# @option opts [
|
390
|
+
# @option opts [LoggingUseTlsString] :use_tls (default to '0')
|
391
391
|
# @option opts [String] :region The region to which to stream logs.
|
392
392
|
# @return [Array<(LoggingLogentriesResponse, Integer, Hash)>] LoggingLogentriesResponse data, response status code and response headers
|
393
393
|
def update_log_logentries_with_http_info(opts = {})
|
@@ -42,6 +42,7 @@ module Fastly
|
|
42
42
|
# @option opts [String] :secret_key The secret key for your S3 account. Not required if `iam_role` is provided.
|
43
43
|
# @option opts [String] :server_side_encryption_kms_key_id Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. (default to 'null')
|
44
44
|
# @option opts [String] :server_side_encryption Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. (default to 'null')
|
45
|
+
# @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
|
45
46
|
# @return [LoggingS3Response]
|
46
47
|
def create_log_aws_s3(opts = {})
|
47
48
|
data, _status_code, _headers = create_log_aws_s3_with_http_info(opts)
|
@@ -73,6 +74,7 @@ module Fastly
|
|
73
74
|
# @option opts [String] :secret_key The secret key for your S3 account. Not required if `iam_role` is provided.
|
74
75
|
# @option opts [String] :server_side_encryption_kms_key_id Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. (default to 'null')
|
75
76
|
# @option opts [String] :server_side_encryption Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. (default to 'null')
|
77
|
+
# @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
|
76
78
|
# @return [Array<(LoggingS3Response, Integer, Hash)>] LoggingS3Response data, response status code and response headers
|
77
79
|
def create_log_aws_s3_with_http_info(opts = {})
|
78
80
|
if @api_client.config.debugging
|
@@ -105,6 +107,10 @@ module Fastly
|
|
105
107
|
if @api_client.config.client_side_validation && opts[:'compression_codec'] && !allowable_values.include?(opts[:'compression_codec'])
|
106
108
|
fail ArgumentError, "invalid value for \"compression_codec\", must be one of #{allowable_values}"
|
107
109
|
end
|
110
|
+
if @api_client.config.client_side_validation && !opts[:'file_max_bytes'].nil? && opts[:'file_max_bytes'] < 1048576
|
111
|
+
fail ArgumentError, 'invalid value for "opts[:"file_max_bytes"]" when calling LoggingS3Api.create_log_aws_s3, must be greater than or equal to 1048576.'
|
112
|
+
end
|
113
|
+
|
108
114
|
# resource path
|
109
115
|
local_var_path = '/service/{service_id}/version/{version_id}/logging/s3'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s))
|
110
116
|
|
@@ -144,6 +150,7 @@ module Fastly
|
|
144
150
|
form_params['secret_key'] = opts[:'secret_key'] if !opts[:'secret_key'].nil?
|
145
151
|
form_params['server_side_encryption_kms_key_id'] = opts[:'server_side_encryption_kms_key_id'] if !opts[:'server_side_encryption_kms_key_id'].nil?
|
146
152
|
form_params['server_side_encryption'] = opts[:'server_side_encryption'] if !opts[:'server_side_encryption'].nil?
|
153
|
+
form_params['file_max_bytes'] = opts[:'file_max_bytes'] if !opts[:'file_max_bytes'].nil?
|
147
154
|
|
148
155
|
# http body (model)
|
149
156
|
post_body = opts[:debug_body]
|
@@ -421,6 +428,7 @@ module Fastly
|
|
421
428
|
# @option opts [String] :secret_key The secret key for your S3 account. Not required if `iam_role` is provided.
|
422
429
|
# @option opts [String] :server_side_encryption_kms_key_id Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. (default to 'null')
|
423
430
|
# @option opts [String] :server_side_encryption Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. (default to 'null')
|
431
|
+
# @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
|
424
432
|
# @return [LoggingS3Response]
|
425
433
|
def update_log_aws_s3(opts = {})
|
426
434
|
data, _status_code, _headers = update_log_aws_s3_with_http_info(opts)
|
@@ -453,6 +461,7 @@ module Fastly
|
|
453
461
|
# @option opts [String] :secret_key The secret key for your S3 account. Not required if `iam_role` is provided.
|
454
462
|
# @option opts [String] :server_side_encryption_kms_key_id Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. (default to 'null')
|
455
463
|
# @option opts [String] :server_side_encryption Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. (default to 'null')
|
464
|
+
# @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
|
456
465
|
# @return [Array<(LoggingS3Response, Integer, Hash)>] LoggingS3Response data, response status code and response headers
|
457
466
|
def update_log_aws_s3_with_http_info(opts = {})
|
458
467
|
if @api_client.config.debugging
|
@@ -490,6 +499,10 @@ module Fastly
|
|
490
499
|
if @api_client.config.client_side_validation && opts[:'compression_codec'] && !allowable_values.include?(opts[:'compression_codec'])
|
491
500
|
fail ArgumentError, "invalid value for \"compression_codec\", must be one of #{allowable_values}"
|
492
501
|
end
|
502
|
+
if @api_client.config.client_side_validation && !opts[:'file_max_bytes'].nil? && opts[:'file_max_bytes'] < 1048576
|
503
|
+
fail ArgumentError, 'invalid value for "opts[:"file_max_bytes"]" when calling LoggingS3Api.update_log_aws_s3, must be greater than or equal to 1048576.'
|
504
|
+
end
|
505
|
+
|
493
506
|
# resource path
|
494
507
|
local_var_path = '/service/{service_id}/version/{version_id}/logging/s3/{logging_s3_name}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s)).sub('{' + 'logging_s3_name' + '}', CGI.escape(logging_s3_name.to_s))
|
495
508
|
|
@@ -529,6 +542,7 @@ module Fastly
|
|
529
542
|
form_params['secret_key'] = opts[:'secret_key'] if !opts[:'secret_key'].nil?
|
530
543
|
form_params['server_side_encryption_kms_key_id'] = opts[:'server_side_encryption_kms_key_id'] if !opts[:'server_side_encryption_kms_key_id'].nil?
|
531
544
|
form_params['server_side_encryption'] = opts[:'server_side_encryption'] if !opts[:'server_side_encryption'].nil?
|
545
|
+
form_params['file_max_bytes'] = opts[:'file_max_bytes'] if !opts[:'file_max_bytes'].nil?
|
532
546
|
|
533
547
|
# http body (model)
|
534
548
|
post_body = opts[:debug_body]
|
@@ -34,7 +34,7 @@ module Fastly
|
|
34
34
|
# @option opts [Integer] :request_max_bytes The maximum number of bytes sent in one request. Defaults `0` for unbounded. (default to 0)
|
35
35
|
# @option opts [String] :url The URL to post logs to.
|
36
36
|
# @option opts [String] :token A Splunk token for use in posting logs over HTTP to your collector.
|
37
|
-
# @option opts [
|
37
|
+
# @option opts [LoggingUseTlsString] :use_tls (default to '0')
|
38
38
|
# @return [LoggingSplunkResponse]
|
39
39
|
def create_log_splunk(opts = {})
|
40
40
|
data, _status_code, _headers = create_log_splunk_with_http_info(opts)
|
@@ -58,7 +58,7 @@ module Fastly
|
|
58
58
|
# @option opts [Integer] :request_max_bytes The maximum number of bytes sent in one request. Defaults `0` for unbounded. (default to 0)
|
59
59
|
# @option opts [String] :url The URL to post logs to.
|
60
60
|
# @option opts [String] :token A Splunk token for use in posting logs over HTTP to your collector.
|
61
|
-
# @option opts [
|
61
|
+
# @option opts [LoggingUseTlsString] :use_tls (default to '0')
|
62
62
|
# @return [Array<(LoggingSplunkResponse, Integer, Hash)>] LoggingSplunkResponse data, response status code and response headers
|
63
63
|
def create_log_splunk_with_http_info(opts = {})
|
64
64
|
if @api_client.config.debugging
|
@@ -384,7 +384,7 @@ module Fastly
|
|
384
384
|
# @option opts [Integer] :request_max_bytes The maximum number of bytes sent in one request. Defaults `0` for unbounded. (default to 0)
|
385
385
|
# @option opts [String] :url The URL to post logs to.
|
386
386
|
# @option opts [String] :token A Splunk token for use in posting logs over HTTP to your collector.
|
387
|
-
# @option opts [
|
387
|
+
# @option opts [LoggingUseTlsString] :use_tls (default to '0')
|
388
388
|
# @return [LoggingSplunkResponse]
|
389
389
|
def update_log_splunk(opts = {})
|
390
390
|
data, _status_code, _headers = update_log_splunk_with_http_info(opts)
|
@@ -409,7 +409,7 @@ module Fastly
|
|
409
409
|
# @option opts [Integer] :request_max_bytes The maximum number of bytes sent in one request. Defaults `0` for unbounded. (default to 0)
|
410
410
|
# @option opts [String] :url The URL to post logs to.
|
411
411
|
# @option opts [String] :token A Splunk token for use in posting logs over HTTP to your collector.
|
412
|
-
# @option opts [
|
412
|
+
# @option opts [LoggingUseTlsString] :use_tls (default to '0')
|
413
413
|
# @return [Array<(LoggingSplunkResponse, Integer, Hash)>] LoggingSplunkResponse data, response status code and response headers
|
414
414
|
def update_log_splunk_with_http_info(opts = {})
|
415
415
|
if @api_client.config.debugging
|
@@ -36,7 +36,7 @@ module Fastly
|
|
36
36
|
# @option opts [String] :hostname The hostname used for the syslog endpoint.
|
37
37
|
# @option opts [String] :ipv4 The IPv4 address used for the syslog endpoint.
|
38
38
|
# @option opts [String] :token Whether to prepend each message with a specific token. (default to 'null')
|
39
|
-
# @option opts [
|
39
|
+
# @option opts [LoggingUseTlsString] :use_tls (default to '0')
|
40
40
|
# @return [LoggingSyslogResponse]
|
41
41
|
def create_log_syslog(opts = {})
|
42
42
|
data, _status_code, _headers = create_log_syslog_with_http_info(opts)
|
@@ -62,7 +62,7 @@ module Fastly
|
|
62
62
|
# @option opts [String] :hostname The hostname used for the syslog endpoint.
|
63
63
|
# @option opts [String] :ipv4 The IPv4 address used for the syslog endpoint.
|
64
64
|
# @option opts [String] :token Whether to prepend each message with a specific token. (default to 'null')
|
65
|
-
# @option opts [
|
65
|
+
# @option opts [LoggingUseTlsString] :use_tls (default to '0')
|
66
66
|
# @return [Array<(LoggingSyslogResponse, Integer, Hash)>] LoggingSyslogResponse data, response status code and response headers
|
67
67
|
def create_log_syslog_with_http_info(opts = {})
|
68
68
|
if @api_client.config.debugging
|
@@ -392,7 +392,7 @@ module Fastly
|
|
392
392
|
# @option opts [String] :hostname The hostname used for the syslog endpoint.
|
393
393
|
# @option opts [String] :ipv4 The IPv4 address used for the syslog endpoint.
|
394
394
|
# @option opts [String] :token Whether to prepend each message with a specific token. (default to 'null')
|
395
|
-
# @option opts [
|
395
|
+
# @option opts [LoggingUseTlsString] :use_tls (default to '0')
|
396
396
|
# @return [LoggingSyslogResponse]
|
397
397
|
def update_log_syslog(opts = {})
|
398
398
|
data, _status_code, _headers = update_log_syslog_with_http_info(opts)
|
@@ -419,7 +419,7 @@ module Fastly
|
|
419
419
|
# @option opts [String] :hostname The hostname used for the syslog endpoint.
|
420
420
|
# @option opts [String] :ipv4 The IPv4 address used for the syslog endpoint.
|
421
421
|
# @option opts [String] :token Whether to prepend each message with a specific token. (default to 'null')
|
422
|
-
# @option opts [
|
422
|
+
# @option opts [LoggingUseTlsString] :use_tls (default to '0')
|
423
423
|
# @return [Array<(LoggingSyslogResponse, Integer, Hash)>] LoggingSyslogResponse data, response status code and response headers
|
424
424
|
def update_log_syslog_with_http_info(opts = {})
|
425
425
|
if @api_client.config.debugging
|
@@ -34,6 +34,9 @@ module Fastly
|
|
34
34
|
# The broader classification of the product (e.g., `Compute` or `Full-Site Delivery`).
|
35
35
|
attr_accessor :product_group
|
36
36
|
|
37
|
+
# The broader classification of the product (e.g., `Network Services` or `Security`).
|
38
|
+
attr_accessor :product_line
|
39
|
+
|
37
40
|
# The geographical area applicable for regionally based products.
|
38
41
|
attr_accessor :region
|
39
42
|
|
@@ -50,6 +53,7 @@ module Fastly
|
|
50
53
|
:'units' => :'units',
|
51
54
|
:'product_name' => :'ProductName',
|
52
55
|
:'product_group' => :'ProductGroup',
|
56
|
+
:'product_line' => :'ProductLine',
|
53
57
|
:'region' => :'Region',
|
54
58
|
:'usage_type' => :'UsageType'
|
55
59
|
}
|
@@ -70,6 +74,7 @@ module Fastly
|
|
70
74
|
:'units' => :'Float',
|
71
75
|
:'product_name' => :'String',
|
72
76
|
:'product_group' => :'String',
|
77
|
+
:'product_line' => :'String',
|
73
78
|
:'region' => :'String',
|
74
79
|
:'usage_type' => :'String'
|
75
80
|
}
|
@@ -124,6 +129,10 @@ module Fastly
|
|
124
129
|
self.product_group = attributes[:'product_group']
|
125
130
|
end
|
126
131
|
|
132
|
+
if attributes.key?(:'product_line')
|
133
|
+
self.product_line = attributes[:'product_line']
|
134
|
+
end
|
135
|
+
|
127
136
|
if attributes.key?(:'region')
|
128
137
|
self.region = attributes[:'region']
|
129
138
|
end
|
@@ -158,6 +167,7 @@ module Fastly
|
|
158
167
|
units == o.units &&
|
159
168
|
product_name == o.product_name &&
|
160
169
|
product_group == o.product_group &&
|
170
|
+
product_line == o.product_line &&
|
161
171
|
region == o.region &&
|
162
172
|
usage_type == o.usage_type
|
163
173
|
end
|
@@ -171,7 +181,7 @@ module Fastly
|
|
171
181
|
# Calculates hash code according to all attributes.
|
172
182
|
# @return [Integer] Hash code
|
173
183
|
def hash
|
174
|
-
[description, amount, credit_coupon_code, rate, units, product_name, product_group, region, usage_type].hash
|
184
|
+
[description, amount, credit_coupon_code, rate, units, product_name, product_group, product_line, region, usage_type].hash
|
175
185
|
end
|
176
186
|
|
177
187
|
# Builds the object from hash
|
@@ -115,7 +115,7 @@ module Fastly
|
|
115
115
|
# Check to see if the all the properties in the model are valid
|
116
116
|
# @return true if the model is valid
|
117
117
|
def valid?
|
118
|
-
region_validator = EnumAttributeValidator.new('String', ["US", "EU"])
|
118
|
+
region_validator = EnumAttributeValidator.new('String', ["US", "US3", "US5", "EU (legacy, same as EU1)", "EU1", "AP1"])
|
119
119
|
return false unless region_validator.valid?(@region)
|
120
120
|
true
|
121
121
|
end
|
@@ -123,7 +123,7 @@ module Fastly
|
|
123
123
|
# Custom attribute writer method checking allowed values (enum).
|
124
124
|
# @param [Object] region Object to be assigned
|
125
125
|
def region=(region)
|
126
|
-
validator = EnumAttributeValidator.new('String', ["US", "EU"])
|
126
|
+
validator = EnumAttributeValidator.new('String', ["US", "US3", "US5", "EU (legacy, same as EU1)", "EU1", "AP1"])
|
127
127
|
unless validator.valid?(region)
|
128
128
|
fail ArgumentError, "invalid value for \"region\", must be one of #{validator.allowable_values}."
|
129
129
|
end
|
@@ -215,7 +215,7 @@ module Fastly
|
|
215
215
|
return false unless placement_validator.valid?(@placement)
|
216
216
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
217
217
|
return false unless format_version_validator.valid?(@format_version)
|
218
|
-
region_validator = EnumAttributeValidator.new('String', ["US", "EU"])
|
218
|
+
region_validator = EnumAttributeValidator.new('String', ["US", "US3", "US5", "EU (legacy, same as EU1)", "EU1", "AP1"])
|
219
219
|
return false unless region_validator.valid?(@region)
|
220
220
|
true
|
221
221
|
end
|
@@ -243,7 +243,7 @@ module Fastly
|
|
243
243
|
# Custom attribute writer method checking allowed values (enum).
|
244
244
|
# @param [Object] region Object to be assigned
|
245
245
|
def region=(region)
|
246
|
-
validator = EnumAttributeValidator.new('String', ["US", "EU"])
|
246
|
+
validator = EnumAttributeValidator.new('String', ["US", "US3", "US5", "EU (legacy, same as EU1)", "EU1", "AP1"])
|
247
247
|
unless validator.valid?(region)
|
248
248
|
fail ArgumentError, "invalid value for \"region\", must be one of #{validator.allowable_values}."
|
249
249
|
end
|
@@ -97,7 +97,7 @@ module Fastly
|
|
97
97
|
:'auth_method' => :'String',
|
98
98
|
:'user' => :'String',
|
99
99
|
:'password' => :'String',
|
100
|
-
:'use_tls' => :'
|
100
|
+
:'use_tls' => :'LoggingUseTlsString'
|
101
101
|
}
|
102
102
|
end
|
103
103
|
|
@@ -166,7 +166,7 @@ module Fastly
|
|
166
166
|
if attributes.key?(:'use_tls')
|
167
167
|
self.use_tls = attributes[:'use_tls']
|
168
168
|
else
|
169
|
-
self.use_tls =
|
169
|
+
self.use_tls = '0'
|
170
170
|
end
|
171
171
|
end
|
172
172
|
|
@@ -165,7 +165,7 @@ module Fastly
|
|
165
165
|
:'auth_method' => :'String',
|
166
166
|
:'user' => :'String',
|
167
167
|
:'password' => :'String',
|
168
|
-
:'use_tls' => :'
|
168
|
+
:'use_tls' => :'LoggingUseTlsString'
|
169
169
|
}
|
170
170
|
end
|
171
171
|
|
@@ -322,7 +322,7 @@ module Fastly
|
|
322
322
|
if attributes.key?(:'use_tls')
|
323
323
|
self.use_tls = attributes[:'use_tls']
|
324
324
|
else
|
325
|
-
self.use_tls =
|
325
|
+
self.use_tls = '0'
|
326
326
|
end
|
327
327
|
end
|
328
328
|
|
@@ -165,7 +165,7 @@ module Fastly
|
|
165
165
|
:'auth_method' => :'String',
|
166
166
|
:'user' => :'String',
|
167
167
|
:'password' => :'String',
|
168
|
-
:'use_tls' => :'
|
168
|
+
:'use_tls' => :'LoggingUseTlsString'
|
169
169
|
}
|
170
170
|
end
|
171
171
|
|
@@ -323,7 +323,7 @@ module Fastly
|
|
323
323
|
if attributes.key?(:'use_tls')
|
324
324
|
self.use_tls = attributes[:'use_tls']
|
325
325
|
else
|
326
|
-
self.use_tls =
|
326
|
+
self.use_tls = '0'
|
327
327
|
end
|
328
328
|
end
|
329
329
|
|
@@ -66,7 +66,7 @@ module Fastly
|
|
66
66
|
{
|
67
67
|
:'port' => :'Integer',
|
68
68
|
:'token' => :'String',
|
69
|
-
:'use_tls' => :'
|
69
|
+
:'use_tls' => :'LoggingUseTlsString',
|
70
70
|
:'region' => :'String'
|
71
71
|
}
|
72
72
|
end
|
@@ -105,7 +105,7 @@ module Fastly
|
|
105
105
|
if attributes.key?(:'use_tls')
|
106
106
|
self.use_tls = attributes[:'use_tls']
|
107
107
|
else
|
108
|
-
self.use_tls =
|
108
|
+
self.use_tls = '0'
|
109
109
|
end
|
110
110
|
|
111
111
|
if attributes.key?(:'region')
|
@@ -109,7 +109,7 @@ module Fastly
|
|
109
109
|
:'format_version' => :'String',
|
110
110
|
:'port' => :'Integer',
|
111
111
|
:'token' => :'String',
|
112
|
-
:'use_tls' => :'
|
112
|
+
:'use_tls' => :'LoggingUseTlsString',
|
113
113
|
:'region' => :'String',
|
114
114
|
:'created_at' => :'Time',
|
115
115
|
:'deleted_at' => :'Time',
|
@@ -192,7 +192,7 @@ module Fastly
|
|
192
192
|
if attributes.key?(:'use_tls')
|
193
193
|
self.use_tls = attributes[:'use_tls']
|
194
194
|
else
|
195
|
-
self.use_tls =
|
195
|
+
self.use_tls = '0'
|
196
196
|
end
|
197
197
|
|
198
198
|
if attributes.key?(:'region')
|
@@ -46,6 +46,9 @@ module Fastly
|
|
46
46
|
# Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption.
|
47
47
|
attr_accessor :server_side_encryption
|
48
48
|
|
49
|
+
# The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
|
50
|
+
attr_accessor :file_max_bytes
|
51
|
+
|
49
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
53
|
def self.attribute_map
|
51
54
|
{
|
@@ -59,7 +62,8 @@ module Fastly
|
|
59
62
|
:'redundancy' => :'redundancy',
|
60
63
|
:'secret_key' => :'secret_key',
|
61
64
|
:'server_side_encryption_kms_key_id' => :'server_side_encryption_kms_key_id',
|
62
|
-
:'server_side_encryption' => :'server_side_encryption'
|
65
|
+
:'server_side_encryption' => :'server_side_encryption',
|
66
|
+
:'file_max_bytes' => :'file_max_bytes'
|
63
67
|
}
|
64
68
|
end
|
65
69
|
|
@@ -81,7 +85,8 @@ module Fastly
|
|
81
85
|
:'redundancy' => :'String',
|
82
86
|
:'secret_key' => :'String',
|
83
87
|
:'server_side_encryption_kms_key_id' => :'String',
|
84
|
-
:'server_side_encryption' => :'String'
|
88
|
+
:'server_side_encryption' => :'String',
|
89
|
+
:'file_max_bytes' => :'Integer'
|
85
90
|
}
|
86
91
|
end
|
87
92
|
|
@@ -95,7 +100,7 @@ module Fastly
|
|
95
100
|
:'redundancy',
|
96
101
|
:'secret_key',
|
97
102
|
:'server_side_encryption_kms_key_id',
|
98
|
-
:'server_side_encryption'
|
103
|
+
:'server_side_encryption',
|
99
104
|
])
|
100
105
|
end
|
101
106
|
|
@@ -167,21 +172,40 @@ module Fastly
|
|
167
172
|
else
|
168
173
|
self.server_side_encryption = 'null'
|
169
174
|
end
|
175
|
+
|
176
|
+
if attributes.key?(:'file_max_bytes')
|
177
|
+
self.file_max_bytes = attributes[:'file_max_bytes']
|
178
|
+
end
|
170
179
|
end
|
171
180
|
|
172
181
|
# Show invalid properties with the reasons. Usually used together with valid?
|
173
182
|
# @return Array for valid properties with the reasons
|
174
183
|
def list_invalid_properties
|
175
184
|
invalid_properties = Array.new
|
185
|
+
if !@file_max_bytes.nil? && @file_max_bytes < 1048576
|
186
|
+
invalid_properties.push('invalid value for "file_max_bytes", must be greater than or equal to 1048576.')
|
187
|
+
end
|
188
|
+
|
176
189
|
invalid_properties
|
177
190
|
end
|
178
191
|
|
179
192
|
# Check to see if the all the properties in the model are valid
|
180
193
|
# @return true if the model is valid
|
181
194
|
def valid?
|
195
|
+
return false if !@file_max_bytes.nil? && @file_max_bytes < 1048576
|
182
196
|
true
|
183
197
|
end
|
184
198
|
|
199
|
+
# Custom attribute writer method with validation
|
200
|
+
# @param [Object] file_max_bytes Value to be assigned
|
201
|
+
def file_max_bytes=(file_max_bytes)
|
202
|
+
if !file_max_bytes.nil? && file_max_bytes < 1048576
|
203
|
+
fail ArgumentError, 'invalid value for "file_max_bytes", must be greater than or equal to 1048576.'
|
204
|
+
end
|
205
|
+
|
206
|
+
@file_max_bytes = file_max_bytes
|
207
|
+
end
|
208
|
+
|
185
209
|
# Checks equality by comparing each attribute.
|
186
210
|
# @param [Object] Object to be compared
|
187
211
|
def ==(o)
|
@@ -197,7 +221,8 @@ module Fastly
|
|
197
221
|
redundancy == o.redundancy &&
|
198
222
|
secret_key == o.secret_key &&
|
199
223
|
server_side_encryption_kms_key_id == o.server_side_encryption_kms_key_id &&
|
200
|
-
server_side_encryption == o.server_side_encryption
|
224
|
+
server_side_encryption == o.server_side_encryption &&
|
225
|
+
file_max_bytes == o.file_max_bytes
|
201
226
|
end
|
202
227
|
|
203
228
|
# @see the `==` method
|
@@ -209,7 +234,7 @@ module Fastly
|
|
209
234
|
# Calculates hash code according to all attributes.
|
210
235
|
# @return [Integer] Hash code
|
211
236
|
def hash
|
212
|
-
[access_key, acl, bucket_name, domain, iam_role, path, public_key, redundancy, secret_key, server_side_encryption_kms_key_id, server_side_encryption].hash
|
237
|
+
[access_key, acl, bucket_name, domain, iam_role, path, public_key, redundancy, secret_key, server_side_encryption_kms_key_id, server_side_encryption, file_max_bytes].hash
|
213
238
|
end
|
214
239
|
|
215
240
|
# Builds the object from hash
|
@@ -89,6 +89,9 @@ module Fastly
|
|
89
89
|
# Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption.
|
90
90
|
attr_accessor :server_side_encryption
|
91
91
|
|
92
|
+
# The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
|
93
|
+
attr_accessor :file_max_bytes
|
94
|
+
|
92
95
|
class EnumAttributeValidator
|
93
96
|
attr_reader :datatype
|
94
97
|
attr_reader :allowable_values
|
@@ -139,7 +142,8 @@ module Fastly
|
|
139
142
|
:'redundancy' => :'redundancy',
|
140
143
|
:'secret_key' => :'secret_key',
|
141
144
|
:'server_side_encryption_kms_key_id' => :'server_side_encryption_kms_key_id',
|
142
|
-
:'server_side_encryption' => :'server_side_encryption'
|
145
|
+
:'server_side_encryption' => :'server_side_encryption',
|
146
|
+
:'file_max_bytes' => :'file_max_bytes'
|
143
147
|
}
|
144
148
|
end
|
145
149
|
|
@@ -176,7 +180,8 @@ module Fastly
|
|
176
180
|
:'redundancy' => :'String',
|
177
181
|
:'secret_key' => :'String',
|
178
182
|
:'server_side_encryption_kms_key_id' => :'String',
|
179
|
-
:'server_side_encryption' => :'String'
|
183
|
+
:'server_side_encryption' => :'String',
|
184
|
+
:'file_max_bytes' => :'Integer'
|
180
185
|
}
|
181
186
|
end
|
182
187
|
|
@@ -196,7 +201,7 @@ module Fastly
|
|
196
201
|
:'redundancy',
|
197
202
|
:'secret_key',
|
198
203
|
:'server_side_encryption_kms_key_id',
|
199
|
-
:'server_side_encryption'
|
204
|
+
:'server_side_encryption',
|
200
205
|
])
|
201
206
|
end
|
202
207
|
|
@@ -349,12 +354,20 @@ module Fastly
|
|
349
354
|
else
|
350
355
|
self.server_side_encryption = 'null'
|
351
356
|
end
|
357
|
+
|
358
|
+
if attributes.key?(:'file_max_bytes')
|
359
|
+
self.file_max_bytes = attributes[:'file_max_bytes']
|
360
|
+
end
|
352
361
|
end
|
353
362
|
|
354
363
|
# Show invalid properties with the reasons. Usually used together with valid?
|
355
364
|
# @return Array for valid properties with the reasons
|
356
365
|
def list_invalid_properties
|
357
366
|
invalid_properties = Array.new
|
367
|
+
if !@file_max_bytes.nil? && @file_max_bytes < 1048576
|
368
|
+
invalid_properties.push('invalid value for "file_max_bytes", must be greater than or equal to 1048576.')
|
369
|
+
end
|
370
|
+
|
358
371
|
invalid_properties
|
359
372
|
end
|
360
373
|
|
@@ -369,6 +382,7 @@ module Fastly
|
|
369
382
|
return false unless message_type_validator.valid?(@message_type)
|
370
383
|
compression_codec_validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
|
371
384
|
return false unless compression_codec_validator.valid?(@compression_codec)
|
385
|
+
return false if !@file_max_bytes.nil? && @file_max_bytes < 1048576
|
372
386
|
true
|
373
387
|
end
|
374
388
|
|
@@ -412,6 +426,16 @@ module Fastly
|
|
412
426
|
@compression_codec = compression_codec
|
413
427
|
end
|
414
428
|
|
429
|
+
# Custom attribute writer method with validation
|
430
|
+
# @param [Object] file_max_bytes Value to be assigned
|
431
|
+
def file_max_bytes=(file_max_bytes)
|
432
|
+
if !file_max_bytes.nil? && file_max_bytes < 1048576
|
433
|
+
fail ArgumentError, 'invalid value for "file_max_bytes", must be greater than or equal to 1048576.'
|
434
|
+
end
|
435
|
+
|
436
|
+
@file_max_bytes = file_max_bytes
|
437
|
+
end
|
438
|
+
|
415
439
|
# Checks equality by comparing each attribute.
|
416
440
|
# @param [Object] Object to be compared
|
417
441
|
def ==(o)
|
@@ -442,7 +466,8 @@ module Fastly
|
|
442
466
|
redundancy == o.redundancy &&
|
443
467
|
secret_key == o.secret_key &&
|
444
468
|
server_side_encryption_kms_key_id == o.server_side_encryption_kms_key_id &&
|
445
|
-
server_side_encryption == o.server_side_encryption
|
469
|
+
server_side_encryption == o.server_side_encryption &&
|
470
|
+
file_max_bytes == o.file_max_bytes
|
446
471
|
end
|
447
472
|
|
448
473
|
# @see the `==` method
|
@@ -454,7 +479,7 @@ module Fastly
|
|
454
479
|
# Calculates hash code according to all attributes.
|
455
480
|
# @return [Integer] Hash code
|
456
481
|
def hash
|
457
|
-
[name, placement, response_condition, format, format_version, message_type, timestamp_format, compression_codec, period, gzip_level, created_at, deleted_at, updated_at, service_id, version, access_key, acl, bucket_name, domain, iam_role, path, public_key, redundancy, secret_key, server_side_encryption_kms_key_id, server_side_encryption].hash
|
482
|
+
[name, placement, response_condition, format, format_version, message_type, timestamp_format, compression_codec, period, gzip_level, created_at, deleted_at, updated_at, service_id, version, access_key, acl, bucket_name, domain, iam_role, path, public_key, redundancy, secret_key, server_side_encryption_kms_key_id, server_side_encryption, file_max_bytes].hash
|
458
483
|
end
|
459
484
|
|
460
485
|
# Builds the object from hash
|
@@ -40,7 +40,7 @@ module Fastly
|
|
40
40
|
{
|
41
41
|
:'url' => :'String',
|
42
42
|
:'token' => :'String',
|
43
|
-
:'use_tls' => :'
|
43
|
+
:'use_tls' => :'LoggingUseTlsString'
|
44
44
|
}
|
45
45
|
end
|
46
46
|
|
@@ -76,7 +76,7 @@ module Fastly
|
|
76
76
|
if attributes.key?(:'use_tls')
|
77
77
|
self.use_tls = attributes[:'use_tls']
|
78
78
|
else
|
79
|
-
self.use_tls =
|
79
|
+
self.use_tls = '0'
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
@@ -135,7 +135,7 @@ module Fastly
|
|
135
135
|
:'request_max_bytes' => :'Integer',
|
136
136
|
:'url' => :'String',
|
137
137
|
:'token' => :'String',
|
138
|
-
:'use_tls' => :'
|
138
|
+
:'use_tls' => :'LoggingUseTlsString',
|
139
139
|
:'created_at' => :'Time',
|
140
140
|
:'deleted_at' => :'Time',
|
141
141
|
:'updated_at' => :'Time',
|
@@ -257,7 +257,7 @@ module Fastly
|
|
257
257
|
if attributes.key?(:'use_tls')
|
258
258
|
self.use_tls = attributes[:'use_tls']
|
259
259
|
else
|
260
|
-
self.use_tls =
|
260
|
+
self.use_tls = '0'
|
261
261
|
end
|
262
262
|
|
263
263
|
if attributes.key?(:'created_at')
|
@@ -49,7 +49,7 @@ module Fastly
|
|
49
49
|
:'hostname' => :'String',
|
50
50
|
:'ipv4' => :'String',
|
51
51
|
:'token' => :'String',
|
52
|
-
:'use_tls' => :'
|
52
|
+
:'use_tls' => :'LoggingUseTlsString'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
@@ -99,7 +99,7 @@ module Fastly
|
|
99
99
|
if attributes.key?(:'use_tls')
|
100
100
|
self.use_tls = attributes[:'use_tls']
|
101
101
|
else
|
102
|
-
self.use_tls =
|
102
|
+
self.use_tls = '0'
|
103
103
|
end
|
104
104
|
end
|
105
105
|
|
@@ -144,7 +144,7 @@ module Fastly
|
|
144
144
|
:'hostname' => :'String',
|
145
145
|
:'ipv4' => :'String',
|
146
146
|
:'token' => :'String',
|
147
|
-
:'use_tls' => :'
|
147
|
+
:'use_tls' => :'LoggingUseTlsString',
|
148
148
|
:'created_at' => :'Time',
|
149
149
|
:'deleted_at' => :'Time',
|
150
150
|
:'updated_at' => :'Time',
|
@@ -278,7 +278,7 @@ module Fastly
|
|
278
278
|
if attributes.key?(:'use_tls')
|
279
279
|
self.use_tls = attributes[:'use_tls']
|
280
280
|
else
|
281
|
-
self.use_tls =
|
281
|
+
self.use_tls = '0'
|
282
282
|
end
|
283
283
|
|
284
284
|
if attributes.key?(:'created_at')
|
@@ -12,9 +12,9 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
16
|
-
no_tls = 0.freeze
|
17
|
-
use_tls = 1.freeze
|
15
|
+
class LoggingUseTlsString
|
16
|
+
no_tls = "0".freeze
|
17
|
+
use_tls = "1".freeze
|
18
18
|
|
19
19
|
# Builds the enum from string
|
20
20
|
# @param [String] The enum value in the form of the string
|
@@ -27,8 +27,8 @@ module Fastly
|
|
27
27
|
# @param [String] The enum value in the form of the string
|
28
28
|
# @return [String] The enum value
|
29
29
|
def build_from_hash(value)
|
30
|
-
constantValues =
|
31
|
-
raise "Invalid ENUM value #{value} for class #
|
30
|
+
constantValues = LoggingUseTlsString.constants.select { |c| LoggingUseTlsString::const_get(c) == value }
|
31
|
+
raise "Invalid ENUM value #{value} for class #LoggingUseTlsString" if constantValues.empty?
|
32
32
|
value
|
33
33
|
end
|
34
34
|
end
|
data/lib/fastly/version.rb
CHANGED
data/lib/fastly.rb
CHANGED
@@ -275,7 +275,7 @@ require 'fastly/models/logging_sumologic_response'
|
|
275
275
|
require 'fastly/models/logging_syslog_additional'
|
276
276
|
require 'fastly/models/logging_syslog_response'
|
277
277
|
require 'fastly/models/logging_tls_common'
|
278
|
-
require 'fastly/models/
|
278
|
+
require 'fastly/models/logging_use_tls_string'
|
279
279
|
require 'fastly/models/metadata'
|
280
280
|
require 'fastly/models/mutual_authentication'
|
281
281
|
require 'fastly/models/mutual_authentication_data'
|
data/sig.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"G": "
|
1
|
+
{"G": "5a2ccc65", "D": "f9e684d4"}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fastly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -387,7 +387,7 @@ files:
|
|
387
387
|
- docs/LoggingSyslogApi.md
|
388
388
|
- docs/LoggingSyslogResponse.md
|
389
389
|
- docs/LoggingTlsCommon.md
|
390
|
-
- docs/
|
390
|
+
- docs/LoggingUseTlsString.md
|
391
391
|
- docs/Metadata.md
|
392
392
|
- docs/MutualAuthentication.md
|
393
393
|
- docs/MutualAuthenticationApi.md
|
@@ -1244,7 +1244,7 @@ files:
|
|
1244
1244
|
- lib/fastly/models/logging_syslog_additional.rb
|
1245
1245
|
- lib/fastly/models/logging_syslog_response.rb
|
1246
1246
|
- lib/fastly/models/logging_tls_common.rb
|
1247
|
-
- lib/fastly/models/
|
1247
|
+
- lib/fastly/models/logging_use_tls_string.rb
|
1248
1248
|
- lib/fastly/models/metadata.rb
|
1249
1249
|
- lib/fastly/models/mutual_authentication.rb
|
1250
1250
|
- lib/fastly/models/mutual_authentication_data.rb
|