From 6fbada835254b0d1c5cba46ce60e5844fc0dcf42 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 26 Apr 2024 05:15:30 +0000 Subject: [PATCH] Generated v5.2.0 --- CHANGELOG.md | 25 ++++++ README.md | 6 ++ docs/Backend.md | 4 + docs/BackendApi.md | 20 ++++- docs/BackendResponse.md | 4 + docs/DirectorApi.md | 4 + docs/RealtimeEntryAggregated.md | 23 ++++- docs/RealtimeMeasurements.md | 23 ++++- docs/RelationshipCustomerCustomer.md | 2 +- docs/RequestSettingsAdditional.md | 2 +- docs/RequestSettingsApi.md | 4 +- docs/RequestSettingsResponse.md | 12 +-- docs/RequestSettingsResponseAllOf.md | 10 +-- docs/Results.md | 21 +++++ docs/TlsSubscriptionsApi.md | 4 +- fastly/__init__.py | 2 +- fastly/api/backend_api.py | 54 ++++++++++++ fastly/api/request_settings_api.py | 7 +- fastly/api_client.py | 2 +- fastly/configuration.py | 2 +- fastly/model/backend.py | 16 ++++ fastly/model/backend_response.py | 16 ++++ fastly/model/realtime_entry_aggregated.py | 88 ++++++++++++++++++- fastly/model/realtime_measurements.py | 88 ++++++++++++++++++- .../model/relationship_customer_customer.py | 6 +- fastly/model/request_settings_additional.py | 7 +- fastly/model/request_settings_response.py | 37 ++++---- .../model/request_settings_response_all_of.py | 30 +++---- fastly/model/results.py | 84 ++++++++++++++++++ .../model/tls_subscription_data_attributes.py | 2 +- setup.py | 2 +- sig.json | 2 +- 32 files changed, 536 insertions(+), 73 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45d35f8..54d5385 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## [v5.2.0](https://github.com/fastly/fastly-py/releases/tag/release/v5.2.0) (2024-04-25) + +**Bug fixes:** + +- bugfix(billing_address, invitations): Correct customer relationship schema to be single entry rather than array +- bugfix(request_settings): Mark request_settings fields as nullable: bypass_busy_wait, force_miss, geo_headers, + max_stale_age, timer_support, and xff + +**Enhancements:** + +- feat(generator): The API Client Generator now uses a new automatic changelog generation process. +- feat(historical, realtime): Add the following new metrics: `ddos_action_downgrade`, + `ddos_action_downgraded_connections`, `vcl_on_compute_hit_requests`, `vcl_on_compute_miss_requests`, + `vcl_on_compute_pass_requests`, `vcl_on_compute_error_requests`, `vcl_on_compute_synth_requests`, + `vcl_on_compute_edge_hit_requests`, `vcl_on_compute_edge_miss_requests`, `all_hit_requests`, + `all_miss_requests`, `all_pass_requests`, `all_error_requests`, `all_synth_requests`, `all_edge_hit_requests`, + `all_edge_miss_requests`, `all_status_1xx`, `all_status_2xx`, `all_status_3xx`, `all_status_4xx`, and + `all_status_5xx`. +- feat(backend): Add `tcp_keepalive_*` properties to the Backend API, which allow configuring TCP keepalives for + backend connections. + +**Documentation:** + +- doc(realtime): Correct description of miss_histogram structure in real-time stats. + ## [v5.1.0](https://github.com/fastly/fastly-py/releases/tag/release/v5.1.0) (2024-02-28) **Enhancements:** diff --git a/README.md b/README.md index 74b6b43..f208d38 100644 --- a/README.md +++ b/README.md @@ -598,6 +598,12 @@ The fastly-py API client currently does not support the following endpoints: - [`/alerts/definitions/{definition_id}`](https://www.fastly.com/documentation/reference/api/observability/alerts/definitions) (DELETE, GET, PUT) - [`/alerts/definitions`](https://www.fastly.com/documentation/reference/api/observability/alerts/definitions) (GET, POST) - [`/alerts/history`](https://www.fastly.com/documentation/reference/api/observability/alerts/history) (GET) +- [`/notifications/integration-types`](https://developer.fastly.com/reference/api/observability/notification) (GET) +- [`/notifications/integrations/{integration_id}/rotateSigningKey`](https://developer.fastly.com/reference/api/observability/notification) (POST) +- [`/notifications/integrations/{integration_id}/signingKey`](https://developer.fastly.com/reference/api/observability/notification) (GET) +- [`/notifications/integrations/{integration_id}`](https://developer.fastly.com/reference/api/observability/notification) (DELETE, GET, PATCH) +- [`/notifications/integrations`](https://developer.fastly.com/reference/api/observability/notification) (GET, POST) +- [`/notifications/mailinglist-confirmations`](https://developer.fastly.com/reference/api/observability/notification) (POST) - [`/resources/stores/kv/{store_id}/batch`](https://www.fastly.com/documentation/reference/api/services/resources/kv-store-item) (PUT) - [`/tls/activations/{tls_activation_id}`](https://www.fastly.com/documentation/reference/api/tls/mutual-tls/activations) (GET, PATCH) - [`/tls/activations`](https://www.fastly.com/documentation/reference/api/tls/mutual-tls/activations) (GET) diff --git a/docs/Backend.md b/docs/Backend.md index 0e703eb..69832d6 100644 --- a/docs/Backend.md +++ b/docs/Backend.md @@ -33,6 +33,10 @@ Name | Type | Description | Notes **ssl_client_key** | **str, none_type** | Client key attached to origin. | [optional] **ssl_hostname** | **str, none_type** | Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation. | [optional] **ssl_sni_hostname** | **str, none_type** | Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all. | [optional] +**tcp_keepalive_enable** | **bool** | Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified. | [optional] +**tcp_keepalive_interval** | **int, none_type** | Interval in seconds between subsequent keepalive probes. | [optional] +**tcp_keepalive_probes** | **int, none_type** | Number of unacknowledged probes to send before considering the connection dead. | [optional] +**tcp_keepalive_time** | **int, none_type** | Interval in seconds between the last data packet sent and the first keepalive probe. | [optional] **use_ssl** | **bool** | Whether or not to require TLS for connections to this backend. | [optional] **weight** | **int** | Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true. | [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/BackendApi.md b/docs/BackendApi.md index 9ac49de..96c906f 100644 --- a/docs/BackendApi.md +++ b/docs/BackendApi.md @@ -80,6 +80,10 @@ with fastly.ApiClient(configuration) as api_client: ssl_client_key = "ssl_client_key_example" # str, none_type | Client key attached to origin. (optional) ssl_hostname = "ssl_hostname_example" # str, none_type | Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation. (optional) ssl_sni_hostname = "ssl_sni_hostname_example" # str, none_type | Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all. (optional) + tcp_keepalive_enable = True # bool | Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified. (optional) + tcp_keepalive_interval = 1 # int, none_type | Interval in seconds between subsequent keepalive probes. (optional) + tcp_keepalive_probes = 1 # int, none_type | Number of unacknowledged probes to send before considering the connection dead. (optional) + tcp_keepalive_time = 1 # int, none_type | Interval in seconds between the last data packet sent and the first keepalive probe. (optional) use_ssl = True # bool | Whether or not to require TLS for connections to this backend. (optional) weight = 1 # int | Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true. (optional) @@ -95,7 +99,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a backend - api_response = api_instance.create_backend(service_id, version_id, address=address, auto_loadbalance=auto_loadbalance, between_bytes_timeout=between_bytes_timeout, client_cert=client_cert, comment=comment, connect_timeout=connect_timeout, first_byte_timeout=first_byte_timeout, healthcheck=healthcheck, hostname=hostname, ipv4=ipv4, ipv6=ipv6, keepalive_time=keepalive_time, max_conn=max_conn, max_tls_version=max_tls_version, min_tls_version=min_tls_version, name=name, override_host=override_host, port=port, request_condition=request_condition, share_key=share_key, shield=shield, ssl_ca_cert=ssl_ca_cert, ssl_cert_hostname=ssl_cert_hostname, ssl_check_cert=ssl_check_cert, ssl_ciphers=ssl_ciphers, ssl_client_cert=ssl_client_cert, ssl_client_key=ssl_client_key, ssl_hostname=ssl_hostname, ssl_sni_hostname=ssl_sni_hostname, use_ssl=use_ssl, weight=weight) + api_response = api_instance.create_backend(service_id, version_id, address=address, auto_loadbalance=auto_loadbalance, between_bytes_timeout=between_bytes_timeout, client_cert=client_cert, comment=comment, connect_timeout=connect_timeout, first_byte_timeout=first_byte_timeout, healthcheck=healthcheck, hostname=hostname, ipv4=ipv4, ipv6=ipv6, keepalive_time=keepalive_time, max_conn=max_conn, max_tls_version=max_tls_version, min_tls_version=min_tls_version, name=name, override_host=override_host, port=port, request_condition=request_condition, share_key=share_key, shield=shield, ssl_ca_cert=ssl_ca_cert, ssl_cert_hostname=ssl_cert_hostname, ssl_check_cert=ssl_check_cert, ssl_ciphers=ssl_ciphers, ssl_client_cert=ssl_client_cert, ssl_client_key=ssl_client_key, ssl_hostname=ssl_hostname, ssl_sni_hostname=ssl_sni_hostname, tcp_keepalive_enable=tcp_keepalive_enable, tcp_keepalive_interval=tcp_keepalive_interval, tcp_keepalive_probes=tcp_keepalive_probes, tcp_keepalive_time=tcp_keepalive_time, use_ssl=use_ssl, weight=weight) pprint(api_response) except fastly.ApiException as e: print("Exception when calling BackendApi->create_backend: %s\n" % e) @@ -137,6 +141,10 @@ Name | Type | Description | Notes **ssl_client_key** | **str, none_type**| Client key attached to origin. | [optional] **ssl_hostname** | **str, none_type**| Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation. | [optional] **ssl_sni_hostname** | **str, none_type**| Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all. | [optional] + **tcp_keepalive_enable** | **bool**| Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified. | [optional] + **tcp_keepalive_interval** | **int, none_type**| Interval in seconds between subsequent keepalive probes. | [optional] + **tcp_keepalive_probes** | **int, none_type**| Number of unacknowledged probes to send before considering the connection dead. | [optional] + **tcp_keepalive_time** | **int, none_type**| Interval in seconds between the last data packet sent and the first keepalive probe. | [optional] **use_ssl** | **bool**| Whether or not to require TLS for connections to this backend. | [optional] **weight** | **int**| Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true. | [optional] @@ -476,6 +484,10 @@ with fastly.ApiClient(configuration) as api_client: ssl_client_key = "ssl_client_key_example" # str, none_type | Client key attached to origin. (optional) ssl_hostname = "ssl_hostname_example" # str, none_type | Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation. (optional) ssl_sni_hostname = "ssl_sni_hostname_example" # str, none_type | Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all. (optional) + tcp_keepalive_enable = True # bool | Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified. (optional) + tcp_keepalive_interval = 1 # int, none_type | Interval in seconds between subsequent keepalive probes. (optional) + tcp_keepalive_probes = 1 # int, none_type | Number of unacknowledged probes to send before considering the connection dead. (optional) + tcp_keepalive_time = 1 # int, none_type | Interval in seconds between the last data packet sent and the first keepalive probe. (optional) use_ssl = True # bool | Whether or not to require TLS for connections to this backend. (optional) weight = 1 # int | Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true. (optional) @@ -491,7 +503,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a backend - api_response = api_instance.update_backend(service_id, version_id, backend_name, address=address, auto_loadbalance=auto_loadbalance, between_bytes_timeout=between_bytes_timeout, client_cert=client_cert, comment=comment, connect_timeout=connect_timeout, first_byte_timeout=first_byte_timeout, healthcheck=healthcheck, hostname=hostname, ipv4=ipv4, ipv6=ipv6, keepalive_time=keepalive_time, max_conn=max_conn, max_tls_version=max_tls_version, min_tls_version=min_tls_version, name=name, override_host=override_host, port=port, request_condition=request_condition, share_key=share_key, shield=shield, ssl_ca_cert=ssl_ca_cert, ssl_cert_hostname=ssl_cert_hostname, ssl_check_cert=ssl_check_cert, ssl_ciphers=ssl_ciphers, ssl_client_cert=ssl_client_cert, ssl_client_key=ssl_client_key, ssl_hostname=ssl_hostname, ssl_sni_hostname=ssl_sni_hostname, use_ssl=use_ssl, weight=weight) + api_response = api_instance.update_backend(service_id, version_id, backend_name, address=address, auto_loadbalance=auto_loadbalance, between_bytes_timeout=between_bytes_timeout, client_cert=client_cert, comment=comment, connect_timeout=connect_timeout, first_byte_timeout=first_byte_timeout, healthcheck=healthcheck, hostname=hostname, ipv4=ipv4, ipv6=ipv6, keepalive_time=keepalive_time, max_conn=max_conn, max_tls_version=max_tls_version, min_tls_version=min_tls_version, name=name, override_host=override_host, port=port, request_condition=request_condition, share_key=share_key, shield=shield, ssl_ca_cert=ssl_ca_cert, ssl_cert_hostname=ssl_cert_hostname, ssl_check_cert=ssl_check_cert, ssl_ciphers=ssl_ciphers, ssl_client_cert=ssl_client_cert, ssl_client_key=ssl_client_key, ssl_hostname=ssl_hostname, ssl_sni_hostname=ssl_sni_hostname, tcp_keepalive_enable=tcp_keepalive_enable, tcp_keepalive_interval=tcp_keepalive_interval, tcp_keepalive_probes=tcp_keepalive_probes, tcp_keepalive_time=tcp_keepalive_time, use_ssl=use_ssl, weight=weight) pprint(api_response) except fastly.ApiException as e: print("Exception when calling BackendApi->update_backend: %s\n" % e) @@ -534,6 +546,10 @@ Name | Type | Description | Notes **ssl_client_key** | **str, none_type**| Client key attached to origin. | [optional] **ssl_hostname** | **str, none_type**| Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation. | [optional] **ssl_sni_hostname** | **str, none_type**| Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all. | [optional] + **tcp_keepalive_enable** | **bool**| Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified. | [optional] + **tcp_keepalive_interval** | **int, none_type**| Interval in seconds between subsequent keepalive probes. | [optional] + **tcp_keepalive_probes** | **int, none_type**| Number of unacknowledged probes to send before considering the connection dead. | [optional] + **tcp_keepalive_time** | **int, none_type**| Interval in seconds between the last data packet sent and the first keepalive probe. | [optional] **use_ssl** | **bool**| Whether or not to require TLS for connections to this backend. | [optional] **weight** | **int**| Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true. | [optional] diff --git a/docs/BackendResponse.md b/docs/BackendResponse.md index 8f1505f..c1ad5db 100644 --- a/docs/BackendResponse.md +++ b/docs/BackendResponse.md @@ -33,6 +33,10 @@ Name | Type | Description | Notes **ssl_client_key** | **str, none_type** | Client key attached to origin. | [optional] **ssl_hostname** | **str, none_type** | Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation. | [optional] **ssl_sni_hostname** | **str, none_type** | Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all. | [optional] +**tcp_keepalive_enable** | **bool** | Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified. | [optional] +**tcp_keepalive_interval** | **int, none_type** | Interval in seconds between subsequent keepalive probes. | [optional] +**tcp_keepalive_probes** | **int, none_type** | Number of unacknowledged probes to send before considering the connection dead. | [optional] +**tcp_keepalive_time** | **int, none_type** | Interval in seconds between the last data packet sent and the first keepalive probe. | [optional] **use_ssl** | **bool** | Whether or not to require TLS for connections to this backend. | [optional] **weight** | **int** | Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true. | [optional] **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] diff --git a/docs/DirectorApi.md b/docs/DirectorApi.md index 54048dc..4ed39f3 100644 --- a/docs/DirectorApi.md +++ b/docs/DirectorApi.md @@ -83,6 +83,10 @@ with fastly.ApiClient(configuration) as api_client: ssl_client_key="ssl_client_key_example", ssl_hostname="ssl_hostname_example", ssl_sni_hostname="ssl_sni_hostname_example", + tcp_keepalive_enable=True, + tcp_keepalive_interval=1, + tcp_keepalive_probes=1, + tcp_keepalive_time=1, use_ssl=True, weight=1, ), diff --git a/docs/RealtimeEntryAggregated.md b/docs/RealtimeEntryAggregated.md index e33f091..fa528f7 100644 --- a/docs/RealtimeEntryAggregated.md +++ b/docs/RealtimeEntryAggregated.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **errors** | **int** | Number of cache errors. | [optional] **hits_time** | **float** | Total amount of time spent processing cache hits (in seconds). | [optional] **miss_time** | **float** | Total amount of time spent processing cache misses (in seconds). | [optional] -**miss_histogram** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | A histogram. Each key represents the upper bound of a span of 10 milliseconds and the values represent the number of requests to origin during that 10ms period. Any origin request that takes more than 60 seconds to return will be in the 60000 bucket. | [optional] +**miss_histogram** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | A histogram. The value in each bucket is the number of requests to the origin whose responses arrived during the time period represented by the bucket. The key of each bucket represents the upper bound (in response time) of that bucket. The buckets vary in width and cover the time periods 0-10ms (in 1ms increments), 10-250ms (in 10ms increments), 250-1,000ms (in 50ms increments), 1,000-3,000ms (in 100ms increments), 3,000-10,000ms (in 500 ms increments), 10,000-20,000ms (in 1,000ms increments), 20,000-60,000ms (in 5,000ms increments), and 60,000ms through infinity (in a single bucket). | [optional] **compute_requests** | **int** | The total number of requests that were received for your service by Fastly. | [optional] **compute_execution_time_ms** | **float** | The amount of active CPU time used to process your requests (in milliseconds). | [optional] **compute_ram_used** | **int** | The amount of RAM used for your service by Fastly (in bytes). | [optional] @@ -232,6 +232,27 @@ Name | Type | Description | Notes **bot_challenges_succeeded** | **int** | The number of successful challenge solutions processed. For example, a correct CAPTCHA solution. | [optional] **bot_challenges_failed** | **int** | The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution. | [optional] **bot_challenge_complete_tokens_issued** | **int** | The number of challenge-complete tokens issued. For example, issuing a challenge-complete token after a series of CAPTCHA challenges ending in success. | [optional] +**ddos_action_downgrade** | **int** | The number of times the downgrade action was taken. The downgrade action restricts the client to http1. | [optional] +**ddos_action_downgraded_connections** | **int** | The number of connections the downgrade action was applied to. The downgrade action restricts the connection to http1. | [optional] +**vcl_on_compute_hit_requests** | **int** | Number of cache hits for a VCL service running on Compute. | [optional] +**vcl_on_compute_miss_requests** | **int** | Number of cache misses for a VCL service running on Compute. | [optional] +**vcl_on_compute_pass_requests** | **int** | Number of requests that passed through the CDN without being cached for a VCL service running on Compute. | [optional] +**vcl_on_compute_error_requests** | **int** | Number of cache errors for a VCL service running on Compute. | [optional] +**vcl_on_compute_synth_requests** | **int** | Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service running on Compute. | [optional] +**vcl_on_compute_edge_hit_requests** | **int** | Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service running on Compute. | [optional] +**vcl_on_compute_edge_miss_requests** | **int** | Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service running on Compute. | [optional] +**all_hit_requests** | **int** | Number of cache hits for a VCL service. | [optional] +**all_miss_requests** | **int** | Number of cache misses for a VCL service. | [optional] +**all_pass_requests** | **int** | Number of requests that passed through the CDN without being cached for a VCL service. | [optional] +**all_error_requests** | **int** | Number of cache errors for a VCL service. | [optional] +**all_synth_requests** | **int** | Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service. | [optional] +**all_edge_hit_requests** | **int** | Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service. | [optional] +**all_edge_miss_requests** | **int** | Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service. | [optional] +**all_status_1xx** | **int** | Number of \"Informational\" category status codes delivered for all sources. | [optional] +**all_status_2xx** | **int** | Number of \"Success\" status codes delivered for all sources. | [optional] +**all_status_3xx** | **int** | Number of \"Redirection\" codes delivered for all sources. | [optional] +**all_status_4xx** | **int** | Number of \"Client Error\" codes delivered for all sources. | [optional] +**all_status_5xx** | **int** | Number of \"Server Error\" codes delivered for all sources. | [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/RealtimeMeasurements.md b/docs/RealtimeMeasurements.md index e84b136..832e67a 100644 --- a/docs/RealtimeMeasurements.md +++ b/docs/RealtimeMeasurements.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **errors** | **int** | Number of cache errors. | [optional] **hits_time** | **float** | Total amount of time spent processing cache hits (in seconds). | [optional] **miss_time** | **float** | Total amount of time spent processing cache misses (in seconds). | [optional] -**miss_histogram** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | A histogram. Each key represents the upper bound of a span of 10 milliseconds and the values represent the number of requests to origin during that 10ms period. Any origin request that takes more than 60 seconds to return will be in the 60000 bucket. | [optional] +**miss_histogram** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | A histogram. The value in each bucket is the number of requests to the origin whose responses arrived during the time period represented by the bucket. The key of each bucket represents the upper bound (in response time) of that bucket. The buckets vary in width and cover the time periods 0-10ms (in 1ms increments), 10-250ms (in 10ms increments), 250-1,000ms (in 50ms increments), 1,000-3,000ms (in 100ms increments), 3,000-10,000ms (in 500 ms increments), 10,000-20,000ms (in 1,000ms increments), 20,000-60,000ms (in 5,000ms increments), and 60,000ms through infinity (in a single bucket). | [optional] **compute_requests** | **int** | The total number of requests that were received for your service by Fastly. | [optional] **compute_execution_time_ms** | **float** | The amount of active CPU time used to process your requests (in milliseconds). | [optional] **compute_ram_used** | **int** | The amount of RAM used for your service by Fastly (in bytes). | [optional] @@ -232,6 +232,27 @@ Name | Type | Description | Notes **bot_challenges_succeeded** | **int** | The number of successful challenge solutions processed. For example, a correct CAPTCHA solution. | [optional] **bot_challenges_failed** | **int** | The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution. | [optional] **bot_challenge_complete_tokens_issued** | **int** | The number of challenge-complete tokens issued. For example, issuing a challenge-complete token after a series of CAPTCHA challenges ending in success. | [optional] +**ddos_action_downgrade** | **int** | The number of times the downgrade action was taken. The downgrade action restricts the client to http1. | [optional] +**ddos_action_downgraded_connections** | **int** | The number of connections the downgrade action was applied to. The downgrade action restricts the connection to http1. | [optional] +**vcl_on_compute_hit_requests** | **int** | Number of cache hits for a VCL service running on Compute. | [optional] +**vcl_on_compute_miss_requests** | **int** | Number of cache misses for a VCL service running on Compute. | [optional] +**vcl_on_compute_pass_requests** | **int** | Number of requests that passed through the CDN without being cached for a VCL service running on Compute. | [optional] +**vcl_on_compute_error_requests** | **int** | Number of cache errors for a VCL service running on Compute. | [optional] +**vcl_on_compute_synth_requests** | **int** | Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service running on Compute. | [optional] +**vcl_on_compute_edge_hit_requests** | **int** | Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service running on Compute. | [optional] +**vcl_on_compute_edge_miss_requests** | **int** | Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service running on Compute. | [optional] +**all_hit_requests** | **int** | Number of cache hits for a VCL service. | [optional] +**all_miss_requests** | **int** | Number of cache misses for a VCL service. | [optional] +**all_pass_requests** | **int** | Number of requests that passed through the CDN without being cached for a VCL service. | [optional] +**all_error_requests** | **int** | Number of cache errors for a VCL service. | [optional] +**all_synth_requests** | **int** | Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service. | [optional] +**all_edge_hit_requests** | **int** | Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service. | [optional] +**all_edge_miss_requests** | **int** | Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service. | [optional] +**all_status_1xx** | **int** | Number of \"Informational\" category status codes delivered for all sources. | [optional] +**all_status_2xx** | **int** | Number of \"Success\" status codes delivered for all sources. | [optional] +**all_status_3xx** | **int** | Number of \"Redirection\" codes delivered for all sources. | [optional] +**all_status_4xx** | **int** | Number of \"Client Error\" codes delivered for all sources. | [optional] +**all_status_5xx** | **int** | Number of \"Server Error\" codes delivered for all sources. | [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/RelationshipCustomerCustomer.md b/docs/RelationshipCustomerCustomer.md index 0e73f05..bfec38b 100644 --- a/docs/RelationshipCustomerCustomer.md +++ b/docs/RelationshipCustomerCustomer.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[RelationshipMemberCustomer]**](RelationshipMemberCustomer.md) | | [optional] +**data** | [**RelationshipMemberCustomer**](RelationshipMemberCustomer.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/RequestSettingsAdditional.md b/docs/RequestSettingsAdditional.md index d0c9895..b730d87 100644 --- a/docs/RequestSettingsAdditional.md +++ b/docs/RequestSettingsAdditional.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **hash_keys** | **str, none_type** | Comma separated list of varnish request object fields that should be in the hash key. | [optional] **name** | **str** | Name for the request settings. | [optional] **request_condition** | **str, none_type** | Condition which, if met, will select this configuration during a request. Optional. | [optional] -**xff** | **str** | Short for X-Forwarded-For. | [optional] +**xff** | **str, none_type** | Short for X-Forwarded-For. | [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/RequestSettingsApi.md b/docs/RequestSettingsApi.md index f62e5dc..d2b5590 100644 --- a/docs/RequestSettingsApi.md +++ b/docs/RequestSettingsApi.md @@ -381,7 +381,7 @@ with fastly.ApiClient(configuration) as api_client: hash_keys = "hash_keys_example" # str, none_type | Comma separated list of varnish request object fields that should be in the hash key. (optional) name = "test-request-setting" # str | Name for the request settings. (optional) request_condition = "request_condition_example" # str, none_type | Condition which, if met, will select this configuration during a request. Optional. (optional) - xff = "clear" # str | Short for X-Forwarded-For. (optional) + xff = "clear" # str, none_type | Short for X-Forwarded-For. (optional) bypass_busy_wait = 1 # int | Disable collapsed forwarding, so you don't wait for other objects to origin. (optional) force_miss = 1 # int | Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. (optional) force_ssl = 1 # int | Forces the request use SSL (redirects a non-SSL to SSL). (optional) @@ -420,7 +420,7 @@ Name | Type | Description | Notes **hash_keys** | **str, none_type**| Comma separated list of varnish request object fields that should be in the hash key. | [optional] **name** | **str**| Name for the request settings. | [optional] **request_condition** | **str, none_type**| Condition which, if met, will select this configuration during a request. Optional. | [optional] - **xff** | **str**| Short for X-Forwarded-For. | [optional] + **xff** | **str, none_type**| Short for X-Forwarded-For. | [optional] **bypass_busy_wait** | **int**| Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] **force_miss** | **int**| Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. | [optional] **force_ssl** | **int**| Forces the request use SSL (redirects a non-SSL to SSL). | [optional] diff --git a/docs/RequestSettingsResponse.md b/docs/RequestSettingsResponse.md index ce2bf57..a1834b4 100644 --- a/docs/RequestSettingsResponse.md +++ b/docs/RequestSettingsResponse.md @@ -14,13 +14,13 @@ Name | Type | Description | Notes **hash_keys** | **str, none_type** | Comma separated list of varnish request object fields that should be in the hash key. | [optional] **name** | **str** | Name for the request settings. | [optional] **request_condition** | **str, none_type** | Condition which, if met, will select this configuration during a request. Optional. | [optional] -**xff** | **str** | Short for X-Forwarded-For. | [optional] -**bypass_busy_wait** | **str** | Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] -**force_miss** | **str** | Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. | [optional] +**xff** | **str, none_type** | Short for X-Forwarded-For. | [optional] +**bypass_busy_wait** | **str, none_type** | Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] +**force_miss** | **str, none_type** | Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. | [optional] **force_ssl** | **str** | Forces the request use SSL (redirects a non-SSL to SSL). | [optional] -**geo_headers** | **str** | Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. | [optional] -**max_stale_age** | **str** | How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. | [optional] -**timer_support** | **str** | Injects the X-Timer info into the request for viewing origin fetch durations. | [optional] +**geo_headers** | **str, none_type** | Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. | [optional] +**max_stale_age** | **str, none_type** | How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. | [optional] +**timer_support** | **str, none_type** | Injects the X-Timer info into the request for viewing origin fetch durations. | [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/RequestSettingsResponseAllOf.md b/docs/RequestSettingsResponseAllOf.md index 79d50af..7a4ccd8 100644 --- a/docs/RequestSettingsResponseAllOf.md +++ b/docs/RequestSettingsResponseAllOf.md @@ -4,12 +4,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bypass_busy_wait** | **str** | Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] -**force_miss** | **str** | Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. | [optional] +**bypass_busy_wait** | **str, none_type** | Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] +**force_miss** | **str, none_type** | Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. | [optional] **force_ssl** | **str** | Forces the request use SSL (redirects a non-SSL to SSL). | [optional] -**geo_headers** | **str** | Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. | [optional] -**max_stale_age** | **str** | How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. | [optional] -**timer_support** | **str** | Injects the X-Timer info into the request for viewing origin fetch durations. | [optional] +**geo_headers** | **str, none_type** | Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. | [optional] +**max_stale_age** | **str, none_type** | How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. | [optional] +**timer_support** | **str, none_type** | Injects the X-Timer info into the request for viewing origin fetch durations. | [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/Results.md b/docs/Results.md index 2dd03d2..093aa0d 100644 --- a/docs/Results.md +++ b/docs/Results.md @@ -232,6 +232,27 @@ Name | Type | Description | Notes **bot_challenges_issued** | **int** | The number of challenges issued. For example, the issuance of a CAPTCHA challenge. | [optional] **bot_challenges_succeeded** | **int** | The number of successful challenge solutions processed. For example, a correct CAPTCHA solution. | [optional] **bot_challenges_failed** | **int** | The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution. | [optional] +**ddos_action_downgrade** | **int** | The number of times the downgrade action was taken. The downgrade action restricts the client to http1. | [optional] +**ddos_action_downgraded_connections** | **int** | The number of connections the downgrade action was applied to. The downgrade action restricts the connection to http1. | [optional] +**vcl_on_compute_hit_requests** | **int** | Number of cache hits for a VCL service running on Compute. | [optional] +**vcl_on_compute_miss_requests** | **int** | Number of cache misses for a VCL service running on Compute. | [optional] +**vcl_on_compute_pass_requests** | **int** | Number of requests that passed through the CDN without being cached for a VCL service running on Compute. | [optional] +**vcl_on_compute_error_requests** | **int** | Number of cache errors for a VCL service running on Compute. | [optional] +**vcl_on_compute_synth_requests** | **int** | Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service running on Compute. | [optional] +**vcl_on_compute_edge_hit_requests** | **int** | Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service running on Compute. | [optional] +**vcl_on_compute_edge_miss_requests** | **int** | Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service running on Compute. | [optional] +**all_hit_requests** | **int** | Number of cache hits for a VCL service. | [optional] +**all_miss_requests** | **int** | Number of cache misses for a VCL service. | [optional] +**all_pass_requests** | **int** | Number of requests that passed through the CDN without being cached for a VCL service. | [optional] +**all_error_requests** | **int** | Number of cache errors for a VCL service. | [optional] +**all_synth_requests** | **int** | Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service. | [optional] +**all_edge_hit_requests** | **int** | Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service. | [optional] +**all_edge_miss_requests** | **int** | Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service. | [optional] +**all_status_1xx** | **int** | Number of \"Informational\" category status codes delivered for all sources. | [optional] +**all_status_2xx** | **int** | Number of \"Success\" status codes delivered for all sources. | [optional] +**all_status_3xx** | **int** | Number of \"Redirection\" codes delivered for all sources. | [optional] +**all_status_4xx** | **int** | Number of \"Client Error\" codes delivered for all sources. | [optional] +**all_status_5xx** | **int** | Number of \"Server Error\" codes delivered for all sources. | [optional] **service_id** | **str** | | [optional] [readonly] **start_time** | **int** | Timestamp for the start of the time period being reported | [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/TlsSubscriptionsApi.md b/docs/TlsSubscriptionsApi.md index e828598..d649d73 100644 --- a/docs/TlsSubscriptionsApi.md +++ b/docs/TlsSubscriptionsApi.md @@ -147,7 +147,7 @@ with fastly.ApiClient(configuration) as api_client: data=TlsSubscriptionData( type=TypeTlsSubscription("tls_subscription"), attributes=TlsSubscriptionDataAttributes( - certificate_authority="lets-encrypt", + certificate_authority="certainly", ), relationships=RelationshipsForTlsSubscription(), ), @@ -574,7 +574,7 @@ with fastly.ApiClient(configuration) as api_client: data=TlsSubscriptionData( type=TypeTlsSubscription("tls_subscription"), attributes=TlsSubscriptionDataAttributes( - certificate_authority="lets-encrypt", + certificate_authority="certainly", ), relationships=RelationshipsForTlsSubscription(), ), diff --git a/fastly/__init__.py b/fastly/__init__.py index 0caeeae..9201a91 100644 --- a/fastly/__init__.py +++ b/fastly/__init__.py @@ -10,7 +10,7 @@ """ -__version__ = "5.1.0" +__version__ = "5.2.0" # import ApiClient from fastly.api_client import ApiClient diff --git a/fastly/api/backend_api.py b/fastly/api/backend_api.py index 0a9a069..15f21ef 100644 --- a/fastly/api/backend_api.py +++ b/fastly/api/backend_api.py @@ -83,6 +83,10 @@ def __init__(self, api_client=None): 'ssl_client_key', 'ssl_hostname', 'ssl_sni_hostname', + 'tcp_keepalive_enable', + 'tcp_keepalive_interval', + 'tcp_keepalive_probes', + 'tcp_keepalive_time', 'use_ssl', 'weight', ], @@ -111,6 +115,9 @@ def __init__(self, api_client=None): 'ssl_client_key', 'ssl_hostname', 'ssl_sni_hostname', + 'tcp_keepalive_interval', + 'tcp_keepalive_probes', + 'tcp_keepalive_time', ], 'enum': [ ], @@ -192,6 +199,14 @@ def __init__(self, api_client=None): (str, none_type,), 'ssl_sni_hostname': (str, none_type,), + 'tcp_keepalive_enable': + (bool,), + 'tcp_keepalive_interval': + (int, none_type,), + 'tcp_keepalive_probes': + (int, none_type,), + 'tcp_keepalive_time': + (int, none_type,), 'use_ssl': (bool,), 'weight': @@ -229,6 +244,10 @@ def __init__(self, api_client=None): 'ssl_client_key': 'ssl_client_key', 'ssl_hostname': 'ssl_hostname', 'ssl_sni_hostname': 'ssl_sni_hostname', + 'tcp_keepalive_enable': 'tcp_keepalive_enable', + 'tcp_keepalive_interval': 'tcp_keepalive_interval', + 'tcp_keepalive_probes': 'tcp_keepalive_probes', + 'tcp_keepalive_time': 'tcp_keepalive_time', 'use_ssl': 'use_ssl', 'weight': 'weight', }, @@ -264,6 +283,10 @@ def __init__(self, api_client=None): 'ssl_client_key': 'form', 'ssl_hostname': 'form', 'ssl_sni_hostname': 'form', + 'tcp_keepalive_enable': 'form', + 'tcp_keepalive_interval': 'form', + 'tcp_keepalive_probes': 'form', + 'tcp_keepalive_time': 'form', 'use_ssl': 'form', 'weight': 'form', }, @@ -536,6 +559,10 @@ def __init__(self, api_client=None): 'ssl_client_key', 'ssl_hostname', 'ssl_sni_hostname', + 'tcp_keepalive_enable', + 'tcp_keepalive_interval', + 'tcp_keepalive_probes', + 'tcp_keepalive_time', 'use_ssl', 'weight', ], @@ -565,6 +592,9 @@ def __init__(self, api_client=None): 'ssl_client_key', 'ssl_hostname', 'ssl_sni_hostname', + 'tcp_keepalive_interval', + 'tcp_keepalive_probes', + 'tcp_keepalive_time', ], 'enum': [ ], @@ -648,6 +678,14 @@ def __init__(self, api_client=None): (str, none_type,), 'ssl_sni_hostname': (str, none_type,), + 'tcp_keepalive_enable': + (bool,), + 'tcp_keepalive_interval': + (int, none_type,), + 'tcp_keepalive_probes': + (int, none_type,), + 'tcp_keepalive_time': + (int, none_type,), 'use_ssl': (bool,), 'weight': @@ -686,6 +724,10 @@ def __init__(self, api_client=None): 'ssl_client_key': 'ssl_client_key', 'ssl_hostname': 'ssl_hostname', 'ssl_sni_hostname': 'ssl_sni_hostname', + 'tcp_keepalive_enable': 'tcp_keepalive_enable', + 'tcp_keepalive_interval': 'tcp_keepalive_interval', + 'tcp_keepalive_probes': 'tcp_keepalive_probes', + 'tcp_keepalive_time': 'tcp_keepalive_time', 'use_ssl': 'use_ssl', 'weight': 'weight', }, @@ -722,6 +764,10 @@ def __init__(self, api_client=None): 'ssl_client_key': 'form', 'ssl_hostname': 'form', 'ssl_sni_hostname': 'form', + 'tcp_keepalive_enable': 'form', + 'tcp_keepalive_interval': 'form', + 'tcp_keepalive_probes': 'form', + 'tcp_keepalive_time': 'form', 'use_ssl': 'form', 'weight': 'form', }, @@ -790,6 +836,10 @@ def create_backend( ssl_client_key (str, none_type): Client key attached to origin.. [optional] ssl_hostname (str, none_type): Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation.. [optional] ssl_sni_hostname (str, none_type): Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all.. [optional] + tcp_keepalive_enable (bool): Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.. [optional] + tcp_keepalive_interval (int, none_type): Interval in seconds between subsequent keepalive probes.. [optional] + tcp_keepalive_probes (int, none_type): Number of unacknowledged probes to send before considering the connection dead.. [optional] + tcp_keepalive_time (int, none_type): Interval in seconds between the last data packet sent and the first keepalive probe.. [optional] use_ssl (bool): Whether or not to require TLS for connections to this backend.. [optional] weight (int): Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true.. [optional] _return_http_data_only (bool): response data without head status @@ -1159,6 +1209,10 @@ def update_backend( ssl_client_key (str, none_type): Client key attached to origin.. [optional] ssl_hostname (str, none_type): Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation.. [optional] ssl_sni_hostname (str, none_type): Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all.. [optional] + tcp_keepalive_enable (bool): Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.. [optional] + tcp_keepalive_interval (int, none_type): Interval in seconds between subsequent keepalive probes.. [optional] + tcp_keepalive_probes (int, none_type): Number of unacknowledged probes to send before considering the connection dead.. [optional] + tcp_keepalive_time (int, none_type): Interval in seconds between the last data packet sent and the first keepalive probe.. [optional] use_ssl (bool): Whether or not to require TLS for connections to this backend.. [optional] weight (int): Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true.. [optional] _return_http_data_only (bool): response data without head status diff --git a/fastly/api/request_settings_api.py b/fastly/api/request_settings_api.py index 1366e5c..1d661a5 100644 --- a/fastly/api/request_settings_api.py +++ b/fastly/api/request_settings_api.py @@ -348,6 +348,7 @@ def __init__(self, api_client=None): 'default_host', 'hash_keys', 'request_condition', + 'xff', ], 'enum': [ 'action', @@ -366,7 +367,7 @@ def __init__(self, api_client=None): "PASS": "pass" }, ('xff',): { - + 'None': None, "CLEAR": "clear", "LEAVE": "leave", "APPEND": "append", @@ -392,7 +393,7 @@ def __init__(self, api_client=None): 'request_condition': (str, none_type,), 'xff': - (str,), + (str, none_type,), 'bypass_busy_wait': (int,), 'force_miss': @@ -819,7 +820,7 @@ def update_request_settings( hash_keys (str, none_type): Comma separated list of varnish request object fields that should be in the hash key.. [optional] name (str): Name for the request settings.. [optional] request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] - xff (str): Short for X-Forwarded-For.. [optional] + xff (str, none_type): Short for X-Forwarded-For.. [optional] bypass_busy_wait (int): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] force_miss (int): Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.. [optional] force_ssl (int): Forces the request use SSL (redirects a non-SSL to SSL).. [optional] diff --git a/fastly/api_client.py b/fastly/api_client.py index 7232d10..22fc2d9 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.1.0' + self.user_agent = 'fastly-py/5.2.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 4113936..b6df9ad 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.1.0".\ + "SDK Package Version: 5.2.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/fastly/model/backend.py b/fastly/model/backend.py index d4225ae..3df1fa7 100644 --- a/fastly/model/backend.py +++ b/fastly/model/backend.py @@ -113,6 +113,10 @@ def openapi_types(): 'ssl_client_key': (str, none_type,), # noqa: E501 'ssl_hostname': (str, none_type,), # noqa: E501 'ssl_sni_hostname': (str, none_type,), # noqa: E501 + 'tcp_keepalive_enable': (bool,), # noqa: E501 + 'tcp_keepalive_interval': (int, none_type,), # noqa: E501 + 'tcp_keepalive_probes': (int, none_type,), # noqa: E501 + 'tcp_keepalive_time': (int, none_type,), # noqa: E501 'use_ssl': (bool,), # noqa: E501 'weight': (int,), # noqa: E501 } @@ -152,6 +156,10 @@ def discriminator(): 'ssl_client_key': 'ssl_client_key', # noqa: E501 'ssl_hostname': 'ssl_hostname', # noqa: E501 'ssl_sni_hostname': 'ssl_sni_hostname', # noqa: E501 + 'tcp_keepalive_enable': 'tcp_keepalive_enable', # noqa: E501 + 'tcp_keepalive_interval': 'tcp_keepalive_interval', # noqa: E501 + 'tcp_keepalive_probes': 'tcp_keepalive_probes', # noqa: E501 + 'tcp_keepalive_time': 'tcp_keepalive_time', # noqa: E501 'use_ssl': 'use_ssl', # noqa: E501 'weight': 'weight', # noqa: E501 } @@ -226,6 +234,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ssl_client_key (str, none_type): Client key attached to origin.. [optional] # noqa: E501 ssl_hostname (str, none_type): Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation.. [optional] # noqa: E501 ssl_sni_hostname (str, none_type): Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all.. [optional] # noqa: E501 + tcp_keepalive_enable (bool): Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.. [optional] # noqa: E501 + tcp_keepalive_interval (int, none_type): Interval in seconds between subsequent keepalive probes.. [optional] # noqa: E501 + tcp_keepalive_probes (int, none_type): Number of unacknowledged probes to send before considering the connection dead.. [optional] # noqa: E501 + tcp_keepalive_time (int, none_type): Interval in seconds between the last data packet sent and the first keepalive probe.. [optional] # noqa: E501 use_ssl (bool): Whether or not to require TLS for connections to this backend.. [optional] # noqa: E501 weight (int): Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true.. [optional] # noqa: E501 """ @@ -338,6 +350,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 ssl_client_key (str, none_type): Client key attached to origin.. [optional] # noqa: E501 ssl_hostname (str, none_type): Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation.. [optional] # noqa: E501 ssl_sni_hostname (str, none_type): Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all.. [optional] # noqa: E501 + tcp_keepalive_enable (bool): Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.. [optional] # noqa: E501 + tcp_keepalive_interval (int, none_type): Interval in seconds between subsequent keepalive probes.. [optional] # noqa: E501 + tcp_keepalive_probes (int, none_type): Number of unacknowledged probes to send before considering the connection dead.. [optional] # noqa: E501 + tcp_keepalive_time (int, none_type): Interval in seconds between the last data packet sent and the first keepalive probe.. [optional] # noqa: E501 use_ssl (bool): Whether or not to require TLS for connections to this backend.. [optional] # noqa: E501 weight (int): Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true.. [optional] # noqa: E501 """ diff --git a/fastly/model/backend_response.py b/fastly/model/backend_response.py index 19610e3..2772829 100644 --- a/fastly/model/backend_response.py +++ b/fastly/model/backend_response.py @@ -125,6 +125,10 @@ def openapi_types(): 'ssl_client_key': (str, none_type,), # noqa: E501 'ssl_hostname': (str, none_type,), # noqa: E501 'ssl_sni_hostname': (str, none_type,), # noqa: E501 + 'tcp_keepalive_enable': (bool,), # noqa: E501 + 'tcp_keepalive_interval': (int, none_type,), # noqa: E501 + 'tcp_keepalive_probes': (int, none_type,), # noqa: E501 + 'tcp_keepalive_time': (int, none_type,), # noqa: E501 'use_ssl': (bool,), # noqa: E501 'weight': (int,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 @@ -170,6 +174,10 @@ def discriminator(): 'ssl_client_key': 'ssl_client_key', # noqa: E501 'ssl_hostname': 'ssl_hostname', # noqa: E501 'ssl_sni_hostname': 'ssl_sni_hostname', # noqa: E501 + 'tcp_keepalive_enable': 'tcp_keepalive_enable', # noqa: E501 + 'tcp_keepalive_interval': 'tcp_keepalive_interval', # noqa: E501 + 'tcp_keepalive_probes': 'tcp_keepalive_probes', # noqa: E501 + 'tcp_keepalive_time': 'tcp_keepalive_time', # noqa: E501 'use_ssl': 'use_ssl', # noqa: E501 'weight': 'weight', # noqa: E501 'created_at': 'created_at', # noqa: E501 @@ -254,6 +262,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ssl_client_key (str, none_type): Client key attached to origin.. [optional] # noqa: E501 ssl_hostname (str, none_type): Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation.. [optional] # noqa: E501 ssl_sni_hostname (str, none_type): Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all.. [optional] # noqa: E501 + tcp_keepalive_enable (bool): Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.. [optional] # noqa: E501 + tcp_keepalive_interval (int, none_type): Interval in seconds between subsequent keepalive probes.. [optional] # noqa: E501 + tcp_keepalive_probes (int, none_type): Number of unacknowledged probes to send before considering the connection dead.. [optional] # noqa: E501 + tcp_keepalive_time (int, none_type): Interval in seconds between the last data packet sent and the first keepalive probe.. [optional] # noqa: E501 use_ssl (bool): Whether or not to require TLS for connections to this backend.. [optional] # noqa: E501 weight (int): Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true.. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 @@ -390,6 +402,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 ssl_client_key (str, none_type): Client key attached to origin.. [optional] # noqa: E501 ssl_hostname (str, none_type): Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation.. [optional] # noqa: E501 ssl_sni_hostname (str, none_type): Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all.. [optional] # noqa: E501 + tcp_keepalive_enable (bool): Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.. [optional] # noqa: E501 + tcp_keepalive_interval (int, none_type): Interval in seconds between subsequent keepalive probes.. [optional] # noqa: E501 + tcp_keepalive_probes (int, none_type): Number of unacknowledged probes to send before considering the connection dead.. [optional] # noqa: E501 + tcp_keepalive_time (int, none_type): Interval in seconds between the last data packet sent and the first keepalive probe.. [optional] # noqa: E501 use_ssl (bool): Whether or not to require TLS for connections to this backend.. [optional] # noqa: E501 weight (int): Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true.. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 diff --git a/fastly/model/realtime_entry_aggregated.py b/fastly/model/realtime_entry_aggregated.py index 425eb19..22a249f 100644 --- a/fastly/model/realtime_entry_aggregated.py +++ b/fastly/model/realtime_entry_aggregated.py @@ -312,6 +312,27 @@ def openapi_types(): 'bot_challenges_succeeded': (int,), # noqa: E501 'bot_challenges_failed': (int,), # noqa: E501 'bot_challenge_complete_tokens_issued': (int,), # noqa: E501 + 'ddos_action_downgrade': (int,), # noqa: E501 + 'ddos_action_downgraded_connections': (int,), # noqa: E501 + 'vcl_on_compute_hit_requests': (int,), # noqa: E501 + 'vcl_on_compute_miss_requests': (int,), # noqa: E501 + 'vcl_on_compute_pass_requests': (int,), # noqa: E501 + 'vcl_on_compute_error_requests': (int,), # noqa: E501 + 'vcl_on_compute_synth_requests': (int,), # noqa: E501 + 'vcl_on_compute_edge_hit_requests': (int,), # noqa: E501 + 'vcl_on_compute_edge_miss_requests': (int,), # noqa: E501 + 'all_hit_requests': (int,), # noqa: E501 + 'all_miss_requests': (int,), # noqa: E501 + 'all_pass_requests': (int,), # noqa: E501 + 'all_error_requests': (int,), # noqa: E501 + 'all_synth_requests': (int,), # noqa: E501 + 'all_edge_hit_requests': (int,), # noqa: E501 + 'all_edge_miss_requests': (int,), # noqa: E501 + 'all_status_1xx': (int,), # noqa: E501 + 'all_status_2xx': (int,), # noqa: E501 + 'all_status_3xx': (int,), # noqa: E501 + 'all_status_4xx': (int,), # noqa: E501 + 'all_status_5xx': (int,), # noqa: E501 } @cached_property @@ -547,6 +568,27 @@ def discriminator(): 'bot_challenges_succeeded': 'bot_challenges_succeeded', # noqa: E501 'bot_challenges_failed': 'bot_challenges_failed', # noqa: E501 'bot_challenge_complete_tokens_issued': 'bot_challenge_complete_tokens_issued', # noqa: E501 + 'ddos_action_downgrade': 'ddos_action_downgrade', # noqa: E501 + 'ddos_action_downgraded_connections': 'ddos_action_downgraded_connections', # noqa: E501 + 'vcl_on_compute_hit_requests': 'vcl_on_compute_hit_requests', # noqa: E501 + 'vcl_on_compute_miss_requests': 'vcl_on_compute_miss_requests', # noqa: E501 + 'vcl_on_compute_pass_requests': 'vcl_on_compute_pass_requests', # noqa: E501 + 'vcl_on_compute_error_requests': 'vcl_on_compute_error_requests', # noqa: E501 + 'vcl_on_compute_synth_requests': 'vcl_on_compute_synth_requests', # noqa: E501 + 'vcl_on_compute_edge_hit_requests': 'vcl_on_compute_edge_hit_requests', # noqa: E501 + 'vcl_on_compute_edge_miss_requests': 'vcl_on_compute_edge_miss_requests', # noqa: E501 + 'all_hit_requests': 'all_hit_requests', # noqa: E501 + 'all_miss_requests': 'all_miss_requests', # noqa: E501 + 'all_pass_requests': 'all_pass_requests', # noqa: E501 + 'all_error_requests': 'all_error_requests', # noqa: E501 + 'all_synth_requests': 'all_synth_requests', # noqa: E501 + 'all_edge_hit_requests': 'all_edge_hit_requests', # noqa: E501 + 'all_edge_miss_requests': 'all_edge_miss_requests', # noqa: E501 + 'all_status_1xx': 'all_status_1xx', # noqa: E501 + 'all_status_2xx': 'all_status_2xx', # noqa: E501 + 'all_status_3xx': 'all_status_3xx', # noqa: E501 + 'all_status_4xx': 'all_status_4xx', # noqa: E501 + 'all_status_5xx': 'all_status_5xx', # noqa: E501 } read_only_vars = { @@ -602,7 +644,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 errors (int): Number of cache errors.. [optional] # noqa: E501 hits_time (float): Total amount of time spent processing cache hits (in seconds).. [optional] # noqa: E501 miss_time (float): Total amount of time spent processing cache misses (in seconds).. [optional] # noqa: E501 - miss_histogram ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): A histogram. Each key represents the upper bound of a span of 10 milliseconds and the values represent the number of requests to origin during that 10ms period. Any origin request that takes more than 60 seconds to return will be in the 60000 bucket.. [optional] # noqa: E501 + miss_histogram ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): A histogram. The value in each bucket is the number of requests to the origin whose responses arrived during the time period represented by the bucket. The key of each bucket represents the upper bound (in response time) of that bucket. The buckets vary in width and cover the time periods 0-10ms (in 1ms increments), 10-250ms (in 10ms increments), 250-1,000ms (in 50ms increments), 1,000-3,000ms (in 100ms increments), 3,000-10,000ms (in 500 ms increments), 10,000-20,000ms (in 1,000ms increments), 20,000-60,000ms (in 5,000ms increments), and 60,000ms through infinity (in a single bucket).. [optional] # noqa: E501 compute_requests (int): The total number of requests that were received for your service by Fastly.. [optional] # noqa: E501 compute_execution_time_ms (float): The amount of active CPU time used to process your requests (in milliseconds).. [optional] # noqa: E501 compute_ram_used (int): The amount of RAM used for your service by Fastly (in bytes).. [optional] # noqa: E501 @@ -815,6 +857,27 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 bot_challenges_succeeded (int): The number of successful challenge solutions processed. For example, a correct CAPTCHA solution.. [optional] # noqa: E501 bot_challenges_failed (int): The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution.. [optional] # noqa: E501 bot_challenge_complete_tokens_issued (int): The number of challenge-complete tokens issued. For example, issuing a challenge-complete token after a series of CAPTCHA challenges ending in success.. [optional] # noqa: E501 + ddos_action_downgrade (int): The number of times the downgrade action was taken. The downgrade action restricts the client to http1.. [optional] # noqa: E501 + ddos_action_downgraded_connections (int): The number of connections the downgrade action was applied to. The downgrade action restricts the connection to http1.. [optional] # noqa: E501 + vcl_on_compute_hit_requests (int): Number of cache hits for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_miss_requests (int): Number of cache misses for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_pass_requests (int): Number of requests that passed through the CDN without being cached for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_error_requests (int): Number of cache errors for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_synth_requests (int): Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_edge_hit_requests (int): Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_edge_miss_requests (int): Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service running on Compute.. [optional] # noqa: E501 + all_hit_requests (int): Number of cache hits for a VCL service.. [optional] # noqa: E501 + all_miss_requests (int): Number of cache misses for a VCL service.. [optional] # noqa: E501 + all_pass_requests (int): Number of requests that passed through the CDN without being cached for a VCL service.. [optional] # noqa: E501 + all_error_requests (int): Number of cache errors for a VCL service.. [optional] # noqa: E501 + all_synth_requests (int): Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service.. [optional] # noqa: E501 + all_edge_hit_requests (int): Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service.. [optional] # noqa: E501 + all_edge_miss_requests (int): Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service.. [optional] # noqa: E501 + all_status_1xx (int): Number of \"Informational\" category status codes delivered for all sources.. [optional] # noqa: E501 + all_status_2xx (int): Number of \"Success\" status codes delivered for all sources.. [optional] # noqa: E501 + all_status_3xx (int): Number of \"Redirection\" codes delivered for all sources.. [optional] # noqa: E501 + all_status_4xx (int): Number of \"Client Error\" codes delivered for all sources.. [optional] # noqa: E501 + all_status_5xx (int): Number of \"Server Error\" codes delivered for all sources.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -928,7 +991,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 errors (int): Number of cache errors.. [optional] # noqa: E501 hits_time (float): Total amount of time spent processing cache hits (in seconds).. [optional] # noqa: E501 miss_time (float): Total amount of time spent processing cache misses (in seconds).. [optional] # noqa: E501 - miss_histogram ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): A histogram. Each key represents the upper bound of a span of 10 milliseconds and the values represent the number of requests to origin during that 10ms period. Any origin request that takes more than 60 seconds to return will be in the 60000 bucket.. [optional] # noqa: E501 + miss_histogram ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): A histogram. The value in each bucket is the number of requests to the origin whose responses arrived during the time period represented by the bucket. The key of each bucket represents the upper bound (in response time) of that bucket. The buckets vary in width and cover the time periods 0-10ms (in 1ms increments), 10-250ms (in 10ms increments), 250-1,000ms (in 50ms increments), 1,000-3,000ms (in 100ms increments), 3,000-10,000ms (in 500 ms increments), 10,000-20,000ms (in 1,000ms increments), 20,000-60,000ms (in 5,000ms increments), and 60,000ms through infinity (in a single bucket).. [optional] # noqa: E501 compute_requests (int): The total number of requests that were received for your service by Fastly.. [optional] # noqa: E501 compute_execution_time_ms (float): The amount of active CPU time used to process your requests (in milliseconds).. [optional] # noqa: E501 compute_ram_used (int): The amount of RAM used for your service by Fastly (in bytes).. [optional] # noqa: E501 @@ -1141,6 +1204,27 @@ def __init__(self, *args, **kwargs): # noqa: E501 bot_challenges_succeeded (int): The number of successful challenge solutions processed. For example, a correct CAPTCHA solution.. [optional] # noqa: E501 bot_challenges_failed (int): The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution.. [optional] # noqa: E501 bot_challenge_complete_tokens_issued (int): The number of challenge-complete tokens issued. For example, issuing a challenge-complete token after a series of CAPTCHA challenges ending in success.. [optional] # noqa: E501 + ddos_action_downgrade (int): The number of times the downgrade action was taken. The downgrade action restricts the client to http1.. [optional] # noqa: E501 + ddos_action_downgraded_connections (int): The number of connections the downgrade action was applied to. The downgrade action restricts the connection to http1.. [optional] # noqa: E501 + vcl_on_compute_hit_requests (int): Number of cache hits for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_miss_requests (int): Number of cache misses for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_pass_requests (int): Number of requests that passed through the CDN without being cached for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_error_requests (int): Number of cache errors for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_synth_requests (int): Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_edge_hit_requests (int): Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_edge_miss_requests (int): Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service running on Compute.. [optional] # noqa: E501 + all_hit_requests (int): Number of cache hits for a VCL service.. [optional] # noqa: E501 + all_miss_requests (int): Number of cache misses for a VCL service.. [optional] # noqa: E501 + all_pass_requests (int): Number of requests that passed through the CDN without being cached for a VCL service.. [optional] # noqa: E501 + all_error_requests (int): Number of cache errors for a VCL service.. [optional] # noqa: E501 + all_synth_requests (int): Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service.. [optional] # noqa: E501 + all_edge_hit_requests (int): Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service.. [optional] # noqa: E501 + all_edge_miss_requests (int): Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service.. [optional] # noqa: E501 + all_status_1xx (int): Number of \"Informational\" category status codes delivered for all sources.. [optional] # noqa: E501 + all_status_2xx (int): Number of \"Success\" status codes delivered for all sources.. [optional] # noqa: E501 + all_status_3xx (int): Number of \"Redirection\" codes delivered for all sources.. [optional] # noqa: E501 + all_status_4xx (int): Number of \"Client Error\" codes delivered for all sources.. [optional] # noqa: E501 + all_status_5xx (int): Number of \"Server Error\" codes delivered for all sources.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/realtime_measurements.py b/fastly/model/realtime_measurements.py index ffbcd04..b747e90 100644 --- a/fastly/model/realtime_measurements.py +++ b/fastly/model/realtime_measurements.py @@ -306,6 +306,27 @@ def openapi_types(): 'bot_challenges_succeeded': (int,), # noqa: E501 'bot_challenges_failed': (int,), # noqa: E501 'bot_challenge_complete_tokens_issued': (int,), # noqa: E501 + 'ddos_action_downgrade': (int,), # noqa: E501 + 'ddos_action_downgraded_connections': (int,), # noqa: E501 + 'vcl_on_compute_hit_requests': (int,), # noqa: E501 + 'vcl_on_compute_miss_requests': (int,), # noqa: E501 + 'vcl_on_compute_pass_requests': (int,), # noqa: E501 + 'vcl_on_compute_error_requests': (int,), # noqa: E501 + 'vcl_on_compute_synth_requests': (int,), # noqa: E501 + 'vcl_on_compute_edge_hit_requests': (int,), # noqa: E501 + 'vcl_on_compute_edge_miss_requests': (int,), # noqa: E501 + 'all_hit_requests': (int,), # noqa: E501 + 'all_miss_requests': (int,), # noqa: E501 + 'all_pass_requests': (int,), # noqa: E501 + 'all_error_requests': (int,), # noqa: E501 + 'all_synth_requests': (int,), # noqa: E501 + 'all_edge_hit_requests': (int,), # noqa: E501 + 'all_edge_miss_requests': (int,), # noqa: E501 + 'all_status_1xx': (int,), # noqa: E501 + 'all_status_2xx': (int,), # noqa: E501 + 'all_status_3xx': (int,), # noqa: E501 + 'all_status_4xx': (int,), # noqa: E501 + 'all_status_5xx': (int,), # noqa: E501 } @cached_property @@ -541,6 +562,27 @@ def discriminator(): 'bot_challenges_succeeded': 'bot_challenges_succeeded', # noqa: E501 'bot_challenges_failed': 'bot_challenges_failed', # noqa: E501 'bot_challenge_complete_tokens_issued': 'bot_challenge_complete_tokens_issued', # noqa: E501 + 'ddos_action_downgrade': 'ddos_action_downgrade', # noqa: E501 + 'ddos_action_downgraded_connections': 'ddos_action_downgraded_connections', # noqa: E501 + 'vcl_on_compute_hit_requests': 'vcl_on_compute_hit_requests', # noqa: E501 + 'vcl_on_compute_miss_requests': 'vcl_on_compute_miss_requests', # noqa: E501 + 'vcl_on_compute_pass_requests': 'vcl_on_compute_pass_requests', # noqa: E501 + 'vcl_on_compute_error_requests': 'vcl_on_compute_error_requests', # noqa: E501 + 'vcl_on_compute_synth_requests': 'vcl_on_compute_synth_requests', # noqa: E501 + 'vcl_on_compute_edge_hit_requests': 'vcl_on_compute_edge_hit_requests', # noqa: E501 + 'vcl_on_compute_edge_miss_requests': 'vcl_on_compute_edge_miss_requests', # noqa: E501 + 'all_hit_requests': 'all_hit_requests', # noqa: E501 + 'all_miss_requests': 'all_miss_requests', # noqa: E501 + 'all_pass_requests': 'all_pass_requests', # noqa: E501 + 'all_error_requests': 'all_error_requests', # noqa: E501 + 'all_synth_requests': 'all_synth_requests', # noqa: E501 + 'all_edge_hit_requests': 'all_edge_hit_requests', # noqa: E501 + 'all_edge_miss_requests': 'all_edge_miss_requests', # noqa: E501 + 'all_status_1xx': 'all_status_1xx', # noqa: E501 + 'all_status_2xx': 'all_status_2xx', # noqa: E501 + 'all_status_3xx': 'all_status_3xx', # noqa: E501 + 'all_status_4xx': 'all_status_4xx', # noqa: E501 + 'all_status_5xx': 'all_status_5xx', # noqa: E501 } read_only_vars = { @@ -598,7 +640,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 errors (int): Number of cache errors.. [optional] # noqa: E501 hits_time (float): Total amount of time spent processing cache hits (in seconds).. [optional] # noqa: E501 miss_time (float): Total amount of time spent processing cache misses (in seconds).. [optional] # noqa: E501 - miss_histogram ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): A histogram. Each key represents the upper bound of a span of 10 milliseconds and the values represent the number of requests to origin during that 10ms period. Any origin request that takes more than 60 seconds to return will be in the 60000 bucket.. [optional] # noqa: E501 + miss_histogram ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): A histogram. The value in each bucket is the number of requests to the origin whose responses arrived during the time period represented by the bucket. The key of each bucket represents the upper bound (in response time) of that bucket. The buckets vary in width and cover the time periods 0-10ms (in 1ms increments), 10-250ms (in 10ms increments), 250-1,000ms (in 50ms increments), 1,000-3,000ms (in 100ms increments), 3,000-10,000ms (in 500 ms increments), 10,000-20,000ms (in 1,000ms increments), 20,000-60,000ms (in 5,000ms increments), and 60,000ms through infinity (in a single bucket).. [optional] # noqa: E501 compute_requests (int): The total number of requests that were received for your service by Fastly.. [optional] # noqa: E501 compute_execution_time_ms (float): The amount of active CPU time used to process your requests (in milliseconds).. [optional] # noqa: E501 compute_ram_used (int): The amount of RAM used for your service by Fastly (in bytes).. [optional] # noqa: E501 @@ -811,6 +853,27 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 bot_challenges_succeeded (int): The number of successful challenge solutions processed. For example, a correct CAPTCHA solution.. [optional] # noqa: E501 bot_challenges_failed (int): The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution.. [optional] # noqa: E501 bot_challenge_complete_tokens_issued (int): The number of challenge-complete tokens issued. For example, issuing a challenge-complete token after a series of CAPTCHA challenges ending in success.. [optional] # noqa: E501 + ddos_action_downgrade (int): The number of times the downgrade action was taken. The downgrade action restricts the client to http1.. [optional] # noqa: E501 + ddos_action_downgraded_connections (int): The number of connections the downgrade action was applied to. The downgrade action restricts the connection to http1.. [optional] # noqa: E501 + vcl_on_compute_hit_requests (int): Number of cache hits for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_miss_requests (int): Number of cache misses for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_pass_requests (int): Number of requests that passed through the CDN without being cached for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_error_requests (int): Number of cache errors for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_synth_requests (int): Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_edge_hit_requests (int): Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_edge_miss_requests (int): Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service running on Compute.. [optional] # noqa: E501 + all_hit_requests (int): Number of cache hits for a VCL service.. [optional] # noqa: E501 + all_miss_requests (int): Number of cache misses for a VCL service.. [optional] # noqa: E501 + all_pass_requests (int): Number of requests that passed through the CDN without being cached for a VCL service.. [optional] # noqa: E501 + all_error_requests (int): Number of cache errors for a VCL service.. [optional] # noqa: E501 + all_synth_requests (int): Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service.. [optional] # noqa: E501 + all_edge_hit_requests (int): Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service.. [optional] # noqa: E501 + all_edge_miss_requests (int): Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service.. [optional] # noqa: E501 + all_status_1xx (int): Number of \"Informational\" category status codes delivered for all sources.. [optional] # noqa: E501 + all_status_2xx (int): Number of \"Success\" status codes delivered for all sources.. [optional] # noqa: E501 + all_status_3xx (int): Number of \"Redirection\" codes delivered for all sources.. [optional] # noqa: E501 + all_status_4xx (int): Number of \"Client Error\" codes delivered for all sources.. [optional] # noqa: E501 + all_status_5xx (int): Number of \"Server Error\" codes delivered for all sources.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -906,7 +969,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 errors (int): Number of cache errors.. [optional] # noqa: E501 hits_time (float): Total amount of time spent processing cache hits (in seconds).. [optional] # noqa: E501 miss_time (float): Total amount of time spent processing cache misses (in seconds).. [optional] # noqa: E501 - miss_histogram ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): A histogram. Each key represents the upper bound of a span of 10 milliseconds and the values represent the number of requests to origin during that 10ms period. Any origin request that takes more than 60 seconds to return will be in the 60000 bucket.. [optional] # noqa: E501 + miss_histogram ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): A histogram. The value in each bucket is the number of requests to the origin whose responses arrived during the time period represented by the bucket. The key of each bucket represents the upper bound (in response time) of that bucket. The buckets vary in width and cover the time periods 0-10ms (in 1ms increments), 10-250ms (in 10ms increments), 250-1,000ms (in 50ms increments), 1,000-3,000ms (in 100ms increments), 3,000-10,000ms (in 500 ms increments), 10,000-20,000ms (in 1,000ms increments), 20,000-60,000ms (in 5,000ms increments), and 60,000ms through infinity (in a single bucket).. [optional] # noqa: E501 compute_requests (int): The total number of requests that were received for your service by Fastly.. [optional] # noqa: E501 compute_execution_time_ms (float): The amount of active CPU time used to process your requests (in milliseconds).. [optional] # noqa: E501 compute_ram_used (int): The amount of RAM used for your service by Fastly (in bytes).. [optional] # noqa: E501 @@ -1119,6 +1182,27 @@ def __init__(self, *args, **kwargs): # noqa: E501 bot_challenges_succeeded (int): The number of successful challenge solutions processed. For example, a correct CAPTCHA solution.. [optional] # noqa: E501 bot_challenges_failed (int): The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution.. [optional] # noqa: E501 bot_challenge_complete_tokens_issued (int): The number of challenge-complete tokens issued. For example, issuing a challenge-complete token after a series of CAPTCHA challenges ending in success.. [optional] # noqa: E501 + ddos_action_downgrade (int): The number of times the downgrade action was taken. The downgrade action restricts the client to http1.. [optional] # noqa: E501 + ddos_action_downgraded_connections (int): The number of connections the downgrade action was applied to. The downgrade action restricts the connection to http1.. [optional] # noqa: E501 + vcl_on_compute_hit_requests (int): Number of cache hits for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_miss_requests (int): Number of cache misses for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_pass_requests (int): Number of requests that passed through the CDN without being cached for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_error_requests (int): Number of cache errors for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_synth_requests (int): Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_edge_hit_requests (int): Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_edge_miss_requests (int): Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service running on Compute.. [optional] # noqa: E501 + all_hit_requests (int): Number of cache hits for a VCL service.. [optional] # noqa: E501 + all_miss_requests (int): Number of cache misses for a VCL service.. [optional] # noqa: E501 + all_pass_requests (int): Number of requests that passed through the CDN without being cached for a VCL service.. [optional] # noqa: E501 + all_error_requests (int): Number of cache errors for a VCL service.. [optional] # noqa: E501 + all_synth_requests (int): Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service.. [optional] # noqa: E501 + all_edge_hit_requests (int): Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service.. [optional] # noqa: E501 + all_edge_miss_requests (int): Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service.. [optional] # noqa: E501 + all_status_1xx (int): Number of \"Informational\" category status codes delivered for all sources.. [optional] # noqa: E501 + all_status_2xx (int): Number of \"Success\" status codes delivered for all sources.. [optional] # noqa: E501 + all_status_3xx (int): Number of \"Redirection\" codes delivered for all sources.. [optional] # noqa: E501 + all_status_4xx (int): Number of \"Client Error\" codes delivered for all sources.. [optional] # noqa: E501 + all_status_5xx (int): Number of \"Server Error\" codes delivered for all sources.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/relationship_customer_customer.py b/fastly/model/relationship_customer_customer.py index 716d641..cb01131 100644 --- a/fastly/model/relationship_customer_customer.py +++ b/fastly/model/relationship_customer_customer.py @@ -85,7 +85,7 @@ def openapi_types(): """ lazy_import() return { - 'data': ([RelationshipMemberCustomer],), # noqa: E501 + 'data': (RelationshipMemberCustomer,), # noqa: E501 } @cached_property @@ -138,7 +138,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data ([RelationshipMemberCustomer]): [optional] # noqa: E501 + data (RelationshipMemberCustomer): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -220,7 +220,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data ([RelationshipMemberCustomer]): [optional] # noqa: E501 + data (RelationshipMemberCustomer): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/request_settings_additional.py b/fastly/model/request_settings_additional.py index 00d3efc..e58745a 100644 --- a/fastly/model/request_settings_additional.py +++ b/fastly/model/request_settings_additional.py @@ -59,6 +59,7 @@ class RequestSettingsAdditional(ModelNormal): 'PASS': "pass", }, ('xff',): { + 'None': None, 'CLEAR': "clear", 'LEAVE': "leave", 'APPEND': "append", @@ -96,7 +97,7 @@ def openapi_types(): 'hash_keys': (str, none_type,), # noqa: E501 'name': (str,), # noqa: E501 'request_condition': (str, none_type,), # noqa: E501 - 'xff': (str,), # noqa: E501 + 'xff': (str, none_type,), # noqa: E501 } @cached_property @@ -159,7 +160,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 hash_keys (str, none_type): Comma separated list of varnish request object fields that should be in the hash key.. [optional] # noqa: E501 name (str): Name for the request settings.. [optional] # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 - xff (str): Short for X-Forwarded-For.. [optional] # noqa: E501 + xff (str, none_type): Short for X-Forwarded-For.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -246,7 +247,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 hash_keys (str, none_type): Comma separated list of varnish request object fields that should be in the hash key.. [optional] # noqa: E501 name (str): Name for the request settings.. [optional] # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 - xff (str): Short for X-Forwarded-For.. [optional] # noqa: E501 + xff (str, none_type): Short for X-Forwarded-For.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/request_settings_response.py b/fastly/model/request_settings_response.py index 6c4e18d..217dee2 100644 --- a/fastly/model/request_settings_response.py +++ b/fastly/model/request_settings_response.py @@ -69,6 +69,7 @@ class RequestSettingsResponse(ModelComposed): 'PASS': "pass", }, ('xff',): { + 'None': None, 'CLEAR': "clear", 'LEAVE': "leave", 'APPEND': "append", @@ -113,13 +114,13 @@ def openapi_types(): 'hash_keys': (str, none_type,), # noqa: E501 'name': (str,), # noqa: E501 'request_condition': (str, none_type,), # noqa: E501 - 'xff': (str,), # noqa: E501 - 'bypass_busy_wait': (str,), # noqa: E501 - 'force_miss': (str,), # noqa: E501 + 'xff': (str, none_type,), # noqa: E501 + 'bypass_busy_wait': (str, none_type,), # noqa: E501 + 'force_miss': (str, none_type,), # noqa: E501 'force_ssl': (str,), # noqa: E501 - 'geo_headers': (str,), # noqa: E501 - 'max_stale_age': (str,), # noqa: E501 - 'timer_support': (str,), # noqa: E501 + 'geo_headers': (str, none_type,), # noqa: E501 + 'max_stale_age': (str, none_type,), # noqa: E501 + 'timer_support': (str, none_type,), # noqa: E501 } @cached_property @@ -201,13 +202,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 hash_keys (str, none_type): Comma separated list of varnish request object fields that should be in the hash key.. [optional] # noqa: E501 name (str): Name for the request settings.. [optional] # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 - xff (str): Short for X-Forwarded-For.. [optional] # noqa: E501 - bypass_busy_wait (str): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 - force_miss (str): Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.. [optional] # noqa: E501 + xff (str, none_type): Short for X-Forwarded-For.. [optional] # noqa: E501 + bypass_busy_wait (str, none_type): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 + force_miss (str, none_type): Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.. [optional] # noqa: E501 force_ssl (str): Forces the request use SSL (redirects a non-SSL to SSL).. [optional] # noqa: E501 - geo_headers (str): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 - max_stale_age (str): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 - timer_support (str): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 + geo_headers (str, none_type): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 + max_stale_age (str, none_type): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 + timer_support (str, none_type): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -317,13 +318,13 @@ def __init__(self, *args, **kwargs): # noqa: E501 hash_keys (str, none_type): Comma separated list of varnish request object fields that should be in the hash key.. [optional] # noqa: E501 name (str): Name for the request settings.. [optional] # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 - xff (str): Short for X-Forwarded-For.. [optional] # noqa: E501 - bypass_busy_wait (str): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 - force_miss (str): Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.. [optional] # noqa: E501 + xff (str, none_type): Short for X-Forwarded-For.. [optional] # noqa: E501 + bypass_busy_wait (str, none_type): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 + force_miss (str, none_type): Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.. [optional] # noqa: E501 force_ssl (str): Forces the request use SSL (redirects a non-SSL to SSL).. [optional] # noqa: E501 - geo_headers (str): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 - max_stale_age (str): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 - timer_support (str): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 + geo_headers (str, none_type): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 + max_stale_age (str, none_type): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 + timer_support (str, none_type): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/request_settings_response_all_of.py b/fastly/model/request_settings_response_all_of.py index 08f1962..e72e96c 100644 --- a/fastly/model/request_settings_response_all_of.py +++ b/fastly/model/request_settings_response_all_of.py @@ -79,12 +79,12 @@ def openapi_types(): and the value is attribute type. """ return { - 'bypass_busy_wait': (str,), # noqa: E501 - 'force_miss': (str,), # noqa: E501 + 'bypass_busy_wait': (str, none_type,), # noqa: E501 + 'force_miss': (str, none_type,), # noqa: E501 'force_ssl': (str,), # noqa: E501 - 'geo_headers': (str,), # noqa: E501 - 'max_stale_age': (str,), # noqa: E501 - 'timer_support': (str,), # noqa: E501 + 'geo_headers': (str, none_type,), # noqa: E501 + 'max_stale_age': (str, none_type,), # noqa: E501 + 'timer_support': (str, none_type,), # noqa: E501 } @cached_property @@ -142,12 +142,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - bypass_busy_wait (str): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 - force_miss (str): Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.. [optional] # noqa: E501 + bypass_busy_wait (str, none_type): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 + force_miss (str, none_type): Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.. [optional] # noqa: E501 force_ssl (str): Forces the request use SSL (redirects a non-SSL to SSL).. [optional] # noqa: E501 - geo_headers (str): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 - max_stale_age (str): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 - timer_support (str): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 + geo_headers (str, none_type): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 + max_stale_age (str, none_type): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 + timer_support (str, none_type): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -229,12 +229,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - bypass_busy_wait (str): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 - force_miss (str): Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.. [optional] # noqa: E501 + bypass_busy_wait (str, none_type): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 + force_miss (str, none_type): Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.. [optional] # noqa: E501 force_ssl (str): Forces the request use SSL (redirects a non-SSL to SSL).. [optional] # noqa: E501 - geo_headers (str): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 - max_stale_age (str): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 - timer_support (str): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 + geo_headers (str, none_type): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 + max_stale_age (str, none_type): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 + timer_support (str, none_type): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/results.py b/fastly/model/results.py index 932d7de..4734e87 100644 --- a/fastly/model/results.py +++ b/fastly/model/results.py @@ -306,6 +306,27 @@ def openapi_types(): 'bot_challenges_issued': (int,), # noqa: E501 'bot_challenges_succeeded': (int,), # noqa: E501 'bot_challenges_failed': (int,), # noqa: E501 + 'ddos_action_downgrade': (int,), # noqa: E501 + 'ddos_action_downgraded_connections': (int,), # noqa: E501 + 'vcl_on_compute_hit_requests': (int,), # noqa: E501 + 'vcl_on_compute_miss_requests': (int,), # noqa: E501 + 'vcl_on_compute_pass_requests': (int,), # noqa: E501 + 'vcl_on_compute_error_requests': (int,), # noqa: E501 + 'vcl_on_compute_synth_requests': (int,), # noqa: E501 + 'vcl_on_compute_edge_hit_requests': (int,), # noqa: E501 + 'vcl_on_compute_edge_miss_requests': (int,), # noqa: E501 + 'all_hit_requests': (int,), # noqa: E501 + 'all_miss_requests': (int,), # noqa: E501 + 'all_pass_requests': (int,), # noqa: E501 + 'all_error_requests': (int,), # noqa: E501 + 'all_synth_requests': (int,), # noqa: E501 + 'all_edge_hit_requests': (int,), # noqa: E501 + 'all_edge_miss_requests': (int,), # noqa: E501 + 'all_status_1xx': (int,), # noqa: E501 + 'all_status_2xx': (int,), # noqa: E501 + 'all_status_3xx': (int,), # noqa: E501 + 'all_status_4xx': (int,), # noqa: E501 + 'all_status_5xx': (int,), # noqa: E501 'service_id': (str,), # noqa: E501 'start_time': (int,), # noqa: E501 } @@ -543,6 +564,27 @@ def discriminator(): 'bot_challenges_issued': 'bot_challenges_issued', # noqa: E501 'bot_challenges_succeeded': 'bot_challenges_succeeded', # noqa: E501 'bot_challenges_failed': 'bot_challenges_failed', # noqa: E501 + 'ddos_action_downgrade': 'ddos_action_downgrade', # noqa: E501 + 'ddos_action_downgraded_connections': 'ddos_action_downgraded_connections', # noqa: E501 + 'vcl_on_compute_hit_requests': 'vcl_on_compute_hit_requests', # noqa: E501 + 'vcl_on_compute_miss_requests': 'vcl_on_compute_miss_requests', # noqa: E501 + 'vcl_on_compute_pass_requests': 'vcl_on_compute_pass_requests', # noqa: E501 + 'vcl_on_compute_error_requests': 'vcl_on_compute_error_requests', # noqa: E501 + 'vcl_on_compute_synth_requests': 'vcl_on_compute_synth_requests', # noqa: E501 + 'vcl_on_compute_edge_hit_requests': 'vcl_on_compute_edge_hit_requests', # noqa: E501 + 'vcl_on_compute_edge_miss_requests': 'vcl_on_compute_edge_miss_requests', # noqa: E501 + 'all_hit_requests': 'all_hit_requests', # noqa: E501 + 'all_miss_requests': 'all_miss_requests', # noqa: E501 + 'all_pass_requests': 'all_pass_requests', # noqa: E501 + 'all_error_requests': 'all_error_requests', # noqa: E501 + 'all_synth_requests': 'all_synth_requests', # noqa: E501 + 'all_edge_hit_requests': 'all_edge_hit_requests', # noqa: E501 + 'all_edge_miss_requests': 'all_edge_miss_requests', # noqa: E501 + 'all_status_1xx': 'all_status_1xx', # noqa: E501 + 'all_status_2xx': 'all_status_2xx', # noqa: E501 + 'all_status_3xx': 'all_status_3xx', # noqa: E501 + 'all_status_4xx': 'all_status_4xx', # noqa: E501 + 'all_status_5xx': 'all_status_5xx', # noqa: E501 'service_id': 'service_id', # noqa: E501 'start_time': 'start_time', # noqa: E501 } @@ -816,6 +858,27 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 bot_challenges_issued (int): The number of challenges issued. For example, the issuance of a CAPTCHA challenge.. [optional] # noqa: E501 bot_challenges_succeeded (int): The number of successful challenge solutions processed. For example, a correct CAPTCHA solution.. [optional] # noqa: E501 bot_challenges_failed (int): The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution.. [optional] # noqa: E501 + ddos_action_downgrade (int): The number of times the downgrade action was taken. The downgrade action restricts the client to http1.. [optional] # noqa: E501 + ddos_action_downgraded_connections (int): The number of connections the downgrade action was applied to. The downgrade action restricts the connection to http1.. [optional] # noqa: E501 + vcl_on_compute_hit_requests (int): Number of cache hits for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_miss_requests (int): Number of cache misses for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_pass_requests (int): Number of requests that passed through the CDN without being cached for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_error_requests (int): Number of cache errors for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_synth_requests (int): Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_edge_hit_requests (int): Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_edge_miss_requests (int): Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service running on Compute.. [optional] # noqa: E501 + all_hit_requests (int): Number of cache hits for a VCL service.. [optional] # noqa: E501 + all_miss_requests (int): Number of cache misses for a VCL service.. [optional] # noqa: E501 + all_pass_requests (int): Number of requests that passed through the CDN without being cached for a VCL service.. [optional] # noqa: E501 + all_error_requests (int): Number of cache errors for a VCL service.. [optional] # noqa: E501 + all_synth_requests (int): Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service.. [optional] # noqa: E501 + all_edge_hit_requests (int): Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service.. [optional] # noqa: E501 + all_edge_miss_requests (int): Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service.. [optional] # noqa: E501 + all_status_1xx (int): Number of \"Informational\" category status codes delivered for all sources.. [optional] # noqa: E501 + all_status_2xx (int): Number of \"Success\" status codes delivered for all sources.. [optional] # noqa: E501 + all_status_3xx (int): Number of \"Redirection\" codes delivered for all sources.. [optional] # noqa: E501 + all_status_4xx (int): Number of \"Client Error\" codes delivered for all sources.. [optional] # noqa: E501 + all_status_5xx (int): Number of \"Server Error\" codes delivered for all sources.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 start_time (int): Timestamp for the start of the time period being reported. [optional] # noqa: E501 """ @@ -1126,6 +1189,27 @@ def __init__(self, *args, **kwargs): # noqa: E501 bot_challenges_issued (int): The number of challenges issued. For example, the issuance of a CAPTCHA challenge.. [optional] # noqa: E501 bot_challenges_succeeded (int): The number of successful challenge solutions processed. For example, a correct CAPTCHA solution.. [optional] # noqa: E501 bot_challenges_failed (int): The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution.. [optional] # noqa: E501 + ddos_action_downgrade (int): The number of times the downgrade action was taken. The downgrade action restricts the client to http1.. [optional] # noqa: E501 + ddos_action_downgraded_connections (int): The number of connections the downgrade action was applied to. The downgrade action restricts the connection to http1.. [optional] # noqa: E501 + vcl_on_compute_hit_requests (int): Number of cache hits for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_miss_requests (int): Number of cache misses for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_pass_requests (int): Number of requests that passed through the CDN without being cached for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_error_requests (int): Number of cache errors for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_synth_requests (int): Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_edge_hit_requests (int): Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service running on Compute.. [optional] # noqa: E501 + vcl_on_compute_edge_miss_requests (int): Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service running on Compute.. [optional] # noqa: E501 + all_hit_requests (int): Number of cache hits for a VCL service.. [optional] # noqa: E501 + all_miss_requests (int): Number of cache misses for a VCL service.. [optional] # noqa: E501 + all_pass_requests (int): Number of requests that passed through the CDN without being cached for a VCL service.. [optional] # noqa: E501 + all_error_requests (int): Number of cache errors for a VCL service.. [optional] # noqa: E501 + all_synth_requests (int): Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service.. [optional] # noqa: E501 + all_edge_hit_requests (int): Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service.. [optional] # noqa: E501 + all_edge_miss_requests (int): Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service.. [optional] # noqa: E501 + all_status_1xx (int): Number of \"Informational\" category status codes delivered for all sources.. [optional] # noqa: E501 + all_status_2xx (int): Number of \"Success\" status codes delivered for all sources.. [optional] # noqa: E501 + all_status_3xx (int): Number of \"Redirection\" codes delivered for all sources.. [optional] # noqa: E501 + all_status_4xx (int): Number of \"Client Error\" codes delivered for all sources.. [optional] # noqa: E501 + all_status_5xx (int): Number of \"Server Error\" codes delivered for all sources.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 start_time (int): Timestamp for the start of the time period being reported. [optional] # noqa: E501 """ diff --git a/fastly/model/tls_subscription_data_attributes.py b/fastly/model/tls_subscription_data_attributes.py index fdd3b4a..9cc670d 100644 --- a/fastly/model/tls_subscription_data_attributes.py +++ b/fastly/model/tls_subscription_data_attributes.py @@ -54,8 +54,8 @@ class TlsSubscriptionDataAttributes(ModelNormal): allowed_values = { ('certificate_authority',): { - 'LETS-ENCRYPT': "lets-encrypt", 'CERTAINLY': "certainly", + 'LETS-ENCRYPT': "lets-encrypt", 'GLOBALSIGN': "globalsign", }, } diff --git a/setup.py b/setup.py index 4ec16dd..6c4bdd2 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ from pathlib import Path NAME = "fastly" -VERSION = "5.1.0" +VERSION = "5.2.0" # To install the library, run the following # # python setup.py install diff --git a/sig.json b/sig.json index 3e89073..b5bd944 100644 --- a/sig.json +++ b/sig.json @@ -1 +1 @@ -{"G": "fba34a94", "D": "3069431b"} +{"G": "78194d35", "D": "aed6fda1"}