diff --git a/README.md b/README.md index 5d8fb88..7fadf92 100644 --- a/README.md +++ b/README.md @@ -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 ) ``` diff --git a/docs/ConfigStoreAPI.md b/docs/ConfigStoreAPI.md index 9bd770d..0c88b32 100644 --- a/docs/ConfigStoreAPI.md +++ b/docs/ConfigStoreAPI.md @@ -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) @@ -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 diff --git a/fastly/api_config_store.go b/fastly/api_config_store.go index 2584eda..08b9de3 100644 --- a/fastly/api_config_store.go +++ b/fastly/api_config_store.go @@ -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) { @@ -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{} diff --git a/fastly/configuration.go b/fastly/configuration.go index 8cd365c..972d308 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.23", + UserAgent: "fastly-go/v1.0.0-beta.24", Debug: false, Servers: ServerConfigurations{ { diff --git a/sig.json b/sig.json index d30a8fd..b6ec914 100644 --- a/sig.json +++ b/sig.json @@ -1 +1 @@ -{"G": "33163c3c", "D": "2c30aac5"} +{"G": "5c91b697", "D": "e1e39f1b"}