Skip to content

Commit

Permalink
Generated v1.0.0-beta.24
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 7, 2023
1 parent a402aa3 commit 4bfd294
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
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.23
github.com/fastly/fastly-go v1.0.0-beta.24
)
```

Expand Down
8 changes: 6 additions & 2 deletions docs/ConfigStoreAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,12 @@ import (
)

func main() {
name := "name_example" // string | Returns a one-element array containing the details for the named config store. (optional)

cfg := fastly.NewConfiguration()
apiClient := fastly.NewAPIClient(cfg)
ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN")
resp, r, err := apiClient.ConfigStoreAPI.ListConfigStores(ctx).Execute()
resp, r, err := apiClient.ConfigStoreAPI.ListConfigStores(ctx).Name(name).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigStoreAPI.ListConfigStores`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand All @@ -380,13 +381,16 @@ func main() {

### Path Parameters

This endpoint does not need any parameter.


### Other Parameters

Other parameters are passed through a pointer to a apiListConfigStoresRequest struct via the builder pattern


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | Returns a one-element array containing the details for the named config store. |

### Return type

Expand Down
9 changes: 9 additions & 0 deletions fastly/api_config_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,14 @@ func (a *ConfigStoreAPIService) ListConfigStoreServicesExecute(r APIListConfigSt
type APIListConfigStoresRequest struct {
ctx context.Context
APIService ConfigStoreAPI
name *string
}

// Name Returns a one-element array containing the details for the named config store.
func (r *APIListConfigStoresRequest) Name(name string) *APIListConfigStoresRequest {
r.name = &name
return r
}

// Execute calls the API using the request data configured.
func (r APIListConfigStoresRequest) Execute() ([]ConfigStoreResponse, *http.Response, error) {
Expand Down Expand Up @@ -861,6 +867,9 @@ func (a *ConfigStoreAPIService) ListConfigStoresExecute(r APIListConfigStoresReq
localVarQueryParams := gourl.Values{}
localVarFormParams := gourl.Values{}

if r.name != nil {
localVarQueryParams.Add("name", parameterToString(*r.name, ""))
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}

Expand Down
2 changes: 1 addition & 1 deletion fastly/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ type Configuration struct {
func NewConfiguration() *Configuration {
cfg := &Configuration{
DefaultHeader: make(map[string]string),
UserAgent: "fastly-go/v1.0.0-beta.23",
UserAgent: "fastly-go/v1.0.0-beta.24",
Debug: false,
Servers: ServerConfigurations{
{
Expand Down
2 changes: 1 addition & 1 deletion sig.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"G": "33163c3c", "D": "2c30aac5"}
{"G": "5c91b697", "D": "e1e39f1b"}

0 comments on commit 4bfd294

Please sign in to comment.