diff --git a/CHANGELOG.md b/CHANGELOG.md index f489d32..426e7aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [v5.5.0](https://github.com/fastly/fastly-py/releases/tag/release/v5.5.0) (2024-07-01) + +**Bug fixes:** + +- fix(logging): For several endpoints, correct use_tls to be string + +**Enhancements:** + +- feat(content): `/content/edge_check` endpoint now returns informational values in `hash` when a timeout occurs or when + an object is too large. +- feat(logging-datalog): Added additional regions + ## [v5.4.0](https://github.com/fastly/fastly-py/releases/tag/release/v5.4.0) (2024-06-27) **Bug fixes:** diff --git a/docs/ContentApi.md b/docs/ContentApi.md index 1df82dc..13e7d14 100644 --- a/docs/ContentApi.md +++ b/docs/ContentApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description Check status of content in each POP's cache -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. +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`. ### Example diff --git a/docs/LoggingKafkaAdditional.md b/docs/LoggingKafkaAdditional.md index 3270b19..11ccd85 100644 --- a/docs/LoggingKafkaAdditional.md +++ b/docs/LoggingKafkaAdditional.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **auth_method** | **str** | SASL authentication method. | [optional] **user** | **str** | SASL user. | [optional] **password** | **str** | SASL password. | [optional] -**use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional] +**use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingKafkaApi.md b/docs/LoggingKafkaApi.md index fe1ffba..ce383c2 100644 --- a/docs/LoggingKafkaApi.md +++ b/docs/LoggingKafkaApi.md @@ -28,7 +28,7 @@ import time import fastly from fastly.api import logging_kafka_api from fastly.model.logging_kafka_response_post import LoggingKafkaResponsePost -from fastly.model.logging_use_tls import LoggingUseTls +from fastly.model.logging_use_tls_string import LoggingUseTlsString from pprint import pprint # Defining the host is optional and defaults to https://api.fastly.com # See configuration.py for a list of all supported configuration parameters. @@ -71,7 +71,7 @@ with fastly.ApiClient(configuration) as api_client: auth_method = "plain" # str | SASL authentication method. (optional) user = "user_example" # str | SASL user. (optional) password = "password_example" # str | SASL password. (optional) - use_tls = LoggingUseTls(0) # LoggingUseTls | (optional) + use_tls = LoggingUseTlsString("0") # LoggingUseTlsString | (optional) # example passing only required values which don't have defaults set try: @@ -116,7 +116,7 @@ Name | Type | Description | Notes **auth_method** | **str**| SASL authentication method. | [optional] **user** | **str**| SASL user. | [optional] **password** | **str**| SASL password. | [optional] - **use_tls** | [**LoggingUseTls**](LoggingUseTls.md)| | [optional] + **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md)| | [optional] ### Return type diff --git a/docs/LoggingKafkaResponse.md b/docs/LoggingKafkaResponse.md index 301caba..3e00f27 100644 --- a/docs/LoggingKafkaResponse.md +++ b/docs/LoggingKafkaResponse.md @@ -27,7 +27,7 @@ Name | Type | Description | Notes **auth_method** | **str** | SASL authentication method. | [optional] **user** | **str** | SASL user. | [optional] **password** | **str** | SASL password. | [optional] -**use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional] +**use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingKafkaResponsePost.md b/docs/LoggingKafkaResponsePost.md index 5289413..7f19317 100644 --- a/docs/LoggingKafkaResponsePost.md +++ b/docs/LoggingKafkaResponsePost.md @@ -27,7 +27,7 @@ Name | Type | Description | Notes **auth_method** | **str** | SASL authentication method. | [optional] **user** | **str** | SASL user. | [optional] **password** | **str** | SASL password. | [optional] -**use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional] +**use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingLogentriesAdditional.md b/docs/LoggingLogentriesAdditional.md index 79207d4..b5478a1 100644 --- a/docs/LoggingLogentriesAdditional.md +++ b/docs/LoggingLogentriesAdditional.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **port** | **int** | The port number. | [optional] if omitted the server will use the default value of 20000 **token** | **str** | Use token based authentication. | [optional] -**use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional] +**use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional] **region** | **str** | The region to which to stream logs. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/docs/LoggingLogentriesApi.md b/docs/LoggingLogentriesApi.md index cf44168..f920935 100644 --- a/docs/LoggingLogentriesApi.md +++ b/docs/LoggingLogentriesApi.md @@ -28,7 +28,7 @@ import time import fastly from fastly.api import logging_logentries_api from fastly.model.logging_logentries_response import LoggingLogentriesResponse -from fastly.model.logging_use_tls import LoggingUseTls +from fastly.model.logging_use_tls_string import LoggingUseTlsString from pprint import pprint # Defining the host is optional and defaults to https://api.fastly.com # See configuration.py for a list of all supported configuration parameters. @@ -60,7 +60,7 @@ with fastly.ApiClient(configuration) as api_client: format_version = 2 # int | 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) if omitted the server will use the default value of 2 port = 20000 # int | The port number. (optional) if omitted the server will use the default value of 20000 token = "token_example" # str | Use token based authentication. (optional) - use_tls = LoggingUseTls(0) # LoggingUseTls | (optional) + use_tls = LoggingUseTlsString("0") # LoggingUseTlsString | (optional) region = "US" # str | The region to which to stream logs. (optional) # example passing only required values which don't have defaults set @@ -95,7 +95,7 @@ Name | Type | Description | Notes **format_version** | **int**| 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] if omitted the server will use the default value of 2 **port** | **int**| The port number. | [optional] if omitted the server will use the default value of 20000 **token** | **str**| Use token based authentication. | [optional] - **use_tls** | [**LoggingUseTls**](LoggingUseTls.md)| | [optional] + **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md)| | [optional] **region** | **str**| The region to which to stream logs. | [optional] ### Return type @@ -380,7 +380,7 @@ import time import fastly from fastly.api import logging_logentries_api from fastly.model.logging_logentries_response import LoggingLogentriesResponse -from fastly.model.logging_use_tls import LoggingUseTls +from fastly.model.logging_use_tls_string import LoggingUseTlsString from pprint import pprint # Defining the host is optional and defaults to https://api.fastly.com # See configuration.py for a list of all supported configuration parameters. @@ -413,7 +413,7 @@ with fastly.ApiClient(configuration) as api_client: format_version = 2 # int | 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) if omitted the server will use the default value of 2 port = 20000 # int | The port number. (optional) if omitted the server will use the default value of 20000 token = "token_example" # str | Use token based authentication. (optional) - use_tls = LoggingUseTls(0) # LoggingUseTls | (optional) + use_tls = LoggingUseTlsString("0") # LoggingUseTlsString | (optional) region = "US" # str | The region to which to stream logs. (optional) # example passing only required values which don't have defaults set @@ -449,7 +449,7 @@ Name | Type | Description | Notes **format_version** | **int**| 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] if omitted the server will use the default value of 2 **port** | **int**| The port number. | [optional] if omitted the server will use the default value of 20000 **token** | **str**| Use token based authentication. | [optional] - **use_tls** | [**LoggingUseTls**](LoggingUseTls.md)| | [optional] + **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md)| | [optional] **region** | **str**| The region to which to stream logs. | [optional] ### Return type diff --git a/docs/LoggingLogentriesResponse.md b/docs/LoggingLogentriesResponse.md index f0ae26e..004060c 100644 --- a/docs/LoggingLogentriesResponse.md +++ b/docs/LoggingLogentriesResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **format_version** | **str** | 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] if omitted the server will use the default value of "2" **port** | **int** | The port number. | [optional] if omitted the server will use the default value of 20000 **token** | **str** | Use token based authentication. | [optional] -**use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional] +**use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional] **region** | **str** | The region to which to stream logs. | [optional] **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] diff --git a/docs/LoggingSplunkAdditional.md b/docs/LoggingSplunkAdditional.md index 72c2307..8e7b49e 100644 --- a/docs/LoggingSplunkAdditional.md +++ b/docs/LoggingSplunkAdditional.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **url** | **str** | The URL to post logs to. | [optional] **token** | **str** | A Splunk token for use in posting logs over HTTP to your collector. | [optional] -**use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional] +**use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingSplunkApi.md b/docs/LoggingSplunkApi.md index 3e19ca3..26ee6fe 100644 --- a/docs/LoggingSplunkApi.md +++ b/docs/LoggingSplunkApi.md @@ -27,8 +27,8 @@ Create a Splunk logging object for a particular service and version. import time import fastly from fastly.api import logging_splunk_api +from fastly.model.logging_use_tls_string import LoggingUseTlsString from fastly.model.logging_splunk_response import LoggingSplunkResponse -from fastly.model.logging_use_tls import LoggingUseTls from pprint import pprint # Defining the host is optional and defaults to https://api.fastly.com # See configuration.py for a list of all supported configuration parameters. @@ -66,7 +66,7 @@ with fastly.ApiClient(configuration) as api_client: request_max_bytes = 0 # int | The maximum number of bytes sent in one request. Defaults `0` for unbounded. (optional) if omitted the server will use the default value of 0 url = "url_example" # str | The URL to post logs to. (optional) token = "token_example" # str | A Splunk token for use in posting logs over HTTP to your collector. (optional) - use_tls = LoggingUseTls(0) # LoggingUseTls | (optional) + use_tls = LoggingUseTlsString("0") # LoggingUseTlsString | (optional) # example passing only required values which don't have defaults set try: @@ -106,7 +106,7 @@ Name | Type | Description | Notes **request_max_bytes** | **int**| The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [optional] if omitted the server will use the default value of 0 **url** | **str**| The URL to post logs to. | [optional] **token** | **str**| A Splunk token for use in posting logs over HTTP to your collector. | [optional] - **use_tls** | [**LoggingUseTls**](LoggingUseTls.md)| | [optional] + **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md)| | [optional] ### Return type @@ -389,8 +389,8 @@ Update the Splunk logging object for a particular service and version. import time import fastly from fastly.api import logging_splunk_api +from fastly.model.logging_use_tls_string import LoggingUseTlsString from fastly.model.logging_splunk_response import LoggingSplunkResponse -from fastly.model.logging_use_tls import LoggingUseTls from pprint import pprint # Defining the host is optional and defaults to https://api.fastly.com # See configuration.py for a list of all supported configuration parameters. @@ -429,7 +429,7 @@ with fastly.ApiClient(configuration) as api_client: request_max_bytes = 0 # int | The maximum number of bytes sent in one request. Defaults `0` for unbounded. (optional) if omitted the server will use the default value of 0 url = "url_example" # str | The URL to post logs to. (optional) token = "token_example" # str | A Splunk token for use in posting logs over HTTP to your collector. (optional) - use_tls = LoggingUseTls(0) # LoggingUseTls | (optional) + use_tls = LoggingUseTlsString("0") # LoggingUseTlsString | (optional) # example passing only required values which don't have defaults set try: @@ -470,7 +470,7 @@ Name | Type | Description | Notes **request_max_bytes** | **int**| The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [optional] if omitted the server will use the default value of 0 **url** | **str**| The URL to post logs to. | [optional] **token** | **str**| A Splunk token for use in posting logs over HTTP to your collector. | [optional] - **use_tls** | [**LoggingUseTls**](LoggingUseTls.md)| | [optional] + **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md)| | [optional] ### Return type diff --git a/docs/LoggingSplunkResponse.md b/docs/LoggingSplunkResponse.md index c3ee65c..d89e4f3 100644 --- a/docs/LoggingSplunkResponse.md +++ b/docs/LoggingSplunkResponse.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **request_max_bytes** | **int** | The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [optional] if omitted the server will use the default value of 0 **url** | **str** | The URL to post logs to. | [optional] **token** | **str** | A Splunk token for use in posting logs over HTTP to your collector. | [optional] -**use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional] +**use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional] **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] diff --git a/docs/LoggingSyslogAdditional.md b/docs/LoggingSyslogAdditional.md index c974be5..738df49 100644 --- a/docs/LoggingSyslogAdditional.md +++ b/docs/LoggingSyslogAdditional.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **hostname** | **str** | The hostname used for the syslog endpoint. | [optional] **ipv4** | **str, none_type** | The IPv4 address used for the syslog endpoint. | [optional] **token** | **str, none_type** | Whether to prepend each message with a specific token. | [optional] if omitted the server will use the default value of "null" -**use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional] +**use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingSyslogApi.md b/docs/LoggingSyslogApi.md index 04c4795..329f76e 100644 --- a/docs/LoggingSyslogApi.md +++ b/docs/LoggingSyslogApi.md @@ -27,8 +27,8 @@ Create a Syslog for a particular service and version. import time import fastly from fastly.api import logging_syslog_api +from fastly.model.logging_use_tls_string import LoggingUseTlsString from fastly.model.logging_message_type import LoggingMessageType -from fastly.model.logging_use_tls import LoggingUseTls from fastly.model.logging_syslog_response import LoggingSyslogResponse from pprint import pprint # Defining the host is optional and defaults to https://api.fastly.com @@ -69,7 +69,7 @@ with fastly.ApiClient(configuration) as api_client: hostname = "hostname_example" # str | The hostname used for the syslog endpoint. (optional) ipv4 = "ipv4_example" # str, none_type | The IPv4 address used for the syslog endpoint. (optional) token = "null" # str, none_type | Whether to prepend each message with a specific token. (optional) if omitted the server will use the default value of "null" - use_tls = LoggingUseTls(0) # LoggingUseTls | (optional) + use_tls = LoggingUseTlsString("0") # LoggingUseTlsString | (optional) # example passing only required values which don't have defaults set try: @@ -111,7 +111,7 @@ Name | Type | Description | Notes **hostname** | **str**| The hostname used for the syslog endpoint. | [optional] **ipv4** | **str, none_type**| The IPv4 address used for the syslog endpoint. | [optional] **token** | **str, none_type**| Whether to prepend each message with a specific token. | [optional] if omitted the server will use the default value of "null" - **use_tls** | [**LoggingUseTls**](LoggingUseTls.md)| | [optional] + **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md)| | [optional] ### Return type @@ -394,8 +394,8 @@ Update the Syslog for a particular service and version. import time import fastly from fastly.api import logging_syslog_api +from fastly.model.logging_use_tls_string import LoggingUseTlsString from fastly.model.logging_message_type import LoggingMessageType -from fastly.model.logging_use_tls import LoggingUseTls from fastly.model.logging_syslog_response import LoggingSyslogResponse from pprint import pprint # Defining the host is optional and defaults to https://api.fastly.com @@ -437,7 +437,7 @@ with fastly.ApiClient(configuration) as api_client: hostname = "hostname_example" # str | The hostname used for the syslog endpoint. (optional) ipv4 = "ipv4_example" # str, none_type | The IPv4 address used for the syslog endpoint. (optional) token = "null" # str, none_type | Whether to prepend each message with a specific token. (optional) if omitted the server will use the default value of "null" - use_tls = LoggingUseTls(0) # LoggingUseTls | (optional) + use_tls = LoggingUseTlsString("0") # LoggingUseTlsString | (optional) # example passing only required values which don't have defaults set try: @@ -480,7 +480,7 @@ Name | Type | Description | Notes **hostname** | **str**| The hostname used for the syslog endpoint. | [optional] **ipv4** | **str, none_type**| The IPv4 address used for the syslog endpoint. | [optional] **token** | **str, none_type**| Whether to prepend each message with a specific token. | [optional] if omitted the server will use the default value of "null" - **use_tls** | [**LoggingUseTls**](LoggingUseTls.md)| | [optional] + **use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md)| | [optional] ### Return type diff --git a/docs/LoggingSyslogResponse.md b/docs/LoggingSyslogResponse.md index 9a1a02f..78334e6 100644 --- a/docs/LoggingSyslogResponse.md +++ b/docs/LoggingSyslogResponse.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **hostname** | **str** | The hostname used for the syslog endpoint. | [optional] **ipv4** | **str, none_type** | The IPv4 address used for the syslog endpoint. | [optional] **token** | **str, none_type** | Whether to prepend each message with a specific token. | [optional] if omitted the server will use the default value of "null" -**use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional] +**use_tls** | [**LoggingUseTlsString**](LoggingUseTlsString.md) | | [optional] **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] diff --git a/docs/LoggingUseTls.md b/docs/LoggingUseTlsString.md similarity index 72% rename from docs/LoggingUseTls.md rename to docs/LoggingUseTlsString.md index 4612c77..97b445f 100644 --- a/docs/LoggingUseTls.md +++ b/docs/LoggingUseTlsString.md @@ -1,11 +1,11 @@ -# LoggingUseTls +# LoggingUseTlsString Whether to use TLS. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **int** | Whether to use TLS. | defaults to 0, must be one of [0, 1, ] +**value** | **str** | Whether to use TLS. | defaults to "0", must be one of ["0", "1", ] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/fastly/__init__.py b/fastly/__init__.py index d81361e..11b798f 100644 --- a/fastly/__init__.py +++ b/fastly/__init__.py @@ -10,7 +10,7 @@ """ -__version__ = "5.4.0" +__version__ = "5.5.0" # import ApiClient from fastly.api_client import ApiClient diff --git a/fastly/api/content_api.py b/fastly/api/content_api.py index a05f761..36bf81f 100644 --- a/fastly/api/content_api.py +++ b/fastly/api/content_api.py @@ -96,7 +96,7 @@ def content_check( ): """Check status of content in each POP's cache # noqa: E501 - 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. # noqa: E501 + 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`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/fastly/api/logging_datadog_api.py b/fastly/api/logging_datadog_api.py index 3a0c59f..d7b7aec 100644 --- a/fastly/api/logging_datadog_api.py +++ b/fastly/api/logging_datadog_api.py @@ -96,7 +96,11 @@ def __init__(self, api_client=None): ('region',): { "US": "US", - "EU": "EU" + "US3": "US3", + "US5": "US5", + "EU_(LEGACY,_SAME_AS_EU1)": "EU (legacy, same as EU1)", + "EU1": "EU1", + "AP1": "AP1" }, }, 'openapi_types': { @@ -424,7 +428,11 @@ def __init__(self, api_client=None): ('region',): { "US": "US", - "EU": "EU" + "US3": "US3", + "US5": "US5", + "EU_(LEGACY,_SAME_AS_EU1)": "EU (legacy, same as EU1)", + "EU1": "EU1", + "AP1": "AP1" }, }, 'openapi_types': { diff --git a/fastly/api/logging_kafka_api.py b/fastly/api/logging_kafka_api.py index a473e55..14f059f 100644 --- a/fastly/api/logging_kafka_api.py +++ b/fastly/api/logging_kafka_api.py @@ -24,7 +24,7 @@ from fastly.model.inline_response200 import InlineResponse200 from fastly.model.logging_kafka_response import LoggingKafkaResponse from fastly.model.logging_kafka_response_post import LoggingKafkaResponsePost -from fastly.model.logging_use_tls import LoggingUseTls +from fastly.model.logging_use_tls_string import LoggingUseTlsString class LoggingKafkaApi(object): @@ -176,7 +176,7 @@ def __init__(self, api_client=None): 'password': (str,), 'use_tls': - (LoggingUseTls,), + (LoggingUseTlsString,), }, 'attribute_map': { 'service_id': 'service_id', @@ -554,7 +554,7 @@ def create_log_kafka( auth_method (str): SASL authentication method.. [optional] user (str): SASL user.. [optional] password (str): SASL password.. [optional] - use_tls (LoggingUseTls): [optional] + use_tls (LoggingUseTlsString): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/fastly/api/logging_logentries_api.py b/fastly/api/logging_logentries_api.py index 6b2b473..4d2e41e 100644 --- a/fastly/api/logging_logentries_api.py +++ b/fastly/api/logging_logentries_api.py @@ -23,7 +23,7 @@ ) from fastly.model.inline_response200 import InlineResponse200 from fastly.model.logging_logentries_response import LoggingLogentriesResponse -from fastly.model.logging_use_tls import LoggingUseTls +from fastly.model.logging_use_tls_string import LoggingUseTlsString class LoggingLogentriesApi(object): @@ -127,7 +127,7 @@ def __init__(self, api_client=None): 'token': (str,), 'use_tls': - (LoggingUseTls,), + (LoggingUseTlsString,), 'region': (str,), }, @@ -472,7 +472,7 @@ def __init__(self, api_client=None): 'token': (str,), 'use_tls': - (LoggingUseTls,), + (LoggingUseTlsString,), 'region': (str,), }, @@ -547,7 +547,7 @@ def create_log_logentries( format_version (int): 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] if omitted the server will use the default value of 2 port (int): The port number.. [optional] if omitted the server will use the default value of 20000 token (str): Use token based authentication.. [optional] - use_tls (LoggingUseTls): [optional] + use_tls (LoggingUseTlsString): [optional] region (str): The region to which to stream logs.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. @@ -894,7 +894,7 @@ def update_log_logentries( format_version (int): 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] if omitted the server will use the default value of 2 port (int): The port number.. [optional] if omitted the server will use the default value of 20000 token (str): Use token based authentication.. [optional] - use_tls (LoggingUseTls): [optional] + use_tls (LoggingUseTlsString): [optional] region (str): The region to which to stream logs.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. diff --git a/fastly/api/logging_splunk_api.py b/fastly/api/logging_splunk_api.py index c910f47..b5a24a2 100644 --- a/fastly/api/logging_splunk_api.py +++ b/fastly/api/logging_splunk_api.py @@ -23,7 +23,7 @@ ) from fastly.model.inline_response200 import InlineResponse200 from fastly.model.logging_splunk_response import LoggingSplunkResponse -from fastly.model.logging_use_tls import LoggingUseTls +from fastly.model.logging_use_tls_string import LoggingUseTlsString class LoggingSplunkApi(object): @@ -137,7 +137,7 @@ def __init__(self, api_client=None): 'token': (str,), 'use_tls': - (LoggingUseTls,), + (LoggingUseTlsString,), }, 'attribute_map': { 'service_id': 'service_id', @@ -500,7 +500,7 @@ def __init__(self, api_client=None): 'token': (str,), 'use_tls': - (LoggingUseTls,), + (LoggingUseTlsString,), }, 'attribute_map': { 'service_id': 'service_id', @@ -589,7 +589,7 @@ def create_log_splunk( request_max_bytes (int): The maximum number of bytes sent in one request. Defaults `0` for unbounded.. [optional] if omitted the server will use the default value of 0 url (str): The URL to post logs to.. [optional] token (str): A Splunk token for use in posting logs over HTTP to your collector.. [optional] - use_tls (LoggingUseTls): [optional] + use_tls (LoggingUseTlsString): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -941,7 +941,7 @@ def update_log_splunk( request_max_bytes (int): The maximum number of bytes sent in one request. Defaults `0` for unbounded.. [optional] if omitted the server will use the default value of 0 url (str): The URL to post logs to.. [optional] token (str): A Splunk token for use in posting logs over HTTP to your collector.. [optional] - use_tls (LoggingUseTls): [optional] + use_tls (LoggingUseTlsString): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/fastly/api/logging_syslog_api.py b/fastly/api/logging_syslog_api.py index b867354..b348158 100644 --- a/fastly/api/logging_syslog_api.py +++ b/fastly/api/logging_syslog_api.py @@ -24,7 +24,7 @@ from fastly.model.inline_response200 import InlineResponse200 from fastly.model.logging_message_type import LoggingMessageType from fastly.model.logging_syslog_response import LoggingSyslogResponse -from fastly.model.logging_use_tls import LoggingUseTls +from fastly.model.logging_use_tls_string import LoggingUseTlsString class LoggingSyslogApi(object): @@ -146,7 +146,7 @@ def __init__(self, api_client=None): 'token': (str, none_type,), 'use_tls': - (LoggingUseTls,), + (LoggingUseTlsString,), }, 'attribute_map': { 'service_id': 'service_id', @@ -521,7 +521,7 @@ def __init__(self, api_client=None): 'token': (str, none_type,), 'use_tls': - (LoggingUseTls,), + (LoggingUseTlsString,), }, 'attribute_map': { 'service_id': 'service_id', @@ -616,7 +616,7 @@ def create_log_syslog( hostname (str): The hostname used for the syslog endpoint.. [optional] ipv4 (str, none_type): The IPv4 address used for the syslog endpoint.. [optional] token (str, none_type): Whether to prepend each message with a specific token.. [optional] if omitted the server will use the default value of "null" - use_tls (LoggingUseTls): [optional] + use_tls (LoggingUseTlsString): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -970,7 +970,7 @@ def update_log_syslog( hostname (str): The hostname used for the syslog endpoint.. [optional] ipv4 (str, none_type): The IPv4 address used for the syslog endpoint.. [optional] token (str, none_type): Whether to prepend each message with a specific token.. [optional] if omitted the server will use the default value of "null" - use_tls (LoggingUseTls): [optional] + use_tls (LoggingUseTlsString): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/fastly/api_client.py b/fastly/api_client.py index 9014f98..af5361f 100644 --- a/fastly/api_client.py +++ b/fastly/api_client.py @@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'fastly-py/5.4.0' + self.user_agent = 'fastly-py/5.5.0' # The last observed value of http header Fastly-RateLimit-Remaining self.rate_limit_remaining = DEFAULT_RATELIMIT diff --git a/fastly/configuration.py b/fastly/configuration.py index 72cd398..8473f30 100644 --- a/fastly/configuration.py +++ b/fastly/configuration.py @@ -446,7 +446,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0.0\n"\ - "SDK Package Version: 5.4.0".\ + "SDK Package Version: 5.5.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/fastly/model/logging_datadog_additional.py b/fastly/model/logging_datadog_additional.py index 7e0cbf2..2a8a649 100644 --- a/fastly/model/logging_datadog_additional.py +++ b/fastly/model/logging_datadog_additional.py @@ -55,7 +55,11 @@ class LoggingDatadogAdditional(ModelNormal): allowed_values = { ('region',): { 'US': "US", - 'EU': "EU", + 'US3': "US3", + 'US5': "US5", + 'EU_(LEGACY,_SAME_AS_EU1)': "EU (legacy, same as EU1)", + 'EU1': "EU1", + 'AP1': "AP1", }, } diff --git a/fastly/model/logging_datadog_response.py b/fastly/model/logging_datadog_response.py index fc2eb7a..86ff8b0 100644 --- a/fastly/model/logging_datadog_response.py +++ b/fastly/model/logging_datadog_response.py @@ -75,7 +75,11 @@ class LoggingDatadogResponse(ModelComposed): }, ('region',): { 'US': "US", - 'EU': "EU", + 'US3': "US3", + 'US5': "US5", + 'EU_(LEGACY,_SAME_AS_EU1)': "EU (legacy, same as EU1)", + 'EU1': "EU1", + 'AP1': "AP1", }, } diff --git a/fastly/model/logging_kafka_additional.py b/fastly/model/logging_kafka_additional.py index d899281..f92f2cd 100644 --- a/fastly/model/logging_kafka_additional.py +++ b/fastly/model/logging_kafka_additional.py @@ -30,8 +30,8 @@ def lazy_import(): - from fastly.model.logging_use_tls import LoggingUseTls - globals()['LoggingUseTls'] = LoggingUseTls + from fastly.model.logging_use_tls_string import LoggingUseTlsString + globals()['LoggingUseTlsString'] = LoggingUseTlsString class LoggingKafkaAdditional(ModelNormal): @@ -111,7 +111,7 @@ def openapi_types(): 'auth_method': (str,), # noqa: E501 'user': (str,), # noqa: E501 'password': (str,), # noqa: E501 - 'use_tls': (LoggingUseTls,), # noqa: E501 + 'use_tls': (LoggingUseTlsString,), # noqa: E501 } @cached_property @@ -182,7 +182,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 auth_method (str): SASL authentication method.. [optional] # noqa: E501 user (str): SASL user.. [optional] # noqa: E501 password (str): SASL password.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -273,7 +273,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 auth_method (str): SASL authentication method.. [optional] # noqa: E501 user (str): SASL user.. [optional] # noqa: E501 password (str): SASL password.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/logging_kafka_response.py b/fastly/model/logging_kafka_response.py index e0903dd..dbd7dc8 100644 --- a/fastly/model/logging_kafka_response.py +++ b/fastly/model/logging_kafka_response.py @@ -33,13 +33,13 @@ def lazy_import(): from fastly.model.logging_common_response import LoggingCommonResponse from fastly.model.logging_kafka_additional import LoggingKafkaAdditional from fastly.model.logging_tls_common import LoggingTlsCommon - from fastly.model.logging_use_tls import LoggingUseTls + from fastly.model.logging_use_tls_string import LoggingUseTlsString from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps globals()['LoggingCommonResponse'] = LoggingCommonResponse globals()['LoggingKafkaAdditional'] = LoggingKafkaAdditional globals()['LoggingTlsCommon'] = LoggingTlsCommon - globals()['LoggingUseTls'] = LoggingUseTls + globals()['LoggingUseTlsString'] = LoggingUseTlsString globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -145,7 +145,7 @@ def openapi_types(): 'auth_method': (str,), # noqa: E501 'user': (str,), # noqa: E501 'password': (str,), # noqa: E501 - 'use_tls': (LoggingUseTls,), # noqa: E501 + 'use_tls': (LoggingUseTlsString,), # noqa: E501 } @cached_property @@ -247,7 +247,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 auth_method (str): SASL authentication method.. [optional] # noqa: E501 user (str): SASL user.. [optional] # noqa: E501 password (str): SASL password.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -370,7 +370,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 auth_method (str): SASL authentication method.. [optional] # noqa: E501 user (str): SASL user.. [optional] # noqa: E501 password (str): SASL password.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/logging_kafka_response_post.py b/fastly/model/logging_kafka_response_post.py index b300eff..b4632aa 100644 --- a/fastly/model/logging_kafka_response_post.py +++ b/fastly/model/logging_kafka_response_post.py @@ -34,14 +34,14 @@ def lazy_import(): from fastly.model.logging_format_version_integer import LoggingFormatVersionInteger from fastly.model.logging_kafka_additional import LoggingKafkaAdditional from fastly.model.logging_tls_common import LoggingTlsCommon - from fastly.model.logging_use_tls import LoggingUseTls + from fastly.model.logging_use_tls_string import LoggingUseTlsString from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps globals()['LoggingCommon'] = LoggingCommon globals()['LoggingFormatVersionInteger'] = LoggingFormatVersionInteger globals()['LoggingKafkaAdditional'] = LoggingKafkaAdditional globals()['LoggingTlsCommon'] = LoggingTlsCommon - globals()['LoggingUseTls'] = LoggingUseTls + globals()['LoggingUseTlsString'] = LoggingUseTlsString globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -147,7 +147,7 @@ def openapi_types(): 'auth_method': (str,), # noqa: E501 'user': (str,), # noqa: E501 'password': (str,), # noqa: E501 - 'use_tls': (LoggingUseTls,), # noqa: E501 + 'use_tls': (LoggingUseTlsString,), # noqa: E501 } @cached_property @@ -249,7 +249,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 auth_method (str): SASL authentication method.. [optional] # noqa: E501 user (str): SASL user.. [optional] # noqa: E501 password (str): SASL password.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -372,7 +372,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 auth_method (str): SASL authentication method.. [optional] # noqa: E501 user (str): SASL user.. [optional] # noqa: E501 password (str): SASL password.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/logging_logentries_additional.py b/fastly/model/logging_logentries_additional.py index e9b4503..f32c62a 100644 --- a/fastly/model/logging_logentries_additional.py +++ b/fastly/model/logging_logentries_additional.py @@ -30,8 +30,8 @@ def lazy_import(): - from fastly.model.logging_use_tls import LoggingUseTls - globals()['LoggingUseTls'] = LoggingUseTls + from fastly.model.logging_use_tls_string import LoggingUseTlsString + globals()['LoggingUseTlsString'] = LoggingUseTlsString class LoggingLogentriesAdditional(ModelNormal): @@ -96,7 +96,7 @@ def openapi_types(): return { 'port': (int,), # noqa: E501 'token': (str,), # noqa: E501 - 'use_tls': (LoggingUseTls,), # noqa: E501 + 'use_tls': (LoggingUseTlsString,), # noqa: E501 'region': (str,), # noqa: E501 } @@ -155,7 +155,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) port (int): The port number.. [optional] if omitted the server will use the default value of 20000 # noqa: E501 token (str): Use token based authentication.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 region (str): The region to which to stream logs.. [optional] # noqa: E501 """ @@ -240,7 +240,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) port (int): The port number.. [optional] if omitted the server will use the default value of 20000 # noqa: E501 token (str): Use token based authentication.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 region (str): The region to which to stream logs.. [optional] # noqa: E501 """ diff --git a/fastly/model/logging_logentries_response.py b/fastly/model/logging_logentries_response.py index de079df..52fbf15 100644 --- a/fastly/model/logging_logentries_response.py +++ b/fastly/model/logging_logentries_response.py @@ -32,12 +32,12 @@ def lazy_import(): from fastly.model.logging_common_response import LoggingCommonResponse from fastly.model.logging_logentries_additional import LoggingLogentriesAdditional - from fastly.model.logging_use_tls import LoggingUseTls + from fastly.model.logging_use_tls_string import LoggingUseTlsString from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps globals()['LoggingCommonResponse'] = LoggingCommonResponse globals()['LoggingLogentriesAdditional'] = LoggingLogentriesAdditional - globals()['LoggingUseTls'] = LoggingUseTls + globals()['LoggingUseTlsString'] = LoggingUseTlsString globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -119,7 +119,7 @@ def openapi_types(): 'format_version': (str,), # noqa: E501 'port': (int,), # noqa: E501 'token': (str,), # noqa: E501 - 'use_tls': (LoggingUseTls,), # noqa: E501 + 'use_tls': (LoggingUseTlsString,), # noqa: E501 'region': (str,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 @@ -201,7 +201,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 format_version (str): 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] if omitted the server will use the default value of "2" # noqa: E501 port (int): The port number.. [optional] if omitted the server will use the default value of 20000 # noqa: E501 token (str): Use token based authentication.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 region (str): The region to which to stream logs.. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 @@ -314,7 +314,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 format_version (str): 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] if omitted the server will use the default value of "2" # noqa: E501 port (int): The port number.. [optional] if omitted the server will use the default value of 20000 # noqa: E501 token (str): Use token based authentication.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 region (str): The region to which to stream logs.. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 diff --git a/fastly/model/logging_splunk_additional.py b/fastly/model/logging_splunk_additional.py index 24c7853..732c18c 100644 --- a/fastly/model/logging_splunk_additional.py +++ b/fastly/model/logging_splunk_additional.py @@ -30,8 +30,8 @@ def lazy_import(): - from fastly.model.logging_use_tls import LoggingUseTls - globals()['LoggingUseTls'] = LoggingUseTls + from fastly.model.logging_use_tls_string import LoggingUseTlsString + globals()['LoggingUseTlsString'] = LoggingUseTlsString class LoggingSplunkAdditional(ModelNormal): @@ -87,7 +87,7 @@ def openapi_types(): return { 'url': (str,), # noqa: E501 'token': (str,), # noqa: E501 - 'use_tls': (LoggingUseTls,), # noqa: E501 + 'use_tls': (LoggingUseTlsString,), # noqa: E501 } @cached_property @@ -144,7 +144,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) url (str): The URL to post logs to.. [optional] # noqa: E501 token (str): A Splunk token for use in posting logs over HTTP to your collector.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -228,7 +228,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) url (str): The URL to post logs to.. [optional] # noqa: E501 token (str): A Splunk token for use in posting logs over HTTP to your collector.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/logging_splunk_response.py b/fastly/model/logging_splunk_response.py index 30d98e4..714443c 100644 --- a/fastly/model/logging_splunk_response.py +++ b/fastly/model/logging_splunk_response.py @@ -34,14 +34,14 @@ def lazy_import(): from fastly.model.logging_request_caps_common import LoggingRequestCapsCommon from fastly.model.logging_splunk_additional import LoggingSplunkAdditional from fastly.model.logging_tls_common import LoggingTlsCommon - from fastly.model.logging_use_tls import LoggingUseTls + from fastly.model.logging_use_tls_string import LoggingUseTlsString from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps globals()['LoggingCommonResponse'] = LoggingCommonResponse globals()['LoggingRequestCapsCommon'] = LoggingRequestCapsCommon globals()['LoggingSplunkAdditional'] = LoggingSplunkAdditional globals()['LoggingTlsCommon'] = LoggingTlsCommon - globals()['LoggingUseTls'] = LoggingUseTls + globals()['LoggingUseTlsString'] = LoggingUseTlsString globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -120,7 +120,7 @@ def openapi_types(): 'request_max_bytes': (int,), # noqa: E501 'url': (str,), # noqa: E501 'token': (str,), # noqa: E501 - 'use_tls': (LoggingUseTls,), # noqa: E501 + 'use_tls': (LoggingUseTlsString,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 @@ -212,7 +212,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 request_max_bytes (int): The maximum number of bytes sent in one request. Defaults `0` for unbounded.. [optional] if omitted the server will use the default value of 0 # noqa: E501 url (str): The URL to post logs to.. [optional] # noqa: E501 token (str): A Splunk token for use in posting logs over HTTP to your collector.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 @@ -330,7 +330,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 request_max_bytes (int): The maximum number of bytes sent in one request. Defaults `0` for unbounded.. [optional] if omitted the server will use the default value of 0 # noqa: E501 url (str): The URL to post logs to.. [optional] # noqa: E501 token (str): A Splunk token for use in posting logs over HTTP to your collector.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 diff --git a/fastly/model/logging_syslog_additional.py b/fastly/model/logging_syslog_additional.py index b2817d8..1e4ce53 100644 --- a/fastly/model/logging_syslog_additional.py +++ b/fastly/model/logging_syslog_additional.py @@ -31,9 +31,9 @@ def lazy_import(): from fastly.model.logging_message_type import LoggingMessageType - from fastly.model.logging_use_tls import LoggingUseTls + from fastly.model.logging_use_tls_string import LoggingUseTlsString globals()['LoggingMessageType'] = LoggingMessageType - globals()['LoggingUseTls'] = LoggingUseTls + globals()['LoggingUseTlsString'] = LoggingUseTlsString class LoggingSyslogAdditional(ModelNormal): @@ -91,7 +91,7 @@ def openapi_types(): 'hostname': (str,), # noqa: E501 'ipv4': (str, none_type,), # noqa: E501 'token': (str, none_type,), # noqa: E501 - 'use_tls': (LoggingUseTls,), # noqa: E501 + 'use_tls': (LoggingUseTlsString,), # noqa: E501 } @cached_property @@ -152,7 +152,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 hostname (str): The hostname used for the syslog endpoint.. [optional] # noqa: E501 ipv4 (str, none_type): The IPv4 address used for the syslog endpoint.. [optional] # noqa: E501 token (str, none_type): Whether to prepend each message with a specific token.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -238,7 +238,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 hostname (str): The hostname used for the syslog endpoint.. [optional] # noqa: E501 ipv4 (str, none_type): The IPv4 address used for the syslog endpoint.. [optional] # noqa: E501 token (str, none_type): Whether to prepend each message with a specific token.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/logging_syslog_response.py b/fastly/model/logging_syslog_response.py index 1d9bce1..6c0d011 100644 --- a/fastly/model/logging_syslog_response.py +++ b/fastly/model/logging_syslog_response.py @@ -35,7 +35,7 @@ def lazy_import(): from fastly.model.logging_message_type import LoggingMessageType from fastly.model.logging_syslog_additional import LoggingSyslogAdditional from fastly.model.logging_tls_common import LoggingTlsCommon - from fastly.model.logging_use_tls import LoggingUseTls + from fastly.model.logging_use_tls_string import LoggingUseTlsString from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps globals()['LoggingAddressAndPort'] = LoggingAddressAndPort @@ -43,7 +43,7 @@ def lazy_import(): globals()['LoggingMessageType'] = LoggingMessageType globals()['LoggingSyslogAdditional'] = LoggingSyslogAdditional globals()['LoggingTlsCommon'] = LoggingTlsCommon - globals()['LoggingUseTls'] = LoggingUseTls + globals()['LoggingUseTlsString'] = LoggingUseTlsString globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -124,7 +124,7 @@ def openapi_types(): 'hostname': (str,), # noqa: E501 'ipv4': (str, none_type,), # noqa: E501 'token': (str, none_type,), # noqa: E501 - 'use_tls': (LoggingUseTls,), # noqa: E501 + 'use_tls': (LoggingUseTlsString,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 @@ -220,7 +220,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 hostname (str): The hostname used for the syslog endpoint.. [optional] # noqa: E501 ipv4 (str, none_type): The IPv4 address used for the syslog endpoint.. [optional] # noqa: E501 token (str, none_type): Whether to prepend each message with a specific token.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 @@ -340,7 +340,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 hostname (str): The hostname used for the syslog endpoint.. [optional] # noqa: E501 ipv4 (str, none_type): The IPv4 address used for the syslog endpoint.. [optional] # noqa: E501 token (str, none_type): Whether to prepend each message with a specific token.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 + use_tls (LoggingUseTlsString): [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 diff --git a/fastly/model/logging_use_tls.py b/fastly/model/logging_use_tls_string.py similarity index 93% rename from fastly/model/logging_use_tls.py rename to fastly/model/logging_use_tls_string.py index e855b9b..c0c2afe 100644 --- a/fastly/model/logging_use_tls.py +++ b/fastly/model/logging_use_tls_string.py @@ -30,7 +30,7 @@ -class LoggingUseTls(ModelSimple): +class LoggingUseTlsString(ModelSimple): """NOTE: This class is auto generated. Do not edit the class manually. @@ -50,8 +50,8 @@ class LoggingUseTls(ModelSimple): allowed_values = { ('value',): { - 'no_tls': 0, - 'use_tls': 1, + 'no_tls': "0", + 'use_tls': "1", }, } @@ -73,7 +73,7 @@ def openapi_types(): and the value is attribute type. """ return { - 'value': (int,), + 'value': (str,), } @cached_property @@ -98,15 +98,15 @@ def discriminator(): @convert_js_args_to_python_args def __init__(self, *args, **kwargs): - """LoggingUseTls - a model defined in OpenAPI + """LoggingUseTlsString - a model defined in OpenAPI Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (int): Whether to use TLS.. if omitted defaults to 0, must be one of [0, 1, ] # noqa: E501 + args[0] (str): Whether to use TLS.. if omitted defaults to "0", must be one of ["0", "1", ] # noqa: E501 Keyword Args: - value (int): Whether to use TLS.. if omitted defaults to 0, must be one of [0, 1, ] # noqa: E501 + value (str): Whether to use TLS.. if omitted defaults to "0", must be one of ["0", "1", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -147,7 +147,7 @@ def __init__(self, *args, **kwargs): args = list(args) value = args.pop(0) else: - value = 0 + value = "0" _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) @@ -184,15 +184,15 @@ def __init__(self, *args, **kwargs): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): - """LoggingUseTls - a model defined in OpenAPI + """LoggingUseTlsString - a model defined in OpenAPI Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (int): Whether to use TLS.. if omitted defaults to 0, must be one of [0, 1, ] # noqa: E501 + args[0] (str): Whether to use TLS.. if omitted defaults to "0", must be one of ["0", "1", ] # noqa: E501 Keyword Args: - value (int): Whether to use TLS.. if omitted defaults to 0, must be one of [0, 1, ] # noqa: E501 + value (str): Whether to use TLS.. if omitted defaults to "0", must be one of ["0", "1", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -235,7 +235,7 @@ def _from_openapi_data(cls, *args, **kwargs): args = list(args) value = args.pop(0) else: - value = 0 + value = "0" _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) diff --git a/fastly/models/__init__.py b/fastly/models/__init__.py index 5336186..8c9b18c 100644 --- a/fastly/models/__init__.py +++ b/fastly/models/__init__.py @@ -284,7 +284,7 @@ from fastly.model.logging_syslog_additional import LoggingSyslogAdditional from fastly.model.logging_syslog_response import LoggingSyslogResponse from fastly.model.logging_tls_common import LoggingTlsCommon -from fastly.model.logging_use_tls import LoggingUseTls +from fastly.model.logging_use_tls_string import LoggingUseTlsString from fastly.model.metadata import Metadata from fastly.model.mutual_authentication import MutualAuthentication from fastly.model.mutual_authentication_data import MutualAuthenticationData diff --git a/setup.py b/setup.py index bd3c2a9..6de65d5 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ from pathlib import Path NAME = "fastly" -VERSION = "5.4.0" +VERSION = "5.5.0" # To install the library, run the following # # python setup.py install diff --git a/sig.json b/sig.json index d84bb6e..6614774 100644 --- a/sig.json +++ b/sig.json @@ -1 +1 @@ -{"G": "5a2ccc65", "D": "ec7f026b"} +{"G": "5a2ccc65", "D": "f9e684d4"}