Skip to content

Commit

Permalink
Generated v1.0.0-beta.26
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Feb 19, 2024
1 parent 0b39947 commit e990bd1
Show file tree
Hide file tree
Showing 12 changed files with 710 additions and 31 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [v1.0.0-beta.26](https://github.com/fastly/fastly-go/releases/tag/v1.0.0-beta.26) (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

## [v1.0.0-beta.25](https://github.com/fastly/fastly-go/releases/tag/v1.0.0-beta.25) (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 @@ -14,7 +14,7 @@ Add the following to your project's `go.mod`:

```go.mod
require (
github.com/fastly/fastly-go v1.0.0-beta.25
github.com/fastly/fastly-go v1.0.0-beta.26
)
```

Expand Down
240 changes: 240 additions & 0 deletions docs/CreateResponseObjectRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
# CreateResponseObjectRequest

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | The name of the response object to create. | [optional]
**Status** | Pointer to **string** | The status code the response will have. Defaults to 200. | [optional]
**Response** | Pointer to **string** | The status text the response will have. Defaults to 'OK'. | [optional]
**Content** | Pointer to **string** | The content the response will deliver. | [optional]
**ContentType** | Pointer to **NullableString** | The MIME type of your response content. | [optional]
**RequestCondition** | Pointer to **NullableString** | Condition which, if met, will select this configuration during a request. Optional. | [optional]
**CacheCondition** | Pointer to **NullableString** | Name of the cache condition controlling when this configuration applies. | [optional]

## Methods

### NewCreateResponseObjectRequest

`func NewCreateResponseObjectRequest() *CreateResponseObjectRequest`

NewCreateResponseObjectRequest instantiates a new CreateResponseObjectRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewCreateResponseObjectRequestWithDefaults

`func NewCreateResponseObjectRequestWithDefaults() *CreateResponseObjectRequest`

NewCreateResponseObjectRequestWithDefaults instantiates a new CreateResponseObjectRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetName

`func (o *CreateResponseObjectRequest) GetName() string`

GetName returns the Name field if non-nil, zero value otherwise.

### GetNameOk

`func (o *CreateResponseObjectRequest) GetNameOk() (*string, bool)`

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetName

`func (o *CreateResponseObjectRequest) SetName(v string)`

SetName sets Name field to given value.

### HasName

`func (o *CreateResponseObjectRequest) HasName() bool`

HasName returns a boolean if a field has been set.

### GetStatus

`func (o *CreateResponseObjectRequest) GetStatus() string`

GetStatus returns the Status field if non-nil, zero value otherwise.

### GetStatusOk

`func (o *CreateResponseObjectRequest) GetStatusOk() (*string, bool)`

GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetStatus

`func (o *CreateResponseObjectRequest) SetStatus(v string)`

SetStatus sets Status field to given value.

### HasStatus

`func (o *CreateResponseObjectRequest) HasStatus() bool`

HasStatus returns a boolean if a field has been set.

### GetResponse

`func (o *CreateResponseObjectRequest) GetResponse() string`

GetResponse returns the Response field if non-nil, zero value otherwise.

### GetResponseOk

`func (o *CreateResponseObjectRequest) GetResponseOk() (*string, bool)`

GetResponseOk returns a tuple with the Response field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetResponse

`func (o *CreateResponseObjectRequest) SetResponse(v string)`

SetResponse sets Response field to given value.

### HasResponse

`func (o *CreateResponseObjectRequest) HasResponse() bool`

HasResponse returns a boolean if a field has been set.

### GetContent

`func (o *CreateResponseObjectRequest) GetContent() string`

GetContent returns the Content field if non-nil, zero value otherwise.

### GetContentOk

`func (o *CreateResponseObjectRequest) GetContentOk() (*string, bool)`

GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetContent

`func (o *CreateResponseObjectRequest) SetContent(v string)`

SetContent sets Content field to given value.

### HasContent

`func (o *CreateResponseObjectRequest) HasContent() bool`

HasContent returns a boolean if a field has been set.

### GetContentType

`func (o *CreateResponseObjectRequest) GetContentType() string`

GetContentType returns the ContentType field if non-nil, zero value otherwise.

### GetContentTypeOk

`func (o *CreateResponseObjectRequest) GetContentTypeOk() (*string, bool)`

GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetContentType

`func (o *CreateResponseObjectRequest) SetContentType(v string)`

SetContentType sets ContentType field to given value.

### HasContentType

`func (o *CreateResponseObjectRequest) HasContentType() bool`

HasContentType returns a boolean if a field has been set.

### SetContentTypeNil

`func (o *CreateResponseObjectRequest) SetContentTypeNil(b bool)`

SetContentTypeNil sets the value for ContentType to be an explicit nil

### UnsetContentType
`func (o *CreateResponseObjectRequest) UnsetContentType()`

UnsetContentType ensures that no value is present for ContentType, not even an explicit nil
### GetRequestCondition

`func (o *CreateResponseObjectRequest) GetRequestCondition() string`

GetRequestCondition returns the RequestCondition field if non-nil, zero value otherwise.

### GetRequestConditionOk

`func (o *CreateResponseObjectRequest) GetRequestConditionOk() (*string, bool)`

GetRequestConditionOk returns a tuple with the RequestCondition field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetRequestCondition

`func (o *CreateResponseObjectRequest) SetRequestCondition(v string)`

SetRequestCondition sets RequestCondition field to given value.

### HasRequestCondition

`func (o *CreateResponseObjectRequest) HasRequestCondition() bool`

HasRequestCondition returns a boolean if a field has been set.

### SetRequestConditionNil

`func (o *CreateResponseObjectRequest) SetRequestConditionNil(b bool)`

SetRequestConditionNil sets the value for RequestCondition to be an explicit nil

### UnsetRequestCondition
`func (o *CreateResponseObjectRequest) UnsetRequestCondition()`

UnsetRequestCondition ensures that no value is present for RequestCondition, not even an explicit nil
### GetCacheCondition

`func (o *CreateResponseObjectRequest) GetCacheCondition() string`

GetCacheCondition returns the CacheCondition field if non-nil, zero value otherwise.

### GetCacheConditionOk

`func (o *CreateResponseObjectRequest) GetCacheConditionOk() (*string, bool)`

GetCacheConditionOk returns a tuple with the CacheCondition field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetCacheCondition

`func (o *CreateResponseObjectRequest) SetCacheCondition(v string)`

SetCacheCondition sets CacheCondition field to given value.

### HasCacheCondition

`func (o *CreateResponseObjectRequest) HasCacheCondition() bool`

HasCacheCondition returns a boolean if a field has been set.

### SetCacheConditionNil

`func (o *CreateResponseObjectRequest) SetCacheConditionNil(b bool)`

SetCacheConditionNil sets the value for CacheCondition to be an explicit nil

### UnsetCacheCondition
`func (o *CreateResponseObjectRequest) UnsetCacheCondition()`

UnsetCacheCondition ensures that no value is present for CacheCondition, not even an explicit nil

[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md)
14 changes: 8 additions & 6 deletions docs/ResponseObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ import (
func main() {
serviceID := "serviceId_example" // string | Alphanumeric string identifying the service.
versionID := int32(56) // int32 | Integer identifying a service version.
createResponseObjectRequest := *openapiclient.NewCreateResponseObjectRequest() // CreateResponseObjectRequest | (optional)

cfg := fastly.NewConfiguration()
apiClient := fastly.NewAPIClient(cfg)
ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN")
resp, r, err := apiClient.ResponseObjectAPI.CreateResponseObject(ctx, serviceID, versionID).Execute()
resp, r, err := apiClient.ResponseObjectAPI.CreateResponseObject(ctx, serviceID, versionID).CreateResponseObjectRequest(createResponseObjectRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ResponseObjectAPI.CreateResponseObject`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand All @@ -63,7 +64,7 @@ Other parameters are passed through a pointer to a apiCreateResponseObjectReques

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------

**createResponseObjectRequest** | [**CreateResponseObjectRequest**](CreateResponseObjectRequest.md) | |

### Return type

Expand All @@ -75,7 +76,7 @@ Name | Type | Description | Notes

### HTTP request headers

- **Content-Type**: application/x-www-form-urlencoded
- **Content-Type**: application/json
- **Accept**: application/json

[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md)
Expand Down Expand Up @@ -314,11 +315,12 @@ func main() {
serviceID := "serviceId_example" // string | Alphanumeric string identifying the service.
versionID := int32(56) // int32 | Integer identifying a service version.
responseObjectName := "responseObjectName_example" // string | Name for the request settings.
createResponseObjectRequest := *openapiclient.NewCreateResponseObjectRequest() // CreateResponseObjectRequest | (optional)

cfg := fastly.NewConfiguration()
apiClient := fastly.NewAPIClient(cfg)
ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN")
resp, r, err := apiClient.ResponseObjectAPI.UpdateResponseObject(ctx, serviceID, versionID, responseObjectName).Execute()
resp, r, err := apiClient.ResponseObjectAPI.UpdateResponseObject(ctx, serviceID, versionID, responseObjectName).CreateResponseObjectRequest(createResponseObjectRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ResponseObjectAPI.UpdateResponseObject`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand All @@ -345,7 +347,7 @@ Other parameters are passed through a pointer to a apiUpdateResponseObjectReques

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------

**createResponseObjectRequest** | [**CreateResponseObjectRequest**](CreateResponseObjectRequest.md) | |

### Return type

Expand All @@ -357,7 +359,7 @@ Name | Type | Description | Notes

### HTTP request headers

- **Content-Type**: application/x-www-form-urlencoded
- **Content-Type**: application/json
- **Accept**: application/json

[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md)
8 changes: 4 additions & 4 deletions docs/TlsConfigurationResponseAttributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**UpdatedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**Default** | Pointer to **bool** | 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]
**HTTPProtocols** | Pointer to **[]string** | HTTP protocols available on your configuration. | [optional] [readonly]
**TLSProtocols** | Pointer to **[]float32** | TLS protocols available on your configuration. | [optional] [readonly]
**TLSProtocols** | Pointer to **[]string** | TLS protocols available on your configuration. | [optional] [readonly]
**Bulk** | Pointer to **bool** | Signifies whether the configuration is used for Platform TLS or not. | [optional] [readonly]

## Methods
Expand Down Expand Up @@ -188,20 +188,20 @@ HasHTTPProtocols returns a boolean if a field has been set.

### GetTLSProtocols

`func (o *TLSConfigurationResponseAttributes) GetTLSProtocols() []float32`
`func (o *TLSConfigurationResponseAttributes) GetTLSProtocols() []string`

GetTLSProtocols returns the TLSProtocols field if non-nil, zero value otherwise.

### GetTLSProtocolsOk

`func (o *TLSConfigurationResponseAttributes) GetTLSProtocolsOk() (*[]float32, bool)`
`func (o *TLSConfigurationResponseAttributes) GetTLSProtocolsOk() (*[]string, bool)`

GetTLSProtocolsOk returns a tuple with the TLSProtocols field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetTLSProtocols

`func (o *TLSConfigurationResponseAttributes) SetTLSProtocols(v []float32)`
`func (o *TLSConfigurationResponseAttributes) SetTLSProtocols(v []string)`

SetTLSProtocols sets TLSProtocols field to given value.

Expand Down
8 changes: 4 additions & 4 deletions docs/TlsConfigurationResponseAttributesAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Default** | Pointer to **bool** | 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]
**HTTPProtocols** | Pointer to **[]string** | HTTP protocols available on your configuration. | [optional] [readonly]
**TLSProtocols** | Pointer to **[]float32** | TLS protocols available on your configuration. | [optional] [readonly]
**TLSProtocols** | Pointer to **[]string** | TLS protocols available on your configuration. | [optional] [readonly]
**Bulk** | Pointer to **bool** | Signifies whether the configuration is used for Platform TLS or not. | [optional] [readonly]

## Methods
Expand Down Expand Up @@ -80,20 +80,20 @@ HasHTTPProtocols returns a boolean if a field has been set.

### GetTLSProtocols

`func (o *TLSConfigurationResponseAttributesAllOf) GetTLSProtocols() []float32`
`func (o *TLSConfigurationResponseAttributesAllOf) GetTLSProtocols() []string`

GetTLSProtocols returns the TLSProtocols field if non-nil, zero value otherwise.

### GetTLSProtocolsOk

`func (o *TLSConfigurationResponseAttributesAllOf) GetTLSProtocolsOk() (*[]float32, bool)`
`func (o *TLSConfigurationResponseAttributesAllOf) GetTLSProtocolsOk() (*[]string, bool)`

GetTLSProtocolsOk returns a tuple with the TLSProtocols field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetTLSProtocols

`func (o *TLSConfigurationResponseAttributesAllOf) SetTLSProtocols(v []float32)`
`func (o *TLSConfigurationResponseAttributesAllOf) SetTLSProtocols(v []string)`

SetTLSProtocols sets TLSProtocols field to given value.

Expand Down
Loading

0 comments on commit e990bd1

Please sign in to comment.