From 81dcaf6b67bd04ed67d11170941d18fea60c7163 Mon Sep 17 00:00:00 2001 From: Lajos Date: Tue, 13 Oct 2020 23:49:12 +0200 Subject: [PATCH] configid --- configcat/resource_setting.go | 2 +- docs/data-sources/configs.md | 2 +- docs/data-sources/environments.md | 2 +- docs/data-sources/products.md | 2 +- docs/data-sources/settings.md | 2 +- docs/resources/setting.md | 8 +++--- docs/resources/setting_value.md | 4 +-- go.mod | 2 +- go.sum | 2 ++ .../model_audit_log_item_model.go | 18 ++++++------- .../model_setting_data_model.go | 25 ++++++++----------- .../model_setting_model.go | 24 ++++++++---------- .../model_setting_value_model.go | 22 +++++++--------- .../model_setting_value_model_haljson.go | 16 +++++------- ...ng_value_modelhaljson__embedded_setting.go | 25 ++++++++----------- vendor/modules.txt | 2 +- 16 files changed, 67 insertions(+), 91 deletions(-) diff --git a/configcat/resource_setting.go b/configcat/resource_setting.go index 72f581d8..aba1c9b9 100644 --- a/configcat/resource_setting.go +++ b/configcat/resource_setting.go @@ -110,11 +110,11 @@ func resourceSettingRead(ctx context.Context, d *schema.ResourceData, m interfac return diag.FromErr(err) } - d.Set(CONFIG_ID, setting.ConfigId) d.Set(SETTING_KEY, setting.Key) d.Set(SETTING_NAME, setting.Name) d.Set(SETTING_HINT, setting.Hint) d.Set(SETTING_TYPE, setting.SettingType) + d.Set(CONFIG_ID, setting.ConfigId) return diags } diff --git a/docs/data-sources/configs.md b/docs/data-sources/configs.md index bad25d0f..70b9e17b 100644 --- a/docs/data-sources/configs.md +++ b/docs/data-sources/configs.md @@ -35,4 +35,4 @@ output "config_id" { * `name` - The name of the Config. ## User APIs -[Read](https://api.configcat.com/docs/index.html#operation/get-configs) \ No newline at end of file +[Get Configs](https://api.configcat.com/docs/index.html#operation/get-configs) \ No newline at end of file diff --git a/docs/data-sources/environments.md b/docs/data-sources/environments.md index 2525d4f0..4fe03161 100644 --- a/docs/data-sources/environments.md +++ b/docs/data-sources/environments.md @@ -34,4 +34,4 @@ output "environment_id" { * `name` - The name of the Environment. ## Used APIs -- [Read](https://api.configcat.com/docs/index.html#operation/get-environments) +- [Get Environments](https://api.configcat.com/docs/index.html#operation/get-environments) diff --git a/docs/data-sources/products.md b/docs/data-sources/products.md index a2da60c0..4f957c3a 100644 --- a/docs/data-sources/products.md +++ b/docs/data-sources/products.md @@ -29,4 +29,4 @@ output "product_id" { * `name` - The name of the Product. ## Used APIs -- [Read](https://api.configcat.com/docs/index.html#operation/get-products) \ No newline at end of file +- [Get Products](https://api.configcat.com/docs/index.html#operation/get-products) \ No newline at end of file diff --git a/docs/data-sources/settings.md b/docs/data-sources/settings.md index 15609c44..188173c3 100644 --- a/docs/data-sources/settings.md +++ b/docs/data-sources/settings.md @@ -43,4 +43,4 @@ output "setting_id" { * `setting_type` - The Setting's type. Available values: `boolean`|`string`|`int`|`double`. ## Used APIs -- [Read](https://api.configcat.com/docs/index.html#operation/get-settings) \ No newline at end of file +- [Get Settings](https://api.configcat.com/docs/index.html#operation/get-settings) \ No newline at end of file diff --git a/docs/resources/setting.md b/docs/resources/setting.md index ca2aa679..2c329eb4 100644 --- a/docs/resources/setting.md +++ b/docs/resources/setting.md @@ -51,7 +51,7 @@ $ terraform import configcat_setting.example 1234 [Read more](https://learn.hashicorp.com/tutorials/terraform/state-import) about importing. ## Used APIs -* [Read](https://api.configcat.com/docs/index.html#operation/get-setting) -* [Create](https://api.configcat.com/docs/index.html#operation/create-setting) -* [Update](https://api.configcat.com/docs/index.html#operation/update-setting) -* [Delete](https://api.configcat.com/docs/index.html#operation/delete-setting) +* [Get Setting](https://api.configcat.com/docs/index.html#operation/get-setting) +* [Create Setting](https://api.configcat.com/docs/index.html#operation/create-setting) +* [Update Setting](https://api.configcat.com/docs/index.html#operation/update-setting) +* [Delete Setting](https://api.configcat.com/docs/index.html#operation/delete-setting) diff --git a/docs/resources/setting_value.md b/docs/resources/setting_value.md index d7172c5d..45cbac0d 100644 --- a/docs/resources/setting_value.md +++ b/docs/resources/setting_value.md @@ -105,5 +105,5 @@ $ terraform import configcat_setting_value.example 08d86d63-2726-47cd-8bfc-59608 [Read more](https://learn.hashicorp.com/tutorials/terraform/state-import) about importing. ## Used APIs -* [Read](https://api.configcat.com/docs/#operation/get-setting-value) -* [Update](https://api.configcat.com/docs/#operation/replace-setting-value) +* [Get Setting Value](https://api.configcat.com/docs/#operation/get-setting-value) +* [Replace Setting Value](https://api.configcat.com/docs/#operation/replace-setting-value) diff --git a/go.mod b/go.mod index 5d144d33..a5c0fb26 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/configcat/terraform-provider-configcat go 1.15 require ( - github.com/configcat/configcat-publicapi-go-client v0.10.0 + github.com/configcat/configcat-publicapi-go-client v0.11.0 github.com/google/uuid v1.1.2 github.com/hashicorp/terraform-plugin-sdk/v2 v2.0.3 ) diff --git a/go.sum b/go.sum index f3e199dc..5bbd6406 100644 --- a/go.sum +++ b/go.sum @@ -88,6 +88,8 @@ github.com/configcat/configcat-publicapi-go-client v0.8.0 h1:oMdb1B/5mVxlh3b8wKQ github.com/configcat/configcat-publicapi-go-client v0.8.0/go.mod h1:MudfrdzWKuoHJjNXXucQ4nBqqBBd12MSlQHhc0VvlBk= github.com/configcat/configcat-publicapi-go-client v0.10.0 h1:I2LeMkavWA4JUOpZBHDMjxp+0Pcycstihf0/zAasVRU= github.com/configcat/configcat-publicapi-go-client v0.10.0/go.mod h1:MudfrdzWKuoHJjNXXucQ4nBqqBBd12MSlQHhc0VvlBk= +github.com/configcat/configcat-publicapi-go-client v0.11.0 h1:xbm+xQknO5vqGXNWPUyMGb+/7Z2RP4Lgl58Y0QWdfrs= +github.com/configcat/configcat-publicapi-go-client v0.11.0/go.mod h1:MudfrdzWKuoHJjNXXucQ4nBqqBBd12MSlQHhc0VvlBk= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= diff --git a/vendor/github.com/configcat/configcat-publicapi-go-client/model_audit_log_item_model.go b/vendor/github.com/configcat/configcat-publicapi-go-client/model_audit_log_item_model.go index 85c89f55..3e8fcd34 100644 --- a/vendor/github.com/configcat/configcat-publicapi-go-client/model_audit_log_item_model.go +++ b/vendor/github.com/configcat/configcat-publicapi-go-client/model_audit_log_item_model.go @@ -1,25 +1,21 @@ /* * ConfigCat Public Management API * - * **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available here: [swagger.json](v1/swagger.json). You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + * **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available here: [swagger.json](v1/swagger.json). You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. * * API version: v1 * Contact: support@configcat.com * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package configcatpublicapi -import ( - "time" -) type AuditLogItemModel struct { - AuditLogId int64 `json:"auditLogId,omitempty"` - AuditLogDateTime time.Time `json:"auditLogDateTime,omitempty"` + AuditLogId int64 `json:"auditLogId,omitempty"` AuditLogType string `json:"auditLogType,omitempty"` - UserEmail string `json:"userEmail,omitempty"` - UserName string `json:"userName,omitempty"` - Where string `json:"where,omitempty"` - Why string `json:"why,omitempty"` + UserEmail string `json:"userEmail,omitempty"` + UserName string `json:"userName,omitempty"` + Where string `json:"where,omitempty"` + Why string `json:"why,omitempty"` ActionTarget string `json:"actionTarget,omitempty"` - Details string `json:"details,omitempty"` + Details string `json:"details,omitempty"` } diff --git a/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_data_model.go b/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_data_model.go index f3bf02e2..88dbc6d7 100644 --- a/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_data_model.go +++ b/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_data_model.go @@ -1,27 +1,22 @@ /* * ConfigCat Public Management API * - * **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available here: [swagger.json](v1/swagger.json). You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + * **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available here: [swagger.json](v1/swagger.json). You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. * * API version: v1 * Contact: support@configcat.com * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package configcatpublicapi -import ( - "time" -) type SettingDataModel struct { - SettingId int32 `json:"settingId,omitempty"` - Key string `json:"key,omitempty"` - Name string `json:"name,omitempty"` - Hint string `json:"hint,omitempty"` - SettingType *SettingType `json:"settingType,omitempty"` - CreatedAt time.Time `json:"createdAt,omitempty"` - CreatorEmail string `json:"creatorEmail,omitempty"` - CreatorFullName string `json:"creatorFullName,omitempty"` - OwnerFullName string `json:"ownerFullName,omitempty"` - OwnerEmail string `json:"ownerEmail,omitempty"` - ExpirationWarningAt time.Time `json:"expirationWarningAt,omitempty"` + SettingId int32 `json:"settingId,omitempty"` + Key string `json:"key,omitempty"` + Name string `json:"name,omitempty"` + Hint string `json:"hint,omitempty"` + SettingType *SettingType `json:"settingType,omitempty"` + CreatorEmail string `json:"creatorEmail,omitempty"` + CreatorFullName string `json:"creatorFullName,omitempty"` + OwnerFullName string `json:"ownerFullName,omitempty"` + OwnerEmail string `json:"ownerEmail,omitempty"` } diff --git a/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_model.go b/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_model.go index 1434b47b..681df066 100644 --- a/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_model.go +++ b/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_model.go @@ -1,26 +1,22 @@ /* * ConfigCat Public Management API * - * **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available here: [swagger.json](v1/swagger.json). You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + * **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available here: [swagger.json](v1/swagger.json). You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. * * API version: v1 * Contact: support@configcat.com * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package configcatpublicapi -import ( - "time" -) type SettingModel struct { - SettingId int32 `json:"settingId,omitempty"` - Key string `json:"key,omitempty"` - Name string `json:"name,omitempty"` - Hint string `json:"hint,omitempty"` - SettingType *SettingType `json:"settingType,omitempty"` - OwnerUserEmail string `json:"ownerUserEmail,omitempty"` - OwnerUserFullName string `json:"ownerUserFullName,omitempty"` - ExpirationWarningAt time.Time `json:"expirationWarningAt,omitempty"` - ConfigId string `json:"configId,omitempty"` - ConfigName string `json:"configName,omitempty"` + SettingId int32 `json:"settingId,omitempty"` + Key string `json:"key,omitempty"` + Name string `json:"name,omitempty"` + Hint string `json:"hint,omitempty"` + SettingType *SettingType `json:"settingType,omitempty"` + OwnerUserEmail string `json:"ownerUserEmail,omitempty"` + OwnerUserFullName string `json:"ownerUserFullName,omitempty"` + ConfigId string `json:"configId,omitempty"` + ConfigName string `json:"configName,omitempty"` } diff --git a/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_value_model.go b/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_value_model.go index c7be5221..98c4492b 100644 --- a/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_value_model.go +++ b/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_value_model.go @@ -1,27 +1,23 @@ /* * ConfigCat Public Management API * - * **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available here: [swagger.json](v1/swagger.json). You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + * **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available here: [swagger.json](v1/swagger.json). You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. * * API version: v1 * Contact: support@configcat.com * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package configcatpublicapi -import ( - "time" -) type SettingValueModel struct { - Config *ConfigModel `json:"config,omitempty"` - Environment *EnvironmentModel `json:"environment,omitempty"` - ReadOnly bool `json:"readOnly,omitempty"` - Setting *SettingDataModel `json:"setting,omitempty"` - UpdatedAt time.Time `json:"updatedAt,omitempty"` - LastUpdaterUserEmail string `json:"lastUpdaterUserEmail,omitempty"` - LastUpdaterUserFullName string `json:"lastUpdaterUserFullName,omitempty"` - IntegrationLinks []IntegrationLinkModel `json:"integrationLinks,omitempty"` - SettingTags []SettingTagModel `json:"settingTags,omitempty"` + Config *ConfigModel `json:"config,omitempty"` + Environment *EnvironmentModel `json:"environment,omitempty"` + ReadOnly bool `json:"readOnly,omitempty"` + Setting *SettingDataModel `json:"setting,omitempty"` + LastUpdaterUserEmail string `json:"lastUpdaterUserEmail,omitempty"` + LastUpdaterUserFullName string `json:"lastUpdaterUserFullName,omitempty"` + IntegrationLinks []IntegrationLinkModel `json:"integrationLinks,omitempty"` + SettingTags []SettingTagModel `json:"settingTags,omitempty"` // The targeting rule collection. RolloutRules []RolloutRuleModel `json:"rolloutRules,omitempty"` // The percentage rule collection. diff --git a/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_value_model_haljson.go b/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_value_model_haljson.go index eadec244..f4dede48 100644 --- a/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_value_model_haljson.go +++ b/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_value_model_haljson.go @@ -1,28 +1,24 @@ /* * ConfigCat Public Management API * - * **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available here: [swagger.json](v1/swagger.json). You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + * **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available here: [swagger.json](v1/swagger.json). You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. * * API version: v1 * Contact: support@configcat.com * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package configcatpublicapi -import ( - "time" -) type SettingValueModelHaljson struct { - ReadOnly bool `json:"readOnly,omitempty"` - UpdatedAt time.Time `json:"updatedAt,omitempty"` - LastUpdaterUserEmail string `json:"lastUpdaterUserEmail,omitempty"` - LastUpdaterUserFullName string `json:"lastUpdaterUserFullName,omitempty"` - Embedded *SettingValueModelhaljsonEmbedded `json:"_embedded,omitempty"` + ReadOnly bool `json:"readOnly,omitempty"` + LastUpdaterUserEmail string `json:"lastUpdaterUserEmail,omitempty"` + LastUpdaterUserFullName string `json:"lastUpdaterUserFullName,omitempty"` + Embedded *SettingValueModelhaljsonEmbedded `json:"_embedded,omitempty"` // The targeting rule collection. RolloutRules []RolloutRuleModel `json:"rolloutRules,omitempty"` // The percentage rule collection. RolloutPercentageItems []RolloutPercentageItemModel `json:"rolloutPercentageItems,omitempty"` // The value to serve. It must respect the setting type. - Value *interface{} `json:"value,omitempty"` + Value *interface{} `json:"value,omitempty"` Links *SettingValueModelhaljsonLinks `json:"_links,omitempty"` } diff --git a/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_value_modelhaljson__embedded_setting.go b/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_value_modelhaljson__embedded_setting.go index f8533a2b..9aa52fc7 100644 --- a/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_value_modelhaljson__embedded_setting.go +++ b/vendor/github.com/configcat/configcat-publicapi-go-client/model_setting_value_modelhaljson__embedded_setting.go @@ -1,27 +1,22 @@ /* * ConfigCat Public Management API * - * **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available here: [swagger.json](v1/swagger.json). You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + * **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available here: [swagger.json](v1/swagger.json). You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. * * API version: v1 * Contact: support@configcat.com * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package configcatpublicapi -import ( - "time" -) type SettingValueModelhaljsonEmbeddedSetting struct { - SettingId int32 `json:"settingId,omitempty"` - Key string `json:"key,omitempty"` - Name string `json:"name,omitempty"` - Hint string `json:"hint,omitempty"` - SettingType *SettingType `json:"settingType,omitempty"` - CreatedAt time.Time `json:"createdAt,omitempty"` - CreatorEmail string `json:"creatorEmail,omitempty"` - CreatorFullName string `json:"creatorFullName,omitempty"` - OwnerFullName string `json:"ownerFullName,omitempty"` - OwnerEmail string `json:"ownerEmail,omitempty"` - ExpirationWarningAt time.Time `json:"expirationWarningAt,omitempty"` + SettingId int32 `json:"settingId,omitempty"` + Key string `json:"key,omitempty"` + Name string `json:"name,omitempty"` + Hint string `json:"hint,omitempty"` + SettingType *SettingType `json:"settingType,omitempty"` + CreatorEmail string `json:"creatorEmail,omitempty"` + CreatorFullName string `json:"creatorFullName,omitempty"` + OwnerFullName string `json:"ownerFullName,omitempty"` + OwnerEmail string `json:"ownerEmail,omitempty"` } diff --git a/vendor/modules.txt b/vendor/modules.txt index b3804d51..5ee6a1f2 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -54,7 +54,7 @@ github.com/aws/aws-sdk-go/service/sts github.com/aws/aws-sdk-go/service/sts/stsiface # github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d github.com/bgentry/go-netrc/netrc -# github.com/configcat/configcat-publicapi-go-client v0.10.0 +# github.com/configcat/configcat-publicapi-go-client v0.11.0 ## explicit github.com/configcat/configcat-publicapi-go-client # github.com/davecgh/go-spew v1.1.1