diff --git a/CHANGELOG.md b/CHANGELOG.md index 225b3b97..84e5baa1 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [v1.0.0-beta.31](https://github.com/fastly/fastly-go/releases/tag/release/v1.0.0-beta.31) (2024-07-01) + +**Bug fixes:** + +- fix(logging): For several endpoints, correct use_tls to be string + +**Enhancements:** + +- feat(content): `/content/edge_check` endpoint now returns informational values in `hash` when a timeout occurs or when + an object is too large. +- feat(logging-datalog): Added additional regions + ## [vv1.0.0-beta.30](https://github.com/fastly/fastly-go/releases/tag/release/vv1.0.0-beta.30) (2024-06-27) **Bug fixes:** diff --git a/README.md b/README.md index efae8967..1d8e4c09 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Add the following to your project's `go.mod`: ```go.mod require ( - github.com/fastly/fastly-go v1.0.0-beta.30 + github.com/fastly/fastly-go 1.0.0-beta.31 ) ``` diff --git a/docs/LoggingKafkaAPI.md b/docs/LoggingKafkaAPI.md index 6c028bde..146b7d51 100644 --- a/docs/LoggingKafkaAPI.md +++ b/docs/LoggingKafkaAPI.md @@ -52,7 +52,7 @@ func main() { authMethod := "authMethod_example" // string | SASL authentication method. (optional) user := "user_example" // string | SASL user. (optional) password := "password_example" // string | SASL password. (optional) - useTLS := openapiclient.logging_use_tls(0) // LoggingUseTLS | (optional) (default to 0) + useTLS := openapiclient.logging_use_tls_string("0") // LoggingUseTLSString | (optional) (default to "0") cfg := fastly.NewConfiguration() apiClient := fastly.NewAPIClient(cfg) @@ -83,7 +83,7 @@ Other parameters are passed through a pointer to a apiCreateLogKafkaRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **string** | The name for the real-time logging configuration. | **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | **responseCondition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [default to "%h %l %u %t \"%r\" %>s %b"] **formatVersion** | **int32** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [default to 2] **tlsCaCert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [default to "null"] **tlsClientCert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsClientKey** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsHostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [default to "null"] **topic** | **string** | The Kafka topic to send logs to. Required. | **brokers** | **string** | A comma-separated list of IP addresses or hostnames of Kafka brokers. Required. | **compressionCodec** | **string** | The codec used for compression of your logs. | **requiredAcks** | **int32** | The number of acknowledgements a leader must receive before a write is considered successful. | [default to 1] **requestMaxBytes** | **int32** | The maximum number of bytes sent in one request. Defaults `0` (no limit). | [default to 0] **parseLogKeyvals** | **bool** | Enables parsing of key=value tuples from the beginning of a logline, turning them into [record headers](https://cwiki.apache.org/confluence/display/KAFKA/KIP-82+-+Add+Record+Headers). | **authMethod** | **string** | SASL authentication method. | **user** | **string** | SASL user. | **password** | **string** | SASL password. | **useTLS** | [**LoggingUseTLS**](LoggingUseTLS.md) | | [default to 0] + **name** | **string** | The name for the real-time logging configuration. | **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | **responseCondition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [default to "%h %l %u %t \"%r\" %>s %b"] **formatVersion** | **int32** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [default to 2] **tlsCaCert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [default to "null"] **tlsClientCert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsClientKey** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsHostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [default to "null"] **topic** | **string** | The Kafka topic to send logs to. Required. | **brokers** | **string** | A comma-separated list of IP addresses or hostnames of Kafka brokers. Required. | **compressionCodec** | **string** | The codec used for compression of your logs. | **requiredAcks** | **int32** | The number of acknowledgements a leader must receive before a write is considered successful. | [default to 1] **requestMaxBytes** | **int32** | The maximum number of bytes sent in one request. Defaults `0` (no limit). | [default to 0] **parseLogKeyvals** | **bool** | Enables parsing of key=value tuples from the beginning of a logline, turning them into [record headers](https://cwiki.apache.org/confluence/display/KAFKA/KIP-82+-+Add+Record+Headers). | **authMethod** | **string** | SASL authentication method. | **user** | **string** | SASL user. | **password** | **string** | SASL password. | **useTLS** | [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [default to "0"] ### Return type diff --git a/docs/LoggingKafkaAdditional.md b/docs/LoggingKafkaAdditional.md index fb2db510..f715879a 100644 --- a/docs/LoggingKafkaAdditional.md +++ b/docs/LoggingKafkaAdditional.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **AuthMethod** | Pointer to **string** | SASL authentication method. | [optional] **User** | Pointer to **string** | SASL user. | [optional] **Password** | Pointer to **string** | SASL password. | [optional] -**UseTLS** | Pointer to [**LoggingUseTLS**](LoggingUseTLS.md) | | [optional] [default to LOGGINGUSETLS_no_tls] +**UseTLS** | Pointer to [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [optional] [default to LOGGINGUSETLSSTRING_no_tls] ## Methods @@ -271,20 +271,20 @@ HasPassword returns a boolean if a field has been set. ### GetUseTLS -`func (o *LoggingKafkaAdditional) GetUseTLS() LoggingUseTLS` +`func (o *LoggingKafkaAdditional) GetUseTLS() LoggingUseTLSString` GetUseTLS returns the UseTLS field if non-nil, zero value otherwise. ### GetUseTLSOk -`func (o *LoggingKafkaAdditional) GetUseTLSOk() (*LoggingUseTLS, bool)` +`func (o *LoggingKafkaAdditional) GetUseTLSOk() (*LoggingUseTLSString, bool)` GetUseTLSOk returns a tuple with the UseTLS field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUseTLS -`func (o *LoggingKafkaAdditional) SetUseTLS(v LoggingUseTLS)` +`func (o *LoggingKafkaAdditional) SetUseTLS(v LoggingUseTLSString)` SetUseTLS sets UseTLS field to given value. diff --git a/docs/LoggingKafkaResponse.md b/docs/LoggingKafkaResponse.md index 3e71abfc..f95049f2 100644 --- a/docs/LoggingKafkaResponse.md +++ b/docs/LoggingKafkaResponse.md @@ -27,7 +27,7 @@ Name | Type | Description | Notes **AuthMethod** | Pointer to **string** | SASL authentication method. | [optional] **User** | Pointer to **string** | SASL user. | [optional] **Password** | Pointer to **string** | SASL password. | [optional] -**UseTLS** | Pointer to [**LoggingUseTLS**](LoggingUseTLS.md) | | [optional] [default to LOGGINGUSETLS_no_tls] +**UseTLS** | Pointer to [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [optional] [default to LOGGINGUSETLSSTRING_no_tls] ## Methods @@ -725,20 +725,20 @@ HasPassword returns a boolean if a field has been set. ### GetUseTLS -`func (o *LoggingKafkaResponse) GetUseTLS() LoggingUseTLS` +`func (o *LoggingKafkaResponse) GetUseTLS() LoggingUseTLSString` GetUseTLS returns the UseTLS field if non-nil, zero value otherwise. ### GetUseTLSOk -`func (o *LoggingKafkaResponse) GetUseTLSOk() (*LoggingUseTLS, bool)` +`func (o *LoggingKafkaResponse) GetUseTLSOk() (*LoggingUseTLSString, bool)` GetUseTLSOk returns a tuple with the UseTLS field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUseTLS -`func (o *LoggingKafkaResponse) SetUseTLS(v LoggingUseTLS)` +`func (o *LoggingKafkaResponse) SetUseTLS(v LoggingUseTLSString)` SetUseTLS sets UseTLS field to given value. diff --git a/docs/LoggingKafkaResponsePost.md b/docs/LoggingKafkaResponsePost.md index 2a9ba5f5..12cfc495 100644 --- a/docs/LoggingKafkaResponsePost.md +++ b/docs/LoggingKafkaResponsePost.md @@ -27,7 +27,7 @@ Name | Type | Description | Notes **AuthMethod** | Pointer to **string** | SASL authentication method. | [optional] **User** | Pointer to **string** | SASL user. | [optional] **Password** | Pointer to **string** | SASL password. | [optional] -**UseTLS** | Pointer to [**LoggingUseTLS**](LoggingUseTLS.md) | | [optional] [default to LOGGINGUSETLS_no_tls] +**UseTLS** | Pointer to [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [optional] [default to LOGGINGUSETLSSTRING_no_tls] ## Methods @@ -725,20 +725,20 @@ HasPassword returns a boolean if a field has been set. ### GetUseTLS -`func (o *LoggingKafkaResponsePost) GetUseTLS() LoggingUseTLS` +`func (o *LoggingKafkaResponsePost) GetUseTLS() LoggingUseTLSString` GetUseTLS returns the UseTLS field if non-nil, zero value otherwise. ### GetUseTLSOk -`func (o *LoggingKafkaResponsePost) GetUseTLSOk() (*LoggingUseTLS, bool)` +`func (o *LoggingKafkaResponsePost) GetUseTLSOk() (*LoggingUseTLSString, bool)` GetUseTLSOk returns a tuple with the UseTLS field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUseTLS -`func (o *LoggingKafkaResponsePost) SetUseTLS(v LoggingUseTLS)` +`func (o *LoggingKafkaResponsePost) SetUseTLS(v LoggingUseTLSString)` SetUseTLS sets UseTLS field to given value. diff --git a/docs/LoggingLogentriesAPI.md b/docs/LoggingLogentriesAPI.md index 53323e9b..332d20e5 100644 --- a/docs/LoggingLogentriesAPI.md +++ b/docs/LoggingLogentriesAPI.md @@ -41,7 +41,7 @@ func main() { formatVersion := int32(56) // int32 | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional) (default to 2) port := int32(56) // int32 | The port number. (optional) (default to 20000) token := "token_example" // string | Use token based authentication. (optional) - useTLS := openapiclient.logging_use_tls(0) // LoggingUseTLS | (optional) (default to LOGGINGUSETLS_no_tls) + useTLS := openapiclient.logging_use_tls_string("0") // LoggingUseTLSString | (optional) (default to LOGGINGUSETLSSTRING_no_tls) region := "region_example" // string | The region to which to stream logs. (optional) cfg := fastly.NewConfiguration() @@ -73,7 +73,7 @@ Other parameters are passed through a pointer to a apiCreateLogLogentriesRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **string** | The name for the real-time logging configuration. | **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | **responseCondition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [default to "%h %l %u %t \"%r\" %>s %b"] **formatVersion** | **int32** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [default to 2] **port** | **int32** | The port number. | [default to 20000] **token** | **string** | Use token based authentication. | **useTLS** | [**LoggingUseTLS**](LoggingUseTLS.md) | | [default to LOGGINGUSETLS_no_tls] **region** | **string** | The region to which to stream logs. | + **name** | **string** | The name for the real-time logging configuration. | **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | **responseCondition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [default to "%h %l %u %t \"%r\" %>s %b"] **formatVersion** | **int32** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [default to 2] **port** | **int32** | The port number. | [default to 20000] **token** | **string** | Use token based authentication. | **useTLS** | [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [default to LOGGINGUSETLSSTRING_no_tls] **region** | **string** | The region to which to stream logs. | ### Return type @@ -331,7 +331,7 @@ func main() { formatVersion := int32(56) // int32 | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional) (default to 2) port := int32(56) // int32 | The port number. (optional) (default to 20000) token := "token_example" // string | Use token based authentication. (optional) - useTLS := openapiclient.logging_use_tls(0) // LoggingUseTLS | (optional) (default to LOGGINGUSETLS_no_tls) + useTLS := openapiclient.logging_use_tls_string("0") // LoggingUseTLSString | (optional) (default to LOGGINGUSETLSSTRING_no_tls) region := "region_example" // string | The region to which to stream logs. (optional) cfg := fastly.NewConfiguration() @@ -364,7 +364,7 @@ Other parameters are passed through a pointer to a apiUpdateLogLogentriesRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **string** | The name for the real-time logging configuration. | **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | **responseCondition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [default to "%h %l %u %t \"%r\" %>s %b"] **formatVersion** | **int32** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [default to 2] **port** | **int32** | The port number. | [default to 20000] **token** | **string** | Use token based authentication. | **useTLS** | [**LoggingUseTLS**](LoggingUseTLS.md) | | [default to LOGGINGUSETLS_no_tls] **region** | **string** | The region to which to stream logs. | + **name** | **string** | The name for the real-time logging configuration. | **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | **responseCondition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [default to "%h %l %u %t \"%r\" %>s %b"] **formatVersion** | **int32** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [default to 2] **port** | **int32** | The port number. | [default to 20000] **token** | **string** | Use token based authentication. | **useTLS** | [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [default to LOGGINGUSETLSSTRING_no_tls] **region** | **string** | The region to which to stream logs. | ### Return type diff --git a/docs/LoggingLogentriesAdditional.md b/docs/LoggingLogentriesAdditional.md index 10934cb9..098c80ef 100644 --- a/docs/LoggingLogentriesAdditional.md +++ b/docs/LoggingLogentriesAdditional.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Port** | Pointer to **int32** | The port number. | [optional] [default to 20000] **Token** | Pointer to **string** | Use token based authentication. | [optional] -**UseTLS** | Pointer to [**LoggingUseTLS**](LoggingUseTLS.md) | | [optional] [default to LOGGINGUSETLS_no_tls] +**UseTLS** | Pointer to [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [optional] [default to LOGGINGUSETLSSTRING_no_tls] **Region** | Pointer to **string** | The region to which to stream logs. | [optional] ## Methods @@ -80,20 +80,20 @@ HasToken returns a boolean if a field has been set. ### GetUseTLS -`func (o *LoggingLogentriesAdditional) GetUseTLS() LoggingUseTLS` +`func (o *LoggingLogentriesAdditional) GetUseTLS() LoggingUseTLSString` GetUseTLS returns the UseTLS field if non-nil, zero value otherwise. ### GetUseTLSOk -`func (o *LoggingLogentriesAdditional) GetUseTLSOk() (*LoggingUseTLS, bool)` +`func (o *LoggingLogentriesAdditional) GetUseTLSOk() (*LoggingUseTLSString, bool)` GetUseTLSOk returns a tuple with the UseTLS field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUseTLS -`func (o *LoggingLogentriesAdditional) SetUseTLS(v LoggingUseTLS)` +`func (o *LoggingLogentriesAdditional) SetUseTLS(v LoggingUseTLSString)` SetUseTLS sets UseTLS field to given value. diff --git a/docs/LoggingLogentriesResponse.md b/docs/LoggingLogentriesResponse.md index 013bfcb5..7b556042 100644 --- a/docs/LoggingLogentriesResponse.md +++ b/docs/LoggingLogentriesResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **FormatVersion** | Pointer to **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [default to "2"] **Port** | Pointer to **int32** | The port number. | [optional] [default to 20000] **Token** | Pointer to **string** | Use token based authentication. | [optional] -**UseTLS** | Pointer to [**LoggingUseTLS**](LoggingUseTLS.md) | | [optional] [default to LOGGINGUSETLS_no_tls] +**UseTLS** | Pointer to [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [optional] [default to LOGGINGUSETLSSTRING_no_tls] **Region** | Pointer to **string** | The region to which to stream logs. | [optional] **CreatedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] **DeletedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] @@ -235,20 +235,20 @@ HasToken returns a boolean if a field has been set. ### GetUseTLS -`func (o *LoggingLogentriesResponse) GetUseTLS() LoggingUseTLS` +`func (o *LoggingLogentriesResponse) GetUseTLS() LoggingUseTLSString` GetUseTLS returns the UseTLS field if non-nil, zero value otherwise. ### GetUseTLSOk -`func (o *LoggingLogentriesResponse) GetUseTLSOk() (*LoggingUseTLS, bool)` +`func (o *LoggingLogentriesResponse) GetUseTLSOk() (*LoggingUseTLSString, bool)` GetUseTLSOk returns a tuple with the UseTLS field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUseTLS -`func (o *LoggingLogentriesResponse) SetUseTLS(v LoggingUseTLS)` +`func (o *LoggingLogentriesResponse) SetUseTLS(v LoggingUseTLSString)` SetUseTLS sets UseTLS field to given value. diff --git a/docs/LoggingSplunkAPI.md b/docs/LoggingSplunkAPI.md index 2d94de35..a54b9d29 100644 --- a/docs/LoggingSplunkAPI.md +++ b/docs/LoggingSplunkAPI.md @@ -47,7 +47,7 @@ func main() { requestMaxBytes := int32(56) // int32 | The maximum number of bytes sent in one request. Defaults `0` for unbounded. (optional) (default to 0) url := "url_example" // string | The URL to post logs to. (optional) token := "token_example" // string | A Splunk token for use in posting logs over HTTP to your collector. (optional) - useTLS := openapiclient.logging_use_tls(0) // LoggingUseTLS | (optional) (default to LOGGINGUSETLS_no_tls) + useTLS := openapiclient.logging_use_tls_string("0") // LoggingUseTLSString | (optional) (default to LOGGINGUSETLSSTRING_no_tls) cfg := fastly.NewConfiguration() apiClient := fastly.NewAPIClient(cfg) @@ -78,7 +78,7 @@ Other parameters are passed through a pointer to a apiCreateLogSplunkRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **string** | The name for the real-time logging configuration. | **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | **responseCondition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [default to "%h %l %u %t \"%r\" %>s %b"] **formatVersion** | **int32** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [default to 2] **tlsCaCert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [default to "null"] **tlsClientCert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsClientKey** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsHostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [default to "null"] **requestMaxEntries** | **int32** | The maximum number of logs sent in one request. Defaults `0` for unbounded. | [default to 0] **requestMaxBytes** | **int32** | The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [default to 0] **url** | **string** | The URL to post logs to. | **token** | **string** | A Splunk token for use in posting logs over HTTP to your collector. | **useTLS** | [**LoggingUseTLS**](LoggingUseTLS.md) | | [default to LOGGINGUSETLS_no_tls] + **name** | **string** | The name for the real-time logging configuration. | **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | **responseCondition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [default to "%h %l %u %t \"%r\" %>s %b"] **formatVersion** | **int32** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [default to 2] **tlsCaCert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [default to "null"] **tlsClientCert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsClientKey** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsHostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [default to "null"] **requestMaxEntries** | **int32** | The maximum number of logs sent in one request. Defaults `0` for unbounded. | [default to 0] **requestMaxBytes** | **int32** | The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [default to 0] **url** | **string** | The URL to post logs to. | **token** | **string** | A Splunk token for use in posting logs over HTTP to your collector. | **useTLS** | [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [default to LOGGINGUSETLSSTRING_no_tls] ### Return type @@ -342,7 +342,7 @@ func main() { requestMaxBytes := int32(56) // int32 | The maximum number of bytes sent in one request. Defaults `0` for unbounded. (optional) (default to 0) url := "url_example" // string | The URL to post logs to. (optional) token := "token_example" // string | A Splunk token for use in posting logs over HTTP to your collector. (optional) - useTLS := openapiclient.logging_use_tls(0) // LoggingUseTLS | (optional) (default to LOGGINGUSETLS_no_tls) + useTLS := openapiclient.logging_use_tls_string("0") // LoggingUseTLSString | (optional) (default to LOGGINGUSETLSSTRING_no_tls) cfg := fastly.NewConfiguration() apiClient := fastly.NewAPIClient(cfg) @@ -374,7 +374,7 @@ Other parameters are passed through a pointer to a apiUpdateLogSplunkRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **string** | The name for the real-time logging configuration. | **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | **responseCondition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [default to "%h %l %u %t \"%r\" %>s %b"] **formatVersion** | **int32** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [default to 2] **tlsCaCert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [default to "null"] **tlsClientCert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsClientKey** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsHostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [default to "null"] **requestMaxEntries** | **int32** | The maximum number of logs sent in one request. Defaults `0` for unbounded. | [default to 0] **requestMaxBytes** | **int32** | The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [default to 0] **url** | **string** | The URL to post logs to. | **token** | **string** | A Splunk token for use in posting logs over HTTP to your collector. | **useTLS** | [**LoggingUseTLS**](LoggingUseTLS.md) | | [default to LOGGINGUSETLS_no_tls] + **name** | **string** | The name for the real-time logging configuration. | **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | **responseCondition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [default to "%h %l %u %t \"%r\" %>s %b"] **formatVersion** | **int32** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [default to 2] **tlsCaCert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [default to "null"] **tlsClientCert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsClientKey** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsHostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [default to "null"] **requestMaxEntries** | **int32** | The maximum number of logs sent in one request. Defaults `0` for unbounded. | [default to 0] **requestMaxBytes** | **int32** | The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [default to 0] **url** | **string** | The URL to post logs to. | **token** | **string** | A Splunk token for use in posting logs over HTTP to your collector. | **useTLS** | [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [default to LOGGINGUSETLSSTRING_no_tls] ### Return type diff --git a/docs/LoggingSplunkAdditional.md b/docs/LoggingSplunkAdditional.md index 86c72ff0..4de86a49 100644 --- a/docs/LoggingSplunkAdditional.md +++ b/docs/LoggingSplunkAdditional.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **URL** | Pointer to **string** | The URL to post logs to. | [optional] **Token** | Pointer to **string** | A Splunk token for use in posting logs over HTTP to your collector. | [optional] -**UseTLS** | Pointer to [**LoggingUseTLS**](LoggingUseTLS.md) | | [optional] [default to LOGGINGUSETLS_no_tls] +**UseTLS** | Pointer to [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [optional] [default to LOGGINGUSETLSSTRING_no_tls] ## Methods @@ -79,20 +79,20 @@ HasToken returns a boolean if a field has been set. ### GetUseTLS -`func (o *LoggingSplunkAdditional) GetUseTLS() LoggingUseTLS` +`func (o *LoggingSplunkAdditional) GetUseTLS() LoggingUseTLSString` GetUseTLS returns the UseTLS field if non-nil, zero value otherwise. ### GetUseTLSOk -`func (o *LoggingSplunkAdditional) GetUseTLSOk() (*LoggingUseTLS, bool)` +`func (o *LoggingSplunkAdditional) GetUseTLSOk() (*LoggingUseTLSString, bool)` GetUseTLSOk returns a tuple with the UseTLS field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUseTLS -`func (o *LoggingSplunkAdditional) SetUseTLS(v LoggingUseTLS)` +`func (o *LoggingSplunkAdditional) SetUseTLS(v LoggingUseTLSString)` SetUseTLS sets UseTLS field to given value. diff --git a/docs/LoggingSplunkResponse.md b/docs/LoggingSplunkResponse.md index be6a8498..711b402a 100644 --- a/docs/LoggingSplunkResponse.md +++ b/docs/LoggingSplunkResponse.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **RequestMaxBytes** | Pointer to **int32** | The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [optional] [default to 0] **URL** | Pointer to **string** | The URL to post logs to. | [optional] **Token** | Pointer to **string** | A Splunk token for use in posting logs over HTTP to your collector. | [optional] -**UseTLS** | Pointer to [**LoggingUseTLS**](LoggingUseTLS.md) | | [optional] [default to LOGGINGUSETLS_no_tls] +**UseTLS** | Pointer to [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [optional] [default to LOGGINGUSETLSSTRING_no_tls] **CreatedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] **DeletedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] **UpdatedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] @@ -430,20 +430,20 @@ HasToken returns a boolean if a field has been set. ### GetUseTLS -`func (o *LoggingSplunkResponse) GetUseTLS() LoggingUseTLS` +`func (o *LoggingSplunkResponse) GetUseTLS() LoggingUseTLSString` GetUseTLS returns the UseTLS field if non-nil, zero value otherwise. ### GetUseTLSOk -`func (o *LoggingSplunkResponse) GetUseTLSOk() (*LoggingUseTLS, bool)` +`func (o *LoggingSplunkResponse) GetUseTLSOk() (*LoggingUseTLSString, bool)` GetUseTLSOk returns a tuple with the UseTLS field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUseTLS -`func (o *LoggingSplunkResponse) SetUseTLS(v LoggingUseTLS)` +`func (o *LoggingSplunkResponse) SetUseTLS(v LoggingUseTLSString)` SetUseTLS sets UseTLS field to given value. diff --git a/docs/LoggingSyslogAPI.md b/docs/LoggingSyslogAPI.md index 57b52e64..926f19f2 100644 --- a/docs/LoggingSyslogAPI.md +++ b/docs/LoggingSyslogAPI.md @@ -49,7 +49,7 @@ func main() { hostname := "hostname_example" // string | The hostname used for the syslog endpoint. (optional) ipv4 := "ipv4_example" // string | The IPv4 address used for the syslog endpoint. (optional) token := "token_example" // string | Whether to prepend each message with a specific token. (optional) (default to "null") - useTLS := openapiclient.logging_use_tls(0) // LoggingUseTLS | (optional) (default to LOGGINGUSETLS_no_tls) + useTLS := openapiclient.logging_use_tls_string("0") // LoggingUseTLSString | (optional) (default to LOGGINGUSETLSSTRING_no_tls) cfg := fastly.NewConfiguration() apiClient := fastly.NewAPIClient(cfg) @@ -80,7 +80,7 @@ Other parameters are passed through a pointer to a apiCreateLogSyslogRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **string** | The name for the real-time logging configuration. | **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | **responseCondition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [default to "%h %l %u %t \"%r\" %>s %b"] **formatVersion** | **int32** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [default to 2] **tlsCaCert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [default to "null"] **tlsClientCert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsClientKey** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsHostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [default to "null"] **address** | **string** | A hostname or IPv4 address. | **port** | **int32** | The port number. | [default to 514] **messageType** | [**LoggingMessageType**](LoggingMessageType.md) | | [default to LOGGINGMESSAGETYPE_CLASSIC] **hostname** | **string** | The hostname used for the syslog endpoint. | **ipv4** | **string** | The IPv4 address used for the syslog endpoint. | **token** | **string** | Whether to prepend each message with a specific token. | [default to "null"] **useTLS** | [**LoggingUseTLS**](LoggingUseTLS.md) | | [default to LOGGINGUSETLS_no_tls] + **name** | **string** | The name for the real-time logging configuration. | **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | **responseCondition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [default to "%h %l %u %t \"%r\" %>s %b"] **formatVersion** | **int32** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [default to 2] **tlsCaCert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [default to "null"] **tlsClientCert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsClientKey** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsHostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [default to "null"] **address** | **string** | A hostname or IPv4 address. | **port** | **int32** | The port number. | [default to 514] **messageType** | [**LoggingMessageType**](LoggingMessageType.md) | | [default to LOGGINGMESSAGETYPE_CLASSIC] **hostname** | **string** | The hostname used for the syslog endpoint. | **ipv4** | **string** | The IPv4 address used for the syslog endpoint. | **token** | **string** | Whether to prepend each message with a specific token. | [default to "null"] **useTLS** | [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [default to LOGGINGUSETLSSTRING_no_tls] ### Return type @@ -346,7 +346,7 @@ func main() { hostname := "hostname_example" // string | The hostname used for the syslog endpoint. (optional) ipv4 := "ipv4_example" // string | The IPv4 address used for the syslog endpoint. (optional) token := "token_example" // string | Whether to prepend each message with a specific token. (optional) (default to "null") - useTLS := openapiclient.logging_use_tls(0) // LoggingUseTLS | (optional) (default to LOGGINGUSETLS_no_tls) + useTLS := openapiclient.logging_use_tls_string("0") // LoggingUseTLSString | (optional) (default to LOGGINGUSETLSSTRING_no_tls) cfg := fastly.NewConfiguration() apiClient := fastly.NewAPIClient(cfg) @@ -378,7 +378,7 @@ Other parameters are passed through a pointer to a apiUpdateLogSyslogRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **string** | The name for the real-time logging configuration. | **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | **responseCondition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [default to "%h %l %u %t \"%r\" %>s %b"] **formatVersion** | **int32** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [default to 2] **tlsCaCert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [default to "null"] **tlsClientCert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsClientKey** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsHostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [default to "null"] **address** | **string** | A hostname or IPv4 address. | **port** | **int32** | The port number. | [default to 514] **messageType** | [**LoggingMessageType**](LoggingMessageType.md) | | [default to LOGGINGMESSAGETYPE_CLASSIC] **hostname** | **string** | The hostname used for the syslog endpoint. | **ipv4** | **string** | The IPv4 address used for the syslog endpoint. | **token** | **string** | Whether to prepend each message with a specific token. | [default to "null"] **useTLS** | [**LoggingUseTLS**](LoggingUseTLS.md) | | [default to LOGGINGUSETLS_no_tls] + **name** | **string** | The name for the real-time logging configuration. | **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | **responseCondition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [default to "%h %l %u %t \"%r\" %>s %b"] **formatVersion** | **int32** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [default to 2] **tlsCaCert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [default to "null"] **tlsClientCert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsClientKey** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [default to "null"] **tlsHostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [default to "null"] **address** | **string** | A hostname or IPv4 address. | **port** | **int32** | The port number. | [default to 514] **messageType** | [**LoggingMessageType**](LoggingMessageType.md) | | [default to LOGGINGMESSAGETYPE_CLASSIC] **hostname** | **string** | The hostname used for the syslog endpoint. | **ipv4** | **string** | The IPv4 address used for the syslog endpoint. | **token** | **string** | Whether to prepend each message with a specific token. | [default to "null"] **useTLS** | [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [default to LOGGINGUSETLSSTRING_no_tls] ### Return type diff --git a/docs/LoggingSyslogAdditional.md b/docs/LoggingSyslogAdditional.md index 920a85cd..480ef234 100644 --- a/docs/LoggingSyslogAdditional.md +++ b/docs/LoggingSyslogAdditional.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Hostname** | Pointer to **string** | The hostname used for the syslog endpoint. | [optional] **Ipv4** | Pointer to **NullableString** | The IPv4 address used for the syslog endpoint. | [optional] **Token** | Pointer to **NullableString** | Whether to prepend each message with a specific token. | [optional] [default to "null"] -**UseTLS** | Pointer to [**LoggingUseTLS**](LoggingUseTLS.md) | | [optional] [default to LOGGINGUSETLS_no_tls] +**UseTLS** | Pointer to [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [optional] [default to LOGGINGUSETLSSTRING_no_tls] ## Methods @@ -151,20 +151,20 @@ HasToken returns a boolean if a field has been set. UnsetToken ensures that no value is present for Token, not even an explicit nil ### GetUseTLS -`func (o *LoggingSyslogAdditional) GetUseTLS() LoggingUseTLS` +`func (o *LoggingSyslogAdditional) GetUseTLS() LoggingUseTLSString` GetUseTLS returns the UseTLS field if non-nil, zero value otherwise. ### GetUseTLSOk -`func (o *LoggingSyslogAdditional) GetUseTLSOk() (*LoggingUseTLS, bool)` +`func (o *LoggingSyslogAdditional) GetUseTLSOk() (*LoggingUseTLSString, bool)` GetUseTLSOk returns a tuple with the UseTLS field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUseTLS -`func (o *LoggingSyslogAdditional) SetUseTLS(v LoggingUseTLS)` +`func (o *LoggingSyslogAdditional) SetUseTLS(v LoggingUseTLSString)` SetUseTLS sets UseTLS field to given value. diff --git a/docs/LoggingSyslogResponse.md b/docs/LoggingSyslogResponse.md index a7598e52..bb0c168e 100644 --- a/docs/LoggingSyslogResponse.md +++ b/docs/LoggingSyslogResponse.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **Hostname** | Pointer to **string** | The hostname used for the syslog endpoint. | [optional] **Ipv4** | Pointer to **NullableString** | The IPv4 address used for the syslog endpoint. | [optional] **Token** | Pointer to **NullableString** | Whether to prepend each message with a specific token. | [optional] [default to "null"] -**UseTLS** | Pointer to [**LoggingUseTLS**](LoggingUseTLS.md) | | [optional] [default to LOGGINGUSETLS_no_tls] +**UseTLS** | Pointer to [**LoggingUseTLSString**](LoggingUseTLSString.md) | | [optional] [default to LOGGINGUSETLSSTRING_no_tls] **CreatedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] **DeletedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] **UpdatedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] @@ -502,20 +502,20 @@ HasToken returns a boolean if a field has been set. UnsetToken ensures that no value is present for Token, not even an explicit nil ### GetUseTLS -`func (o *LoggingSyslogResponse) GetUseTLS() LoggingUseTLS` +`func (o *LoggingSyslogResponse) GetUseTLS() LoggingUseTLSString` GetUseTLS returns the UseTLS field if non-nil, zero value otherwise. ### GetUseTLSOk -`func (o *LoggingSyslogResponse) GetUseTLSOk() (*LoggingUseTLS, bool)` +`func (o *LoggingSyslogResponse) GetUseTLSOk() (*LoggingUseTLSString, bool)` GetUseTLSOk returns a tuple with the UseTLS field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUseTLS -`func (o *LoggingSyslogResponse) SetUseTLS(v LoggingUseTLS)` +`func (o *LoggingSyslogResponse) SetUseTLS(v LoggingUseTLSString)` SetUseTLS sets UseTLS field to given value. diff --git a/docs/LoggingUseTls.md b/docs/LoggingUseTlsString.md similarity index 59% rename from docs/LoggingUseTls.md rename to docs/LoggingUseTlsString.md index aea5f3ac..b1998328 100644 --- a/docs/LoggingUseTls.md +++ b/docs/LoggingUseTlsString.md @@ -1,11 +1,11 @@ -# LoggingUseTLS +# LoggingUseTLSString ## Enum -* `no_tls` (value: `0`) +* `no_tls` (value: `"0"`) -* `use_tls` (value: `1`) +* `use_tls` (value: `"1"`) [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/fastly/api_content.go b/fastly/api_content.go index fbe50ca4..9ca9d977 100644 --- a/fastly/api_content.go +++ b/fastly/api_content.go @@ -33,7 +33,7 @@ type ContentAPI interface { /* ContentCheck Check status of content in each POP's cache - Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour. + Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour. If the content takes too long to download, the hash will be set to `error-timeout-$pop`. If the response is too large, it will be set to `warning-too-large-$pop`. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return APIContentCheckRequest @@ -69,7 +69,7 @@ func (r APIContentCheckRequest) Execute() ([]Content, *http.Response, error) { /* ContentCheck Check status of content in each POP's cache -Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour. +Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour. If the content takes too long to download, the hash will be set to `error-timeout-$pop`. If the response is too large, it will be set to `warning-too-large-$pop`. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return APIContentCheckRequest diff --git a/fastly/api_logging_kafka.go b/fastly/api_logging_kafka.go index 2e62dd45..d10e4866 100644 --- a/fastly/api_logging_kafka.go +++ b/fastly/api_logging_kafka.go @@ -142,7 +142,7 @@ type APICreateLogKafkaRequest struct { authMethod *string user *string password *string - useTLS *LoggingUseTLS + useTLS *LoggingUseTLSString } // Name The name for the real-time logging configuration. @@ -236,7 +236,7 @@ func (r *APICreateLogKafkaRequest) Password(password string) *APICreateLogKafkaR return r } // UseTLS returns a pointer to a request. -func (r *APICreateLogKafkaRequest) UseTLS(useTLS LoggingUseTLS) *APICreateLogKafkaRequest { +func (r *APICreateLogKafkaRequest) UseTLS(useTLS LoggingUseTLSString) *APICreateLogKafkaRequest { r.useTLS = &useTLS return r } diff --git a/fastly/api_logging_logentries.go b/fastly/api_logging_logentries.go index 915ffa3c..add3c6cb 100644 --- a/fastly/api_logging_logentries.go +++ b/fastly/api_logging_logentries.go @@ -146,7 +146,7 @@ type APICreateLogLogentriesRequest struct { formatVersion *int32 port *int32 token *string - useTLS *LoggingUseTLS + useTLS *LoggingUseTLSString region *string } @@ -186,7 +186,7 @@ func (r *APICreateLogLogentriesRequest) Token(token string) *APICreateLogLogentr return r } // UseTLS returns a pointer to a request. -func (r *APICreateLogLogentriesRequest) UseTLS(useTLS LoggingUseTLS) *APICreateLogLogentriesRequest { +func (r *APICreateLogLogentriesRequest) UseTLS(useTLS LoggingUseTLSString) *APICreateLogLogentriesRequest { r.useTLS = &useTLS return r } @@ -800,7 +800,7 @@ type APIUpdateLogLogentriesRequest struct { formatVersion *int32 port *int32 token *string - useTLS *LoggingUseTLS + useTLS *LoggingUseTLSString region *string } @@ -840,7 +840,7 @@ func (r *APIUpdateLogLogentriesRequest) Token(token string) *APIUpdateLogLogentr return r } // UseTLS returns a pointer to a request. -func (r *APIUpdateLogLogentriesRequest) UseTLS(useTLS LoggingUseTLS) *APIUpdateLogLogentriesRequest { +func (r *APIUpdateLogLogentriesRequest) UseTLS(useTLS LoggingUseTLSString) *APIUpdateLogLogentriesRequest { r.useTLS = &useTLS return r } diff --git a/fastly/api_logging_splunk.go b/fastly/api_logging_splunk.go index 814cd3de..1fdb2967 100644 --- a/fastly/api_logging_splunk.go +++ b/fastly/api_logging_splunk.go @@ -137,7 +137,7 @@ type APICreateLogSplunkRequest struct { requestMaxBytes *int32 url *string token *string - useTLS *LoggingUseTLS + useTLS *LoggingUseTLSString } // Name The name for the real-time logging configuration. @@ -206,7 +206,7 @@ func (r *APICreateLogSplunkRequest) Token(token string) *APICreateLogSplunkReque return r } // UseTLS returns a pointer to a request. -func (r *APICreateLogSplunkRequest) UseTLS(useTLS LoggingUseTLS) *APICreateLogSplunkRequest { +func (r *APICreateLogSplunkRequest) UseTLS(useTLS LoggingUseTLSString) *APICreateLogSplunkRequest { r.useTLS = &useTLS return r } @@ -824,7 +824,7 @@ type APIUpdateLogSplunkRequest struct { requestMaxBytes *int32 url *string token *string - useTLS *LoggingUseTLS + useTLS *LoggingUseTLSString } // Name The name for the real-time logging configuration. @@ -893,7 +893,7 @@ func (r *APIUpdateLogSplunkRequest) Token(token string) *APIUpdateLogSplunkReque return r } // UseTLS returns a pointer to a request. -func (r *APIUpdateLogSplunkRequest) UseTLS(useTLS LoggingUseTLS) *APIUpdateLogSplunkRequest { +func (r *APIUpdateLogSplunkRequest) UseTLS(useTLS LoggingUseTLSString) *APIUpdateLogSplunkRequest { r.useTLS = &useTLS return r } diff --git a/fastly/api_logging_syslog.go b/fastly/api_logging_syslog.go index 5520d57b..91151e28 100644 --- a/fastly/api_logging_syslog.go +++ b/fastly/api_logging_syslog.go @@ -139,7 +139,7 @@ type APICreateLogSyslogRequest struct { hostname *string ipv4 *string token *string - useTLS *LoggingUseTLS + useTLS *LoggingUseTLSString } // Name The name for the real-time logging configuration. @@ -218,7 +218,7 @@ func (r *APICreateLogSyslogRequest) Token(token string) *APICreateLogSyslogReque return r } // UseTLS returns a pointer to a request. -func (r *APICreateLogSyslogRequest) UseTLS(useTLS LoggingUseTLS) *APICreateLogSyslogRequest { +func (r *APICreateLogSyslogRequest) UseTLS(useTLS LoggingUseTLSString) *APICreateLogSyslogRequest { r.useTLS = &useTLS return r } @@ -844,7 +844,7 @@ type APIUpdateLogSyslogRequest struct { hostname *string ipv4 *string token *string - useTLS *LoggingUseTLS + useTLS *LoggingUseTLSString } // Name The name for the real-time logging configuration. @@ -923,7 +923,7 @@ func (r *APIUpdateLogSyslogRequest) Token(token string) *APIUpdateLogSyslogReque return r } // UseTLS returns a pointer to a request. -func (r *APIUpdateLogSyslogRequest) UseTLS(useTLS LoggingUseTLS) *APIUpdateLogSyslogRequest { +func (r *APIUpdateLogSyslogRequest) UseTLS(useTLS LoggingUseTLSString) *APIUpdateLogSyslogRequest { r.useTLS = &useTLS return r } diff --git a/fastly/configuration.go b/fastly/configuration.go index ab592739..06a3e9ac 100644 --- a/fastly/configuration.go +++ b/fastly/configuration.go @@ -105,7 +105,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "fastly-go/v1.0.0-beta.30", + UserAgent: "fastly-go/1.0.0-beta.31", Debug: false, Servers: ServerConfigurations{ { diff --git a/fastly/model_logging_kafka_additional.go b/fastly/model_logging_kafka_additional.go index 71681e5b..a220ec5a 100644 --- a/fastly/model_logging_kafka_additional.go +++ b/fastly/model_logging_kafka_additional.go @@ -37,7 +37,7 @@ type LoggingKafkaAdditional struct { User *string `json:"user,omitempty"` // SASL password. Password *string `json:"password,omitempty"` - UseTLS *LoggingUseTLS `json:"use_tls,omitempty"` + UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` AdditionalProperties map[string]any } @@ -53,7 +53,7 @@ func NewLoggingKafkaAdditional() *LoggingKafkaAdditional { this.RequiredAcks = &requiredAcks var requestMaxBytes int32 = 0 this.RequestMaxBytes = &requestMaxBytes - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -67,7 +67,7 @@ func NewLoggingKafkaAdditionalWithDefaults() *LoggingKafkaAdditional { this.RequiredAcks = &requiredAcks var requestMaxBytes int32 = 0 this.RequestMaxBytes = &requestMaxBytes - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -371,9 +371,9 @@ func (o *LoggingKafkaAdditional) SetPassword(v string) { } // GetUseTLS returns the UseTLS field value if set, zero value otherwise. -func (o *LoggingKafkaAdditional) GetUseTLS() LoggingUseTLS { +func (o *LoggingKafkaAdditional) GetUseTLS() LoggingUseTLSString { if o == nil || o.UseTLS == nil { - var ret LoggingUseTLS + var ret LoggingUseTLSString return ret } return *o.UseTLS @@ -381,7 +381,7 @@ func (o *LoggingKafkaAdditional) GetUseTLS() LoggingUseTLS { // GetUseTLSOk returns a tuple with the UseTLS field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *LoggingKafkaAdditional) GetUseTLSOk() (*LoggingUseTLS, bool) { +func (o *LoggingKafkaAdditional) GetUseTLSOk() (*LoggingUseTLSString, bool) { if o == nil || o.UseTLS == nil { return nil, false } @@ -397,8 +397,8 @@ func (o *LoggingKafkaAdditional) HasUseTLS() bool { return false } -// SetUseTLS gets a reference to the given LoggingUseTLS and assigns it to the UseTLS field. -func (o *LoggingKafkaAdditional) SetUseTLS(v LoggingUseTLS) { +// SetUseTLS gets a reference to the given LoggingUseTLSString and assigns it to the UseTLS field. +func (o *LoggingKafkaAdditional) SetUseTLS(v LoggingUseTLSString) { o.UseTLS = &v } diff --git a/fastly/model_logging_kafka_response.go b/fastly/model_logging_kafka_response.go index dbd8445b..a30c09c1 100644 --- a/fastly/model_logging_kafka_response.go +++ b/fastly/model_logging_kafka_response.go @@ -64,7 +64,7 @@ type LoggingKafkaResponse struct { User *string `json:"user,omitempty"` // SASL password. Password *string `json:"password,omitempty"` - UseTLS *LoggingUseTLS `json:"use_tls,omitempty"` + UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` AdditionalProperties map[string]any } @@ -92,7 +92,7 @@ func NewLoggingKafkaResponse() *LoggingKafkaResponse { this.RequiredAcks = &requiredAcks var requestMaxBytes int32 = 0 this.RequestMaxBytes = &requestMaxBytes - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -118,7 +118,7 @@ func NewLoggingKafkaResponseWithDefaults() *LoggingKafkaResponse { this.RequiredAcks = &requiredAcks var requestMaxBytes int32 = 0 this.RequestMaxBytes = &requestMaxBytes - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -960,9 +960,9 @@ func (o *LoggingKafkaResponse) SetPassword(v string) { } // GetUseTLS returns the UseTLS field value if set, zero value otherwise. -func (o *LoggingKafkaResponse) GetUseTLS() LoggingUseTLS { +func (o *LoggingKafkaResponse) GetUseTLS() LoggingUseTLSString { if o == nil || o.UseTLS == nil { - var ret LoggingUseTLS + var ret LoggingUseTLSString return ret } return *o.UseTLS @@ -970,7 +970,7 @@ func (o *LoggingKafkaResponse) GetUseTLS() LoggingUseTLS { // GetUseTLSOk returns a tuple with the UseTLS field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *LoggingKafkaResponse) GetUseTLSOk() (*LoggingUseTLS, bool) { +func (o *LoggingKafkaResponse) GetUseTLSOk() (*LoggingUseTLSString, bool) { if o == nil || o.UseTLS == nil { return nil, false } @@ -986,8 +986,8 @@ func (o *LoggingKafkaResponse) HasUseTLS() bool { return false } -// SetUseTLS gets a reference to the given LoggingUseTLS and assigns it to the UseTLS field. -func (o *LoggingKafkaResponse) SetUseTLS(v LoggingUseTLS) { +// SetUseTLS gets a reference to the given LoggingUseTLSString and assigns it to the UseTLS field. +func (o *LoggingKafkaResponse) SetUseTLS(v LoggingUseTLSString) { o.UseTLS = &v } diff --git a/fastly/model_logging_kafka_response_post.go b/fastly/model_logging_kafka_response_post.go index de33e04f..5f75bf0a 100644 --- a/fastly/model_logging_kafka_response_post.go +++ b/fastly/model_logging_kafka_response_post.go @@ -64,7 +64,7 @@ type LoggingKafkaResponsePost struct { User *string `json:"user,omitempty"` // SASL password. Password *string `json:"password,omitempty"` - UseTLS *LoggingUseTLS `json:"use_tls,omitempty"` + UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` AdditionalProperties map[string]any } @@ -92,7 +92,7 @@ func NewLoggingKafkaResponsePost() *LoggingKafkaResponsePost { this.RequiredAcks = &requiredAcks var requestMaxBytes int32 = 0 this.RequestMaxBytes = &requestMaxBytes - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -118,7 +118,7 @@ func NewLoggingKafkaResponsePostWithDefaults() *LoggingKafkaResponsePost { this.RequiredAcks = &requiredAcks var requestMaxBytes int32 = 0 this.RequestMaxBytes = &requestMaxBytes - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -960,9 +960,9 @@ func (o *LoggingKafkaResponsePost) SetPassword(v string) { } // GetUseTLS returns the UseTLS field value if set, zero value otherwise. -func (o *LoggingKafkaResponsePost) GetUseTLS() LoggingUseTLS { +func (o *LoggingKafkaResponsePost) GetUseTLS() LoggingUseTLSString { if o == nil || o.UseTLS == nil { - var ret LoggingUseTLS + var ret LoggingUseTLSString return ret } return *o.UseTLS @@ -970,7 +970,7 @@ func (o *LoggingKafkaResponsePost) GetUseTLS() LoggingUseTLS { // GetUseTLSOk returns a tuple with the UseTLS field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *LoggingKafkaResponsePost) GetUseTLSOk() (*LoggingUseTLS, bool) { +func (o *LoggingKafkaResponsePost) GetUseTLSOk() (*LoggingUseTLSString, bool) { if o == nil || o.UseTLS == nil { return nil, false } @@ -986,8 +986,8 @@ func (o *LoggingKafkaResponsePost) HasUseTLS() bool { return false } -// SetUseTLS gets a reference to the given LoggingUseTLS and assigns it to the UseTLS field. -func (o *LoggingKafkaResponsePost) SetUseTLS(v LoggingUseTLS) { +// SetUseTLS gets a reference to the given LoggingUseTLSString and assigns it to the UseTLS field. +func (o *LoggingKafkaResponsePost) SetUseTLS(v LoggingUseTLSString) { o.UseTLS = &v } diff --git a/fastly/model_logging_logentries_additional.go b/fastly/model_logging_logentries_additional.go index dcc6e18e..be467c8d 100644 --- a/fastly/model_logging_logentries_additional.go +++ b/fastly/model_logging_logentries_additional.go @@ -23,7 +23,7 @@ type LoggingLogentriesAdditional struct { Port *int32 `json:"port,omitempty"` // Use token based authentication. Token *string `json:"token,omitempty"` - UseTLS *LoggingUseTLS `json:"use_tls,omitempty"` + UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` // The region to which to stream logs. Region *string `json:"region,omitempty"` AdditionalProperties map[string]any @@ -39,7 +39,7 @@ func NewLoggingLogentriesAdditional() *LoggingLogentriesAdditional { this := LoggingLogentriesAdditional{} var port int32 = 20000 this.Port = &port - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -51,7 +51,7 @@ func NewLoggingLogentriesAdditionalWithDefaults() *LoggingLogentriesAdditional { this := LoggingLogentriesAdditional{} var port int32 = 20000 this.Port = &port - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -121,9 +121,9 @@ func (o *LoggingLogentriesAdditional) SetToken(v string) { } // GetUseTLS returns the UseTLS field value if set, zero value otherwise. -func (o *LoggingLogentriesAdditional) GetUseTLS() LoggingUseTLS { +func (o *LoggingLogentriesAdditional) GetUseTLS() LoggingUseTLSString { if o == nil || o.UseTLS == nil { - var ret LoggingUseTLS + var ret LoggingUseTLSString return ret } return *o.UseTLS @@ -131,7 +131,7 @@ func (o *LoggingLogentriesAdditional) GetUseTLS() LoggingUseTLS { // GetUseTLSOk returns a tuple with the UseTLS field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *LoggingLogentriesAdditional) GetUseTLSOk() (*LoggingUseTLS, bool) { +func (o *LoggingLogentriesAdditional) GetUseTLSOk() (*LoggingUseTLSString, bool) { if o == nil || o.UseTLS == nil { return nil, false } @@ -147,8 +147,8 @@ func (o *LoggingLogentriesAdditional) HasUseTLS() bool { return false } -// SetUseTLS gets a reference to the given LoggingUseTLS and assigns it to the UseTLS field. -func (o *LoggingLogentriesAdditional) SetUseTLS(v LoggingUseTLS) { +// SetUseTLS gets a reference to the given LoggingUseTLSString and assigns it to the UseTLS field. +func (o *LoggingLogentriesAdditional) SetUseTLS(v LoggingUseTLSString) { o.UseTLS = &v } diff --git a/fastly/model_logging_logentries_response.go b/fastly/model_logging_logentries_response.go index df29ada2..a95fcef0 100644 --- a/fastly/model_logging_logentries_response.go +++ b/fastly/model_logging_logentries_response.go @@ -34,7 +34,7 @@ type LoggingLogentriesResponse struct { Port *int32 `json:"port,omitempty"` // Use token based authentication. Token *string `json:"token,omitempty"` - UseTLS *LoggingUseTLS `json:"use_tls,omitempty"` + UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` // The region to which to stream logs. Region *string `json:"region,omitempty"` // Date and time in ISO 8601 format. @@ -62,7 +62,7 @@ func NewLoggingLogentriesResponse() *LoggingLogentriesResponse { this.FormatVersion = &formatVersion var port int32 = 20000 this.Port = &port - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -78,7 +78,7 @@ func NewLoggingLogentriesResponseWithDefaults() *LoggingLogentriesResponse { this.FormatVersion = &formatVersion var port int32 = 20000 this.Port = &port - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -328,9 +328,9 @@ func (o *LoggingLogentriesResponse) SetToken(v string) { } // GetUseTLS returns the UseTLS field value if set, zero value otherwise. -func (o *LoggingLogentriesResponse) GetUseTLS() LoggingUseTLS { +func (o *LoggingLogentriesResponse) GetUseTLS() LoggingUseTLSString { if o == nil || o.UseTLS == nil { - var ret LoggingUseTLS + var ret LoggingUseTLSString return ret } return *o.UseTLS @@ -338,7 +338,7 @@ func (o *LoggingLogentriesResponse) GetUseTLS() LoggingUseTLS { // GetUseTLSOk returns a tuple with the UseTLS field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *LoggingLogentriesResponse) GetUseTLSOk() (*LoggingUseTLS, bool) { +func (o *LoggingLogentriesResponse) GetUseTLSOk() (*LoggingUseTLSString, bool) { if o == nil || o.UseTLS == nil { return nil, false } @@ -354,8 +354,8 @@ func (o *LoggingLogentriesResponse) HasUseTLS() bool { return false } -// SetUseTLS gets a reference to the given LoggingUseTLS and assigns it to the UseTLS field. -func (o *LoggingLogentriesResponse) SetUseTLS(v LoggingUseTLS) { +// SetUseTLS gets a reference to the given LoggingUseTLSString and assigns it to the UseTLS field. +func (o *LoggingLogentriesResponse) SetUseTLS(v LoggingUseTLSString) { o.UseTLS = &v } diff --git a/fastly/model_logging_splunk_additional.go b/fastly/model_logging_splunk_additional.go index 2412bbc8..4293ddb7 100644 --- a/fastly/model_logging_splunk_additional.go +++ b/fastly/model_logging_splunk_additional.go @@ -23,7 +23,7 @@ type LoggingSplunkAdditional struct { URL *string `json:"url,omitempty"` // A Splunk token for use in posting logs over HTTP to your collector. Token *string `json:"token,omitempty"` - UseTLS *LoggingUseTLS `json:"use_tls,omitempty"` + UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` AdditionalProperties map[string]any } @@ -35,7 +35,7 @@ type _LoggingSplunkAdditional LoggingSplunkAdditional // will change when the set of required properties is changed func NewLoggingSplunkAdditional() *LoggingSplunkAdditional { this := LoggingSplunkAdditional{} - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -45,7 +45,7 @@ func NewLoggingSplunkAdditional() *LoggingSplunkAdditional { // but it doesn't guarantee that properties required by API are set func NewLoggingSplunkAdditionalWithDefaults() *LoggingSplunkAdditional { this := LoggingSplunkAdditional{} - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -115,9 +115,9 @@ func (o *LoggingSplunkAdditional) SetToken(v string) { } // GetUseTLS returns the UseTLS field value if set, zero value otherwise. -func (o *LoggingSplunkAdditional) GetUseTLS() LoggingUseTLS { +func (o *LoggingSplunkAdditional) GetUseTLS() LoggingUseTLSString { if o == nil || o.UseTLS == nil { - var ret LoggingUseTLS + var ret LoggingUseTLSString return ret } return *o.UseTLS @@ -125,7 +125,7 @@ func (o *LoggingSplunkAdditional) GetUseTLS() LoggingUseTLS { // GetUseTLSOk returns a tuple with the UseTLS field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *LoggingSplunkAdditional) GetUseTLSOk() (*LoggingUseTLS, bool) { +func (o *LoggingSplunkAdditional) GetUseTLSOk() (*LoggingUseTLSString, bool) { if o == nil || o.UseTLS == nil { return nil, false } @@ -141,8 +141,8 @@ func (o *LoggingSplunkAdditional) HasUseTLS() bool { return false } -// SetUseTLS gets a reference to the given LoggingUseTLS and assigns it to the UseTLS field. -func (o *LoggingSplunkAdditional) SetUseTLS(v LoggingUseTLS) { +// SetUseTLS gets a reference to the given LoggingUseTLSString and assigns it to the UseTLS field. +func (o *LoggingSplunkAdditional) SetUseTLS(v LoggingUseTLSString) { o.UseTLS = &v } diff --git a/fastly/model_logging_splunk_response.go b/fastly/model_logging_splunk_response.go index 2061beef..ea2984ec 100644 --- a/fastly/model_logging_splunk_response.go +++ b/fastly/model_logging_splunk_response.go @@ -46,7 +46,7 @@ type LoggingSplunkResponse struct { URL *string `json:"url,omitempty"` // A Splunk token for use in posting logs over HTTP to your collector. Token *string `json:"token,omitempty"` - UseTLS *LoggingUseTLS `json:"use_tls,omitempty"` + UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. @@ -82,7 +82,7 @@ func NewLoggingSplunkResponse() *LoggingSplunkResponse { this.RequestMaxEntries = &requestMaxEntries var requestMaxBytes int32 = 0 this.RequestMaxBytes = &requestMaxBytes - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -108,7 +108,7 @@ func NewLoggingSplunkResponseWithDefaults() *LoggingSplunkResponse { this.RequestMaxEntries = &requestMaxEntries var requestMaxBytes int32 = 0 this.RequestMaxBytes = &requestMaxBytes - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -590,9 +590,9 @@ func (o *LoggingSplunkResponse) SetToken(v string) { } // GetUseTLS returns the UseTLS field value if set, zero value otherwise. -func (o *LoggingSplunkResponse) GetUseTLS() LoggingUseTLS { +func (o *LoggingSplunkResponse) GetUseTLS() LoggingUseTLSString { if o == nil || o.UseTLS == nil { - var ret LoggingUseTLS + var ret LoggingUseTLSString return ret } return *o.UseTLS @@ -600,7 +600,7 @@ func (o *LoggingSplunkResponse) GetUseTLS() LoggingUseTLS { // GetUseTLSOk returns a tuple with the UseTLS field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *LoggingSplunkResponse) GetUseTLSOk() (*LoggingUseTLS, bool) { +func (o *LoggingSplunkResponse) GetUseTLSOk() (*LoggingUseTLSString, bool) { if o == nil || o.UseTLS == nil { return nil, false } @@ -616,8 +616,8 @@ func (o *LoggingSplunkResponse) HasUseTLS() bool { return false } -// SetUseTLS gets a reference to the given LoggingUseTLS and assigns it to the UseTLS field. -func (o *LoggingSplunkResponse) SetUseTLS(v LoggingUseTLS) { +// SetUseTLS gets a reference to the given LoggingUseTLSString and assigns it to the UseTLS field. +func (o *LoggingSplunkResponse) SetUseTLS(v LoggingUseTLSString) { o.UseTLS = &v } diff --git a/fastly/model_logging_syslog_additional.go b/fastly/model_logging_syslog_additional.go index ad04452b..9df212cb 100644 --- a/fastly/model_logging_syslog_additional.go +++ b/fastly/model_logging_syslog_additional.go @@ -26,7 +26,7 @@ type LoggingSyslogAdditional struct { Ipv4 NullableString `json:"ipv4,omitempty"` // Whether to prepend each message with a specific token. Token NullableString `json:"token,omitempty"` - UseTLS *LoggingUseTLS `json:"use_tls,omitempty"` + UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` AdditionalProperties map[string]any } @@ -42,7 +42,7 @@ func NewLoggingSyslogAdditional() *LoggingSyslogAdditional { this.MessageType = &messageType var token string = "null" this.Token = *NewNullableString(&token) - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -56,7 +56,7 @@ func NewLoggingSyslogAdditionalWithDefaults() *LoggingSyslogAdditional { this.MessageType = &messageType var token string = "null" this.Token = *NewNullableString(&token) - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -210,9 +210,9 @@ func (o *LoggingSyslogAdditional) UnsetToken() { } // GetUseTLS returns the UseTLS field value if set, zero value otherwise. -func (o *LoggingSyslogAdditional) GetUseTLS() LoggingUseTLS { +func (o *LoggingSyslogAdditional) GetUseTLS() LoggingUseTLSString { if o == nil || o.UseTLS == nil { - var ret LoggingUseTLS + var ret LoggingUseTLSString return ret } return *o.UseTLS @@ -220,7 +220,7 @@ func (o *LoggingSyslogAdditional) GetUseTLS() LoggingUseTLS { // GetUseTLSOk returns a tuple with the UseTLS field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *LoggingSyslogAdditional) GetUseTLSOk() (*LoggingUseTLS, bool) { +func (o *LoggingSyslogAdditional) GetUseTLSOk() (*LoggingUseTLSString, bool) { if o == nil || o.UseTLS == nil { return nil, false } @@ -236,8 +236,8 @@ func (o *LoggingSyslogAdditional) HasUseTLS() bool { return false } -// SetUseTLS gets a reference to the given LoggingUseTLS and assigns it to the UseTLS field. -func (o *LoggingSyslogAdditional) SetUseTLS(v LoggingUseTLS) { +// SetUseTLS gets a reference to the given LoggingUseTLSString and assigns it to the UseTLS field. +func (o *LoggingSyslogAdditional) SetUseTLS(v LoggingUseTLSString) { o.UseTLS = &v } diff --git a/fastly/model_logging_syslog_response.go b/fastly/model_logging_syslog_response.go index 73505e51..e856f3e7 100644 --- a/fastly/model_logging_syslog_response.go +++ b/fastly/model_logging_syslog_response.go @@ -49,7 +49,7 @@ type LoggingSyslogResponse struct { Ipv4 NullableString `json:"ipv4,omitempty"` // Whether to prepend each message with a specific token. Token NullableString `json:"token,omitempty"` - UseTLS *LoggingUseTLS `json:"use_tls,omitempty"` + UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. @@ -87,7 +87,7 @@ func NewLoggingSyslogResponse() *LoggingSyslogResponse { this.MessageType = &messageType var token string = "null" this.Token = *NewNullableString(&token) - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -115,7 +115,7 @@ func NewLoggingSyslogResponseWithDefaults() *LoggingSyslogResponse { this.MessageType = &messageType var token string = "null" this.Token = *NewNullableString(&token) - var useTLS LoggingUseTLS = LOGGINGUSETLS_no_tls + var useTLS LoggingUseTLSString = LOGGINGUSETLSSTRING_no_tls this.UseTLS = &useTLS return &this } @@ -681,9 +681,9 @@ func (o *LoggingSyslogResponse) UnsetToken() { } // GetUseTLS returns the UseTLS field value if set, zero value otherwise. -func (o *LoggingSyslogResponse) GetUseTLS() LoggingUseTLS { +func (o *LoggingSyslogResponse) GetUseTLS() LoggingUseTLSString { if o == nil || o.UseTLS == nil { - var ret LoggingUseTLS + var ret LoggingUseTLSString return ret } return *o.UseTLS @@ -691,7 +691,7 @@ func (o *LoggingSyslogResponse) GetUseTLS() LoggingUseTLS { // GetUseTLSOk returns a tuple with the UseTLS field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *LoggingSyslogResponse) GetUseTLSOk() (*LoggingUseTLS, bool) { +func (o *LoggingSyslogResponse) GetUseTLSOk() (*LoggingUseTLSString, bool) { if o == nil || o.UseTLS == nil { return nil, false } @@ -707,8 +707,8 @@ func (o *LoggingSyslogResponse) HasUseTLS() bool { return false } -// SetUseTLS gets a reference to the given LoggingUseTLS and assigns it to the UseTLS field. -func (o *LoggingSyslogResponse) SetUseTLS(v LoggingUseTLS) { +// SetUseTLS gets a reference to the given LoggingUseTLSString and assigns it to the UseTLS field. +func (o *LoggingSyslogResponse) SetUseTLS(v LoggingUseTLSString) { o.UseTLS = &v } diff --git a/fastly/model_logging_use_tls.go b/fastly/model_logging_use_tls_string.go similarity index 51% rename from fastly/model_logging_use_tls.go rename to fastly/model_logging_use_tls_string.go index 11a45bdd..42373ef0 100644 --- a/fastly/model_logging_use_tls.go +++ b/fastly/model_logging_use_tls_string.go @@ -18,53 +18,53 @@ import ( "fmt" ) -// LoggingUseTLS Whether to use TLS. -type LoggingUseTLS int32 +// LoggingUseTLSString Whether to use TLS. +type LoggingUseTLSString string -// List of logging_use_tls +// List of logging_use_tls_string const ( - LOGGINGUSETLS_no_tls LoggingUseTLS = 0 - LOGGINGUSETLS_use_tls LoggingUseTLS = 1 + LOGGINGUSETLSSTRING_no_tls LoggingUseTLSString = "0" + LOGGINGUSETLSSTRING_use_tls LoggingUseTLSString = "1" ) -// AllowedLoggingUseTLSEnumValues All allowed values of LoggingUseTLS enum -var AllowedLoggingUseTLSEnumValues = []LoggingUseTLS{ - 0, - 1, +// AllowedLoggingUseTLSStringEnumValues All allowed values of LoggingUseTLSString enum +var AllowedLoggingUseTLSStringEnumValues = []LoggingUseTLSString{ + "0", + "1", } // UnmarshalJSON implements the Unmarshaler interface. // Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (v *LoggingUseTLS) UnmarshalJSON(src []byte) error { - var value int32 +func (v *LoggingUseTLSString) UnmarshalJSON(src []byte) error { + var value string err := json.Unmarshal(src, &value) if err != nil { return err } - enumTypeValue := LoggingUseTLS(value) - for _, existing := range AllowedLoggingUseTLSEnumValues { + enumTypeValue := LoggingUseTLSString(value) + for _, existing := range AllowedLoggingUseTLSStringEnumValues { if existing == enumTypeValue { *v = enumTypeValue return nil } } - return fmt.Errorf("%+v is not a valid LoggingUseTLS", value) + return fmt.Errorf("%+v is not a valid LoggingUseTLSString", value) } -// NewLoggingUseTLSFromValue returns a pointer to a valid LoggingUseTLS +// NewLoggingUseTLSStringFromValue returns a pointer to a valid LoggingUseTLSString // for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewLoggingUseTLSFromValue(v int32) (*LoggingUseTLS, error) { - ev := LoggingUseTLS(v) +func NewLoggingUseTLSStringFromValue(v string) (*LoggingUseTLSString, error) { + ev := LoggingUseTLSString(v) if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for LoggingUseTLS: valid values are %v", v, AllowedLoggingUseTLSEnumValues) + return nil, fmt.Errorf("invalid value '%v' for LoggingUseTLSString: valid values are %v", v, AllowedLoggingUseTLSStringEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise -func (v LoggingUseTLS) IsValid() bool { - for _, existing := range AllowedLoggingUseTLSEnumValues { +func (v LoggingUseTLSString) IsValid() bool { + for _, existing := range AllowedLoggingUseTLSStringEnumValues { if existing == v { return true } @@ -72,53 +72,53 @@ func (v LoggingUseTLS) IsValid() bool { return false } -// Ptr returns reference to logging_use_tls value -func (v LoggingUseTLS) Ptr() *LoggingUseTLS { +// Ptr returns reference to logging_use_tls_string value +func (v LoggingUseTLSString) Ptr() *LoggingUseTLSString { return &v } -// NullableLoggingUseTLS is a helper abstraction for handling nullable loggingusetls types. -type NullableLoggingUseTLS struct { - value *LoggingUseTLS +// NullableLoggingUseTLSString is a helper abstraction for handling nullable loggingusetlsstring types. +type NullableLoggingUseTLSString struct { + value *LoggingUseTLSString isSet bool } // Get returns the value. -func (v NullableLoggingUseTLS) Get() *LoggingUseTLS { +func (v NullableLoggingUseTLSString) Get() *LoggingUseTLSString { return v.value } // Set modifies the value. -func (v *NullableLoggingUseTLS) Set(val *LoggingUseTLS) { +func (v *NullableLoggingUseTLSString) Set(val *LoggingUseTLSString) { v.value = val v.isSet = true } // IsSet indicates if the value was set. -func (v NullableLoggingUseTLS) IsSet() bool { +func (v NullableLoggingUseTLSString) IsSet() bool { return v.isSet } // Unset removes the value. -func (v *NullableLoggingUseTLS) Unset() { +func (v *NullableLoggingUseTLSString) Unset() { v.value = nil v.isSet = false } -// NewNullableLoggingUseTLS returns a pointer to a new instance of NullableLoggingUseTLS. -func NewNullableLoggingUseTLS(val *LoggingUseTLS) *NullableLoggingUseTLS { - return &NullableLoggingUseTLS{value: val, isSet: true} +// NewNullableLoggingUseTLSString returns a pointer to a new instance of NullableLoggingUseTLSString. +func NewNullableLoggingUseTLSString(val *LoggingUseTLSString) *NullableLoggingUseTLSString { + return &NullableLoggingUseTLSString{value: val, isSet: true} } // MarshalJSON implements the json.Marshaler interface. // Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (v NullableLoggingUseTLS) MarshalJSON() ([]byte, error) { +func (v NullableLoggingUseTLSString) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } // UnmarshalJSON implements the Unmarshaler interface. // Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (v *NullableLoggingUseTLS) UnmarshalJSON(src []byte) error { +func (v *NullableLoggingUseTLSString) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/sig.json b/sig.json index d84bb6e5..66147743 100644 --- a/sig.json +++ b/sig.json @@ -1 +1 @@ -{"G": "5a2ccc65", "D": "ec7f026b"} +{"G": "5a2ccc65", "D": "f9e684d4"}