fastly 8.4.0 → 8.5.0

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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +1 -1
  5. data/docs/ContentApi.md +1 -1
  6. data/docs/LoggingKafkaAdditional.md +1 -1
  7. data/docs/LoggingKafkaApi.md +2 -2
  8. data/docs/LoggingKafkaResponse.md +1 -1
  9. data/docs/LoggingKafkaResponsePost.md +1 -1
  10. data/docs/LoggingLogentriesAdditional.md +1 -1
  11. data/docs/LoggingLogentriesApi.md +4 -4
  12. data/docs/LoggingLogentriesResponse.md +1 -1
  13. data/docs/LoggingSplunkAdditional.md +1 -1
  14. data/docs/LoggingSplunkApi.md +4 -4
  15. data/docs/LoggingSplunkResponse.md +1 -1
  16. data/docs/LoggingSyslogAdditional.md +1 -1
  17. data/docs/LoggingSyslogApi.md +4 -4
  18. data/docs/LoggingSyslogResponse.md +1 -1
  19. data/docs/{LoggingUseTls.md → LoggingUseTlsString.md} +1 -1
  20. data/lib/fastly/api/content_api.rb +2 -2
  21. data/lib/fastly/api/logging_datadog_api.rb +2 -2
  22. data/lib/fastly/api/logging_kafka_api.rb +2 -2
  23. data/lib/fastly/api/logging_logentries_api.rb +4 -4
  24. data/lib/fastly/api/logging_splunk_api.rb +4 -4
  25. data/lib/fastly/api/logging_syslog_api.rb +4 -4
  26. data/lib/fastly/models/logging_datadog_additional.rb +2 -2
  27. data/lib/fastly/models/logging_datadog_response.rb +2 -2
  28. data/lib/fastly/models/logging_kafka_additional.rb +2 -2
  29. data/lib/fastly/models/logging_kafka_response.rb +2 -2
  30. data/lib/fastly/models/logging_kafka_response_post.rb +2 -2
  31. data/lib/fastly/models/logging_logentries_additional.rb +2 -2
  32. data/lib/fastly/models/logging_logentries_response.rb +2 -2
  33. data/lib/fastly/models/logging_splunk_additional.rb +2 -2
  34. data/lib/fastly/models/logging_splunk_response.rb +2 -2
  35. data/lib/fastly/models/logging_syslog_additional.rb +2 -2
  36. data/lib/fastly/models/logging_syslog_response.rb +2 -2
  37. data/lib/fastly/models/{logging_use_tls.rb → logging_use_tls_string.rb} +5 -5
  38. data/lib/fastly/version.rb +1 -1
  39. data/lib/fastly.rb +1 -1
  40. data/sig.json +1 -1
  41. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a3b09ad23055c85921187c40279e39f03a18e8837110351efe8bdf2b553f19e
4
- data.tar.gz: c293b123ff1768e713ea7b7396b300eba9a878a8a5a012c1bc3efa30877d9704
3
+ metadata.gz: 7cd5d32ca7ee80b1b7656cb7cff0c67fb276abe44353247cbf760d3b4c0f104f
4
+ data.tar.gz: 72de51b94f84f63a2acfa667cf33cc57c2876bba88a9f9885cc42932f40d52ef
5
5
  SHA512:
6
- metadata.gz: 6a6e85c807045d1429c702c45659733af496050db271f019a82c06049cbaa8227d6c827c42495c9752c54a7e0d7eb5cff0566a90ffb43948f661a7d6517cbb93
7
- data.tar.gz: 42b6378a4753c355b810aedd27c6144d7a63e09842fa8b06aaea01d4262bb70b68a74860614890231eea48aad2ed9e142b79299e3ce8077cefed42df9228e02a
6
+ metadata.gz: de18419c2e84b3c027c0265f701c28ac900878f47bb5382d31f17cdd6b647858b3664b960f11ee5a1204441590f418630c3e05a41546bfe39bf6a56617811d38
7
+ data.tar.gz: daf76593158215b0a8ebe5adbebc96d013c2c87460244f40f42664fcb9a12ca655af37a4a10b030a3423e30109165873e19f1421465eea9b36cf85596798af0a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
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
+
3
15
  ## [v8.4.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v8.4.0) (2024-06-27)
4
16
 
