Skip to content

Commit

Permalink
Generated v8.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Feb 19, 2024
1 parent 0e42d03 commit cee7eb9
Show file tree
Hide file tree
Showing 13 changed files with 323 additions and 11 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [v8.0.1](https://github.com/fastly/fastly-ruby/releases/tag/release/v8.0.1) (2024-02-19)

**Bug fixes:**

- fix(response_object): strongly type response_object create_update requests
- fix(tls_configurations): fix `tls_protocols` field to be a string array type

## [v8.0.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v8.0.0) (2023-11-29)

**Breaking:**
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A Ruby client library for interacting with most facets of the [Fastly API](https
To install via RubyGems, add the following to your project's `Gemfile`:

```ruby
gem 'fastly', '~> 8.0.0'
gem 'fastly', '~> 8.0.1'
```

Then run `bundle install`.
Expand Down
16 changes: 16 additions & 0 deletions docs/CreateResponseObjectRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Fastly::CreateResponseObjectRequest

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **name** | **String** | The name of the response object to create. | [optional] |
| **status** | **String** | The status code the response will have. Defaults to 200. | [optional] |
| **response** | **String** | The status text the response will have. Defaults to 'OK'. | [optional] |
| **content** | **String** | The content the response will deliver. | [optional] |
| **content_type** | **String** | The MIME type of your response content. | [optional] |
| **request_condition** | **String** | Condition which, if met, will select this configuration during a request. Optional. | [optional] |
| **cache_condition** | **String** | Name of the cache condition controlling when this configuration applies. | [optional] |

[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

4 changes: 4 additions & 0 deletions docs/ResponseObjectApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ api_instance = Fastly::ResponseObjectApi.new
opts = {
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
version_id: 56, # Integer | Integer identifying a service version.
create_response_object_request: Fastly::CreateResponseObjectRequest.new, # CreateResponseObjectRequest |
}

begin
Expand All @@ -49,6 +50,7 @@ end
| ---- | ---- | ----------- | ----- |
| **service_id** | **String** | Alphanumeric string identifying the service. | |
| **version_id** | **Integer** | Integer identifying a service version. | |
| **create_response_object_request** | [**CreateResponseObjectRequest**](CreateResponseObjectRequest.md) | | [optional] |

### Return type

Expand Down Expand Up @@ -193,6 +195,7 @@ opts = {
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
version_id: 56, # Integer | Integer identifying a service version.
response_object_name: 'response_object_name_example', # String | Name for the request settings.
create_response_object_request: Fastly::CreateResponseObjectRequest.new, # CreateResponseObjectRequest |
}

begin
Expand All @@ -211,6 +214,7 @@ end
| **service_id** | **String** | Alphanumeric string identifying the service. | |
| **version_id** | **Integer** | Integer identifying a service version. | |
| **response_object_name** | **String** | Name for the request settings. | |
| **create_response_object_request** | [**CreateResponseObjectRequest**](CreateResponseObjectRequest.md) | | [optional] |

### Return type

Expand Down
2 changes: 1 addition & 1 deletion docs/TlsConfigurationResponseAttributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
| **default** | **Boolean** | Signifies whether or not Fastly will use this configuration as a default when creating a new [TLS Activation](/reference/api/tls/custom-certs/activations/). | [optional][readonly] |
| **http_protocols** | **Array<String>** | HTTP protocols available on your configuration. | [optional][readonly] |
| **tls_protocols** | **Array<Float>** | TLS protocols available on your configuration. | [optional][readonly] |
| **tls_protocols** | **Array<String>** | TLS protocols available on your configuration. | [optional][readonly] |
| **bulk** | **Boolean** | Signifies whether the configuration is used for Platform TLS or not. | [optional][readonly] |

[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/TlsConfigurationResponseAttributesAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| ---- | ---- | ----------- | ----- |
| **default** | **Boolean** | Signifies whether or not Fastly will use this configuration as a default when creating a new [TLS Activation](/reference/api/tls/custom-certs/activations/). | [optional][readonly] |
| **http_protocols** | **Array<String>** | HTTP protocols available on your configuration. | [optional][readonly] |
| **tls_protocols** | **Array<Float>** | TLS protocols available on your configuration. | [optional][readonly] |
| **tls_protocols** | **Array<String>** | TLS protocols available on your configuration. | [optional][readonly] |
| **bulk** | **Boolean** | Signifies whether the configuration is used for Platform TLS or not. | [optional][readonly] |

[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Expand Down
1 change: 1 addition & 0 deletions lib/fastly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
require 'fastly/models/contact_response'
require 'fastly/models/contact_response_all_of'
require 'fastly/models/content'
require 'fastly/models/create_response_object_request'
require 'fastly/models/customer'
require 'fastly/models/customer_response'
require 'fastly/models/customer_response_all_of'
Expand Down
12 changes: 8 additions & 4 deletions lib/fastly/api/response_object_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def initialize(api_client = ApiClient.default)
# Creates a new Response Object.
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
# @option opts [Integer] :version_id Integer identifying a service version. (required)
# @option opts [CreateResponseObjectRequest] :create_response_object_request
# @return [ResponseObjectResponse]
def create_response_object(opts = {})
data, _status_code, _headers = create_response_object_with_http_info(opts)
Expand All @@ -31,6 +32,7 @@ def create_response_object(opts = {})
# Creates a new Response Object.
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
# @option opts [Integer] :version_id Integer identifying a service version. (required)
# @option opts [CreateResponseObjectRequest] :create_response_object_request
# @return [Array<(ResponseObjectResponse, Integer, Hash)>] ResponseObjectResponse data, response status code and response headers
def create_response_object_with_http_info(opts = {})
if @api_client.config.debugging
Expand Down Expand Up @@ -58,7 +60,7 @@ def create_response_object_with_http_info(opts = {})
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end
Expand All @@ -67,7 +69,7 @@ def create_response_object_with_http_info(opts = {})
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:debug_body]
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_response_object_request'])

# return_type
return_type = opts[:debug_return_type] || 'ResponseObjectResponse'
Expand Down Expand Up @@ -321,6 +323,7 @@ def list_response_objects_with_http_info(opts = {})
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
# @option opts [Integer] :version_id Integer identifying a service version. (required)
# @option opts [String] :response_object_name Name for the request settings. (required)
# @option opts [CreateResponseObjectRequest] :create_response_object_request
# @return [ResponseObjectResponse]
def update_response_object(opts = {})
data, _status_code, _headers = update_response_object_with_http_info(opts)
Expand All @@ -332,6 +335,7 @@ def update_response_object(opts = {})
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
# @option opts [Integer] :version_id Integer identifying a service version. (required)
# @option opts [String] :response_object_name Name for the request settings. (required)
# @option opts [CreateResponseObjectRequest] :create_response_object_request
# @return [Array<(ResponseObjectResponse, Integer, Hash)>] ResponseObjectResponse data, response status code and response headers
def update_response_object_with_http_info(opts = {})
if @api_client.config.debugging
Expand Down Expand Up @@ -364,7 +368,7 @@ def update_response_object_with_http_info(opts = {})
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end
Expand All @@ -373,7 +377,7 @@ def update_response_object_with_http_info(opts = {})
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:debug_body]
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_response_object_request'])

# return_type
return_type = opts[:debug_return_type] || 'ResponseObjectResponse'
Expand Down
Loading

0 comments on commit cee7eb9

Please sign in to comment.