5
17
  **Bug fixes:**
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fastly (8.4.0)
4
+ fastly (8.5.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
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.4.0'
11
+ gem 'fastly', '~> 8.5.0'
12
12
  ```
13
13
 
14
14
  Then run `bundle install`.
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
 
@@ -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** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
16
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
17
17
 
18
18
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
19
19
 
@@ -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::LoggingUseTls::no_tls, # LoggingUseTls |
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** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to 0] |
92
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
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** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
30
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
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** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
30
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
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** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
9
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
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::LoggingUseTls::no_tls, # LoggingUseTls |
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** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
71
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
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::LoggingUseTls::no_tls, # LoggingUseTls |
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** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
251
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
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 &#39;2&#39;] |
12
12
  | **port** | **Integer** | The port number. | [optional][default to 20000] |
13
13
  | **token** | **String** | Use token based authentication. | [optional] |
14
- | **use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
14
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
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] |
@@ -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** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
9
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
10
10
 
11
11
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
12
12
 
@@ -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::LoggingUseTls::no_tls, # LoggingUseTls |
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** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
82
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
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::LoggingUseTls::no_tls, # LoggingUseTls |
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** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
272
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
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** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
20
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
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 &#39;null&#39;] |
11
- | **use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
11
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
12
12
 
13
13
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
14
14
 
@@ -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::LoggingUseTls::no_tls, # LoggingUseTls |
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 &#39;null&#39;] |
86
- | **use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
86
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
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::LoggingUseTls::no_tls, # LoggingUseTls |
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 &#39;null&#39;] |
280
- | **use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
280
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
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 &#39;null&#39;] |
22
- | **use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional][default to LoggingUseTls::no_tls] |
22
+ | **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional][default to &#39;0&#39;] |
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] |
@@ -1,4 +1,4 @@
1
- # Fastly::LoggingUseTls
1
+ # Fastly::LoggingUseTlsString
2
2
 
3
3
  ## Properties
4
4
 
@@ -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&#39;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 &#x60;error-timeout-$pop&#x60;. If the response is too large, it will be set to &#x60;warning-too-large-$pop&#x60;.
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 [LoggingUseTls] :use_tls (default to 0)
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 [LoggingUseTls] :use_tls (default to 0)
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 &#x60;vcl_log&#x60; if &#x60;format_version&#x60; is set to &#x60;2&#x60; and in &#x60;vcl_deliver&#x60; if &#x60;format_version&#x60; is set to &#x60;1&#x60;. (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 [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
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 &#x60;vcl_log&#x60; if &#x60;format_version&#x60; is set to &#x60;2&#x60; and in &#x60;vcl_deliver&#x60; if &#x60;format_version&#x60; is set to &#x60;1&#x60;. (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 [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
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 &#x60;vcl_log&#x60; if &#x60;format_version&#x60; is set to &#x60;2&#x60; and in &#x60;vcl_deliver&#x60; if &#x60;format_version&#x60; is set to &#x60;1&#x60;. (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 [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
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 &#x60;vcl_log&#x60; if &#x60;format_version&#x60; is set to &#x60;2&#x60; and in &#x60;vcl_deliver&#x60; if &#x60;format_version&#x60; is set to &#x60;1&#x60;. (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 [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
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 = {})
@@ -34,7 +34,7 @@ module Fastly
34
34
  # @option opts [Integer] :request_max_bytes The maximum number of bytes sent in one request. Defaults &#x60;0&#x60; 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 [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
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 &#x60;0&#x60; 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 [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
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 &#x60;0&#x60; 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 [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
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 &#x60;0&#x60; 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 [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
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 [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
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 [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
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 [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
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 [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
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
@@ -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' => :'LoggingUseTls'
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 = LoggingUseTls::no_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' => :'LoggingUseTls'
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 = LoggingUseTls::no_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' => :'LoggingUseTls'
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 = LoggingUseTls::no_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' => :'LoggingUseTls',
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 = LoggingUseTls::no_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' => :'LoggingUseTls',
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 = LoggingUseTls::no_tls
195
+ self.use_tls = '0'
196
196
  end
197
197
 
198
198
  if attributes.key?(:'region')
@@ -40,7 +40,7 @@ module Fastly
40
40
  {
41
41
  :'url' => :'String',
42
42
  :'token' => :'String',
43
- :'use_tls' => :'LoggingUseTls'
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 = LoggingUseTls::no_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' => :'LoggingUseTls',
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 = LoggingUseTls::no_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' => :'LoggingUseTls'
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 = LoggingUseTls::no_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' => :'LoggingUseTls',
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 = LoggingUseTls::no_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 LoggingUseTls
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 = LoggingUseTls.constants.select { |c| LoggingUseTls::const_get(c) == value }
31
- raise "Invalid ENUM value #{value} for class #LoggingUseTls" if constantValues.empty?
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
@@ -9,5 +9,5 @@ Contact: oss@fastly.com
9
9
  =end
10
10
 
11
11
  module Fastly
12
- VERSION = '8.4.0'
12
+ VERSION = '8.5.0'
13
13
  end
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/logging_use_tls'
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": "5a2ccc65", "D": "ec7f026b"}
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.0
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-06-28 00:00:00.000000000 Z
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/LoggingUseTls.md
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/logging_use_tls.rb
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