diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index b78c3d0..656488f 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -12,6 +12,7 @@ api_feature_flag_setting_values_using_sdk_key_v2.go
api_feature_flag_setting_values_v2.go
api_feature_flags_settings.go
api_integration_links.go
+api_integrations.go
api_me.go
api_members.go
api_organizations.go
@@ -28,11 +29,10 @@ docs/AddOrUpdateIntegrationLinkModel.md
docs/AddOrUpdateJiraIntegrationLinkModel.md
docs/AuditLogItemModel.md
docs/AuditLogType.md
-docs/AuditLogsApi.md
+docs/AuditLogsAPI.md
docs/CodeReferenceModel.md
docs/CodeReferenceRequest.md
-docs/CodeReferencesApi.md
-docs/CodeReferencesForSettingModel.md
+docs/CodeReferencesAPI.md
docs/ComparisonValueListModel.md
docs/ComparisonValueModel.md
docs/ConditionModel.md
@@ -41,10 +41,11 @@ docs/ConfigSettingFormulaModel.md
docs/ConfigSettingFormulasModel.md
docs/ConfigSettingValueModel.md
docs/ConfigSettingValuesModel.md
-docs/ConfigsApi.md
+docs/ConfigsAPI.md
docs/ConnectRequest.md
docs/CreateConfigRequest.md
docs/CreateEnvironmentModel.md
+docs/CreateIntegrationModel.md
docs/CreateOrUpdateEnvironmentAccessModel.md
docs/CreatePermissionGroupRequest.md
docs/CreateProductRequest.md
@@ -56,29 +57,34 @@ docs/DeleteRepositoryReportsRequest.md
docs/EnvironmentAccessModel.md
docs/EnvironmentAccessType.md
docs/EnvironmentModel.md
-docs/EnvironmentsApi.md
+docs/EnvironmentsAPI.md
docs/EvaluationVersion.md
docs/FeatureFlagLimitations.md
-docs/FeatureFlagSettingValuesApi.md
-docs/FeatureFlagSettingValuesUsingSDKKeyApi.md
-docs/FeatureFlagSettingValuesUsingSDKKeyV2Api.md
-docs/FeatureFlagSettingValuesV2Api.md
-docs/FeatureFlagsSettingsApi.md
+docs/FeatureFlagSettingValuesAPI.md
+docs/FeatureFlagSettingValuesUsingSDKKeyAPI.md
+docs/FeatureFlagSettingValuesUsingSDKKeyV2API.md
+docs/FeatureFlagSettingValuesV2API.md
+docs/FeatureFlagsSettingsAPI.md
docs/FlagReference.md
docs/InitialValue.md
docs/IntegrationLinkDetail.md
docs/IntegrationLinkDetailsModel.md
docs/IntegrationLinkModel.md
docs/IntegrationLinkType.md
-docs/IntegrationLinksApi.md
+docs/IntegrationLinksAPI.md
+docs/IntegrationModel.md
+docs/IntegrationType.md
+docs/IntegrationsAPI.md
+docs/IntegrationsModel.md
docs/InvitationModel.md
docs/InviteMembersRequest.md
docs/JsonPatchOperation.md
docs/KeyGenerationMode.md
-docs/MeApi.md
+docs/MeAPI.md
docs/MeModel.md
docs/MemberModel.md
-docs/MembersApi.md
+docs/MembersAPI.md
+docs/ModifyIntegrationRequest.md
docs/OperationType.md
docs/OrganizationAdminModel.md
docs/OrganizationInvitationModel.md
@@ -88,15 +94,15 @@ docs/OrganizationModel.md
docs/OrganizationPermissionGroupModel.md
docs/OrganizationPermissionModel.md
docs/OrganizationProductModel.md
-docs/OrganizationsApi.md
+docs/OrganizationsAPI.md
docs/PercentageOptionModel.md
docs/PermissionGroupModel.md
-docs/PermissionGroupsApi.md
+docs/PermissionGroupsAPI.md
docs/PreferencesModel.md
docs/PrerequisiteComparator.md
docs/PrerequisiteFlagConditionModel.md
docs/ProductModel.md
-docs/ProductsApi.md
+docs/ProductsAPI.md
docs/ReasonRequiredEnvironmentModel.md
docs/ReferenceLine.md
docs/ReferenceLines.md
@@ -104,13 +110,13 @@ docs/ReplaceSettingModel.md
docs/RolloutPercentageItemModel.md
docs/RolloutRuleComparator.md
docs/RolloutRuleModel.md
-docs/SDKKeysApi.md
+docs/SDKKeysAPI.md
docs/SdkKeysModel.md
docs/SegmentComparator.md
docs/SegmentConditionModel.md
docs/SegmentListModel.md
docs/SegmentModel.md
-docs/SegmentsApi.md
+docs/SegmentsAPI.md
docs/SettingDataModel.md
docs/SettingFormulaModel.md
docs/SettingModel.md
@@ -118,7 +124,7 @@ docs/SettingTagModel.md
docs/SettingType.md
docs/SettingValueModel.md
docs/TagModel.md
-docs/TagsApi.md
+docs/TagsAPI.md
docs/TargetingRuleModel.md
docs/UpdateConfigRequest.md
docs/UpdateEnvironmentModel.md
@@ -146,7 +152,7 @@ docs/WebhookEnvironment.md
docs/WebhookHeaderModel.md
docs/WebhookModel.md
docs/WebhookSigningKeysModel.md
-docs/WebhooksApi.md
+docs/WebhooksAPI.md
git_push.sh
go.mod
go.sum
@@ -157,7 +163,6 @@ model_audit_log_item_model.go
model_audit_log_type.go
model_code_reference_model.go
model_code_reference_request.go
-model_code_references_for_setting_model.go
model_comparison_value_list_model.go
model_comparison_value_model.go
model_condition_model.go
@@ -169,6 +174,7 @@ model_config_setting_values_model.go
model_connect_request.go
model_create_config_request.go
model_create_environment_model.go
+model_create_integration_model.go
model_create_or_update_environment_access_model.go
model_create_permission_group_request.go
model_create_product_request.go
@@ -188,12 +194,16 @@ model_integration_link_detail.go
model_integration_link_details_model.go
model_integration_link_model.go
model_integration_link_type.go
+model_integration_model.go
+model_integration_type.go
+model_integrations_model.go
model_invitation_model.go
model_invite_members_request.go
model_json_patch_operation.go
model_key_generation_mode.go
model_me_model.go
model_member_model.go
+model_modify_integration_request.go
model_operation_type.go
model_organization_admin_model.go
model_organization_invitation_model.go
@@ -256,4 +266,5 @@ model_webhook_header_model.go
model_webhook_model.go
model_webhook_signing_keys_model.go
response.go
+test/api_integrations_test.go
utils.go
diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION
index cd802a1..1985849 100644
--- a/.openapi-generator/VERSION
+++ b/.openapi-generator/VERSION
@@ -1 +1 @@
-6.6.0
\ No newline at end of file
+7.7.0
diff --git a/README.md b/README.md
index 70598c7..015be24 100644
--- a/README.md
+++ b/README.md
@@ -8,8 +8,9 @@ You can **Create**, **Read**, **Update** and **Delete** any entities like **Feat
If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger).
The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON
-format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview).
+format.
+**Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead.
# OpenAPI Specification
@@ -41,6 +42,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat
- API version: v1
- Package version: 1.0.0
+- Generator version: 7.7.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
For more information, please visit [https://configcat.com](https://configcat.com)
@@ -48,20 +50,20 @@ For more information, please visit [https://configcat.com](https://configcat.com
Install the following dependencies:
-```shell
+```sh
go get github.com/stretchr/testify/assert
go get golang.org/x/net/context
```
Put the package under your project folder and add the following in import:
-```golang
+```go
import configcatpublicapi "github.com/configcat/configcat-publicapi-go-client"
```
To use a proxy, set the environment variable `HTTP_PROXY`:
-```golang
+```go
os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")
```
@@ -71,17 +73,17 @@ Default configuration comes with `Servers` field that contains server objects as
### Select Server Configuration
-For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`.
+For using other server than the one defined on index 0 set context value `configcatpublicapi.ContextServerIndex` of type `int`.
-```golang
+```go
ctx := context.WithValue(context.Background(), configcatpublicapi.ContextServerIndex, 1)
```
### Templated Server URL
-Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`.
+Templated server URL is formatted using default variables from configuration or from context value `configcatpublicapi.ContextServerVariables` of type `map[string]string`.
-```golang
+```go
ctx := context.WithValue(context.Background(), configcatpublicapi.ContextServerVariables, map[string]string{
"basePath": "v2",
})
@@ -93,9 +95,9 @@ Note, enum values are always validated and all unused variables are silently ign
Each operation can use different server URL defined using `OperationServers` map in the `Configuration`.
An operation is uniquely identified by `"{classname}Service.{nickname}"` string.
-Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps.
+Similar rules for overriding default operation server index and variables applies by using `configcatpublicapi.ContextOperationServerIndices` and `configcatpublicapi.ContextOperationServerVariables` context maps.
-```golang
+```go
ctx := context.WithValue(context.Background(), configcatpublicapi.ContextOperationServerIndices, map[string]int{
"{classname}Service.{nickname}": 2,
})
@@ -112,93 +114,97 @@ All URIs are relative to *https://test-api.configcat.com*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
-*AuditLogsApi* | [**GetAuditlogs**](docs/AuditLogsApi.md#getauditlogs) | **Get** /v1/products/{productId}/auditlogs | List Audit log items for Product
-*AuditLogsApi* | [**GetDeletedSettings**](docs/AuditLogsApi.md#getdeletedsettings) | **Get** /v1/configs/{configId}/deleted-settings | List Deleted Settings
-*AuditLogsApi* | [**GetOrganizationAuditlogs**](docs/AuditLogsApi.md#getorganizationauditlogs) | **Get** /v1/organizations/{organizationId}/auditlogs | List Audit log items for Organization
-*CodeReferencesApi* | [**V1CodeReferencesDeleteReportsPost**](docs/CodeReferencesApi.md#v1codereferencesdeletereportspost) | **Post** /v1/code-references/delete-reports | Delete Reference reports
-*CodeReferencesApi* | [**V1CodeReferencesPost**](docs/CodeReferencesApi.md#v1codereferencespost) | **Post** /v1/code-references | Upload References
-*CodeReferencesApi* | [**V1ConfigsConfigIdCodeReferencesGet**](docs/CodeReferencesApi.md#v1configsconfigidcodereferencesget) | **Get** /v1/configs/{configId}/code-references | Get References in Config
-*CodeReferencesApi* | [**V1SettingsSettingIdCodeReferencesGet**](docs/CodeReferencesApi.md#v1settingssettingidcodereferencesget) | **Get** /v1/settings/{settingId}/code-references | Get References for Feature Flag or Setting
-*ConfigsApi* | [**CreateConfig**](docs/ConfigsApi.md#createconfig) | **Post** /v1/products/{productId}/configs | Create Config
-*ConfigsApi* | [**DeleteConfig**](docs/ConfigsApi.md#deleteconfig) | **Delete** /v1/configs/{configId} | Delete Config
-*ConfigsApi* | [**GetConfig**](docs/ConfigsApi.md#getconfig) | **Get** /v1/configs/{configId} | Get Config
-*ConfigsApi* | [**GetConfigs**](docs/ConfigsApi.md#getconfigs) | **Get** /v1/products/{productId}/configs | List Configs
-*ConfigsApi* | [**UpdateConfig**](docs/ConfigsApi.md#updateconfig) | **Put** /v1/configs/{configId} | Update Config
-*EnvironmentsApi* | [**CreateEnvironment**](docs/EnvironmentsApi.md#createenvironment) | **Post** /v1/products/{productId}/environments | Create Environment
-*EnvironmentsApi* | [**DeleteEnvironment**](docs/EnvironmentsApi.md#deleteenvironment) | **Delete** /v1/environments/{environmentId} | Delete Environment
-*EnvironmentsApi* | [**GetEnvironment**](docs/EnvironmentsApi.md#getenvironment) | **Get** /v1/environments/{environmentId} | Get Environment
-*EnvironmentsApi* | [**GetEnvironments**](docs/EnvironmentsApi.md#getenvironments) | **Get** /v1/products/{productId}/environments | List Environments
-*EnvironmentsApi* | [**UpdateEnvironment**](docs/EnvironmentsApi.md#updateenvironment) | **Put** /v1/environments/{environmentId} | Update Environment
-*FeatureFlagSettingValuesApi* | [**GetSettingValue**](docs/FeatureFlagSettingValuesApi.md#getsettingvalue) | **Get** /v1/environments/{environmentId}/settings/{settingId}/value | Get value
-*FeatureFlagSettingValuesApi* | [**GetSettingValues**](docs/FeatureFlagSettingValuesApi.md#getsettingvalues) | **Get** /v1/configs/{configId}/environments/{environmentId}/values | Get values
-*FeatureFlagSettingValuesApi* | [**PostSettingValues**](docs/FeatureFlagSettingValuesApi.md#postsettingvalues) | **Post** /v1/configs/{configId}/environments/{environmentId}/values | Post values
-*FeatureFlagSettingValuesApi* | [**ReplaceSettingValue**](docs/FeatureFlagSettingValuesApi.md#replacesettingvalue) | **Put** /v1/environments/{environmentId}/settings/{settingId}/value | Replace value
-*FeatureFlagSettingValuesApi* | [**UpdateSettingValue**](docs/FeatureFlagSettingValuesApi.md#updatesettingvalue) | **Patch** /v1/environments/{environmentId}/settings/{settingId}/value | Update value
-*FeatureFlagSettingValuesUsingSDKKeyApi* | [**GetSettingValueBySdkkey**](docs/FeatureFlagSettingValuesUsingSDKKeyApi.md#getsettingvaluebysdkkey) | **Get** /v1/settings/{settingKeyOrId}/value | Get value
-*FeatureFlagSettingValuesUsingSDKKeyApi* | [**ReplaceSettingValueBySdkkey**](docs/FeatureFlagSettingValuesUsingSDKKeyApi.md#replacesettingvaluebysdkkey) | **Put** /v1/settings/{settingKeyOrId}/value | Replace value
-*FeatureFlagSettingValuesUsingSDKKeyApi* | [**UpdateSettingValueBySdkkey**](docs/FeatureFlagSettingValuesUsingSDKKeyApi.md#updatesettingvaluebysdkkey) | **Patch** /v1/settings/{settingKeyOrId}/value | Update value
-*FeatureFlagSettingValuesUsingSDKKeyV2Api* | [**GetSettingValueBySdkkeyV2**](docs/FeatureFlagSettingValuesUsingSDKKeyV2Api.md#getsettingvaluebysdkkeyv2) | **Get** /v2/settings/{settingKeyOrId}/value | Get value
-*FeatureFlagSettingValuesUsingSDKKeyV2Api* | [**ReplaceSettingValueBySdkkeyV2**](docs/FeatureFlagSettingValuesUsingSDKKeyV2Api.md#replacesettingvaluebysdkkeyv2) | **Put** /v2/settings/{settingKeyOrId}/value | Replace value
-*FeatureFlagSettingValuesUsingSDKKeyV2Api* | [**UpdateSettingValueBySdkkeyV2**](docs/FeatureFlagSettingValuesUsingSDKKeyV2Api.md#updatesettingvaluebysdkkeyv2) | **Patch** /v2/settings/{settingKeyOrId}/value | Update value
-*FeatureFlagSettingValuesV2Api* | [**GetSettingValueV2**](docs/FeatureFlagSettingValuesV2Api.md#getsettingvaluev2) | **Get** /v2/environments/{environmentId}/settings/{settingId}/value | Get value
-*FeatureFlagSettingValuesV2Api* | [**GetSettingValuesV2**](docs/FeatureFlagSettingValuesV2Api.md#getsettingvaluesv2) | **Get** /v2/configs/{configId}/environments/{environmentId}/values | Get values
-*FeatureFlagSettingValuesV2Api* | [**PostSettingValuesV2**](docs/FeatureFlagSettingValuesV2Api.md#postsettingvaluesv2) | **Post** /v2/configs/{configId}/environments/{environmentId}/values | Post values
-*FeatureFlagSettingValuesV2Api* | [**ReplaceSettingValueV2**](docs/FeatureFlagSettingValuesV2Api.md#replacesettingvaluev2) | **Put** /v2/environments/{environmentId}/settings/{settingId}/value | Replace value
-*FeatureFlagSettingValuesV2Api* | [**UpdateSettingValueV2**](docs/FeatureFlagSettingValuesV2Api.md#updatesettingvaluev2) | **Patch** /v2/environments/{environmentId}/settings/{settingId}/value | Update value
-*FeatureFlagsSettingsApi* | [**CreateSetting**](docs/FeatureFlagsSettingsApi.md#createsetting) | **Post** /v1/configs/{configId}/settings | Create Flag
-*FeatureFlagsSettingsApi* | [**DeleteSetting**](docs/FeatureFlagsSettingsApi.md#deletesetting) | **Delete** /v1/settings/{settingId} | Delete Flag
-*FeatureFlagsSettingsApi* | [**GetSetting**](docs/FeatureFlagsSettingsApi.md#getsetting) | **Get** /v1/settings/{settingId} | Get Flag
-*FeatureFlagsSettingsApi* | [**GetSettings**](docs/FeatureFlagsSettingsApi.md#getsettings) | **Get** /v1/configs/{configId}/settings | List Flags
-*FeatureFlagsSettingsApi* | [**ReplaceSetting**](docs/FeatureFlagsSettingsApi.md#replacesetting) | **Put** /v1/settings/{settingId} | Replace Flag
-*FeatureFlagsSettingsApi* | [**UpdateSetting**](docs/FeatureFlagsSettingsApi.md#updatesetting) | **Patch** /v1/settings/{settingId} | Update Flag
-*IntegrationLinksApi* | [**AddOrUpdateIntegrationLink**](docs/IntegrationLinksApi.md#addorupdateintegrationlink) | **Post** /v1/environments/{environmentId}/settings/{settingId}/integrationLinks/{integrationLinkType}/{key} | Add or update Integration link
-*IntegrationLinksApi* | [**DeleteIntegrationLink**](docs/IntegrationLinksApi.md#deleteintegrationlink) | **Delete** /v1/environments/{environmentId}/settings/{settingId}/integrationLinks/{integrationLinkType}/{key} | Delete Integration link
-*IntegrationLinksApi* | [**GetIntegrationLinkDetails**](docs/IntegrationLinksApi.md#getintegrationlinkdetails) | **Get** /v1/integrationLink/{integrationLinkType}/{key}/details | Get Integration link
-*IntegrationLinksApi* | [**JiraAddOrUpdateIntegrationLink**](docs/IntegrationLinksApi.md#jiraaddorupdateintegrationlink) | **Post** /v1/jira/environments/{environmentId}/settings/{settingId}/integrationLinks/{key} |
-*IntegrationLinksApi* | [**JiraConnect**](docs/IntegrationLinksApi.md#jiraconnect) | **Post** /v1/jira/connect |
-*MeApi* | [**GetMe**](docs/MeApi.md#getme) | **Get** /v1/me | Get authenticated user details
-*MembersApi* | [**AddMemberToGroup**](docs/MembersApi.md#addmembertogroup) | **Post** /v1/organizations/{organizationId}/members/{userId} | Update Member Permissions
-*MembersApi* | [**DeleteInvitation**](docs/MembersApi.md#deleteinvitation) | **Delete** /v1/invitations/{invitationId} | Delete Invitation
-*MembersApi* | [**DeleteOrganizationMember**](docs/MembersApi.md#deleteorganizationmember) | **Delete** /v1/organizations/{organizationId}/members/{userId} | Delete Member from Organization
-*MembersApi* | [**DeleteProductMember**](docs/MembersApi.md#deleteproductmember) | **Delete** /v1/products/{productId}/members/{userId} | Delete Member from Product
-*MembersApi* | [**GetOrganizationMembers**](docs/MembersApi.md#getorganizationmembers) | **Get** /v1/organizations/{organizationId}/members | List Organization Members
-*MembersApi* | [**GetOrganizationMembersV2**](docs/MembersApi.md#getorganizationmembersv2) | **Get** /v2/organizations/{organizationId}/members | List Organization Members
-*MembersApi* | [**GetPendingInvitations**](docs/MembersApi.md#getpendinginvitations) | **Get** /v1/products/{productId}/invitations | List Pending Invitations in Product
-*MembersApi* | [**GetPendingInvitationsOrg**](docs/MembersApi.md#getpendinginvitationsorg) | **Get** /v1/organizations/{organizationId}/invitations | List Pending Invitations in Organization
-*MembersApi* | [**GetProductMembers**](docs/MembersApi.md#getproductmembers) | **Get** /v1/products/{productId}/members | List Product Members
-*MembersApi* | [**InviteMember**](docs/MembersApi.md#invitemember) | **Post** /v1/products/{productId}/members/invite | Invite Member
-*OrganizationsApi* | [**GetOrganizations**](docs/OrganizationsApi.md#getorganizations) | **Get** /v1/organizations | List Organizations
-*PermissionGroupsApi* | [**CreatePermissionGroup**](docs/PermissionGroupsApi.md#createpermissiongroup) | **Post** /v1/products/{productId}/permissions | Create Permission Group
-*PermissionGroupsApi* | [**DeletePermissionGroup**](docs/PermissionGroupsApi.md#deletepermissiongroup) | **Delete** /v1/permissions/{permissionGroupId} | Delete Permission Group
-*PermissionGroupsApi* | [**GetPermissionGroup**](docs/PermissionGroupsApi.md#getpermissiongroup) | **Get** /v1/permissions/{permissionGroupId} | Get Permission Group
-*PermissionGroupsApi* | [**GetPermissionGroups**](docs/PermissionGroupsApi.md#getpermissiongroups) | **Get** /v1/products/{productId}/permissions | List Permission Groups
-*PermissionGroupsApi* | [**UpdatePermissionGroup**](docs/PermissionGroupsApi.md#updatepermissiongroup) | **Put** /v1/permissions/{permissionGroupId} | Update Permission Group
-*ProductsApi* | [**CreateProduct**](docs/ProductsApi.md#createproduct) | **Post** /v1/organizations/{organizationId}/products | Create Product
-*ProductsApi* | [**DeleteProduct**](docs/ProductsApi.md#deleteproduct) | **Delete** /v1/products/{productId} | Delete Product
-*ProductsApi* | [**GetProduct**](docs/ProductsApi.md#getproduct) | **Get** /v1/products/{productId} | Get Product
-*ProductsApi* | [**GetProductPreferences**](docs/ProductsApi.md#getproductpreferences) | **Get** /v1/products/{productId}/preferences | Get Product Preferences
-*ProductsApi* | [**GetProducts**](docs/ProductsApi.md#getproducts) | **Get** /v1/products | List Products
-*ProductsApi* | [**UpdateProduct**](docs/ProductsApi.md#updateproduct) | **Put** /v1/products/{productId} | Update Product
-*ProductsApi* | [**UpdateProductPreferences**](docs/ProductsApi.md#updateproductpreferences) | **Post** /v1/products/{productId}/preferences | Update Product Preferences
-*SDKKeysApi* | [**GetSdkKeys**](docs/SDKKeysApi.md#getsdkkeys) | **Get** /v1/configs/{configId}/environments/{environmentId} | Get SDK Key
-*SegmentsApi* | [**CreateSegment**](docs/SegmentsApi.md#createsegment) | **Post** /v1/products/{productId}/segments | Create Segment
-*SegmentsApi* | [**DeleteSegment**](docs/SegmentsApi.md#deletesegment) | **Delete** /v1/segments/{segmentId} | Delete Segment
-*SegmentsApi* | [**GetSegment**](docs/SegmentsApi.md#getsegment) | **Get** /v1/segments/{segmentId} | Get Segment
-*SegmentsApi* | [**GetSegments**](docs/SegmentsApi.md#getsegments) | **Get** /v1/products/{productId}/segments | List Segments
-*SegmentsApi* | [**UpdateSegment**](docs/SegmentsApi.md#updatesegment) | **Put** /v1/segments/{segmentId} | Update Segment
-*TagsApi* | [**CreateTag**](docs/TagsApi.md#createtag) | **Post** /v1/products/{productId}/tags | Create Tag
-*TagsApi* | [**DeleteTag**](docs/TagsApi.md#deletetag) | **Delete** /v1/tags/{tagId} | Delete Tag
-*TagsApi* | [**GetSettingsByTag**](docs/TagsApi.md#getsettingsbytag) | **Get** /v1/tags/{tagId}/settings | List Settings by Tag
-*TagsApi* | [**GetTag**](docs/TagsApi.md#gettag) | **Get** /v1/tags/{tagId} | Get Tag
-*TagsApi* | [**GetTags**](docs/TagsApi.md#gettags) | **Get** /v1/products/{productId}/tags | List Tags
-*TagsApi* | [**UpdateTag**](docs/TagsApi.md#updatetag) | **Put** /v1/tags/{tagId} | Update Tag
-*WebhooksApi* | [**CreateWebhook**](docs/WebhooksApi.md#createwebhook) | **Post** /v1/configs/{configId}/environments/{environmentId}/webhooks | Create Webhook
-*WebhooksApi* | [**DeleteWebhook**](docs/WebhooksApi.md#deletewebhook) | **Delete** /v1/webhooks/{webhookId} | Delete Webhook
-*WebhooksApi* | [**GetWebhook**](docs/WebhooksApi.md#getwebhook) | **Get** /v1/webhooks/{webhookId} | Get Webhook
-*WebhooksApi* | [**GetWebhookSigningKeys**](docs/WebhooksApi.md#getwebhooksigningkeys) | **Get** /v1/webhooks/{webhookId}/keys | Get Webhook Signing Keys
-*WebhooksApi* | [**GetWebhooks**](docs/WebhooksApi.md#getwebhooks) | **Get** /v1/products/{productId}/webhooks | List Webhooks
-*WebhooksApi* | [**ReplaceWebhook**](docs/WebhooksApi.md#replacewebhook) | **Put** /v1/webhooks/{webhookId} | Replace Webhook
-*WebhooksApi* | [**UpdateWebhook**](docs/WebhooksApi.md#updatewebhook) | **Patch** /v1/webhooks/{webhookId} | Update Webhook
+*AuditLogsAPI* | [**GetAuditlogs**](docs/AuditLogsAPI.md#getauditlogs) | **Get** /v1/products/{productId}/auditlogs | List Audit log items for Product
+*AuditLogsAPI* | [**GetDeletedSettings**](docs/AuditLogsAPI.md#getdeletedsettings) | **Get** /v1/configs/{configId}/deleted-settings | List Deleted Settings
+*AuditLogsAPI* | [**GetOrganizationAuditlogs**](docs/AuditLogsAPI.md#getorganizationauditlogs) | **Get** /v1/organizations/{organizationId}/auditlogs | List Audit log items for Organization
+*CodeReferencesAPI* | [**V1CodeReferencesDeleteReportsPost**](docs/CodeReferencesAPI.md#v1codereferencesdeletereportspost) | **Post** /v1/code-references/delete-reports | Delete Reference reports
+*CodeReferencesAPI* | [**V1CodeReferencesPost**](docs/CodeReferencesAPI.md#v1codereferencespost) | **Post** /v1/code-references | Upload References
+*CodeReferencesAPI* | [**V1SettingsSettingIdCodeReferencesGet**](docs/CodeReferencesAPI.md#v1settingssettingidcodereferencesget) | **Get** /v1/settings/{settingId}/code-references | Get References for Feature Flag or Setting
+*ConfigsAPI* | [**CreateConfig**](docs/ConfigsAPI.md#createconfig) | **Post** /v1/products/{productId}/configs | Create Config
+*ConfigsAPI* | [**DeleteConfig**](docs/ConfigsAPI.md#deleteconfig) | **Delete** /v1/configs/{configId} | Delete Config
+*ConfigsAPI* | [**GetConfig**](docs/ConfigsAPI.md#getconfig) | **Get** /v1/configs/{configId} | Get Config
+*ConfigsAPI* | [**GetConfigs**](docs/ConfigsAPI.md#getconfigs) | **Get** /v1/products/{productId}/configs | List Configs
+*ConfigsAPI* | [**UpdateConfig**](docs/ConfigsAPI.md#updateconfig) | **Put** /v1/configs/{configId} | Update Config
+*EnvironmentsAPI* | [**CreateEnvironment**](docs/EnvironmentsAPI.md#createenvironment) | **Post** /v1/products/{productId}/environments | Create Environment
+*EnvironmentsAPI* | [**DeleteEnvironment**](docs/EnvironmentsAPI.md#deleteenvironment) | **Delete** /v1/environments/{environmentId} | Delete Environment
+*EnvironmentsAPI* | [**GetEnvironment**](docs/EnvironmentsAPI.md#getenvironment) | **Get** /v1/environments/{environmentId} | Get Environment
+*EnvironmentsAPI* | [**GetEnvironments**](docs/EnvironmentsAPI.md#getenvironments) | **Get** /v1/products/{productId}/environments | List Environments
+*EnvironmentsAPI* | [**UpdateEnvironment**](docs/EnvironmentsAPI.md#updateenvironment) | **Put** /v1/environments/{environmentId} | Update Environment
+*FeatureFlagSettingValuesAPI* | [**GetSettingValue**](docs/FeatureFlagSettingValuesAPI.md#getsettingvalue) | **Get** /v1/environments/{environmentId}/settings/{settingId}/value | Get value
+*FeatureFlagSettingValuesAPI* | [**GetSettingValues**](docs/FeatureFlagSettingValuesAPI.md#getsettingvalues) | **Get** /v1/configs/{configId}/environments/{environmentId}/values | Get values
+*FeatureFlagSettingValuesAPI* | [**PostSettingValues**](docs/FeatureFlagSettingValuesAPI.md#postsettingvalues) | **Post** /v1/configs/{configId}/environments/{environmentId}/values | Post values
+*FeatureFlagSettingValuesAPI* | [**ReplaceSettingValue**](docs/FeatureFlagSettingValuesAPI.md#replacesettingvalue) | **Put** /v1/environments/{environmentId}/settings/{settingId}/value | Replace value
+*FeatureFlagSettingValuesAPI* | [**UpdateSettingValue**](docs/FeatureFlagSettingValuesAPI.md#updatesettingvalue) | **Patch** /v1/environments/{environmentId}/settings/{settingId}/value | Update value
+*FeatureFlagSettingValuesUsingSDKKeyAPI* | [**GetSettingValueBySdkkey**](docs/FeatureFlagSettingValuesUsingSDKKeyAPI.md#getsettingvaluebysdkkey) | **Get** /v1/settings/{settingKeyOrId}/value | Get value
+*FeatureFlagSettingValuesUsingSDKKeyAPI* | [**ReplaceSettingValueBySdkkey**](docs/FeatureFlagSettingValuesUsingSDKKeyAPI.md#replacesettingvaluebysdkkey) | **Put** /v1/settings/{settingKeyOrId}/value | Replace value
+*FeatureFlagSettingValuesUsingSDKKeyAPI* | [**UpdateSettingValueBySdkkey**](docs/FeatureFlagSettingValuesUsingSDKKeyAPI.md#updatesettingvaluebysdkkey) | **Patch** /v1/settings/{settingKeyOrId}/value | Update value
+*FeatureFlagSettingValuesUsingSDKKeyV2API* | [**GetSettingValueBySdkkeyV2**](docs/FeatureFlagSettingValuesUsingSDKKeyV2API.md#getsettingvaluebysdkkeyv2) | **Get** /v2/settings/{settingKeyOrId}/value | Get value
+*FeatureFlagSettingValuesUsingSDKKeyV2API* | [**ReplaceSettingValueBySdkkeyV2**](docs/FeatureFlagSettingValuesUsingSDKKeyV2API.md#replacesettingvaluebysdkkeyv2) | **Put** /v2/settings/{settingKeyOrId}/value | Replace value
+*FeatureFlagSettingValuesUsingSDKKeyV2API* | [**UpdateSettingValueBySdkkeyV2**](docs/FeatureFlagSettingValuesUsingSDKKeyV2API.md#updatesettingvaluebysdkkeyv2) | **Patch** /v2/settings/{settingKeyOrId}/value | Update value
+*FeatureFlagSettingValuesV2API* | [**GetSettingValueV2**](docs/FeatureFlagSettingValuesV2API.md#getsettingvaluev2) | **Get** /v2/environments/{environmentId}/settings/{settingId}/value | Get value
+*FeatureFlagSettingValuesV2API* | [**GetSettingValuesV2**](docs/FeatureFlagSettingValuesV2API.md#getsettingvaluesv2) | **Get** /v2/configs/{configId}/environments/{environmentId}/values | Get values
+*FeatureFlagSettingValuesV2API* | [**PostSettingValuesV2**](docs/FeatureFlagSettingValuesV2API.md#postsettingvaluesv2) | **Post** /v2/configs/{configId}/environments/{environmentId}/values | Post values
+*FeatureFlagSettingValuesV2API* | [**ReplaceSettingValueV2**](docs/FeatureFlagSettingValuesV2API.md#replacesettingvaluev2) | **Put** /v2/environments/{environmentId}/settings/{settingId}/value | Replace value
+*FeatureFlagSettingValuesV2API* | [**UpdateSettingValueV2**](docs/FeatureFlagSettingValuesV2API.md#updatesettingvaluev2) | **Patch** /v2/environments/{environmentId}/settings/{settingId}/value | Update value
+*FeatureFlagsSettingsAPI* | [**CreateSetting**](docs/FeatureFlagsSettingsAPI.md#createsetting) | **Post** /v1/configs/{configId}/settings | Create Flag
+*FeatureFlagsSettingsAPI* | [**DeleteSetting**](docs/FeatureFlagsSettingsAPI.md#deletesetting) | **Delete** /v1/settings/{settingId} | Delete Flag
+*FeatureFlagsSettingsAPI* | [**GetSetting**](docs/FeatureFlagsSettingsAPI.md#getsetting) | **Get** /v1/settings/{settingId} | Get Flag
+*FeatureFlagsSettingsAPI* | [**GetSettings**](docs/FeatureFlagsSettingsAPI.md#getsettings) | **Get** /v1/configs/{configId}/settings | List Flags
+*FeatureFlagsSettingsAPI* | [**ReplaceSetting**](docs/FeatureFlagsSettingsAPI.md#replacesetting) | **Put** /v1/settings/{settingId} | Replace Flag
+*FeatureFlagsSettingsAPI* | [**UpdateSetting**](docs/FeatureFlagsSettingsAPI.md#updatesetting) | **Patch** /v1/settings/{settingId} | Update Flag
+*IntegrationLinksAPI* | [**AddOrUpdateIntegrationLink**](docs/IntegrationLinksAPI.md#addorupdateintegrationlink) | **Post** /v1/environments/{environmentId}/settings/{settingId}/integrationLinks/{integrationLinkType}/{key} | Add or update Integration link
+*IntegrationLinksAPI* | [**DeleteIntegrationLink**](docs/IntegrationLinksAPI.md#deleteintegrationlink) | **Delete** /v1/environments/{environmentId}/settings/{settingId}/integrationLinks/{integrationLinkType}/{key} | Delete Integration link
+*IntegrationLinksAPI* | [**GetIntegrationLinkDetails**](docs/IntegrationLinksAPI.md#getintegrationlinkdetails) | **Get** /v1/integrationLink/{integrationLinkType}/{key}/details | Get Integration link
+*IntegrationLinksAPI* | [**JiraAddOrUpdateIntegrationLink**](docs/IntegrationLinksAPI.md#jiraaddorupdateintegrationlink) | **Post** /v1/jira/environments/{environmentId}/settings/{settingId}/integrationLinks/{key} |
+*IntegrationLinksAPI* | [**JiraConnect**](docs/IntegrationLinksAPI.md#jiraconnect) | **Post** /v1/jira/connect |
+*IntegrationsAPI* | [**CreateIntegration**](docs/IntegrationsAPI.md#createintegration) | **Post** /v1/products/{productId}/integrations | Create Integration
+*IntegrationsAPI* | [**DeleteIntegration**](docs/IntegrationsAPI.md#deleteintegration) | **Delete** /v1/integrations/{integrationId} | Delete Integration
+*IntegrationsAPI* | [**GetIntegration**](docs/IntegrationsAPI.md#getintegration) | **Get** /v1/integrations/{integrationId} | Get Integration
+*IntegrationsAPI* | [**GetIntegrations**](docs/IntegrationsAPI.md#getintegrations) | **Get** /v1/products/{productId}/integrations | List Integrations
+*IntegrationsAPI* | [**UpdateIntegration**](docs/IntegrationsAPI.md#updateintegration) | **Put** /v1/integrations/{integrationId} | Update Integration
+*MeAPI* | [**GetMe**](docs/MeAPI.md#getme) | **Get** /v1/me | Get authenticated user details
+*MembersAPI* | [**AddMemberToGroup**](docs/MembersAPI.md#addmembertogroup) | **Post** /v1/organizations/{organizationId}/members/{userId} | Update Member Permissions
+*MembersAPI* | [**DeleteInvitation**](docs/MembersAPI.md#deleteinvitation) | **Delete** /v1/invitations/{invitationId} | Delete Invitation
+*MembersAPI* | [**DeleteOrganizationMember**](docs/MembersAPI.md#deleteorganizationmember) | **Delete** /v1/organizations/{organizationId}/members/{userId} | Delete Member from Organization
+*MembersAPI* | [**DeleteProductMember**](docs/MembersAPI.md#deleteproductmember) | **Delete** /v1/products/{productId}/members/{userId} | Delete Member from Product
+*MembersAPI* | [**GetOrganizationMembers**](docs/MembersAPI.md#getorganizationmembers) | **Get** /v1/organizations/{organizationId}/members | List Organization Members
+*MembersAPI* | [**GetOrganizationMembersV2**](docs/MembersAPI.md#getorganizationmembersv2) | **Get** /v2/organizations/{organizationId}/members | List Organization Members
+*MembersAPI* | [**GetPendingInvitations**](docs/MembersAPI.md#getpendinginvitations) | **Get** /v1/products/{productId}/invitations | List Pending Invitations in Product
+*MembersAPI* | [**GetPendingInvitationsOrg**](docs/MembersAPI.md#getpendinginvitationsorg) | **Get** /v1/organizations/{organizationId}/invitations | List Pending Invitations in Organization
+*MembersAPI* | [**GetProductMembers**](docs/MembersAPI.md#getproductmembers) | **Get** /v1/products/{productId}/members | List Product Members
+*MembersAPI* | [**InviteMember**](docs/MembersAPI.md#invitemember) | **Post** /v1/products/{productId}/members/invite | Invite Member
+*OrganizationsAPI* | [**GetOrganizations**](docs/OrganizationsAPI.md#getorganizations) | **Get** /v1/organizations | List Organizations
+*PermissionGroupsAPI* | [**CreatePermissionGroup**](docs/PermissionGroupsAPI.md#createpermissiongroup) | **Post** /v1/products/{productId}/permissions | Create Permission Group
+*PermissionGroupsAPI* | [**DeletePermissionGroup**](docs/PermissionGroupsAPI.md#deletepermissiongroup) | **Delete** /v1/permissions/{permissionGroupId} | Delete Permission Group
+*PermissionGroupsAPI* | [**GetPermissionGroup**](docs/PermissionGroupsAPI.md#getpermissiongroup) | **Get** /v1/permissions/{permissionGroupId} | Get Permission Group
+*PermissionGroupsAPI* | [**GetPermissionGroups**](docs/PermissionGroupsAPI.md#getpermissiongroups) | **Get** /v1/products/{productId}/permissions | List Permission Groups
+*PermissionGroupsAPI* | [**UpdatePermissionGroup**](docs/PermissionGroupsAPI.md#updatepermissiongroup) | **Put** /v1/permissions/{permissionGroupId} | Update Permission Group
+*ProductsAPI* | [**CreateProduct**](docs/ProductsAPI.md#createproduct) | **Post** /v1/organizations/{organizationId}/products | Create Product
+*ProductsAPI* | [**DeleteProduct**](docs/ProductsAPI.md#deleteproduct) | **Delete** /v1/products/{productId} | Delete Product
+*ProductsAPI* | [**GetProduct**](docs/ProductsAPI.md#getproduct) | **Get** /v1/products/{productId} | Get Product
+*ProductsAPI* | [**GetProductPreferences**](docs/ProductsAPI.md#getproductpreferences) | **Get** /v1/products/{productId}/preferences | Get Product Preferences
+*ProductsAPI* | [**GetProducts**](docs/ProductsAPI.md#getproducts) | **Get** /v1/products | List Products
+*ProductsAPI* | [**UpdateProduct**](docs/ProductsAPI.md#updateproduct) | **Put** /v1/products/{productId} | Update Product
+*ProductsAPI* | [**UpdateProductPreferences**](docs/ProductsAPI.md#updateproductpreferences) | **Post** /v1/products/{productId}/preferences | Update Product Preferences
+*SDKKeysAPI* | [**GetSdkKeys**](docs/SDKKeysAPI.md#getsdkkeys) | **Get** /v1/configs/{configId}/environments/{environmentId} | Get SDK Key
+*SegmentsAPI* | [**CreateSegment**](docs/SegmentsAPI.md#createsegment) | **Post** /v1/products/{productId}/segments | Create Segment
+*SegmentsAPI* | [**DeleteSegment**](docs/SegmentsAPI.md#deletesegment) | **Delete** /v1/segments/{segmentId} | Delete Segment
+*SegmentsAPI* | [**GetSegment**](docs/SegmentsAPI.md#getsegment) | **Get** /v1/segments/{segmentId} | Get Segment
+*SegmentsAPI* | [**GetSegments**](docs/SegmentsAPI.md#getsegments) | **Get** /v1/products/{productId}/segments | List Segments
+*SegmentsAPI* | [**UpdateSegment**](docs/SegmentsAPI.md#updatesegment) | **Put** /v1/segments/{segmentId} | Update Segment
+*TagsAPI* | [**CreateTag**](docs/TagsAPI.md#createtag) | **Post** /v1/products/{productId}/tags | Create Tag
+*TagsAPI* | [**DeleteTag**](docs/TagsAPI.md#deletetag) | **Delete** /v1/tags/{tagId} | Delete Tag
+*TagsAPI* | [**GetSettingsByTag**](docs/TagsAPI.md#getsettingsbytag) | **Get** /v1/tags/{tagId}/settings | List Settings by Tag
+*TagsAPI* | [**GetTag**](docs/TagsAPI.md#gettag) | **Get** /v1/tags/{tagId} | Get Tag
+*TagsAPI* | [**GetTags**](docs/TagsAPI.md#gettags) | **Get** /v1/products/{productId}/tags | List Tags
+*TagsAPI* | [**UpdateTag**](docs/TagsAPI.md#updatetag) | **Put** /v1/tags/{tagId} | Update Tag
+*WebhooksAPI* | [**CreateWebhook**](docs/WebhooksAPI.md#createwebhook) | **Post** /v1/configs/{configId}/environments/{environmentId}/webhooks | Create Webhook
+*WebhooksAPI* | [**DeleteWebhook**](docs/WebhooksAPI.md#deletewebhook) | **Delete** /v1/webhooks/{webhookId} | Delete Webhook
+*WebhooksAPI* | [**GetWebhook**](docs/WebhooksAPI.md#getwebhook) | **Get** /v1/webhooks/{webhookId} | Get Webhook
+*WebhooksAPI* | [**GetWebhookSigningKeys**](docs/WebhooksAPI.md#getwebhooksigningkeys) | **Get** /v1/webhooks/{webhookId}/keys | Get Webhook Signing Keys
+*WebhooksAPI* | [**GetWebhooks**](docs/WebhooksAPI.md#getwebhooks) | **Get** /v1/products/{productId}/webhooks | List Webhooks
+*WebhooksAPI* | [**ReplaceWebhook**](docs/WebhooksAPI.md#replacewebhook) | **Put** /v1/webhooks/{webhookId} | Replace Webhook
+*WebhooksAPI* | [**UpdateWebhook**](docs/WebhooksAPI.md#updatewebhook) | **Patch** /v1/webhooks/{webhookId} | Update Webhook
## Documentation For Models
@@ -210,7 +216,6 @@ Class | Method | HTTP request | Description
- [AuditLogType](docs/AuditLogType.md)
- [CodeReferenceModel](docs/CodeReferenceModel.md)
- [CodeReferenceRequest](docs/CodeReferenceRequest.md)
- - [CodeReferencesForSettingModel](docs/CodeReferencesForSettingModel.md)
- [ComparisonValueListModel](docs/ComparisonValueListModel.md)
- [ComparisonValueModel](docs/ComparisonValueModel.md)
- [ConditionModel](docs/ConditionModel.md)
@@ -222,6 +227,7 @@ Class | Method | HTTP request | Description
- [ConnectRequest](docs/ConnectRequest.md)
- [CreateConfigRequest](docs/CreateConfigRequest.md)
- [CreateEnvironmentModel](docs/CreateEnvironmentModel.md)
+ - [CreateIntegrationModel](docs/CreateIntegrationModel.md)
- [CreateOrUpdateEnvironmentAccessModel](docs/CreateOrUpdateEnvironmentAccessModel.md)
- [CreatePermissionGroupRequest](docs/CreatePermissionGroupRequest.md)
- [CreateProductRequest](docs/CreateProductRequest.md)
@@ -241,12 +247,16 @@ Class | Method | HTTP request | Description
- [IntegrationLinkDetailsModel](docs/IntegrationLinkDetailsModel.md)
- [IntegrationLinkModel](docs/IntegrationLinkModel.md)
- [IntegrationLinkType](docs/IntegrationLinkType.md)
+ - [IntegrationModel](docs/IntegrationModel.md)
+ - [IntegrationType](docs/IntegrationType.md)
+ - [IntegrationsModel](docs/IntegrationsModel.md)
- [InvitationModel](docs/InvitationModel.md)
- [InviteMembersRequest](docs/InviteMembersRequest.md)
- [JsonPatchOperation](docs/JsonPatchOperation.md)
- [KeyGenerationMode](docs/KeyGenerationMode.md)
- [MeModel](docs/MeModel.md)
- [MemberModel](docs/MemberModel.md)
+ - [ModifyIntegrationRequest](docs/ModifyIntegrationRequest.md)
- [OperationType](docs/OperationType.md)
- [OrganizationAdminModel](docs/OrganizationAdminModel.md)
- [OrganizationInvitationModel](docs/OrganizationInvitationModel.md)
@@ -320,10 +330,10 @@ Authentication schemes defined for the API:
Example
-```golang
-auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
- UserName: "username",
- Password: "password",
+```go
+auth := context.WithValue(context.Background(), configcatpublicapi.ContextBasicAuth, configcatpublicapi.BasicAuth{
+ UserName: "username",
+ Password: "password",
})
r, err := client.Service.Operation(auth, args)
```
diff --git a/api/openapi.yaml b/api/openapi.yaml
index d5cf141..d0fe59c 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -10,10 +10,11 @@ info:
\ URL**: https://test-api.configcat.com\n\nIf you prefer the swagger documentation,\
\ you can find it here: [Swagger UI](https://test-api.configcat.com/swagger).\n\
\nThe API is based on HTTP REST, uses resource-oriented URLs, status codes and\
- \ supports JSON \nformat. Do not use this API for accessing and evaluating feature\
- \ flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview).\n\
- \n\n# OpenAPI Specification\n\nThe complete specification is publicly available\
- \ in the following formats: \n- [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json)\n\
+ \ supports JSON \nformat. \n\n**Important:** Do not use this API for accessing\
+ \ and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview)\
+ \ or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/)\
+ \ instead.\n\n# OpenAPI Specification\n\nThe complete specification is publicly\
+ \ available in the following formats: \n- [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json)\n\
- [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.json)\n\nYou\
\ can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator)\
\ or\n[Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact\
@@ -142,6 +143,16 @@ tags:
\ Product. You can and add a Tag to a Feature Flag or Setting using the [Update\
\ Flag](#operation/update-setting) endpoint."
name: Tags
+- description: |-
+ With these endpoints you can manage your Integrations.
+
+ - Datadog
+ - Slack
+ - Amplitude
+ - MixPanel
+ - Segment
+ - PubNub (work in progress)
+ name: Integrations
- description: With these endpoints you can manage your integration links.
name: Integration links
- description: Access audit log entries.
@@ -536,6 +547,98 @@ paths:
summary: Create Permission Group
tags:
- Permission Groups
+ /v1/products/{productId}/integrations:
+ get:
+ description: |-
+ This endpoint returns the list of the Integrations that belongs to the given Product identified by the
+ `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.
+ operationId: get-integrations
+ parameters:
+ - description: The identifier of the Product.
+ explode: false
+ in: path
+ name: productId
+ required: true
+ schema:
+ format: uuid
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/IntegrationsModel'
+ description: ""
+ "400":
+ description: Bad request.
+ "404":
+ description: Not found.
+ "429":
+ description: Too many requests. In case of the request rate exceeds the
+ rate limits.
+ summary: List Integrations
+ tags:
+ - Integrations
+ post:
+ description: "This endpoint creates a new Integration in a specified Product\
+ \ \nidentified by the `productId` parameter, which can be obtained from the\
+ \ [List Products](#operation/get-products) endpoint.\n\nThe Parameters dictionary\
+ \ differs for each IntegrationType:\n- Datadog\n\t- `apikey`: Required. Datadog\
+ \ API key.\n\t- `site`: Datadog site. Available values: `Us`, `Eu`, `Us1Fed`,\
+ \ `Us3`, `Us5`. Default: `Us`.\n- Slack \n\tConnecting the Slack integration\
+ \ through the Public Management API will not post messages with the ConfigCat\
+ \ Feature Flags Slack app but with an incoming webhook.\n\t- `incoming_webhook.url`:\
+ \ Required. The [incoming webhook URL](https://api.slack.com/messaging/webhooks)\
+ \ where the integration should post messages.\n- Amplitude\n\t- `apiKey`:\
+ \ Required. Amplitude API Key.\n\t- `secretKey`: Required. Amplitude Secret\
+ \ Key.\n- Mixpanel\n\t- `serviceAccountUserName`: Required. Mixpanel Service\
+ \ Account Username.\n\t- `serviceAccountSecret`: Required. Mixpanel Service\
+ \ Account Secret.\n\t- `projectId`: Required. Mixpanel Project ID.\n\t- `server`:\
+ \ Mixpanel Server. Available values: `StandardServer`, `EUResidencyServer`.\
+ \ Default: `StandardServer`.\n- Twilio Segment\n\t- `writeKey`: Required.\
+ \ Twilio Segment Write Key.\n\t- `server`: Twilio Segment Server. Available\
+ \ values: `Us`, `Eu`. Default: `Us`.\n- PubNub (work in progress)"
+ operationId: create-integration
+ parameters:
+ - description: The identifier of the Product.
+ explode: false
+ in: path
+ name: productId
+ required: true
+ schema:
+ format: uuid
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateIntegrationModel'
+ text/json:
+ schema:
+ $ref: '#/components/schemas/CreateIntegrationModel'
+ application/*+json:
+ schema:
+ $ref: '#/components/schemas/CreateIntegrationModel'
+ required: true
+ responses:
+ "201":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/IntegrationModel'
+ description: When the creation was successful.
+ "400":
+ description: Bad request.
+ "404":
+ description: Not found.
+ "429":
+ description: Too many requests. In case of the request rate exceeds the
+ rate limits.
+ summary: Create Integration
+ tags:
+ - Integrations
/v1/products/{productId}/segments:
get:
description: |-
@@ -807,38 +910,6 @@ paths:
summary: Get References for Feature Flag or Setting
tags:
- Code References
- /v1/configs/{configId}/code-references:
- get:
- description: ""
- parameters:
- - description: The identifier of the Config.
- explode: false
- in: path
- name: configId
- required: true
- schema:
- format: uuid
- type: string
- style: simple
- responses:
- "200":
- content:
- application/json:
- schema:
- items:
- $ref: '#/components/schemas/CodeReferencesForSettingModel'
- type: array
- description: ""
- "400":
- description: Bad request.
- "404":
- description: Not found.
- "429":
- description: Too many requests. In case of the request rate exceeds the
- rate limits.
- summary: Get References in Config
- tags:
- - Code References
/v1/configs/{configId}:
delete:
description: This endpoint removes a Config identified by the `configId` parameter.
@@ -1189,6 +1260,124 @@ paths:
summary: Update Permission Group
tags:
- Permission Groups
+ /v1/integrations/{integrationId}:
+ delete:
+ description: This endpoint removes a Integration identified by the `integrationId`
+ parameter.
+ operationId: delete-integration
+ parameters:
+ - description: The identifier of the Integration.
+ explode: false
+ in: path
+ name: integrationId
+ required: true
+ schema:
+ format: uuid
+ type: string
+ style: simple
+ responses:
+ "204":
+ description: When the delete was successful.
+ "400":
+ description: Bad request.
+ "404":
+ description: Not found.
+ "429":
+ description: Too many requests. In case of the request rate exceeds the
+ rate limits.
+ summary: Delete Integration
+ tags:
+ - Integrations
+ get:
+ description: |-
+ This endpoint returns the metadata of an Integration
+ identified by the `integrationId`.
+ operationId: get-integration
+ parameters:
+ - description: The identifier of the Integration.
+ explode: false
+ in: path
+ name: integrationId
+ required: true
+ schema:
+ format: uuid
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/IntegrationModel'
+ description: "When everything is ok, the integration data returned."
+ "400":
+ description: Bad request.
+ "404":
+ description: Not found.
+ "429":
+ description: Too many requests. In case of the request rate exceeds the
+ rate limits.
+ summary: Get Integration
+ tags:
+ - Integrations
+ put:
+ description: "This endpoint updates a Config identified by the `integrationId`\
+ \ parameter.\n\nThe Parameters dictionary differs for each IntegrationType:\n\
+ - Datadog\n\t- `apikey`: Required. Datadog API key.\n\t- `site`: Datadog site.\
+ \ Available values: `Us`, `Eu`, `Us1Fed`, `Us3`, `Us5`. Default: `Us`.\n-\
+ \ Slack \n\tConnecting the Slack integration through the Public Management\
+ \ API will not post messages with the ConfigCat Feature Flags Slack app but\
+ \ with an incoming webhook.\n\t- `incoming_webhook.url`: Required. The [incoming\
+ \ webhook URL](https://api.slack.com/messaging/webhooks) where the integration\
+ \ should post messages.\n- Amplitude\n\t- `apiKey`: Required. Amplitude API\
+ \ Key.\n\t- `secretKey`: Required. Amplitude Secret Key.\n- Mixpanel\n\t-\
+ \ `serviceAccountUserName`: Required. Mixpanel Service Account Username.\n\
+ \t- `serviceAccountSecret`: Required. Mixpanel Service Account Secret.\n\t\
+ - `projectId`: Required. Mixpanel Project ID.\n\t- `server`: Mixpanel Server.\
+ \ Available values: `StandardServer`, `EUResidencyServer`. Default: `StandardServer`.\n\
+ - Twilio Segment\n\t- `writeKey`: Required. Twilio Segment Write Key.\n\t\
+ - `server`: Twilio Segment Server. Available values: `Us`, `Eu`. Default:\
+ \ `Us`.\n- PubNub (work in progress)"
+ operationId: update-integration
+ parameters:
+ - description: The identifier of the Integration.
+ explode: false
+ in: path
+ name: integrationId
+ required: true
+ schema:
+ format: uuid
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ModifyIntegrationRequest'
+ text/json:
+ schema:
+ $ref: '#/components/schemas/ModifyIntegrationRequest'
+ application/*+json:
+ schema:
+ $ref: '#/components/schemas/ModifyIntegrationRequest'
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/IntegrationModel'
+ description: ""
+ "400":
+ description: Bad request.
+ "404":
+ description: Not found.
+ "429":
+ description: Too many requests. In case of the request rate exceeds the
+ rate limits.
+ summary: Update Integration
+ tags:
+ - Integrations
/v1/integrationLink/{integrationLinkType}/{key}/details:
get:
description: ""
@@ -4945,7 +5134,7 @@ paths:
$ref: '#/components/schemas/ConnectRequest'
responses:
"200":
- description: Success
+ description: OK
"429":
description: Too many requests. In case of the request rate exceeds the
rate limits.
@@ -5067,7 +5256,7 @@ paths:
required: true
responses:
"200":
- description: Success
+ description: OK
"400":
description: Bad request.
"404":
@@ -5135,7 +5324,7 @@ paths:
required: true
responses:
"200":
- description: Success
+ description: OK
"400":
description: Bad request.
"404":
@@ -5352,7 +5541,7 @@ components:
AuditLogItemModel:
additionalProperties: false
example:
- auditLogTypeEnum: null
+ auditLogTypeEnum: productCreated
auditLogDateTime: 2000-01-23T04:56:07.000+00:00
auditLogType: auditLogType
auditLogId: 0
@@ -5690,131 +5879,6 @@ components:
- configId
- repository
type: object
- CodeReferencesForSettingModel:
- additionalProperties: false
- example:
- codeReferences:
- - codeReferenceId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- references:
- - file: file
- referenceLine:
- lineText: lineText
- lineNumber: 0
- fileUrl: fileUrl
- postLines:
- - lineText: lineText
- lineNumber: 0
- - lineText: lineText
- lineNumber: 0
- preLines:
- - lineText: lineText
- lineNumber: 0
- - lineText: lineText
- lineNumber: 0
- - file: file
- referenceLine:
- lineText: lineText
- lineNumber: 0
- fileUrl: fileUrl
- postLines:
- - lineText: lineText
- lineNumber: 0
- - lineText: lineText
- lineNumber: 0
- preLines:
- - lineText: lineText
- lineNumber: 0
- - lineText: lineText
- lineNumber: 0
- commitUrl: commitUrl
- uploader: uploader
- repository: repository
- branch: branch
- syncedAt: 2000-01-23T04:56:07.000+00:00
- commitHash: commitHash
- - codeReferenceId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- references:
- - file: file
- referenceLine:
- lineText: lineText
- lineNumber: 0
- fileUrl: fileUrl
- postLines:
- - lineText: lineText
- lineNumber: 0
- - lineText: lineText
- lineNumber: 0
- preLines:
- - lineText: lineText
- lineNumber: 0
- - lineText: lineText
- lineNumber: 0
- - file: file
- referenceLine:
- lineText: lineText
- lineNumber: 0
- fileUrl: fileUrl
- postLines:
- - lineText: lineText
- lineNumber: 0
- - lineText: lineText
- lineNumber: 0
- preLines:
- - lineText: lineText
- lineNumber: 0
- - lineText: lineText
- lineNumber: 0
- commitUrl: commitUrl
- uploader: uploader
- repository: repository
- branch: branch
- syncedAt: 2000-01-23T04:56:07.000+00:00
- commitHash: commitHash
- setting:
- configName: configName
- configId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- hint: hint
- name: name
- settingType: null
- key: key
- settingId: 0
- order: 6
- tags:
- - product:
- productId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- organization:
- organizationId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- name: name
- name: name
- description: description
- order: 0
- reasonRequired: true
- color: color
- tagId: 0
- name: name
- - product:
- productId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- organization:
- organizationId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- name: name
- name: name
- description: description
- order: 0
- reasonRequired: true
- color: color
- tagId: 0
- name: name
- properties:
- setting:
- $ref: '#/components/schemas/SettingModel'
- codeReferences:
- description: List of Code references that belongs to the Feature Flag or
- Setting.
- items:
- $ref: '#/components/schemas/CodeReferenceModel'
- nullable: true
- type: array
- type: object
ComparisonValueListModel:
additionalProperties: false
example:
@@ -5866,10 +5930,10 @@ components:
additionalProperties: false
example:
segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -5880,7 +5944,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -5912,7 +5976,7 @@ components:
name: name
description: description
migratedConfigId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- evaluationVersion: null
+ evaluationVersion: v1
order: 0
properties:
product:
@@ -5960,10 +6024,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -5974,7 +6038,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -5982,10 +6046,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -5996,7 +6060,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -6023,10 +6087,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -6037,7 +6101,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -6045,10 +6109,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -6059,7 +6123,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -6082,11 +6146,11 @@ components:
- 0
lastUpdaterUserEmail: lastUpdaterUserEmail
integrationLinks:
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
@@ -6106,7 +6170,7 @@ components:
name: name
creatorFullName: creatorFullName
isWatching: true
- settingType: null
+ settingType: boolean
key: key
settingId: 0
order: 6
@@ -6211,10 +6275,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -6225,7 +6289,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -6233,10 +6297,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -6247,7 +6311,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -6274,10 +6338,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -6288,7 +6352,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -6296,10 +6360,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -6310,7 +6374,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -6333,11 +6397,11 @@ components:
- 0
lastUpdaterUserEmail: lastUpdaterUserEmail
integrationLinks:
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
@@ -6357,7 +6421,7 @@ components:
name: name
creatorFullName: creatorFullName
isWatching: true
- settingType: null
+ settingType: boolean
key: key
settingId: 0
order: 6
@@ -6380,10 +6444,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -6394,7 +6458,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -6402,10 +6466,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -6416,7 +6480,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -6443,10 +6507,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -6457,7 +6521,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -6465,10 +6529,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -6479,7 +6543,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -6502,11 +6566,11 @@ components:
- 0
lastUpdaterUserEmail: lastUpdaterUserEmail
integrationLinks:
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
@@ -6526,7 +6590,7 @@ components:
name: name
creatorFullName: creatorFullName
isWatching: true
- settingType: null
+ settingType: boolean
key: key
settingId: 0
order: 6
@@ -6547,7 +6611,7 @@ components:
name: name
description: description
migratedConfigId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- evaluationVersion: null
+ evaluationVersion: v1
order: 0
properties:
config:
@@ -6569,16 +6633,16 @@ components:
additionalProperties: false
example:
rolloutRules:
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
rolloutPercentageItems:
@@ -6589,11 +6653,11 @@ components:
lastUpdaterUserEmail: lastUpdaterUserEmail
value: ""
integrationLinks:
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
@@ -6613,7 +6677,7 @@ components:
name: name
creatorFullName: creatorFullName
isWatching: true
- settingType: null
+ settingType: boolean
key: key
settingId: 0
order: 6
@@ -6694,16 +6758,16 @@ components:
readOnly: true
settingValues:
- rolloutRules:
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
rolloutPercentageItems:
@@ -6714,11 +6778,11 @@ components:
lastUpdaterUserEmail: lastUpdaterUserEmail
value: ""
integrationLinks:
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
@@ -6738,23 +6802,23 @@ components:
name: name
creatorFullName: creatorFullName
isWatching: true
- settingType: null
+ settingType: boolean
key: key
settingId: 0
order: 6
updatedAt: 2000-01-23T04:56:07.000+00:00
lastUpdaterUserFullName: lastUpdaterUserFullName
- rolloutRules:
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
rolloutPercentageItems:
@@ -6765,11 +6829,11 @@ components:
lastUpdaterUserEmail: lastUpdaterUserEmail
value: ""
integrationLinks:
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
@@ -6789,7 +6853,7 @@ components:
name: name
creatorFullName: creatorFullName
isWatching: true
- settingType: null
+ settingType: boolean
key: key
settingId: 0
order: 6
@@ -6809,7 +6873,7 @@ components:
name: name
description: description
migratedConfigId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- evaluationVersion: null
+ evaluationVersion: v1
order: 0
properties:
config:
@@ -6849,7 +6913,7 @@ components:
example:
name: name
description: description
- evaluationVersion: null
+ evaluationVersion: v1
order: 0
properties:
name:
@@ -6908,6 +6972,53 @@ components:
required:
- name
type: object
+ CreateIntegrationModel:
+ additionalProperties: false
+ example:
+ integrationType: dataDog
+ environmentIds:
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ name: name
+ configIds:
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ parameters:
+ key: parameters
+ properties:
+ integrationType:
+ $ref: '#/components/schemas/IntegrationType'
+ name:
+ description: Name of the Integration.
+ minLength: 1
+ type: string
+ parameters:
+ additionalProperties:
+ nullable: true
+ type: string
+ description: Parameters of the Integration.
+ type: object
+ environmentIds:
+ description: "List of Environment IDs that are connected with this Integration.\
+ \ If the list is empty, all of the Environments are connected."
+ items:
+ format: uuid
+ type: string
+ type: array
+ configIds:
+ description: "List of Config IDs that are connected with this Integration.\
+ \ If the list is empty, all of the Configs are connected."
+ items:
+ format: uuid
+ type: string
+ type: array
+ required:
+ - configIds
+ - environmentIds
+ - integrationType
+ - name
+ - parameters
+ type: object
CreateOrUpdateEnvironmentAccessModel:
additionalProperties: false
example:
@@ -6937,7 +7048,7 @@ components:
canManageProductPreferences: true
canManageIntegrations: true
canDeleteSegments: true
- accessType: null
+ accessType: readOnly
canTagSetting: true
canManageMembers: true
canManageWebhook: true
@@ -6949,7 +7060,7 @@ components:
canRotateSdkKey: true
canViewProductAuditLog: true
canCreateOrUpdateTag: true
- newEnvironmentAccessType: null
+ newEnvironmentAccessType: full
canCreateOrUpdateSegments: true
canCreateOrUpdateSetting: true
properties:
@@ -7061,7 +7172,7 @@ components:
CreateSegmentModel:
additionalProperties: false
example:
- comparator: null
+ comparator: isOneOf
comparisonValue: comparisonValue
name: name
description: description
@@ -7106,7 +7217,7 @@ components:
value: ""
hint: hint
name: name
- settingType: null
+ settingType: boolean
key: key
tags:
- 0
@@ -7336,39 +7447,32 @@ components:
description: Maximum number of percentage options a Feature Flag or Setting
can have within a targeting rule.
format: int32
- readOnly: true
type: integer
maxTargetingRuleCount:
description: Maximum number of targeting rules a Feature Flag or Setting
can have.
format: int32
- readOnly: true
type: integer
maxComparisonValueLength:
description: Maximum length of a text comparison value.
format: int32
- readOnly: true
type: integer
maxComparisonValueListLength:
description: Maximum item count of a list comparison value.
format: int32
- readOnly: true
type: integer
maxComparisonValueListItemLength:
description: Maximum length of a list comparison value's item.
format: int32
- readOnly: true
type: integer
maxStringFlagValueLength:
description: Maximum length of a text Setting's value.
format: int32
- readOnly: true
type: integer
maxConditionPerTargetingRuleCount:
description: Maximum number of `AND` conditions a Feature Flag or Setting
can have within a targeting rule.
format: int32
- readOnly: true
type: integer
type: object
FlagReference:
@@ -7479,7 +7583,7 @@ components:
name: name
description: description
migratedConfigId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- evaluationVersion: null
+ evaluationVersion: v1
order: 0
setting:
createdAt: 2000-01-23T04:56:07.000+00:00
@@ -7488,7 +7592,7 @@ components:
name: name
creatorFullName: creatorFullName
isWatching: true
- settingType: null
+ settingType: boolean
key: key
settingId: 0
order: 6
@@ -7553,7 +7657,7 @@ components:
name: name
description: description
migratedConfigId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- evaluationVersion: null
+ evaluationVersion: v1
order: 0
setting:
createdAt: 2000-01-23T04:56:07.000+00:00
@@ -7562,7 +7666,7 @@ components:
name: name
creatorFullName: creatorFullName
isWatching: true
- settingType: null
+ settingType: boolean
key: key
settingId: 0
order: 6
@@ -7607,7 +7711,7 @@ components:
name: name
description: description
migratedConfigId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- evaluationVersion: null
+ evaluationVersion: v1
order: 0
setting:
createdAt: 2000-01-23T04:56:07.000+00:00
@@ -7616,7 +7720,7 @@ components:
name: name
creatorFullName: creatorFullName
isWatching: true
- settingType: null
+ settingType: boolean
key: key
settingId: 0
order: 6
@@ -7635,7 +7739,7 @@ components:
IntegrationLinkModel:
additionalProperties: false
example:
- integrationLinkType: null
+ integrationLinkType: trello
description: description
key: key
url: url
@@ -7658,6 +7762,99 @@ components:
- jira
- monday
type: string
+ IntegrationModel:
+ additionalProperties: false
+ description: Details of the Integration.
+ example:
+ integrationEnvironmentIds:
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ integrationType: dataDog
+ integrationConfigIds:
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ name: name
+ integrationId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ parameters:
+ key: parameters
+ properties:
+ integrationId:
+ description: Identifier of the Integration.
+ format: uuid
+ type: string
+ name:
+ description: Name of the Integration.
+ nullable: true
+ type: string
+ integrationType:
+ $ref: '#/components/schemas/IntegrationType'
+ parameters:
+ additionalProperties:
+ nullable: true
+ type: string
+ description: Parameters of the Integration.
+ nullable: true
+ type: object
+ integrationEnvironmentIds:
+ description: "List of Environment IDs that are connected with this Integration.\
+ \ If the list is empty, all of the Environments are connected."
+ items:
+ format: uuid
+ type: string
+ nullable: true
+ type: array
+ integrationConfigIds:
+ description: "List of Config IDs that are connected with this Integration.\
+ \ If the list is empty, all of the Configs are connected."
+ items:
+ format: uuid
+ type: string
+ nullable: true
+ type: array
+ type: object
+ IntegrationType:
+ enum:
+ - dataDog
+ - slack
+ - amplitude
+ - mixPanel
+ - segment
+ - pubNub
+ type: string
+ IntegrationsModel:
+ additionalProperties: false
+ example:
+ integrations:
+ - integrationEnvironmentIds:
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ integrationType: dataDog
+ integrationConfigIds:
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ name: name
+ integrationId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ parameters:
+ key: parameters
+ - integrationEnvironmentIds:
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ integrationType: dataDog
+ integrationConfigIds:
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ name: name
+ integrationId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ parameters:
+ key: parameters
+ properties:
+ integrations:
+ description: The Integrations of the Product.
+ items:
+ $ref: '#/components/schemas/IntegrationModel'
+ nullable: true
+ type: array
+ type: object
InvitationModel:
additionalProperties: false
example:
@@ -7713,7 +7910,7 @@ components:
JsonPatchOperation:
additionalProperties: false
example:
- op: null
+ op: unknown
path: path
from: from
value: ""
@@ -7789,6 +7986,49 @@ components:
nullable: true
type: string
type: object
+ ModifyIntegrationRequest:
+ additionalProperties: false
+ example:
+ environmentIds:
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ name: name
+ configIds:
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ parameters:
+ key: parameters
+ properties:
+ name:
+ description: Name of the Integration.
+ minLength: 1
+ type: string
+ parameters:
+ additionalProperties:
+ nullable: true
+ type: string
+ description: Parameters of the Integration.
+ type: object
+ environmentIds:
+ description: "List of Environment IDs that are connected with this Integration.\
+ \ If the list is empty, all of the Environments are connected."
+ items:
+ format: uuid
+ type: string
+ type: array
+ configIds:
+ description: "List of Config IDs that are connected with this Integration.\
+ \ If the list is empty, all of the Configs are connected."
+ items:
+ format: uuid
+ type: string
+ type: array
+ required:
+ - configIds
+ - environmentIds
+ - name
+ - parameters
+ type: object
OperationType:
enum:
- unknown
@@ -8097,7 +8337,7 @@ components:
canManageProductPreferences: true
canManageIntegrations: true
canDeleteSegments: true
- accessType: null
+ accessType: readOnly
canManageMembers: true
canManageWebhook: true
canUseExportImport: true
@@ -8124,7 +8364,7 @@ components:
name: name
canViewProductAuditLog: true
canCreateOrUpdateTag: true
- newEnvironmentAccessType: null
+ newEnvironmentAccessType: full
properties:
permissionGroupId:
description: Identifier of the Permission Group.
@@ -8210,7 +8450,7 @@ components:
PreferencesModel:
additionalProperties: false
example:
- keyGenerationMode: null
+ keyGenerationMode: camelCase
showVariationId: true
mandatorySettingHint: true
reasonRequiredEnvironments:
@@ -8253,7 +8493,7 @@ components:
additionalProperties: false
description: Describes a condition that is based on a prerequisite flag.
example:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -8482,10 +8722,10 @@ components:
RolloutRuleModel:
additionalProperties: false
example:
- comparator: null
+ comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
properties:
@@ -8538,7 +8778,7 @@ components:
additionalProperties: false
description: Describes a condition that is based on a segment.
example:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
properties:
segmentId:
@@ -8634,7 +8874,7 @@ components:
creatorEmail: creatorEmail
description: description
createdAt: 2000-01-23T04:56:07.000+00:00
- comparator: null
+ comparator: isOneOf
lastUpdaterEmail: lastUpdaterEmail
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
name: name
@@ -8703,7 +8943,7 @@ components:
name: name
creatorFullName: creatorFullName
isWatching: true
- settingType: null
+ settingType: boolean
key: key
settingId: 0
order: 6
@@ -8766,10 +9006,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -8780,7 +9020,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -8788,10 +9028,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -8802,7 +9042,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -8829,10 +9069,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -8843,7 +9083,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -8851,10 +9091,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -8865,7 +9105,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -8892,7 +9132,7 @@ components:
name: name
creatorFullName: creatorFullName
isWatching: true
- settingType: null
+ settingType: boolean
key: key
settingId: 0
order: 6
@@ -8925,11 +9165,11 @@ components:
- 2
- 2
integrationLinks:
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
@@ -8947,7 +9187,7 @@ components:
name: name
description: description
migratedConfigId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- evaluationVersion: null
+ evaluationVersion: v1
order: 0
settingTags:
- color: color
@@ -9030,7 +9270,7 @@ components:
configId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
hint: hint
name: name
- settingType: null
+ settingType: boolean
key: key
settingId: 0
order: 6
@@ -9131,16 +9371,16 @@ components:
additionalProperties: false
example:
rolloutRules:
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
rolloutPercentageItems:
@@ -9157,7 +9397,7 @@ components:
name: name
creatorFullName: creatorFullName
isWatching: true
- settingType: null
+ settingType: boolean
key: key
settingId: 0
order: 6
@@ -9187,11 +9427,11 @@ components:
maxTargetingRuleCount: 5
value: ""
integrationLinks:
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
- - integrationLinkType: null
+ - integrationLinkType: trello
description: description
key: key
url: url
@@ -9209,7 +9449,7 @@ components:
name: name
description: description
migratedConfigId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- evaluationVersion: null
+ evaluationVersion: v1
order: 0
settingTags:
- color: color
@@ -9324,10 +9564,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9338,7 +9578,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9346,10 +9586,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9360,7 +9600,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9469,10 +9709,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9483,7 +9723,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9491,10 +9731,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9505,7 +9745,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9532,10 +9772,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9546,7 +9786,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9554,10 +9794,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9568,7 +9808,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9623,10 +9863,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9637,7 +9877,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9645,10 +9885,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9659,7 +9899,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9686,10 +9926,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9700,7 +9940,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9708,10 +9948,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9722,7 +9962,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9783,10 +10023,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9797,7 +10037,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9805,10 +10045,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9819,7 +10059,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9846,10 +10086,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9860,7 +10100,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9868,10 +10108,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9882,7 +10122,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9917,10 +10157,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9931,7 +10171,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9939,10 +10179,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9953,7 +10193,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -9980,10 +10220,10 @@ components:
doubleValue: 6.027456183070403
conditions:
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -9994,7 +10234,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -10002,10 +10242,10 @@ components:
doubleValue: 6.027456183070403
prerequisiteSettingId: 5
- segmentCondition:
- comparator: null
+ comparator: isIn
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
userCondition:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -10016,7 +10256,7 @@ components:
doubleValue: 1.4658129805029452
comparisonAttribute: comparisonAttribute
prerequisiteFlagCondition:
- comparator: null
+ comparator: equals
prerequisiteComparisonValue:
stringValue: stringValue
intValue: 0
@@ -10090,7 +10330,7 @@ components:
canManageProductPreferences: true
canManageIntegrations: true
canDeleteSegments: true
- accessType: null
+ accessType: readOnly
canTagSetting: true
canManageMembers: true
canManageWebhook: true
@@ -10102,7 +10342,7 @@ components:
canRotateSdkKey: true
canViewProductAuditLog: true
canCreateOrUpdateTag: true
- newEnvironmentAccessType: null
+ newEnvironmentAccessType: full
canCreateOrUpdateSegments: true
canCreateOrUpdateSetting: true
properties:
@@ -10206,7 +10446,7 @@ components:
UpdatePreferencesRequest:
additionalProperties: false
example:
- keyGenerationMode: null
+ keyGenerationMode: camelCase
showVariationId: true
mandatorySettingHint: true
reasonRequiredEnvironments:
@@ -10284,7 +10524,7 @@ components:
UpdateSegmentModel:
additionalProperties: false
example:
- comparator: null
+ comparator: isOneOf
comparisonValue: comparisonValue
name: name
description: description
@@ -10315,16 +10555,16 @@ components:
additionalProperties: false
example:
rolloutRules:
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
rolloutPercentageItems:
@@ -10354,16 +10594,16 @@ components:
additionalProperties: false
example:
rolloutRules:
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
rolloutPercentageItems:
@@ -10399,16 +10639,16 @@ components:
example:
settingValues:
- rolloutRules:
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
rolloutPercentageItems:
@@ -10419,16 +10659,16 @@ components:
value: ""
settingId: 0
- rolloutRules:
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
- - comparator: null
+ - comparator: isOneOf
comparisonValue: comparisonValue
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- segmentComparator: null
+ segmentComparator: isIn
value: ""
comparisonAttribute: comparisonAttribute
rolloutPercentageItems:
@@ -10510,7 +10750,7 @@ components:
additionalProperties: false
description: Describes a condition that is based on user attributes.
example:
- comparator: null
+ comparator: isOneOf
comparisonValue:
listValue:
- hint: hint
@@ -10603,7 +10843,7 @@ components:
- isSecure: true
value: value
key: key
- httpMethod: null
+ httpMethod: get
url: url
content: content
properties:
@@ -10704,7 +10944,7 @@ components:
environmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
name: name
webhookId: 0
- httpMethod: null
+ httpMethod: get
config:
configId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
name: name
@@ -10780,6 +11020,7 @@ x-tagGroups:
- Segments
- SDK Keys
- Webhooks
+ - Integrations
- Code References
- name: Membership
tags:
diff --git a/api_audit_logs.go b/api_audit_logs.go
index c76f134..1d09856 100644
--- a/api_audit_logs.go
+++ b/api_audit_logs.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -22,12 +22,12 @@ import (
)
-// AuditLogsApiService AuditLogsApi service
-type AuditLogsApiService service
+// AuditLogsAPIService AuditLogsAPI service
+type AuditLogsAPIService service
-type AuditLogsApiGetAuditlogsRequest struct {
+type AuditLogsAPIGetAuditlogsRequest struct {
ctx context.Context
- ApiService *AuditLogsApiService
+ ApiService *AuditLogsAPIService
productId string
configId *string
environmentId *string
@@ -37,36 +37,36 @@ type AuditLogsApiGetAuditlogsRequest struct {
}
// The identifier of the Config.
-func (r AuditLogsApiGetAuditlogsRequest) ConfigId(configId string) AuditLogsApiGetAuditlogsRequest {
+func (r AuditLogsAPIGetAuditlogsRequest) ConfigId(configId string) AuditLogsAPIGetAuditlogsRequest {
r.configId = &configId
return r
}
// The identifier of the Environment.
-func (r AuditLogsApiGetAuditlogsRequest) EnvironmentId(environmentId string) AuditLogsApiGetAuditlogsRequest {
+func (r AuditLogsAPIGetAuditlogsRequest) EnvironmentId(environmentId string) AuditLogsAPIGetAuditlogsRequest {
r.environmentId = &environmentId
return r
}
// Filter Audit logs by Audit log type.
-func (r AuditLogsApiGetAuditlogsRequest) AuditLogType(auditLogType AuditLogType) AuditLogsApiGetAuditlogsRequest {
+func (r AuditLogsAPIGetAuditlogsRequest) AuditLogType(auditLogType AuditLogType) AuditLogsAPIGetAuditlogsRequest {
r.auditLogType = &auditLogType
return r
}
// Filter Audit logs by starting UTC date.
-func (r AuditLogsApiGetAuditlogsRequest) FromUtcDateTime(fromUtcDateTime time.Time) AuditLogsApiGetAuditlogsRequest {
+func (r AuditLogsAPIGetAuditlogsRequest) FromUtcDateTime(fromUtcDateTime time.Time) AuditLogsAPIGetAuditlogsRequest {
r.fromUtcDateTime = &fromUtcDateTime
return r
}
// Filter Audit logs by ending UTC date.
-func (r AuditLogsApiGetAuditlogsRequest) ToUtcDateTime(toUtcDateTime time.Time) AuditLogsApiGetAuditlogsRequest {
+func (r AuditLogsAPIGetAuditlogsRequest) ToUtcDateTime(toUtcDateTime time.Time) AuditLogsAPIGetAuditlogsRequest {
r.toUtcDateTime = &toUtcDateTime
return r
}
-func (r AuditLogsApiGetAuditlogsRequest) Execute() ([]AuditLogItemModel, *http.Response, error) {
+func (r AuditLogsAPIGetAuditlogsRequest) Execute() ([]AuditLogItemModel, *http.Response, error) {
return r.ApiService.GetAuditlogsExecute(r)
}
@@ -78,10 +78,10 @@ and the result can be optionally filtered by Config and/or Environment.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return AuditLogsApiGetAuditlogsRequest
+ @return AuditLogsAPIGetAuditlogsRequest
*/
-func (a *AuditLogsApiService) GetAuditlogs(ctx context.Context, productId string) AuditLogsApiGetAuditlogsRequest {
- return AuditLogsApiGetAuditlogsRequest{
+func (a *AuditLogsAPIService) GetAuditlogs(ctx context.Context, productId string) AuditLogsAPIGetAuditlogsRequest {
+ return AuditLogsAPIGetAuditlogsRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -90,7 +90,7 @@ func (a *AuditLogsApiService) GetAuditlogs(ctx context.Context, productId string
// Execute executes the request
// @return []AuditLogItemModel
-func (a *AuditLogsApiService) GetAuditlogsExecute(r AuditLogsApiGetAuditlogsRequest) ([]AuditLogItemModel, *http.Response, error) {
+func (a *AuditLogsAPIService) GetAuditlogsExecute(r AuditLogsAPIGetAuditlogsRequest) ([]AuditLogItemModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -98,7 +98,7 @@ func (a *AuditLogsApiService) GetAuditlogsExecute(r AuditLogsApiGetAuditlogsRequ
localVarReturnValue []AuditLogItemModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuditLogsApiService.GetAuditlogs")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuditLogsAPIService.GetAuditlogs")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -179,13 +179,13 @@ func (a *AuditLogsApiService) GetAuditlogsExecute(r AuditLogsApiGetAuditlogsRequ
return localVarReturnValue, localVarHTTPResponse, nil
}
-type AuditLogsApiGetDeletedSettingsRequest struct {
+type AuditLogsAPIGetDeletedSettingsRequest struct {
ctx context.Context
- ApiService *AuditLogsApiService
+ ApiService *AuditLogsAPIService
configId string
}
-func (r AuditLogsApiGetDeletedSettingsRequest) Execute() ([]SettingModel, *http.Response, error) {
+func (r AuditLogsAPIGetDeletedSettingsRequest) Execute() ([]SettingModel, *http.Response, error) {
return r.ApiService.GetDeletedSettingsExecute(r)
}
@@ -196,10 +196,10 @@ This endpoint returns the list of Feature Flags and Settings that were deleted f
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param configId The identifier of the Config.
- @return AuditLogsApiGetDeletedSettingsRequest
+ @return AuditLogsAPIGetDeletedSettingsRequest
*/
-func (a *AuditLogsApiService) GetDeletedSettings(ctx context.Context, configId string) AuditLogsApiGetDeletedSettingsRequest {
- return AuditLogsApiGetDeletedSettingsRequest{
+func (a *AuditLogsAPIService) GetDeletedSettings(ctx context.Context, configId string) AuditLogsAPIGetDeletedSettingsRequest {
+ return AuditLogsAPIGetDeletedSettingsRequest{
ApiService: a,
ctx: ctx,
configId: configId,
@@ -208,7 +208,7 @@ func (a *AuditLogsApiService) GetDeletedSettings(ctx context.Context, configId s
// Execute executes the request
// @return []SettingModel
-func (a *AuditLogsApiService) GetDeletedSettingsExecute(r AuditLogsApiGetDeletedSettingsRequest) ([]SettingModel, *http.Response, error) {
+func (a *AuditLogsAPIService) GetDeletedSettingsExecute(r AuditLogsAPIGetDeletedSettingsRequest) ([]SettingModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -216,7 +216,7 @@ func (a *AuditLogsApiService) GetDeletedSettingsExecute(r AuditLogsApiGetDeleted
localVarReturnValue []SettingModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuditLogsApiService.GetDeletedSettings")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuditLogsAPIService.GetDeletedSettings")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -282,9 +282,9 @@ func (a *AuditLogsApiService) GetDeletedSettingsExecute(r AuditLogsApiGetDeleted
return localVarReturnValue, localVarHTTPResponse, nil
}
-type AuditLogsApiGetOrganizationAuditlogsRequest struct {
+type AuditLogsAPIGetOrganizationAuditlogsRequest struct {
ctx context.Context
- ApiService *AuditLogsApiService
+ ApiService *AuditLogsAPIService
organizationId string
productId *string
configId *string
@@ -295,42 +295,42 @@ type AuditLogsApiGetOrganizationAuditlogsRequest struct {
}
// The identifier of the Product.
-func (r AuditLogsApiGetOrganizationAuditlogsRequest) ProductId(productId string) AuditLogsApiGetOrganizationAuditlogsRequest {
+func (r AuditLogsAPIGetOrganizationAuditlogsRequest) ProductId(productId string) AuditLogsAPIGetOrganizationAuditlogsRequest {
r.productId = &productId
return r
}
// The identifier of the Config.
-func (r AuditLogsApiGetOrganizationAuditlogsRequest) ConfigId(configId string) AuditLogsApiGetOrganizationAuditlogsRequest {
+func (r AuditLogsAPIGetOrganizationAuditlogsRequest) ConfigId(configId string) AuditLogsAPIGetOrganizationAuditlogsRequest {
r.configId = &configId
return r
}
// The identifier of the Environment.
-func (r AuditLogsApiGetOrganizationAuditlogsRequest) EnvironmentId(environmentId string) AuditLogsApiGetOrganizationAuditlogsRequest {
+func (r AuditLogsAPIGetOrganizationAuditlogsRequest) EnvironmentId(environmentId string) AuditLogsAPIGetOrganizationAuditlogsRequest {
r.environmentId = &environmentId
return r
}
// Filter Audit logs by Audit log type.
-func (r AuditLogsApiGetOrganizationAuditlogsRequest) AuditLogType(auditLogType AuditLogType) AuditLogsApiGetOrganizationAuditlogsRequest {
+func (r AuditLogsAPIGetOrganizationAuditlogsRequest) AuditLogType(auditLogType AuditLogType) AuditLogsAPIGetOrganizationAuditlogsRequest {
r.auditLogType = &auditLogType
return r
}
// Filter Audit logs by starting UTC date.
-func (r AuditLogsApiGetOrganizationAuditlogsRequest) FromUtcDateTime(fromUtcDateTime time.Time) AuditLogsApiGetOrganizationAuditlogsRequest {
+func (r AuditLogsAPIGetOrganizationAuditlogsRequest) FromUtcDateTime(fromUtcDateTime time.Time) AuditLogsAPIGetOrganizationAuditlogsRequest {
r.fromUtcDateTime = &fromUtcDateTime
return r
}
// Filter Audit logs by ending UTC date.
-func (r AuditLogsApiGetOrganizationAuditlogsRequest) ToUtcDateTime(toUtcDateTime time.Time) AuditLogsApiGetOrganizationAuditlogsRequest {
+func (r AuditLogsAPIGetOrganizationAuditlogsRequest) ToUtcDateTime(toUtcDateTime time.Time) AuditLogsAPIGetOrganizationAuditlogsRequest {
r.toUtcDateTime = &toUtcDateTime
return r
}
-func (r AuditLogsApiGetOrganizationAuditlogsRequest) Execute() ([]AuditLogItemModel, *http.Response, error) {
+func (r AuditLogsAPIGetOrganizationAuditlogsRequest) Execute() ([]AuditLogItemModel, *http.Response, error) {
return r.ApiService.GetOrganizationAuditlogsExecute(r)
}
@@ -342,10 +342,10 @@ and the result can be optionally filtered by Product and/or Config and/or Enviro
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId The identifier of the Organization.
- @return AuditLogsApiGetOrganizationAuditlogsRequest
+ @return AuditLogsAPIGetOrganizationAuditlogsRequest
*/
-func (a *AuditLogsApiService) GetOrganizationAuditlogs(ctx context.Context, organizationId string) AuditLogsApiGetOrganizationAuditlogsRequest {
- return AuditLogsApiGetOrganizationAuditlogsRequest{
+func (a *AuditLogsAPIService) GetOrganizationAuditlogs(ctx context.Context, organizationId string) AuditLogsAPIGetOrganizationAuditlogsRequest {
+ return AuditLogsAPIGetOrganizationAuditlogsRequest{
ApiService: a,
ctx: ctx,
organizationId: organizationId,
@@ -354,7 +354,7 @@ func (a *AuditLogsApiService) GetOrganizationAuditlogs(ctx context.Context, orga
// Execute executes the request
// @return []AuditLogItemModel
-func (a *AuditLogsApiService) GetOrganizationAuditlogsExecute(r AuditLogsApiGetOrganizationAuditlogsRequest) ([]AuditLogItemModel, *http.Response, error) {
+func (a *AuditLogsAPIService) GetOrganizationAuditlogsExecute(r AuditLogsAPIGetOrganizationAuditlogsRequest) ([]AuditLogItemModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -362,7 +362,7 @@ func (a *AuditLogsApiService) GetOrganizationAuditlogsExecute(r AuditLogsApiGetO
localVarReturnValue []AuditLogItemModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuditLogsApiService.GetOrganizationAuditlogs")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuditLogsAPIService.GetOrganizationAuditlogs")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_code_references.go b/api_code_references.go
index bcaee48..7e644d0 100644
--- a/api_code_references.go
+++ b/api_code_references.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,21 +21,21 @@ import (
)
-// CodeReferencesApiService CodeReferencesApi service
-type CodeReferencesApiService service
+// CodeReferencesAPIService CodeReferencesAPI service
+type CodeReferencesAPIService service
-type CodeReferencesApiV1CodeReferencesDeleteReportsPostRequest struct {
+type CodeReferencesAPIV1CodeReferencesDeleteReportsPostRequest struct {
ctx context.Context
- ApiService *CodeReferencesApiService
+ ApiService *CodeReferencesAPIService
deleteRepositoryReportsRequest *DeleteRepositoryReportsRequest
}
-func (r CodeReferencesApiV1CodeReferencesDeleteReportsPostRequest) DeleteRepositoryReportsRequest(deleteRepositoryReportsRequest DeleteRepositoryReportsRequest) CodeReferencesApiV1CodeReferencesDeleteReportsPostRequest {
+func (r CodeReferencesAPIV1CodeReferencesDeleteReportsPostRequest) DeleteRepositoryReportsRequest(deleteRepositoryReportsRequest DeleteRepositoryReportsRequest) CodeReferencesAPIV1CodeReferencesDeleteReportsPostRequest {
r.deleteRepositoryReportsRequest = &deleteRepositoryReportsRequest
return r
}
-func (r CodeReferencesApiV1CodeReferencesDeleteReportsPostRequest) Execute() (*http.Response, error) {
+func (r CodeReferencesAPIV1CodeReferencesDeleteReportsPostRequest) Execute() (*http.Response, error) {
return r.ApiService.V1CodeReferencesDeleteReportsPostExecute(r)
}
@@ -45,24 +45,24 @@ V1CodeReferencesDeleteReportsPost Delete Reference reports
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return CodeReferencesApiV1CodeReferencesDeleteReportsPostRequest
+ @return CodeReferencesAPIV1CodeReferencesDeleteReportsPostRequest
*/
-func (a *CodeReferencesApiService) V1CodeReferencesDeleteReportsPost(ctx context.Context) CodeReferencesApiV1CodeReferencesDeleteReportsPostRequest {
- return CodeReferencesApiV1CodeReferencesDeleteReportsPostRequest{
+func (a *CodeReferencesAPIService) V1CodeReferencesDeleteReportsPost(ctx context.Context) CodeReferencesAPIV1CodeReferencesDeleteReportsPostRequest {
+ return CodeReferencesAPIV1CodeReferencesDeleteReportsPostRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
-func (a *CodeReferencesApiService) V1CodeReferencesDeleteReportsPostExecute(r CodeReferencesApiV1CodeReferencesDeleteReportsPostRequest) (*http.Response, error) {
+func (a *CodeReferencesAPIService) V1CodeReferencesDeleteReportsPostExecute(r CodeReferencesAPIV1CodeReferencesDeleteReportsPostRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CodeReferencesApiService.V1CodeReferencesDeleteReportsPost")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CodeReferencesAPIService.V1CodeReferencesDeleteReportsPost")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -123,18 +123,18 @@ func (a *CodeReferencesApiService) V1CodeReferencesDeleteReportsPostExecute(r Co
return localVarHTTPResponse, nil
}
-type CodeReferencesApiV1CodeReferencesPostRequest struct {
+type CodeReferencesAPIV1CodeReferencesPostRequest struct {
ctx context.Context
- ApiService *CodeReferencesApiService
+ ApiService *CodeReferencesAPIService
codeReferenceRequest *CodeReferenceRequest
}
-func (r CodeReferencesApiV1CodeReferencesPostRequest) CodeReferenceRequest(codeReferenceRequest CodeReferenceRequest) CodeReferencesApiV1CodeReferencesPostRequest {
+func (r CodeReferencesAPIV1CodeReferencesPostRequest) CodeReferenceRequest(codeReferenceRequest CodeReferenceRequest) CodeReferencesAPIV1CodeReferencesPostRequest {
r.codeReferenceRequest = &codeReferenceRequest
return r
}
-func (r CodeReferencesApiV1CodeReferencesPostRequest) Execute() (*http.Response, error) {
+func (r CodeReferencesAPIV1CodeReferencesPostRequest) Execute() (*http.Response, error) {
return r.ApiService.V1CodeReferencesPostExecute(r)
}
@@ -144,24 +144,24 @@ V1CodeReferencesPost Upload References
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return CodeReferencesApiV1CodeReferencesPostRequest
+ @return CodeReferencesAPIV1CodeReferencesPostRequest
*/
-func (a *CodeReferencesApiService) V1CodeReferencesPost(ctx context.Context) CodeReferencesApiV1CodeReferencesPostRequest {
- return CodeReferencesApiV1CodeReferencesPostRequest{
+func (a *CodeReferencesAPIService) V1CodeReferencesPost(ctx context.Context) CodeReferencesAPIV1CodeReferencesPostRequest {
+ return CodeReferencesAPIV1CodeReferencesPostRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
-func (a *CodeReferencesApiService) V1CodeReferencesPostExecute(r CodeReferencesApiV1CodeReferencesPostRequest) (*http.Response, error) {
+func (a *CodeReferencesAPIService) V1CodeReferencesPostExecute(r CodeReferencesAPIV1CodeReferencesPostRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CodeReferencesApiService.V1CodeReferencesPost")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CodeReferencesAPIService.V1CodeReferencesPost")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -222,116 +222,13 @@ func (a *CodeReferencesApiService) V1CodeReferencesPostExecute(r CodeReferencesA
return localVarHTTPResponse, nil
}
-type CodeReferencesApiV1ConfigsConfigIdCodeReferencesGetRequest struct {
+type CodeReferencesAPIV1SettingsSettingIdCodeReferencesGetRequest struct {
ctx context.Context
- ApiService *CodeReferencesApiService
- configId string
-}
-
-func (r CodeReferencesApiV1ConfigsConfigIdCodeReferencesGetRequest) Execute() ([]CodeReferencesForSettingModel, *http.Response, error) {
- return r.ApiService.V1ConfigsConfigIdCodeReferencesGetExecute(r)
-}
-
-/*
-V1ConfigsConfigIdCodeReferencesGet Get References in Config
-
-
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param configId The identifier of the Config.
- @return CodeReferencesApiV1ConfigsConfigIdCodeReferencesGetRequest
-*/
-func (a *CodeReferencesApiService) V1ConfigsConfigIdCodeReferencesGet(ctx context.Context, configId string) CodeReferencesApiV1ConfigsConfigIdCodeReferencesGetRequest {
- return CodeReferencesApiV1ConfigsConfigIdCodeReferencesGetRequest{
- ApiService: a,
- ctx: ctx,
- configId: configId,
- }
-}
-
-// Execute executes the request
-// @return []CodeReferencesForSettingModel
-func (a *CodeReferencesApiService) V1ConfigsConfigIdCodeReferencesGetExecute(r CodeReferencesApiV1ConfigsConfigIdCodeReferencesGetRequest) ([]CodeReferencesForSettingModel, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CodeReferencesForSettingModel
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CodeReferencesApiService.V1ConfigsConfigIdCodeReferencesGet")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/v1/configs/{configId}/code-references"
- localVarPath = strings.Replace(localVarPath, "{"+"configId"+"}", url.PathEscape(parameterValueToString(r.configId, "configId")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, nil, err
- }
-
- localVarHTTPResponse, err := a.client.callAPI(req)
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, localVarHTTPResponse, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, localVarHTTPResponse, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &GenericOpenAPIError{
- body: localVarBody,
- error: localVarHTTPResponse.Status,
- }
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
-
- err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &GenericOpenAPIError{
- body: localVarBody,
- error: err.Error(),
- }
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
-
- return localVarReturnValue, localVarHTTPResponse, nil
-}
-
-type CodeReferencesApiV1SettingsSettingIdCodeReferencesGetRequest struct {
- ctx context.Context
- ApiService *CodeReferencesApiService
+ ApiService *CodeReferencesAPIService
settingId int32
}
-func (r CodeReferencesApiV1SettingsSettingIdCodeReferencesGetRequest) Execute() ([]CodeReferenceModel, *http.Response, error) {
+func (r CodeReferencesAPIV1SettingsSettingIdCodeReferencesGetRequest) Execute() ([]CodeReferenceModel, *http.Response, error) {
return r.ApiService.V1SettingsSettingIdCodeReferencesGetExecute(r)
}
@@ -342,10 +239,10 @@ V1SettingsSettingIdCodeReferencesGet Get References for Feature Flag or Setting
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param settingId The identifier of the Feature Flag or Setting.
- @return CodeReferencesApiV1SettingsSettingIdCodeReferencesGetRequest
+ @return CodeReferencesAPIV1SettingsSettingIdCodeReferencesGetRequest
*/
-func (a *CodeReferencesApiService) V1SettingsSettingIdCodeReferencesGet(ctx context.Context, settingId int32) CodeReferencesApiV1SettingsSettingIdCodeReferencesGetRequest {
- return CodeReferencesApiV1SettingsSettingIdCodeReferencesGetRequest{
+func (a *CodeReferencesAPIService) V1SettingsSettingIdCodeReferencesGet(ctx context.Context, settingId int32) CodeReferencesAPIV1SettingsSettingIdCodeReferencesGetRequest {
+ return CodeReferencesAPIV1SettingsSettingIdCodeReferencesGetRequest{
ApiService: a,
ctx: ctx,
settingId: settingId,
@@ -354,7 +251,7 @@ func (a *CodeReferencesApiService) V1SettingsSettingIdCodeReferencesGet(ctx cont
// Execute executes the request
// @return []CodeReferenceModel
-func (a *CodeReferencesApiService) V1SettingsSettingIdCodeReferencesGetExecute(r CodeReferencesApiV1SettingsSettingIdCodeReferencesGetRequest) ([]CodeReferenceModel, *http.Response, error) {
+func (a *CodeReferencesAPIService) V1SettingsSettingIdCodeReferencesGetExecute(r CodeReferencesAPIV1SettingsSettingIdCodeReferencesGetRequest) ([]CodeReferenceModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -362,7 +259,7 @@ func (a *CodeReferencesApiService) V1SettingsSettingIdCodeReferencesGetExecute(r
localVarReturnValue []CodeReferenceModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CodeReferencesApiService.V1SettingsSettingIdCodeReferencesGet")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CodeReferencesAPIService.V1SettingsSettingIdCodeReferencesGet")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_configs.go b/api_configs.go
index ba8f8e2..05a9af6 100644
--- a/api_configs.go
+++ b/api_configs.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,22 +21,22 @@ import (
)
-// ConfigsApiService ConfigsApi service
-type ConfigsApiService service
+// ConfigsAPIService ConfigsAPI service
+type ConfigsAPIService service
-type ConfigsApiCreateConfigRequest struct {
+type ConfigsAPICreateConfigRequest struct {
ctx context.Context
- ApiService *ConfigsApiService
+ ApiService *ConfigsAPIService
productId string
createConfigRequest *CreateConfigRequest
}
-func (r ConfigsApiCreateConfigRequest) CreateConfigRequest(createConfigRequest CreateConfigRequest) ConfigsApiCreateConfigRequest {
+func (r ConfigsAPICreateConfigRequest) CreateConfigRequest(createConfigRequest CreateConfigRequest) ConfigsAPICreateConfigRequest {
r.createConfigRequest = &createConfigRequest
return r
}
-func (r ConfigsApiCreateConfigRequest) Execute() (*ConfigModel, *http.Response, error) {
+func (r ConfigsAPICreateConfigRequest) Execute() (*ConfigModel, *http.Response, error) {
return r.ApiService.CreateConfigExecute(r)
}
@@ -48,10 +48,10 @@ identified by the `productId` parameter, which can be obtained from the [List Pr
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return ConfigsApiCreateConfigRequest
+ @return ConfigsAPICreateConfigRequest
*/
-func (a *ConfigsApiService) CreateConfig(ctx context.Context, productId string) ConfigsApiCreateConfigRequest {
- return ConfigsApiCreateConfigRequest{
+func (a *ConfigsAPIService) CreateConfig(ctx context.Context, productId string) ConfigsAPICreateConfigRequest {
+ return ConfigsAPICreateConfigRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -60,7 +60,7 @@ func (a *ConfigsApiService) CreateConfig(ctx context.Context, productId string)
// Execute executes the request
// @return ConfigModel
-func (a *ConfigsApiService) CreateConfigExecute(r ConfigsApiCreateConfigRequest) (*ConfigModel, *http.Response, error) {
+func (a *ConfigsAPIService) CreateConfigExecute(r ConfigsAPICreateConfigRequest) (*ConfigModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -68,7 +68,7 @@ func (a *ConfigsApiService) CreateConfigExecute(r ConfigsApiCreateConfigRequest)
localVarReturnValue *ConfigModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigsApiService.CreateConfig")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigsAPIService.CreateConfig")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -139,13 +139,13 @@ func (a *ConfigsApiService) CreateConfigExecute(r ConfigsApiCreateConfigRequest)
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ConfigsApiDeleteConfigRequest struct {
+type ConfigsAPIDeleteConfigRequest struct {
ctx context.Context
- ApiService *ConfigsApiService
+ ApiService *ConfigsAPIService
configId string
}
-func (r ConfigsApiDeleteConfigRequest) Execute() (*http.Response, error) {
+func (r ConfigsAPIDeleteConfigRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteConfigExecute(r)
}
@@ -156,10 +156,10 @@ This endpoint removes a Config identified by the `configId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param configId The identifier of the Config.
- @return ConfigsApiDeleteConfigRequest
+ @return ConfigsAPIDeleteConfigRequest
*/
-func (a *ConfigsApiService) DeleteConfig(ctx context.Context, configId string) ConfigsApiDeleteConfigRequest {
- return ConfigsApiDeleteConfigRequest{
+func (a *ConfigsAPIService) DeleteConfig(ctx context.Context, configId string) ConfigsAPIDeleteConfigRequest {
+ return ConfigsAPIDeleteConfigRequest{
ApiService: a,
ctx: ctx,
configId: configId,
@@ -167,14 +167,14 @@ func (a *ConfigsApiService) DeleteConfig(ctx context.Context, configId string) C
}
// Execute executes the request
-func (a *ConfigsApiService) DeleteConfigExecute(r ConfigsApiDeleteConfigRequest) (*http.Response, error) {
+func (a *ConfigsAPIService) DeleteConfigExecute(r ConfigsAPIDeleteConfigRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigsApiService.DeleteConfig")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigsAPIService.DeleteConfig")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -231,13 +231,13 @@ func (a *ConfigsApiService) DeleteConfigExecute(r ConfigsApiDeleteConfigRequest)
return localVarHTTPResponse, nil
}
-type ConfigsApiGetConfigRequest struct {
+type ConfigsAPIGetConfigRequest struct {
ctx context.Context
- ApiService *ConfigsApiService
+ ApiService *ConfigsAPIService
configId string
}
-func (r ConfigsApiGetConfigRequest) Execute() (*ConfigModel, *http.Response, error) {
+func (r ConfigsAPIGetConfigRequest) Execute() (*ConfigModel, *http.Response, error) {
return r.ApiService.GetConfigExecute(r)
}
@@ -249,10 +249,10 @@ identified by the `configId`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param configId The identifier of the Config.
- @return ConfigsApiGetConfigRequest
+ @return ConfigsAPIGetConfigRequest
*/
-func (a *ConfigsApiService) GetConfig(ctx context.Context, configId string) ConfigsApiGetConfigRequest {
- return ConfigsApiGetConfigRequest{
+func (a *ConfigsAPIService) GetConfig(ctx context.Context, configId string) ConfigsAPIGetConfigRequest {
+ return ConfigsAPIGetConfigRequest{
ApiService: a,
ctx: ctx,
configId: configId,
@@ -261,7 +261,7 @@ func (a *ConfigsApiService) GetConfig(ctx context.Context, configId string) Conf
// Execute executes the request
// @return ConfigModel
-func (a *ConfigsApiService) GetConfigExecute(r ConfigsApiGetConfigRequest) (*ConfigModel, *http.Response, error) {
+func (a *ConfigsAPIService) GetConfigExecute(r ConfigsAPIGetConfigRequest) (*ConfigModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -269,7 +269,7 @@ func (a *ConfigsApiService) GetConfigExecute(r ConfigsApiGetConfigRequest) (*Con
localVarReturnValue *ConfigModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigsApiService.GetConfig")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigsAPIService.GetConfig")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -335,13 +335,13 @@ func (a *ConfigsApiService) GetConfigExecute(r ConfigsApiGetConfigRequest) (*Con
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ConfigsApiGetConfigsRequest struct {
+type ConfigsAPIGetConfigsRequest struct {
ctx context.Context
- ApiService *ConfigsApiService
+ ApiService *ConfigsAPIService
productId string
}
-func (r ConfigsApiGetConfigsRequest) Execute() ([]ConfigModel, *http.Response, error) {
+func (r ConfigsAPIGetConfigsRequest) Execute() ([]ConfigModel, *http.Response, error) {
return r.ApiService.GetConfigsExecute(r)
}
@@ -353,10 +353,10 @@ This endpoint returns the list of the Configs that belongs to the given Product
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return ConfigsApiGetConfigsRequest
+ @return ConfigsAPIGetConfigsRequest
*/
-func (a *ConfigsApiService) GetConfigs(ctx context.Context, productId string) ConfigsApiGetConfigsRequest {
- return ConfigsApiGetConfigsRequest{
+func (a *ConfigsAPIService) GetConfigs(ctx context.Context, productId string) ConfigsAPIGetConfigsRequest {
+ return ConfigsAPIGetConfigsRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -365,7 +365,7 @@ func (a *ConfigsApiService) GetConfigs(ctx context.Context, productId string) Co
// Execute executes the request
// @return []ConfigModel
-func (a *ConfigsApiService) GetConfigsExecute(r ConfigsApiGetConfigsRequest) ([]ConfigModel, *http.Response, error) {
+func (a *ConfigsAPIService) GetConfigsExecute(r ConfigsAPIGetConfigsRequest) ([]ConfigModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -373,7 +373,7 @@ func (a *ConfigsApiService) GetConfigsExecute(r ConfigsApiGetConfigsRequest) ([]
localVarReturnValue []ConfigModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigsApiService.GetConfigs")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigsAPIService.GetConfigs")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -439,19 +439,19 @@ func (a *ConfigsApiService) GetConfigsExecute(r ConfigsApiGetConfigsRequest) ([]
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ConfigsApiUpdateConfigRequest struct {
+type ConfigsAPIUpdateConfigRequest struct {
ctx context.Context
- ApiService *ConfigsApiService
+ ApiService *ConfigsAPIService
configId string
updateConfigRequest *UpdateConfigRequest
}
-func (r ConfigsApiUpdateConfigRequest) UpdateConfigRequest(updateConfigRequest UpdateConfigRequest) ConfigsApiUpdateConfigRequest {
+func (r ConfigsAPIUpdateConfigRequest) UpdateConfigRequest(updateConfigRequest UpdateConfigRequest) ConfigsAPIUpdateConfigRequest {
r.updateConfigRequest = &updateConfigRequest
return r
}
-func (r ConfigsApiUpdateConfigRequest) Execute() (*ConfigModel, *http.Response, error) {
+func (r ConfigsAPIUpdateConfigRequest) Execute() (*ConfigModel, *http.Response, error) {
return r.ApiService.UpdateConfigExecute(r)
}
@@ -462,10 +462,10 @@ This endpoint updates a Config identified by the `configId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param configId The identifier of the Config.
- @return ConfigsApiUpdateConfigRequest
+ @return ConfigsAPIUpdateConfigRequest
*/
-func (a *ConfigsApiService) UpdateConfig(ctx context.Context, configId string) ConfigsApiUpdateConfigRequest {
- return ConfigsApiUpdateConfigRequest{
+func (a *ConfigsAPIService) UpdateConfig(ctx context.Context, configId string) ConfigsAPIUpdateConfigRequest {
+ return ConfigsAPIUpdateConfigRequest{
ApiService: a,
ctx: ctx,
configId: configId,
@@ -474,7 +474,7 @@ func (a *ConfigsApiService) UpdateConfig(ctx context.Context, configId string) C
// Execute executes the request
// @return ConfigModel
-func (a *ConfigsApiService) UpdateConfigExecute(r ConfigsApiUpdateConfigRequest) (*ConfigModel, *http.Response, error) {
+func (a *ConfigsAPIService) UpdateConfigExecute(r ConfigsAPIUpdateConfigRequest) (*ConfigModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -482,7 +482,7 @@ func (a *ConfigsApiService) UpdateConfigExecute(r ConfigsApiUpdateConfigRequest)
localVarReturnValue *ConfigModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigsApiService.UpdateConfig")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigsAPIService.UpdateConfig")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_environments.go b/api_environments.go
index 0c05be8..6cde49f 100644
--- a/api_environments.go
+++ b/api_environments.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,22 +21,22 @@ import (
)
-// EnvironmentsApiService EnvironmentsApi service
-type EnvironmentsApiService service
+// EnvironmentsAPIService EnvironmentsAPI service
+type EnvironmentsAPIService service
-type EnvironmentsApiCreateEnvironmentRequest struct {
+type EnvironmentsAPICreateEnvironmentRequest struct {
ctx context.Context
- ApiService *EnvironmentsApiService
+ ApiService *EnvironmentsAPIService
productId string
createEnvironmentModel *CreateEnvironmentModel
}
-func (r EnvironmentsApiCreateEnvironmentRequest) CreateEnvironmentModel(createEnvironmentModel CreateEnvironmentModel) EnvironmentsApiCreateEnvironmentRequest {
+func (r EnvironmentsAPICreateEnvironmentRequest) CreateEnvironmentModel(createEnvironmentModel CreateEnvironmentModel) EnvironmentsAPICreateEnvironmentRequest {
r.createEnvironmentModel = &createEnvironmentModel
return r
}
-func (r EnvironmentsApiCreateEnvironmentRequest) Execute() (*EnvironmentModel, *http.Response, error) {
+func (r EnvironmentsAPICreateEnvironmentRequest) Execute() (*EnvironmentModel, *http.Response, error) {
return r.ApiService.CreateEnvironmentExecute(r)
}
@@ -48,10 +48,10 @@ identified by the `productId` parameter, which can be obtained from the [List Pr
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return EnvironmentsApiCreateEnvironmentRequest
+ @return EnvironmentsAPICreateEnvironmentRequest
*/
-func (a *EnvironmentsApiService) CreateEnvironment(ctx context.Context, productId string) EnvironmentsApiCreateEnvironmentRequest {
- return EnvironmentsApiCreateEnvironmentRequest{
+func (a *EnvironmentsAPIService) CreateEnvironment(ctx context.Context, productId string) EnvironmentsAPICreateEnvironmentRequest {
+ return EnvironmentsAPICreateEnvironmentRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -60,7 +60,7 @@ func (a *EnvironmentsApiService) CreateEnvironment(ctx context.Context, productI
// Execute executes the request
// @return EnvironmentModel
-func (a *EnvironmentsApiService) CreateEnvironmentExecute(r EnvironmentsApiCreateEnvironmentRequest) (*EnvironmentModel, *http.Response, error) {
+func (a *EnvironmentsAPIService) CreateEnvironmentExecute(r EnvironmentsAPICreateEnvironmentRequest) (*EnvironmentModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -68,7 +68,7 @@ func (a *EnvironmentsApiService) CreateEnvironmentExecute(r EnvironmentsApiCreat
localVarReturnValue *EnvironmentModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsApiService.CreateEnvironment")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsAPIService.CreateEnvironment")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -139,20 +139,20 @@ func (a *EnvironmentsApiService) CreateEnvironmentExecute(r EnvironmentsApiCreat
return localVarReturnValue, localVarHTTPResponse, nil
}
-type EnvironmentsApiDeleteEnvironmentRequest struct {
+type EnvironmentsAPIDeleteEnvironmentRequest struct {
ctx context.Context
- ApiService *EnvironmentsApiService
+ ApiService *EnvironmentsAPIService
environmentId string
cleanupAuditLogs *bool
}
// An optional flag which indicates whether the audit log records related to the environment should be deleted or not.
-func (r EnvironmentsApiDeleteEnvironmentRequest) CleanupAuditLogs(cleanupAuditLogs bool) EnvironmentsApiDeleteEnvironmentRequest {
+func (r EnvironmentsAPIDeleteEnvironmentRequest) CleanupAuditLogs(cleanupAuditLogs bool) EnvironmentsAPIDeleteEnvironmentRequest {
r.cleanupAuditLogs = &cleanupAuditLogs
return r
}
-func (r EnvironmentsApiDeleteEnvironmentRequest) Execute() (*http.Response, error) {
+func (r EnvironmentsAPIDeleteEnvironmentRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteEnvironmentExecute(r)
}
@@ -165,10 +165,10 @@ If the `cleanupAuditLogs` flag is set to true, it also deletes the audit log rec
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param environmentId The identifier of the Environment.
- @return EnvironmentsApiDeleteEnvironmentRequest
+ @return EnvironmentsAPIDeleteEnvironmentRequest
*/
-func (a *EnvironmentsApiService) DeleteEnvironment(ctx context.Context, environmentId string) EnvironmentsApiDeleteEnvironmentRequest {
- return EnvironmentsApiDeleteEnvironmentRequest{
+func (a *EnvironmentsAPIService) DeleteEnvironment(ctx context.Context, environmentId string) EnvironmentsAPIDeleteEnvironmentRequest {
+ return EnvironmentsAPIDeleteEnvironmentRequest{
ApiService: a,
ctx: ctx,
environmentId: environmentId,
@@ -176,14 +176,14 @@ func (a *EnvironmentsApiService) DeleteEnvironment(ctx context.Context, environm
}
// Execute executes the request
-func (a *EnvironmentsApiService) DeleteEnvironmentExecute(r EnvironmentsApiDeleteEnvironmentRequest) (*http.Response, error) {
+func (a *EnvironmentsAPIService) DeleteEnvironmentExecute(r EnvironmentsAPIDeleteEnvironmentRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsApiService.DeleteEnvironment")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsAPIService.DeleteEnvironment")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -243,13 +243,13 @@ func (a *EnvironmentsApiService) DeleteEnvironmentExecute(r EnvironmentsApiDelet
return localVarHTTPResponse, nil
}
-type EnvironmentsApiGetEnvironmentRequest struct {
+type EnvironmentsAPIGetEnvironmentRequest struct {
ctx context.Context
- ApiService *EnvironmentsApiService
+ ApiService *EnvironmentsAPIService
environmentId string
}
-func (r EnvironmentsApiGetEnvironmentRequest) Execute() (*EnvironmentModel, *http.Response, error) {
+func (r EnvironmentsAPIGetEnvironmentRequest) Execute() (*EnvironmentModel, *http.Response, error) {
return r.ApiService.GetEnvironmentExecute(r)
}
@@ -261,10 +261,10 @@ identified by the `environmentId`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param environmentId The identifier of the Environment.
- @return EnvironmentsApiGetEnvironmentRequest
+ @return EnvironmentsAPIGetEnvironmentRequest
*/
-func (a *EnvironmentsApiService) GetEnvironment(ctx context.Context, environmentId string) EnvironmentsApiGetEnvironmentRequest {
- return EnvironmentsApiGetEnvironmentRequest{
+func (a *EnvironmentsAPIService) GetEnvironment(ctx context.Context, environmentId string) EnvironmentsAPIGetEnvironmentRequest {
+ return EnvironmentsAPIGetEnvironmentRequest{
ApiService: a,
ctx: ctx,
environmentId: environmentId,
@@ -273,7 +273,7 @@ func (a *EnvironmentsApiService) GetEnvironment(ctx context.Context, environment
// Execute executes the request
// @return EnvironmentModel
-func (a *EnvironmentsApiService) GetEnvironmentExecute(r EnvironmentsApiGetEnvironmentRequest) (*EnvironmentModel, *http.Response, error) {
+func (a *EnvironmentsAPIService) GetEnvironmentExecute(r EnvironmentsAPIGetEnvironmentRequest) (*EnvironmentModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -281,7 +281,7 @@ func (a *EnvironmentsApiService) GetEnvironmentExecute(r EnvironmentsApiGetEnvir
localVarReturnValue *EnvironmentModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsApiService.GetEnvironment")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsAPIService.GetEnvironment")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -347,13 +347,13 @@ func (a *EnvironmentsApiService) GetEnvironmentExecute(r EnvironmentsApiGetEnvir
return localVarReturnValue, localVarHTTPResponse, nil
}
-type EnvironmentsApiGetEnvironmentsRequest struct {
+type EnvironmentsAPIGetEnvironmentsRequest struct {
ctx context.Context
- ApiService *EnvironmentsApiService
+ ApiService *EnvironmentsAPIService
productId string
}
-func (r EnvironmentsApiGetEnvironmentsRequest) Execute() ([]EnvironmentModel, *http.Response, error) {
+func (r EnvironmentsAPIGetEnvironmentsRequest) Execute() ([]EnvironmentModel, *http.Response, error) {
return r.ApiService.GetEnvironmentsExecute(r)
}
@@ -365,10 +365,10 @@ This endpoint returns the list of the Environments that belongs to the given Pro
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return EnvironmentsApiGetEnvironmentsRequest
+ @return EnvironmentsAPIGetEnvironmentsRequest
*/
-func (a *EnvironmentsApiService) GetEnvironments(ctx context.Context, productId string) EnvironmentsApiGetEnvironmentsRequest {
- return EnvironmentsApiGetEnvironmentsRequest{
+func (a *EnvironmentsAPIService) GetEnvironments(ctx context.Context, productId string) EnvironmentsAPIGetEnvironmentsRequest {
+ return EnvironmentsAPIGetEnvironmentsRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -377,7 +377,7 @@ func (a *EnvironmentsApiService) GetEnvironments(ctx context.Context, productId
// Execute executes the request
// @return []EnvironmentModel
-func (a *EnvironmentsApiService) GetEnvironmentsExecute(r EnvironmentsApiGetEnvironmentsRequest) ([]EnvironmentModel, *http.Response, error) {
+func (a *EnvironmentsAPIService) GetEnvironmentsExecute(r EnvironmentsAPIGetEnvironmentsRequest) ([]EnvironmentModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -385,7 +385,7 @@ func (a *EnvironmentsApiService) GetEnvironmentsExecute(r EnvironmentsApiGetEnvi
localVarReturnValue []EnvironmentModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsApiService.GetEnvironments")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsAPIService.GetEnvironments")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -451,19 +451,19 @@ func (a *EnvironmentsApiService) GetEnvironmentsExecute(r EnvironmentsApiGetEnvi
return localVarReturnValue, localVarHTTPResponse, nil
}
-type EnvironmentsApiUpdateEnvironmentRequest struct {
+type EnvironmentsAPIUpdateEnvironmentRequest struct {
ctx context.Context
- ApiService *EnvironmentsApiService
+ ApiService *EnvironmentsAPIService
environmentId string
updateEnvironmentModel *UpdateEnvironmentModel
}
-func (r EnvironmentsApiUpdateEnvironmentRequest) UpdateEnvironmentModel(updateEnvironmentModel UpdateEnvironmentModel) EnvironmentsApiUpdateEnvironmentRequest {
+func (r EnvironmentsAPIUpdateEnvironmentRequest) UpdateEnvironmentModel(updateEnvironmentModel UpdateEnvironmentModel) EnvironmentsAPIUpdateEnvironmentRequest {
r.updateEnvironmentModel = &updateEnvironmentModel
return r
}
-func (r EnvironmentsApiUpdateEnvironmentRequest) Execute() (*EnvironmentModel, *http.Response, error) {
+func (r EnvironmentsAPIUpdateEnvironmentRequest) Execute() (*EnvironmentModel, *http.Response, error) {
return r.ApiService.UpdateEnvironmentExecute(r)
}
@@ -474,10 +474,10 @@ This endpoint updates an Environment identified by the `environmentId` parameter
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param environmentId The identifier of the Environment.
- @return EnvironmentsApiUpdateEnvironmentRequest
+ @return EnvironmentsAPIUpdateEnvironmentRequest
*/
-func (a *EnvironmentsApiService) UpdateEnvironment(ctx context.Context, environmentId string) EnvironmentsApiUpdateEnvironmentRequest {
- return EnvironmentsApiUpdateEnvironmentRequest{
+func (a *EnvironmentsAPIService) UpdateEnvironment(ctx context.Context, environmentId string) EnvironmentsAPIUpdateEnvironmentRequest {
+ return EnvironmentsAPIUpdateEnvironmentRequest{
ApiService: a,
ctx: ctx,
environmentId: environmentId,
@@ -486,7 +486,7 @@ func (a *EnvironmentsApiService) UpdateEnvironment(ctx context.Context, environm
// Execute executes the request
// @return EnvironmentModel
-func (a *EnvironmentsApiService) UpdateEnvironmentExecute(r EnvironmentsApiUpdateEnvironmentRequest) (*EnvironmentModel, *http.Response, error) {
+func (a *EnvironmentsAPIService) UpdateEnvironmentExecute(r EnvironmentsAPIUpdateEnvironmentRequest) (*EnvironmentModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -494,7 +494,7 @@ func (a *EnvironmentsApiService) UpdateEnvironmentExecute(r EnvironmentsApiUpdat
localVarReturnValue *EnvironmentModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsApiService.UpdateEnvironment")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsAPIService.UpdateEnvironment")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_feature_flag_setting_values.go b/api_feature_flag_setting_values.go
index 16fca33..58b197b 100644
--- a/api_feature_flag_setting_values.go
+++ b/api_feature_flag_setting_values.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,17 +21,17 @@ import (
)
-// FeatureFlagSettingValuesApiService FeatureFlagSettingValuesApi service
-type FeatureFlagSettingValuesApiService service
+// FeatureFlagSettingValuesAPIService FeatureFlagSettingValuesAPI service
+type FeatureFlagSettingValuesAPIService service
-type FeatureFlagSettingValuesApiGetSettingValueRequest struct {
+type FeatureFlagSettingValuesAPIGetSettingValueRequest struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesApiService
+ ApiService *FeatureFlagSettingValuesAPIService
environmentId string
settingId int32
}
-func (r FeatureFlagSettingValuesApiGetSettingValueRequest) Execute() (*SettingValueModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesAPIGetSettingValueRequest) Execute() (*SettingValueModel, *http.Response, error) {
return r.ApiService.GetSettingValueExecute(r)
}
@@ -53,10 +53,10 @@ evaluation order. You can read more about these rules [here](https://configcat.c
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param environmentId The identifier of the Environment.
@param settingId The id of the Setting.
- @return FeatureFlagSettingValuesApiGetSettingValueRequest
+ @return FeatureFlagSettingValuesAPIGetSettingValueRequest
*/
-func (a *FeatureFlagSettingValuesApiService) GetSettingValue(ctx context.Context, environmentId string, settingId int32) FeatureFlagSettingValuesApiGetSettingValueRequest {
- return FeatureFlagSettingValuesApiGetSettingValueRequest{
+func (a *FeatureFlagSettingValuesAPIService) GetSettingValue(ctx context.Context, environmentId string, settingId int32) FeatureFlagSettingValuesAPIGetSettingValueRequest {
+ return FeatureFlagSettingValuesAPIGetSettingValueRequest{
ApiService: a,
ctx: ctx,
environmentId: environmentId,
@@ -66,7 +66,7 @@ func (a *FeatureFlagSettingValuesApiService) GetSettingValue(ctx context.Context
// Execute executes the request
// @return SettingValueModel
-func (a *FeatureFlagSettingValuesApiService) GetSettingValueExecute(r FeatureFlagSettingValuesApiGetSettingValueRequest) (*SettingValueModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesAPIService) GetSettingValueExecute(r FeatureFlagSettingValuesAPIGetSettingValueRequest) (*SettingValueModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -74,7 +74,7 @@ func (a *FeatureFlagSettingValuesApiService) GetSettingValueExecute(r FeatureFla
localVarReturnValue *SettingValueModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesApiService.GetSettingValue")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesAPIService.GetSettingValue")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -141,14 +141,14 @@ func (a *FeatureFlagSettingValuesApiService) GetSettingValueExecute(r FeatureFla
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagSettingValuesApiGetSettingValuesRequest struct {
+type FeatureFlagSettingValuesAPIGetSettingValuesRequest struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesApiService
+ ApiService *FeatureFlagSettingValuesAPIService
configId string
environmentId string
}
-func (r FeatureFlagSettingValuesApiGetSettingValuesRequest) Execute() (*ConfigSettingValuesModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesAPIGetSettingValuesRequest) Execute() (*ConfigSettingValuesModel, *http.Response, error) {
return r.ApiService.GetSettingValuesExecute(r)
}
@@ -170,10 +170,10 @@ evaluation order. You can read more about these rules [here](https://configcat.c
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param configId The identifier of the Config.
@param environmentId The identifier of the Environment.
- @return FeatureFlagSettingValuesApiGetSettingValuesRequest
+ @return FeatureFlagSettingValuesAPIGetSettingValuesRequest
*/
-func (a *FeatureFlagSettingValuesApiService) GetSettingValues(ctx context.Context, configId string, environmentId string) FeatureFlagSettingValuesApiGetSettingValuesRequest {
- return FeatureFlagSettingValuesApiGetSettingValuesRequest{
+func (a *FeatureFlagSettingValuesAPIService) GetSettingValues(ctx context.Context, configId string, environmentId string) FeatureFlagSettingValuesAPIGetSettingValuesRequest {
+ return FeatureFlagSettingValuesAPIGetSettingValuesRequest{
ApiService: a,
ctx: ctx,
configId: configId,
@@ -183,7 +183,7 @@ func (a *FeatureFlagSettingValuesApiService) GetSettingValues(ctx context.Contex
// Execute executes the request
// @return ConfigSettingValuesModel
-func (a *FeatureFlagSettingValuesApiService) GetSettingValuesExecute(r FeatureFlagSettingValuesApiGetSettingValuesRequest) (*ConfigSettingValuesModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesAPIService) GetSettingValuesExecute(r FeatureFlagSettingValuesAPIGetSettingValuesRequest) (*ConfigSettingValuesModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -191,7 +191,7 @@ func (a *FeatureFlagSettingValuesApiService) GetSettingValuesExecute(r FeatureFl
localVarReturnValue *ConfigSettingValuesModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesApiService.GetSettingValues")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesAPIService.GetSettingValues")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -258,27 +258,27 @@ func (a *FeatureFlagSettingValuesApiService) GetSettingValuesExecute(r FeatureFl
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagSettingValuesApiPostSettingValuesRequest struct {
+type FeatureFlagSettingValuesAPIPostSettingValuesRequest struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesApiService
+ ApiService *FeatureFlagSettingValuesAPIService
configId string
environmentId string
updateSettingValuesWithIdModel *UpdateSettingValuesWithIdModel
reason *string
}
-func (r FeatureFlagSettingValuesApiPostSettingValuesRequest) UpdateSettingValuesWithIdModel(updateSettingValuesWithIdModel UpdateSettingValuesWithIdModel) FeatureFlagSettingValuesApiPostSettingValuesRequest {
+func (r FeatureFlagSettingValuesAPIPostSettingValuesRequest) UpdateSettingValuesWithIdModel(updateSettingValuesWithIdModel UpdateSettingValuesWithIdModel) FeatureFlagSettingValuesAPIPostSettingValuesRequest {
r.updateSettingValuesWithIdModel = &updateSettingValuesWithIdModel
return r
}
// The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on.
-func (r FeatureFlagSettingValuesApiPostSettingValuesRequest) Reason(reason string) FeatureFlagSettingValuesApiPostSettingValuesRequest {
+func (r FeatureFlagSettingValuesAPIPostSettingValuesRequest) Reason(reason string) FeatureFlagSettingValuesAPIPostSettingValuesRequest {
r.reason = &reason
return r
}
-func (r FeatureFlagSettingValuesApiPostSettingValuesRequest) Execute() (*ConfigSettingValuesModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesAPIPostSettingValuesRequest) Execute() (*ConfigSettingValuesModel, *http.Response, error) {
return r.ApiService.PostSettingValuesExecute(r)
}
@@ -352,10 +352,10 @@ The `rolloutRules` property describes two types of rules:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param configId The identifier of the Config.
@param environmentId The identifier of the Environment.
- @return FeatureFlagSettingValuesApiPostSettingValuesRequest
+ @return FeatureFlagSettingValuesAPIPostSettingValuesRequest
*/
-func (a *FeatureFlagSettingValuesApiService) PostSettingValues(ctx context.Context, configId string, environmentId string) FeatureFlagSettingValuesApiPostSettingValuesRequest {
- return FeatureFlagSettingValuesApiPostSettingValuesRequest{
+func (a *FeatureFlagSettingValuesAPIService) PostSettingValues(ctx context.Context, configId string, environmentId string) FeatureFlagSettingValuesAPIPostSettingValuesRequest {
+ return FeatureFlagSettingValuesAPIPostSettingValuesRequest{
ApiService: a,
ctx: ctx,
configId: configId,
@@ -365,7 +365,7 @@ func (a *FeatureFlagSettingValuesApiService) PostSettingValues(ctx context.Conte
// Execute executes the request
// @return ConfigSettingValuesModel
-func (a *FeatureFlagSettingValuesApiService) PostSettingValuesExecute(r FeatureFlagSettingValuesApiPostSettingValuesRequest) (*ConfigSettingValuesModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesAPIService) PostSettingValuesExecute(r FeatureFlagSettingValuesAPIPostSettingValuesRequest) (*ConfigSettingValuesModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -373,7 +373,7 @@ func (a *FeatureFlagSettingValuesApiService) PostSettingValuesExecute(r FeatureF
localVarReturnValue *ConfigSettingValuesModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesApiService.PostSettingValues")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesAPIService.PostSettingValues")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -448,27 +448,27 @@ func (a *FeatureFlagSettingValuesApiService) PostSettingValuesExecute(r FeatureF
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagSettingValuesApiReplaceSettingValueRequest struct {
+type FeatureFlagSettingValuesAPIReplaceSettingValueRequest struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesApiService
+ ApiService *FeatureFlagSettingValuesAPIService
environmentId string
settingId int32
updateSettingValueModel *UpdateSettingValueModel
reason *string
}
-func (r FeatureFlagSettingValuesApiReplaceSettingValueRequest) UpdateSettingValueModel(updateSettingValueModel UpdateSettingValueModel) FeatureFlagSettingValuesApiReplaceSettingValueRequest {
+func (r FeatureFlagSettingValuesAPIReplaceSettingValueRequest) UpdateSettingValueModel(updateSettingValueModel UpdateSettingValueModel) FeatureFlagSettingValuesAPIReplaceSettingValueRequest {
r.updateSettingValueModel = &updateSettingValueModel
return r
}
// The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on.
-func (r FeatureFlagSettingValuesApiReplaceSettingValueRequest) Reason(reason string) FeatureFlagSettingValuesApiReplaceSettingValueRequest {
+func (r FeatureFlagSettingValuesAPIReplaceSettingValueRequest) Reason(reason string) FeatureFlagSettingValuesAPIReplaceSettingValueRequest {
r.reason = &reason
return r
}
-func (r FeatureFlagSettingValuesApiReplaceSettingValueRequest) Execute() (*SettingValueModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesAPIReplaceSettingValueRequest) Execute() (*SettingValueModel, *http.Response, error) {
return r.ApiService.ReplaceSettingValueExecute(r)
}
@@ -523,10 +523,10 @@ The `rolloutRules` property describes two types of rules:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param environmentId The identifier of the Environment.
@param settingId The id of the Setting.
- @return FeatureFlagSettingValuesApiReplaceSettingValueRequest
+ @return FeatureFlagSettingValuesAPIReplaceSettingValueRequest
*/
-func (a *FeatureFlagSettingValuesApiService) ReplaceSettingValue(ctx context.Context, environmentId string, settingId int32) FeatureFlagSettingValuesApiReplaceSettingValueRequest {
- return FeatureFlagSettingValuesApiReplaceSettingValueRequest{
+func (a *FeatureFlagSettingValuesAPIService) ReplaceSettingValue(ctx context.Context, environmentId string, settingId int32) FeatureFlagSettingValuesAPIReplaceSettingValueRequest {
+ return FeatureFlagSettingValuesAPIReplaceSettingValueRequest{
ApiService: a,
ctx: ctx,
environmentId: environmentId,
@@ -536,7 +536,7 @@ func (a *FeatureFlagSettingValuesApiService) ReplaceSettingValue(ctx context.Con
// Execute executes the request
// @return SettingValueModel
-func (a *FeatureFlagSettingValuesApiService) ReplaceSettingValueExecute(r FeatureFlagSettingValuesApiReplaceSettingValueRequest) (*SettingValueModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesAPIService) ReplaceSettingValueExecute(r FeatureFlagSettingValuesAPIReplaceSettingValueRequest) (*SettingValueModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -544,7 +544,7 @@ func (a *FeatureFlagSettingValuesApiService) ReplaceSettingValueExecute(r Featur
localVarReturnValue *SettingValueModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesApiService.ReplaceSettingValue")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesAPIService.ReplaceSettingValue")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -619,27 +619,27 @@ func (a *FeatureFlagSettingValuesApiService) ReplaceSettingValueExecute(r Featur
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagSettingValuesApiUpdateSettingValueRequest struct {
+type FeatureFlagSettingValuesAPIUpdateSettingValueRequest struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesApiService
+ ApiService *FeatureFlagSettingValuesAPIService
environmentId string
settingId int32
jsonPatchOperation *[]JsonPatchOperation
reason *string
}
-func (r FeatureFlagSettingValuesApiUpdateSettingValueRequest) JsonPatchOperation(jsonPatchOperation []JsonPatchOperation) FeatureFlagSettingValuesApiUpdateSettingValueRequest {
+func (r FeatureFlagSettingValuesAPIUpdateSettingValueRequest) JsonPatchOperation(jsonPatchOperation []JsonPatchOperation) FeatureFlagSettingValuesAPIUpdateSettingValueRequest {
r.jsonPatchOperation = &jsonPatchOperation
return r
}
// The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on.
-func (r FeatureFlagSettingValuesApiUpdateSettingValueRequest) Reason(reason string) FeatureFlagSettingValuesApiUpdateSettingValueRequest {
+func (r FeatureFlagSettingValuesAPIUpdateSettingValueRequest) Reason(reason string) FeatureFlagSettingValuesAPIUpdateSettingValueRequest {
r.reason = &reason
return r
}
-func (r FeatureFlagSettingValuesApiUpdateSettingValueRequest) Execute() (*SettingValueModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesAPIUpdateSettingValueRequest) Execute() (*SettingValueModel, *http.Response, error) {
return r.ApiService.UpdateSettingValueExecute(r)
}
@@ -709,10 +709,10 @@ The `rolloutRules` property describes two types of rules:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param environmentId The identifier of the Environment.
@param settingId The id of the Setting.
- @return FeatureFlagSettingValuesApiUpdateSettingValueRequest
+ @return FeatureFlagSettingValuesAPIUpdateSettingValueRequest
*/
-func (a *FeatureFlagSettingValuesApiService) UpdateSettingValue(ctx context.Context, environmentId string, settingId int32) FeatureFlagSettingValuesApiUpdateSettingValueRequest {
- return FeatureFlagSettingValuesApiUpdateSettingValueRequest{
+func (a *FeatureFlagSettingValuesAPIService) UpdateSettingValue(ctx context.Context, environmentId string, settingId int32) FeatureFlagSettingValuesAPIUpdateSettingValueRequest {
+ return FeatureFlagSettingValuesAPIUpdateSettingValueRequest{
ApiService: a,
ctx: ctx,
environmentId: environmentId,
@@ -722,7 +722,7 @@ func (a *FeatureFlagSettingValuesApiService) UpdateSettingValue(ctx context.Cont
// Execute executes the request
// @return SettingValueModel
-func (a *FeatureFlagSettingValuesApiService) UpdateSettingValueExecute(r FeatureFlagSettingValuesApiUpdateSettingValueRequest) (*SettingValueModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesAPIService) UpdateSettingValueExecute(r FeatureFlagSettingValuesAPIUpdateSettingValueRequest) (*SettingValueModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
@@ -730,7 +730,7 @@ func (a *FeatureFlagSettingValuesApiService) UpdateSettingValueExecute(r Feature
localVarReturnValue *SettingValueModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesApiService.UpdateSettingValue")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesAPIService.UpdateSettingValue")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_feature_flag_setting_values_using_sdk_key.go b/api_feature_flag_setting_values_using_sdk_key.go
index b34eef7..883ea2f 100644
--- a/api_feature_flag_setting_values_using_sdk_key.go
+++ b/api_feature_flag_setting_values_using_sdk_key.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,23 +21,23 @@ import (
)
-// FeatureFlagSettingValuesUsingSDKKeyApiService FeatureFlagSettingValuesUsingSDKKeyApi service
-type FeatureFlagSettingValuesUsingSDKKeyApiService service
+// FeatureFlagSettingValuesUsingSDKKeyAPIService FeatureFlagSettingValuesUsingSDKKeyAPI service
+type FeatureFlagSettingValuesUsingSDKKeyAPIService service
-type FeatureFlagSettingValuesUsingSDKKeyApiGetSettingValueBySdkkeyRequest struct {
+type FeatureFlagSettingValuesUsingSDKKeyAPIGetSettingValueBySdkkeyRequest struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesUsingSDKKeyApiService
+ ApiService *FeatureFlagSettingValuesUsingSDKKeyAPIService
settingKeyOrId string
xCONFIGCATSDKKEY *string
}
// The ConfigCat SDK Key. (https://app.configcat.com/sdkkey)
-func (r FeatureFlagSettingValuesUsingSDKKeyApiGetSettingValueBySdkkeyRequest) XCONFIGCATSDKKEY(xCONFIGCATSDKKEY string) FeatureFlagSettingValuesUsingSDKKeyApiGetSettingValueBySdkkeyRequest {
+func (r FeatureFlagSettingValuesUsingSDKKeyAPIGetSettingValueBySdkkeyRequest) XCONFIGCATSDKKEY(xCONFIGCATSDKKEY string) FeatureFlagSettingValuesUsingSDKKeyAPIGetSettingValueBySdkkeyRequest {
r.xCONFIGCATSDKKEY = &xCONFIGCATSDKKEY
return r
}
-func (r FeatureFlagSettingValuesUsingSDKKeyApiGetSettingValueBySdkkeyRequest) Execute() (*SettingValueModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesUsingSDKKeyAPIGetSettingValueBySdkkeyRequest) Execute() (*SettingValueModel, *http.Response, error) {
return r.ApiService.GetSettingValueBySdkkeyExecute(r)
}
@@ -58,10 +58,10 @@ evaluation order. You can read more about these rules [here](https://configcat.c
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param settingKeyOrId The key or id of the Setting.
- @return FeatureFlagSettingValuesUsingSDKKeyApiGetSettingValueBySdkkeyRequest
+ @return FeatureFlagSettingValuesUsingSDKKeyAPIGetSettingValueBySdkkeyRequest
*/
-func (a *FeatureFlagSettingValuesUsingSDKKeyApiService) GetSettingValueBySdkkey(ctx context.Context, settingKeyOrId string) FeatureFlagSettingValuesUsingSDKKeyApiGetSettingValueBySdkkeyRequest {
- return FeatureFlagSettingValuesUsingSDKKeyApiGetSettingValueBySdkkeyRequest{
+func (a *FeatureFlagSettingValuesUsingSDKKeyAPIService) GetSettingValueBySdkkey(ctx context.Context, settingKeyOrId string) FeatureFlagSettingValuesUsingSDKKeyAPIGetSettingValueBySdkkeyRequest {
+ return FeatureFlagSettingValuesUsingSDKKeyAPIGetSettingValueBySdkkeyRequest{
ApiService: a,
ctx: ctx,
settingKeyOrId: settingKeyOrId,
@@ -70,7 +70,7 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyApiService) GetSettingValueBySdkkey(
// Execute executes the request
// @return SettingValueModel
-func (a *FeatureFlagSettingValuesUsingSDKKeyApiService) GetSettingValueBySdkkeyExecute(r FeatureFlagSettingValuesUsingSDKKeyApiGetSettingValueBySdkkeyRequest) (*SettingValueModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesUsingSDKKeyAPIService) GetSettingValueBySdkkeyExecute(r FeatureFlagSettingValuesUsingSDKKeyAPIGetSettingValueBySdkkeyRequest) (*SettingValueModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -78,7 +78,7 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyApiService) GetSettingValueBySdkkeyE
localVarReturnValue *SettingValueModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesUsingSDKKeyApiService.GetSettingValueBySdkkey")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesUsingSDKKeyAPIService.GetSettingValueBySdkkey")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -147,33 +147,33 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyApiService) GetSettingValueBySdkkeyE
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagSettingValuesUsingSDKKeyApiReplaceSettingValueBySdkkeyRequest struct {
+type FeatureFlagSettingValuesUsingSDKKeyAPIReplaceSettingValueBySdkkeyRequest struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesUsingSDKKeyApiService
+ ApiService *FeatureFlagSettingValuesUsingSDKKeyAPIService
settingKeyOrId string
updateSettingValueModel *UpdateSettingValueModel
reason *string
xCONFIGCATSDKKEY *string
}
-func (r FeatureFlagSettingValuesUsingSDKKeyApiReplaceSettingValueBySdkkeyRequest) UpdateSettingValueModel(updateSettingValueModel UpdateSettingValueModel) FeatureFlagSettingValuesUsingSDKKeyApiReplaceSettingValueBySdkkeyRequest {
+func (r FeatureFlagSettingValuesUsingSDKKeyAPIReplaceSettingValueBySdkkeyRequest) UpdateSettingValueModel(updateSettingValueModel UpdateSettingValueModel) FeatureFlagSettingValuesUsingSDKKeyAPIReplaceSettingValueBySdkkeyRequest {
r.updateSettingValueModel = &updateSettingValueModel
return r
}
// The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on.
-func (r FeatureFlagSettingValuesUsingSDKKeyApiReplaceSettingValueBySdkkeyRequest) Reason(reason string) FeatureFlagSettingValuesUsingSDKKeyApiReplaceSettingValueBySdkkeyRequest {
+func (r FeatureFlagSettingValuesUsingSDKKeyAPIReplaceSettingValueBySdkkeyRequest) Reason(reason string) FeatureFlagSettingValuesUsingSDKKeyAPIReplaceSettingValueBySdkkeyRequest {
r.reason = &reason
return r
}
// The ConfigCat SDK Key. (https://app.configcat.com/sdkkey)
-func (r FeatureFlagSettingValuesUsingSDKKeyApiReplaceSettingValueBySdkkeyRequest) XCONFIGCATSDKKEY(xCONFIGCATSDKKEY string) FeatureFlagSettingValuesUsingSDKKeyApiReplaceSettingValueBySdkkeyRequest {
+func (r FeatureFlagSettingValuesUsingSDKKeyAPIReplaceSettingValueBySdkkeyRequest) XCONFIGCATSDKKEY(xCONFIGCATSDKKEY string) FeatureFlagSettingValuesUsingSDKKeyAPIReplaceSettingValueBySdkkeyRequest {
r.xCONFIGCATSDKKEY = &xCONFIGCATSDKKEY
return r
}
-func (r FeatureFlagSettingValuesUsingSDKKeyApiReplaceSettingValueBySdkkeyRequest) Execute() (*SettingValueModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesUsingSDKKeyAPIReplaceSettingValueBySdkkeyRequest) Execute() (*SettingValueModel, *http.Response, error) {
return r.ApiService.ReplaceSettingValueBySdkkeyExecute(r)
}
@@ -223,10 +223,10 @@ So we get a response like this:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param settingKeyOrId The key or id of the Setting.
- @return FeatureFlagSettingValuesUsingSDKKeyApiReplaceSettingValueBySdkkeyRequest
+ @return FeatureFlagSettingValuesUsingSDKKeyAPIReplaceSettingValueBySdkkeyRequest
*/
-func (a *FeatureFlagSettingValuesUsingSDKKeyApiService) ReplaceSettingValueBySdkkey(ctx context.Context, settingKeyOrId string) FeatureFlagSettingValuesUsingSDKKeyApiReplaceSettingValueBySdkkeyRequest {
- return FeatureFlagSettingValuesUsingSDKKeyApiReplaceSettingValueBySdkkeyRequest{
+func (a *FeatureFlagSettingValuesUsingSDKKeyAPIService) ReplaceSettingValueBySdkkey(ctx context.Context, settingKeyOrId string) FeatureFlagSettingValuesUsingSDKKeyAPIReplaceSettingValueBySdkkeyRequest {
+ return FeatureFlagSettingValuesUsingSDKKeyAPIReplaceSettingValueBySdkkeyRequest{
ApiService: a,
ctx: ctx,
settingKeyOrId: settingKeyOrId,
@@ -235,7 +235,7 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyApiService) ReplaceSettingValueBySdk
// Execute executes the request
// @return SettingValueModel
-func (a *FeatureFlagSettingValuesUsingSDKKeyApiService) ReplaceSettingValueBySdkkeyExecute(r FeatureFlagSettingValuesUsingSDKKeyApiReplaceSettingValueBySdkkeyRequest) (*SettingValueModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesUsingSDKKeyAPIService) ReplaceSettingValueBySdkkeyExecute(r FeatureFlagSettingValuesUsingSDKKeyAPIReplaceSettingValueBySdkkeyRequest) (*SettingValueModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -243,7 +243,7 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyApiService) ReplaceSettingValueBySdk
localVarReturnValue *SettingValueModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesUsingSDKKeyApiService.ReplaceSettingValueBySdkkey")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesUsingSDKKeyAPIService.ReplaceSettingValueBySdkkey")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -320,33 +320,33 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyApiService) ReplaceSettingValueBySdk
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagSettingValuesUsingSDKKeyApiUpdateSettingValueBySdkkeyRequest struct {
+type FeatureFlagSettingValuesUsingSDKKeyAPIUpdateSettingValueBySdkkeyRequest struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesUsingSDKKeyApiService
+ ApiService *FeatureFlagSettingValuesUsingSDKKeyAPIService
settingKeyOrId string
jsonPatchOperation *[]JsonPatchOperation
reason *string
xCONFIGCATSDKKEY *string
}
-func (r FeatureFlagSettingValuesUsingSDKKeyApiUpdateSettingValueBySdkkeyRequest) JsonPatchOperation(jsonPatchOperation []JsonPatchOperation) FeatureFlagSettingValuesUsingSDKKeyApiUpdateSettingValueBySdkkeyRequest {
+func (r FeatureFlagSettingValuesUsingSDKKeyAPIUpdateSettingValueBySdkkeyRequest) JsonPatchOperation(jsonPatchOperation []JsonPatchOperation) FeatureFlagSettingValuesUsingSDKKeyAPIUpdateSettingValueBySdkkeyRequest {
r.jsonPatchOperation = &jsonPatchOperation
return r
}
// The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on.
-func (r FeatureFlagSettingValuesUsingSDKKeyApiUpdateSettingValueBySdkkeyRequest) Reason(reason string) FeatureFlagSettingValuesUsingSDKKeyApiUpdateSettingValueBySdkkeyRequest {
+func (r FeatureFlagSettingValuesUsingSDKKeyAPIUpdateSettingValueBySdkkeyRequest) Reason(reason string) FeatureFlagSettingValuesUsingSDKKeyAPIUpdateSettingValueBySdkkeyRequest {
r.reason = &reason
return r
}
// The ConfigCat SDK Key. (https://app.configcat.com/sdkkey)
-func (r FeatureFlagSettingValuesUsingSDKKeyApiUpdateSettingValueBySdkkeyRequest) XCONFIGCATSDKKEY(xCONFIGCATSDKKEY string) FeatureFlagSettingValuesUsingSDKKeyApiUpdateSettingValueBySdkkeyRequest {
+func (r FeatureFlagSettingValuesUsingSDKKeyAPIUpdateSettingValueBySdkkeyRequest) XCONFIGCATSDKKEY(xCONFIGCATSDKKEY string) FeatureFlagSettingValuesUsingSDKKeyAPIUpdateSettingValueBySdkkeyRequest {
r.xCONFIGCATSDKKEY = &xCONFIGCATSDKKEY
return r
}
-func (r FeatureFlagSettingValuesUsingSDKKeyApiUpdateSettingValueBySdkkeyRequest) Execute() (*SettingValueModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesUsingSDKKeyAPIUpdateSettingValueBySdkkeyRequest) Execute() (*SettingValueModel, *http.Response, error) {
return r.ApiService.UpdateSettingValueBySdkkeyExecute(r)
}
@@ -411,10 +411,10 @@ So we get a response like this:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param settingKeyOrId The key or id of the Setting.
- @return FeatureFlagSettingValuesUsingSDKKeyApiUpdateSettingValueBySdkkeyRequest
+ @return FeatureFlagSettingValuesUsingSDKKeyAPIUpdateSettingValueBySdkkeyRequest
*/
-func (a *FeatureFlagSettingValuesUsingSDKKeyApiService) UpdateSettingValueBySdkkey(ctx context.Context, settingKeyOrId string) FeatureFlagSettingValuesUsingSDKKeyApiUpdateSettingValueBySdkkeyRequest {
- return FeatureFlagSettingValuesUsingSDKKeyApiUpdateSettingValueBySdkkeyRequest{
+func (a *FeatureFlagSettingValuesUsingSDKKeyAPIService) UpdateSettingValueBySdkkey(ctx context.Context, settingKeyOrId string) FeatureFlagSettingValuesUsingSDKKeyAPIUpdateSettingValueBySdkkeyRequest {
+ return FeatureFlagSettingValuesUsingSDKKeyAPIUpdateSettingValueBySdkkeyRequest{
ApiService: a,
ctx: ctx,
settingKeyOrId: settingKeyOrId,
@@ -423,7 +423,7 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyApiService) UpdateSettingValueBySdkk
// Execute executes the request
// @return SettingValueModel
-func (a *FeatureFlagSettingValuesUsingSDKKeyApiService) UpdateSettingValueBySdkkeyExecute(r FeatureFlagSettingValuesUsingSDKKeyApiUpdateSettingValueBySdkkeyRequest) (*SettingValueModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesUsingSDKKeyAPIService) UpdateSettingValueBySdkkeyExecute(r FeatureFlagSettingValuesUsingSDKKeyAPIUpdateSettingValueBySdkkeyRequest) (*SettingValueModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
@@ -431,7 +431,7 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyApiService) UpdateSettingValueBySdkk
localVarReturnValue *SettingValueModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesUsingSDKKeyApiService.UpdateSettingValueBySdkkey")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesUsingSDKKeyAPIService.UpdateSettingValueBySdkkey")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_feature_flag_setting_values_using_sdk_key_v2.go b/api_feature_flag_setting_values_using_sdk_key_v2.go
index 0e268a7..96bd668 100644
--- a/api_feature_flag_setting_values_using_sdk_key_v2.go
+++ b/api_feature_flag_setting_values_using_sdk_key_v2.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,23 +21,23 @@ import (
)
-// FeatureFlagSettingValuesUsingSDKKeyV2ApiService FeatureFlagSettingValuesUsingSDKKeyV2Api service
-type FeatureFlagSettingValuesUsingSDKKeyV2ApiService service
+// FeatureFlagSettingValuesUsingSDKKeyV2APIService FeatureFlagSettingValuesUsingSDKKeyV2API service
+type FeatureFlagSettingValuesUsingSDKKeyV2APIService service
-type FeatureFlagSettingValuesUsingSDKKeyV2ApiGetSettingValueBySdkkeyV2Request struct {
+type FeatureFlagSettingValuesUsingSDKKeyV2APIGetSettingValueBySdkkeyV2Request struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesUsingSDKKeyV2ApiService
+ ApiService *FeatureFlagSettingValuesUsingSDKKeyV2APIService
settingKeyOrId string
xCONFIGCATSDKKEY *string
}
// The ConfigCat SDK Key. (https://app.configcat.com/sdkkey)
-func (r FeatureFlagSettingValuesUsingSDKKeyV2ApiGetSettingValueBySdkkeyV2Request) XCONFIGCATSDKKEY(xCONFIGCATSDKKEY string) FeatureFlagSettingValuesUsingSDKKeyV2ApiGetSettingValueBySdkkeyV2Request {
+func (r FeatureFlagSettingValuesUsingSDKKeyV2APIGetSettingValueBySdkkeyV2Request) XCONFIGCATSDKKEY(xCONFIGCATSDKKEY string) FeatureFlagSettingValuesUsingSDKKeyV2APIGetSettingValueBySdkkeyV2Request {
r.xCONFIGCATSDKKEY = &xCONFIGCATSDKKEY
return r
}
-func (r FeatureFlagSettingValuesUsingSDKKeyV2ApiGetSettingValueBySdkkeyV2Request) Execute() (*SettingFormulaModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesUsingSDKKeyV2APIGetSettingValueBySdkkeyV2Request) Execute() (*SettingFormulaModel, *http.Response, error) {
return r.ApiService.GetSettingValueBySdkkeyV2Execute(r)
}
@@ -60,10 +60,10 @@ The `percentageEvaluationAttribute` represents the custom [User Object](https://
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param settingKeyOrId The key or id of the Setting.
- @return FeatureFlagSettingValuesUsingSDKKeyV2ApiGetSettingValueBySdkkeyV2Request
+ @return FeatureFlagSettingValuesUsingSDKKeyV2APIGetSettingValueBySdkkeyV2Request
*/
-func (a *FeatureFlagSettingValuesUsingSDKKeyV2ApiService) GetSettingValueBySdkkeyV2(ctx context.Context, settingKeyOrId string) FeatureFlagSettingValuesUsingSDKKeyV2ApiGetSettingValueBySdkkeyV2Request {
- return FeatureFlagSettingValuesUsingSDKKeyV2ApiGetSettingValueBySdkkeyV2Request{
+func (a *FeatureFlagSettingValuesUsingSDKKeyV2APIService) GetSettingValueBySdkkeyV2(ctx context.Context, settingKeyOrId string) FeatureFlagSettingValuesUsingSDKKeyV2APIGetSettingValueBySdkkeyV2Request {
+ return FeatureFlagSettingValuesUsingSDKKeyV2APIGetSettingValueBySdkkeyV2Request{
ApiService: a,
ctx: ctx,
settingKeyOrId: settingKeyOrId,
@@ -72,7 +72,7 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyV2ApiService) GetSettingValueBySdkke
// Execute executes the request
// @return SettingFormulaModel
-func (a *FeatureFlagSettingValuesUsingSDKKeyV2ApiService) GetSettingValueBySdkkeyV2Execute(r FeatureFlagSettingValuesUsingSDKKeyV2ApiGetSettingValueBySdkkeyV2Request) (*SettingFormulaModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesUsingSDKKeyV2APIService) GetSettingValueBySdkkeyV2Execute(r FeatureFlagSettingValuesUsingSDKKeyV2APIGetSettingValueBySdkkeyV2Request) (*SettingFormulaModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -80,7 +80,7 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyV2ApiService) GetSettingValueBySdkke
localVarReturnValue *SettingFormulaModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesUsingSDKKeyV2ApiService.GetSettingValueBySdkkeyV2")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesUsingSDKKeyV2APIService.GetSettingValueBySdkkeyV2")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -149,33 +149,33 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyV2ApiService) GetSettingValueBySdkke
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagSettingValuesUsingSDKKeyV2ApiReplaceSettingValueBySdkkeyV2Request struct {
+type FeatureFlagSettingValuesUsingSDKKeyV2APIReplaceSettingValueBySdkkeyV2Request struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesUsingSDKKeyV2ApiService
+ ApiService *FeatureFlagSettingValuesUsingSDKKeyV2APIService
settingKeyOrId string
updateEvaluationFormulaModel *UpdateEvaluationFormulaModel
reason *string
xCONFIGCATSDKKEY *string
}
-func (r FeatureFlagSettingValuesUsingSDKKeyV2ApiReplaceSettingValueBySdkkeyV2Request) UpdateEvaluationFormulaModel(updateEvaluationFormulaModel UpdateEvaluationFormulaModel) FeatureFlagSettingValuesUsingSDKKeyV2ApiReplaceSettingValueBySdkkeyV2Request {
+func (r FeatureFlagSettingValuesUsingSDKKeyV2APIReplaceSettingValueBySdkkeyV2Request) UpdateEvaluationFormulaModel(updateEvaluationFormulaModel UpdateEvaluationFormulaModel) FeatureFlagSettingValuesUsingSDKKeyV2APIReplaceSettingValueBySdkkeyV2Request {
r.updateEvaluationFormulaModel = &updateEvaluationFormulaModel
return r
}
// The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on.
-func (r FeatureFlagSettingValuesUsingSDKKeyV2ApiReplaceSettingValueBySdkkeyV2Request) Reason(reason string) FeatureFlagSettingValuesUsingSDKKeyV2ApiReplaceSettingValueBySdkkeyV2Request {
+func (r FeatureFlagSettingValuesUsingSDKKeyV2APIReplaceSettingValueBySdkkeyV2Request) Reason(reason string) FeatureFlagSettingValuesUsingSDKKeyV2APIReplaceSettingValueBySdkkeyV2Request {
r.reason = &reason
return r
}
// The ConfigCat SDK Key. (https://app.configcat.com/sdkkey)
-func (r FeatureFlagSettingValuesUsingSDKKeyV2ApiReplaceSettingValueBySdkkeyV2Request) XCONFIGCATSDKKEY(xCONFIGCATSDKKEY string) FeatureFlagSettingValuesUsingSDKKeyV2ApiReplaceSettingValueBySdkkeyV2Request {
+func (r FeatureFlagSettingValuesUsingSDKKeyV2APIReplaceSettingValueBySdkkeyV2Request) XCONFIGCATSDKKEY(xCONFIGCATSDKKEY string) FeatureFlagSettingValuesUsingSDKKeyV2APIReplaceSettingValueBySdkkeyV2Request {
r.xCONFIGCATSDKKEY = &xCONFIGCATSDKKEY
return r
}
-func (r FeatureFlagSettingValuesUsingSDKKeyV2ApiReplaceSettingValueBySdkkeyV2Request) Execute() (*SettingFormulaModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesUsingSDKKeyV2APIReplaceSettingValueBySdkkeyV2Request) Execute() (*SettingFormulaModel, *http.Response, error) {
return r.ApiService.ReplaceSettingValueBySdkkeyV2Execute(r)
}
@@ -238,10 +238,10 @@ So we get a response like this:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param settingKeyOrId The key or id of the Setting.
- @return FeatureFlagSettingValuesUsingSDKKeyV2ApiReplaceSettingValueBySdkkeyV2Request
+ @return FeatureFlagSettingValuesUsingSDKKeyV2APIReplaceSettingValueBySdkkeyV2Request
*/
-func (a *FeatureFlagSettingValuesUsingSDKKeyV2ApiService) ReplaceSettingValueBySdkkeyV2(ctx context.Context, settingKeyOrId string) FeatureFlagSettingValuesUsingSDKKeyV2ApiReplaceSettingValueBySdkkeyV2Request {
- return FeatureFlagSettingValuesUsingSDKKeyV2ApiReplaceSettingValueBySdkkeyV2Request{
+func (a *FeatureFlagSettingValuesUsingSDKKeyV2APIService) ReplaceSettingValueBySdkkeyV2(ctx context.Context, settingKeyOrId string) FeatureFlagSettingValuesUsingSDKKeyV2APIReplaceSettingValueBySdkkeyV2Request {
+ return FeatureFlagSettingValuesUsingSDKKeyV2APIReplaceSettingValueBySdkkeyV2Request{
ApiService: a,
ctx: ctx,
settingKeyOrId: settingKeyOrId,
@@ -250,7 +250,7 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyV2ApiService) ReplaceSettingValueByS
// Execute executes the request
// @return SettingFormulaModel
-func (a *FeatureFlagSettingValuesUsingSDKKeyV2ApiService) ReplaceSettingValueBySdkkeyV2Execute(r FeatureFlagSettingValuesUsingSDKKeyV2ApiReplaceSettingValueBySdkkeyV2Request) (*SettingFormulaModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesUsingSDKKeyV2APIService) ReplaceSettingValueBySdkkeyV2Execute(r FeatureFlagSettingValuesUsingSDKKeyV2APIReplaceSettingValueBySdkkeyV2Request) (*SettingFormulaModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -258,7 +258,7 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyV2ApiService) ReplaceSettingValueByS
localVarReturnValue *SettingFormulaModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesUsingSDKKeyV2ApiService.ReplaceSettingValueBySdkkeyV2")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesUsingSDKKeyV2APIService.ReplaceSettingValueBySdkkeyV2")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -335,33 +335,33 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyV2ApiService) ReplaceSettingValueByS
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagSettingValuesUsingSDKKeyV2ApiUpdateSettingValueBySdkkeyV2Request struct {
+type FeatureFlagSettingValuesUsingSDKKeyV2APIUpdateSettingValueBySdkkeyV2Request struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesUsingSDKKeyV2ApiService
+ ApiService *FeatureFlagSettingValuesUsingSDKKeyV2APIService
settingKeyOrId string
jsonPatchOperation *[]JsonPatchOperation
reason *string
xCONFIGCATSDKKEY *string
}
-func (r FeatureFlagSettingValuesUsingSDKKeyV2ApiUpdateSettingValueBySdkkeyV2Request) JsonPatchOperation(jsonPatchOperation []JsonPatchOperation) FeatureFlagSettingValuesUsingSDKKeyV2ApiUpdateSettingValueBySdkkeyV2Request {
+func (r FeatureFlagSettingValuesUsingSDKKeyV2APIUpdateSettingValueBySdkkeyV2Request) JsonPatchOperation(jsonPatchOperation []JsonPatchOperation) FeatureFlagSettingValuesUsingSDKKeyV2APIUpdateSettingValueBySdkkeyV2Request {
r.jsonPatchOperation = &jsonPatchOperation
return r
}
// The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on.
-func (r FeatureFlagSettingValuesUsingSDKKeyV2ApiUpdateSettingValueBySdkkeyV2Request) Reason(reason string) FeatureFlagSettingValuesUsingSDKKeyV2ApiUpdateSettingValueBySdkkeyV2Request {
+func (r FeatureFlagSettingValuesUsingSDKKeyV2APIUpdateSettingValueBySdkkeyV2Request) Reason(reason string) FeatureFlagSettingValuesUsingSDKKeyV2APIUpdateSettingValueBySdkkeyV2Request {
r.reason = &reason
return r
}
// The ConfigCat SDK Key. (https://app.configcat.com/sdkkey)
-func (r FeatureFlagSettingValuesUsingSDKKeyV2ApiUpdateSettingValueBySdkkeyV2Request) XCONFIGCATSDKKEY(xCONFIGCATSDKKEY string) FeatureFlagSettingValuesUsingSDKKeyV2ApiUpdateSettingValueBySdkkeyV2Request {
+func (r FeatureFlagSettingValuesUsingSDKKeyV2APIUpdateSettingValueBySdkkeyV2Request) XCONFIGCATSDKKEY(xCONFIGCATSDKKEY string) FeatureFlagSettingValuesUsingSDKKeyV2APIUpdateSettingValueBySdkkeyV2Request {
r.xCONFIGCATSDKKEY = &xCONFIGCATSDKKEY
return r
}
-func (r FeatureFlagSettingValuesUsingSDKKeyV2ApiUpdateSettingValueBySdkkeyV2Request) Execute() (*SettingFormulaModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesUsingSDKKeyV2APIUpdateSettingValueBySdkkeyV2Request) Execute() (*SettingFormulaModel, *http.Response, error) {
return r.ApiService.UpdateSettingValueBySdkkeyV2Execute(r)
}
@@ -446,10 +446,10 @@ So we get a response like this:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param settingKeyOrId The key or id of the Setting.
- @return FeatureFlagSettingValuesUsingSDKKeyV2ApiUpdateSettingValueBySdkkeyV2Request
+ @return FeatureFlagSettingValuesUsingSDKKeyV2APIUpdateSettingValueBySdkkeyV2Request
*/
-func (a *FeatureFlagSettingValuesUsingSDKKeyV2ApiService) UpdateSettingValueBySdkkeyV2(ctx context.Context, settingKeyOrId string) FeatureFlagSettingValuesUsingSDKKeyV2ApiUpdateSettingValueBySdkkeyV2Request {
- return FeatureFlagSettingValuesUsingSDKKeyV2ApiUpdateSettingValueBySdkkeyV2Request{
+func (a *FeatureFlagSettingValuesUsingSDKKeyV2APIService) UpdateSettingValueBySdkkeyV2(ctx context.Context, settingKeyOrId string) FeatureFlagSettingValuesUsingSDKKeyV2APIUpdateSettingValueBySdkkeyV2Request {
+ return FeatureFlagSettingValuesUsingSDKKeyV2APIUpdateSettingValueBySdkkeyV2Request{
ApiService: a,
ctx: ctx,
settingKeyOrId: settingKeyOrId,
@@ -458,7 +458,7 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyV2ApiService) UpdateSettingValueBySd
// Execute executes the request
// @return SettingFormulaModel
-func (a *FeatureFlagSettingValuesUsingSDKKeyV2ApiService) UpdateSettingValueBySdkkeyV2Execute(r FeatureFlagSettingValuesUsingSDKKeyV2ApiUpdateSettingValueBySdkkeyV2Request) (*SettingFormulaModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesUsingSDKKeyV2APIService) UpdateSettingValueBySdkkeyV2Execute(r FeatureFlagSettingValuesUsingSDKKeyV2APIUpdateSettingValueBySdkkeyV2Request) (*SettingFormulaModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
@@ -466,7 +466,7 @@ func (a *FeatureFlagSettingValuesUsingSDKKeyV2ApiService) UpdateSettingValueBySd
localVarReturnValue *SettingFormulaModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesUsingSDKKeyV2ApiService.UpdateSettingValueBySdkkeyV2")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesUsingSDKKeyV2APIService.UpdateSettingValueBySdkkeyV2")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_feature_flag_setting_values_v2.go b/api_feature_flag_setting_values_v2.go
index 8bdb34f..b019c0c 100644
--- a/api_feature_flag_setting_values_v2.go
+++ b/api_feature_flag_setting_values_v2.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,17 +21,17 @@ import (
)
-// FeatureFlagSettingValuesV2ApiService FeatureFlagSettingValuesV2Api service
-type FeatureFlagSettingValuesV2ApiService service
+// FeatureFlagSettingValuesV2APIService FeatureFlagSettingValuesV2API service
+type FeatureFlagSettingValuesV2APIService service
-type FeatureFlagSettingValuesV2ApiGetSettingValueV2Request struct {
+type FeatureFlagSettingValuesV2APIGetSettingValueV2Request struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesV2ApiService
+ ApiService *FeatureFlagSettingValuesV2APIService
environmentId string
settingId int32
}
-func (r FeatureFlagSettingValuesV2ApiGetSettingValueV2Request) Execute() (*SettingFormulaModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesV2APIGetSettingValueV2Request) Execute() (*SettingFormulaModel, *http.Response, error) {
return r.ApiService.GetSettingValueV2Execute(r)
}
@@ -55,10 +55,10 @@ The `percentageEvaluationAttribute` represents the custom [User Object](https://
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param environmentId The identifier of the Environment.
@param settingId The id of the Setting.
- @return FeatureFlagSettingValuesV2ApiGetSettingValueV2Request
+ @return FeatureFlagSettingValuesV2APIGetSettingValueV2Request
*/
-func (a *FeatureFlagSettingValuesV2ApiService) GetSettingValueV2(ctx context.Context, environmentId string, settingId int32) FeatureFlagSettingValuesV2ApiGetSettingValueV2Request {
- return FeatureFlagSettingValuesV2ApiGetSettingValueV2Request{
+func (a *FeatureFlagSettingValuesV2APIService) GetSettingValueV2(ctx context.Context, environmentId string, settingId int32) FeatureFlagSettingValuesV2APIGetSettingValueV2Request {
+ return FeatureFlagSettingValuesV2APIGetSettingValueV2Request{
ApiService: a,
ctx: ctx,
environmentId: environmentId,
@@ -68,7 +68,7 @@ func (a *FeatureFlagSettingValuesV2ApiService) GetSettingValueV2(ctx context.Con
// Execute executes the request
// @return SettingFormulaModel
-func (a *FeatureFlagSettingValuesV2ApiService) GetSettingValueV2Execute(r FeatureFlagSettingValuesV2ApiGetSettingValueV2Request) (*SettingFormulaModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesV2APIService) GetSettingValueV2Execute(r FeatureFlagSettingValuesV2APIGetSettingValueV2Request) (*SettingFormulaModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -76,7 +76,7 @@ func (a *FeatureFlagSettingValuesV2ApiService) GetSettingValueV2Execute(r Featur
localVarReturnValue *SettingFormulaModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesV2ApiService.GetSettingValueV2")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesV2APIService.GetSettingValueV2")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -143,14 +143,14 @@ func (a *FeatureFlagSettingValuesV2ApiService) GetSettingValueV2Execute(r Featur
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagSettingValuesV2ApiGetSettingValuesV2Request struct {
+type FeatureFlagSettingValuesV2APIGetSettingValuesV2Request struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesV2ApiService
+ ApiService *FeatureFlagSettingValuesV2APIService
configId string
environmentId string
}
-func (r FeatureFlagSettingValuesV2ApiGetSettingValuesV2Request) Execute() (*ConfigSettingFormulasModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesV2APIGetSettingValuesV2Request) Execute() (*ConfigSettingFormulasModel, *http.Response, error) {
return r.ApiService.GetSettingValuesV2Execute(r)
}
@@ -174,10 +174,10 @@ The `percentageEvaluationAttribute` represents the custom [User Object](https://
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param configId The identifier of the Config.
@param environmentId The identifier of the Environment.
- @return FeatureFlagSettingValuesV2ApiGetSettingValuesV2Request
+ @return FeatureFlagSettingValuesV2APIGetSettingValuesV2Request
*/
-func (a *FeatureFlagSettingValuesV2ApiService) GetSettingValuesV2(ctx context.Context, configId string, environmentId string) FeatureFlagSettingValuesV2ApiGetSettingValuesV2Request {
- return FeatureFlagSettingValuesV2ApiGetSettingValuesV2Request{
+func (a *FeatureFlagSettingValuesV2APIService) GetSettingValuesV2(ctx context.Context, configId string, environmentId string) FeatureFlagSettingValuesV2APIGetSettingValuesV2Request {
+ return FeatureFlagSettingValuesV2APIGetSettingValuesV2Request{
ApiService: a,
ctx: ctx,
configId: configId,
@@ -187,7 +187,7 @@ func (a *FeatureFlagSettingValuesV2ApiService) GetSettingValuesV2(ctx context.Co
// Execute executes the request
// @return ConfigSettingFormulasModel
-func (a *FeatureFlagSettingValuesV2ApiService) GetSettingValuesV2Execute(r FeatureFlagSettingValuesV2ApiGetSettingValuesV2Request) (*ConfigSettingFormulasModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesV2APIService) GetSettingValuesV2Execute(r FeatureFlagSettingValuesV2APIGetSettingValuesV2Request) (*ConfigSettingFormulasModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -195,7 +195,7 @@ func (a *FeatureFlagSettingValuesV2ApiService) GetSettingValuesV2Execute(r Featu
localVarReturnValue *ConfigSettingFormulasModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesV2ApiService.GetSettingValuesV2")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesV2APIService.GetSettingValuesV2")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -262,27 +262,27 @@ func (a *FeatureFlagSettingValuesV2ApiService) GetSettingValuesV2Execute(r Featu
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagSettingValuesV2ApiPostSettingValuesV2Request struct {
+type FeatureFlagSettingValuesV2APIPostSettingValuesV2Request struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesV2ApiService
+ ApiService *FeatureFlagSettingValuesV2APIService
configId string
environmentId string
updateEvaluationFormulasModel *UpdateEvaluationFormulasModel
reason *string
}
-func (r FeatureFlagSettingValuesV2ApiPostSettingValuesV2Request) UpdateEvaluationFormulasModel(updateEvaluationFormulasModel UpdateEvaluationFormulasModel) FeatureFlagSettingValuesV2ApiPostSettingValuesV2Request {
+func (r FeatureFlagSettingValuesV2APIPostSettingValuesV2Request) UpdateEvaluationFormulasModel(updateEvaluationFormulasModel UpdateEvaluationFormulasModel) FeatureFlagSettingValuesV2APIPostSettingValuesV2Request {
r.updateEvaluationFormulasModel = &updateEvaluationFormulasModel
return r
}
// The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on.
-func (r FeatureFlagSettingValuesV2ApiPostSettingValuesV2Request) Reason(reason string) FeatureFlagSettingValuesV2ApiPostSettingValuesV2Request {
+func (r FeatureFlagSettingValuesV2APIPostSettingValuesV2Request) Reason(reason string) FeatureFlagSettingValuesV2APIPostSettingValuesV2Request {
r.reason = &reason
return r
}
-func (r FeatureFlagSettingValuesV2ApiPostSettingValuesV2Request) Execute() (*ConfigSettingFormulasModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesV2APIPostSettingValuesV2Request) Execute() (*ConfigSettingFormulasModel, *http.Response, error) {
return r.ApiService.PostSettingValuesV2Execute(r)
}
@@ -364,10 +364,10 @@ So we get a response like this:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param configId The identifier of the Config.
@param environmentId The identifier of the Environment.
- @return FeatureFlagSettingValuesV2ApiPostSettingValuesV2Request
+ @return FeatureFlagSettingValuesV2APIPostSettingValuesV2Request
*/
-func (a *FeatureFlagSettingValuesV2ApiService) PostSettingValuesV2(ctx context.Context, configId string, environmentId string) FeatureFlagSettingValuesV2ApiPostSettingValuesV2Request {
- return FeatureFlagSettingValuesV2ApiPostSettingValuesV2Request{
+func (a *FeatureFlagSettingValuesV2APIService) PostSettingValuesV2(ctx context.Context, configId string, environmentId string) FeatureFlagSettingValuesV2APIPostSettingValuesV2Request {
+ return FeatureFlagSettingValuesV2APIPostSettingValuesV2Request{
ApiService: a,
ctx: ctx,
configId: configId,
@@ -377,7 +377,7 @@ func (a *FeatureFlagSettingValuesV2ApiService) PostSettingValuesV2(ctx context.C
// Execute executes the request
// @return ConfigSettingFormulasModel
-func (a *FeatureFlagSettingValuesV2ApiService) PostSettingValuesV2Execute(r FeatureFlagSettingValuesV2ApiPostSettingValuesV2Request) (*ConfigSettingFormulasModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesV2APIService) PostSettingValuesV2Execute(r FeatureFlagSettingValuesV2APIPostSettingValuesV2Request) (*ConfigSettingFormulasModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -385,7 +385,7 @@ func (a *FeatureFlagSettingValuesV2ApiService) PostSettingValuesV2Execute(r Feat
localVarReturnValue *ConfigSettingFormulasModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesV2ApiService.PostSettingValuesV2")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesV2APIService.PostSettingValuesV2")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -460,27 +460,27 @@ func (a *FeatureFlagSettingValuesV2ApiService) PostSettingValuesV2Execute(r Feat
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagSettingValuesV2ApiReplaceSettingValueV2Request struct {
+type FeatureFlagSettingValuesV2APIReplaceSettingValueV2Request struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesV2ApiService
+ ApiService *FeatureFlagSettingValuesV2APIService
environmentId string
settingId int32
updateEvaluationFormulaModel *UpdateEvaluationFormulaModel
reason *string
}
-func (r FeatureFlagSettingValuesV2ApiReplaceSettingValueV2Request) UpdateEvaluationFormulaModel(updateEvaluationFormulaModel UpdateEvaluationFormulaModel) FeatureFlagSettingValuesV2ApiReplaceSettingValueV2Request {
+func (r FeatureFlagSettingValuesV2APIReplaceSettingValueV2Request) UpdateEvaluationFormulaModel(updateEvaluationFormulaModel UpdateEvaluationFormulaModel) FeatureFlagSettingValuesV2APIReplaceSettingValueV2Request {
r.updateEvaluationFormulaModel = &updateEvaluationFormulaModel
return r
}
// The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on.
-func (r FeatureFlagSettingValuesV2ApiReplaceSettingValueV2Request) Reason(reason string) FeatureFlagSettingValuesV2ApiReplaceSettingValueV2Request {
+func (r FeatureFlagSettingValuesV2APIReplaceSettingValueV2Request) Reason(reason string) FeatureFlagSettingValuesV2APIReplaceSettingValueV2Request {
r.reason = &reason
return r
}
-func (r FeatureFlagSettingValuesV2ApiReplaceSettingValueV2Request) Execute() (*SettingFormulaModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesV2APIReplaceSettingValueV2Request) Execute() (*SettingFormulaModel, *http.Response, error) {
return r.ApiService.ReplaceSettingValueV2Execute(r)
}
@@ -544,10 +544,10 @@ So we get a response like this:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param environmentId The identifier of the Environment.
@param settingId The id of the Setting.
- @return FeatureFlagSettingValuesV2ApiReplaceSettingValueV2Request
+ @return FeatureFlagSettingValuesV2APIReplaceSettingValueV2Request
*/
-func (a *FeatureFlagSettingValuesV2ApiService) ReplaceSettingValueV2(ctx context.Context, environmentId string, settingId int32) FeatureFlagSettingValuesV2ApiReplaceSettingValueV2Request {
- return FeatureFlagSettingValuesV2ApiReplaceSettingValueV2Request{
+func (a *FeatureFlagSettingValuesV2APIService) ReplaceSettingValueV2(ctx context.Context, environmentId string, settingId int32) FeatureFlagSettingValuesV2APIReplaceSettingValueV2Request {
+ return FeatureFlagSettingValuesV2APIReplaceSettingValueV2Request{
ApiService: a,
ctx: ctx,
environmentId: environmentId,
@@ -557,7 +557,7 @@ func (a *FeatureFlagSettingValuesV2ApiService) ReplaceSettingValueV2(ctx context
// Execute executes the request
// @return SettingFormulaModel
-func (a *FeatureFlagSettingValuesV2ApiService) ReplaceSettingValueV2Execute(r FeatureFlagSettingValuesV2ApiReplaceSettingValueV2Request) (*SettingFormulaModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesV2APIService) ReplaceSettingValueV2Execute(r FeatureFlagSettingValuesV2APIReplaceSettingValueV2Request) (*SettingFormulaModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -565,7 +565,7 @@ func (a *FeatureFlagSettingValuesV2ApiService) ReplaceSettingValueV2Execute(r Fe
localVarReturnValue *SettingFormulaModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesV2ApiService.ReplaceSettingValueV2")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesV2APIService.ReplaceSettingValueV2")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -640,27 +640,27 @@ func (a *FeatureFlagSettingValuesV2ApiService) ReplaceSettingValueV2Execute(r Fe
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagSettingValuesV2ApiUpdateSettingValueV2Request struct {
+type FeatureFlagSettingValuesV2APIUpdateSettingValueV2Request struct {
ctx context.Context
- ApiService *FeatureFlagSettingValuesV2ApiService
+ ApiService *FeatureFlagSettingValuesV2APIService
environmentId string
settingId int32
jsonPatchOperation *[]JsonPatchOperation
reason *string
}
-func (r FeatureFlagSettingValuesV2ApiUpdateSettingValueV2Request) JsonPatchOperation(jsonPatchOperation []JsonPatchOperation) FeatureFlagSettingValuesV2ApiUpdateSettingValueV2Request {
+func (r FeatureFlagSettingValuesV2APIUpdateSettingValueV2Request) JsonPatchOperation(jsonPatchOperation []JsonPatchOperation) FeatureFlagSettingValuesV2APIUpdateSettingValueV2Request {
r.jsonPatchOperation = &jsonPatchOperation
return r
}
// The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on.
-func (r FeatureFlagSettingValuesV2ApiUpdateSettingValueV2Request) Reason(reason string) FeatureFlagSettingValuesV2ApiUpdateSettingValueV2Request {
+func (r FeatureFlagSettingValuesV2APIUpdateSettingValueV2Request) Reason(reason string) FeatureFlagSettingValuesV2APIUpdateSettingValueV2Request {
r.reason = &reason
return r
}
-func (r FeatureFlagSettingValuesV2ApiUpdateSettingValueV2Request) Execute() (*SettingFormulaModel, *http.Response, error) {
+func (r FeatureFlagSettingValuesV2APIUpdateSettingValueV2Request) Execute() (*SettingFormulaModel, *http.Response, error) {
return r.ApiService.UpdateSettingValueV2Execute(r)
}
@@ -746,10 +746,10 @@ So we get a response like this:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param environmentId The identifier of the Environment.
@param settingId The id of the Setting.
- @return FeatureFlagSettingValuesV2ApiUpdateSettingValueV2Request
+ @return FeatureFlagSettingValuesV2APIUpdateSettingValueV2Request
*/
-func (a *FeatureFlagSettingValuesV2ApiService) UpdateSettingValueV2(ctx context.Context, environmentId string, settingId int32) FeatureFlagSettingValuesV2ApiUpdateSettingValueV2Request {
- return FeatureFlagSettingValuesV2ApiUpdateSettingValueV2Request{
+func (a *FeatureFlagSettingValuesV2APIService) UpdateSettingValueV2(ctx context.Context, environmentId string, settingId int32) FeatureFlagSettingValuesV2APIUpdateSettingValueV2Request {
+ return FeatureFlagSettingValuesV2APIUpdateSettingValueV2Request{
ApiService: a,
ctx: ctx,
environmentId: environmentId,
@@ -759,7 +759,7 @@ func (a *FeatureFlagSettingValuesV2ApiService) UpdateSettingValueV2(ctx context.
// Execute executes the request
// @return SettingFormulaModel
-func (a *FeatureFlagSettingValuesV2ApiService) UpdateSettingValueV2Execute(r FeatureFlagSettingValuesV2ApiUpdateSettingValueV2Request) (*SettingFormulaModel, *http.Response, error) {
+func (a *FeatureFlagSettingValuesV2APIService) UpdateSettingValueV2Execute(r FeatureFlagSettingValuesV2APIUpdateSettingValueV2Request) (*SettingFormulaModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
@@ -767,7 +767,7 @@ func (a *FeatureFlagSettingValuesV2ApiService) UpdateSettingValueV2Execute(r Fea
localVarReturnValue *SettingFormulaModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesV2ApiService.UpdateSettingValueV2")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagSettingValuesV2APIService.UpdateSettingValueV2")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_feature_flags_settings.go b/api_feature_flags_settings.go
index 41ad239..9c433a8 100644
--- a/api_feature_flags_settings.go
+++ b/api_feature_flags_settings.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,22 +21,22 @@ import (
)
-// FeatureFlagsSettingsApiService FeatureFlagsSettingsApi service
-type FeatureFlagsSettingsApiService service
+// FeatureFlagsSettingsAPIService FeatureFlagsSettingsAPI service
+type FeatureFlagsSettingsAPIService service
-type FeatureFlagsSettingsApiCreateSettingRequest struct {
+type FeatureFlagsSettingsAPICreateSettingRequest struct {
ctx context.Context
- ApiService *FeatureFlagsSettingsApiService
+ ApiService *FeatureFlagsSettingsAPIService
configId string
createSettingInitialValues *CreateSettingInitialValues
}
-func (r FeatureFlagsSettingsApiCreateSettingRequest) CreateSettingInitialValues(createSettingInitialValues CreateSettingInitialValues) FeatureFlagsSettingsApiCreateSettingRequest {
+func (r FeatureFlagsSettingsAPICreateSettingRequest) CreateSettingInitialValues(createSettingInitialValues CreateSettingInitialValues) FeatureFlagsSettingsAPICreateSettingRequest {
r.createSettingInitialValues = &createSettingInitialValues
return r
}
-func (r FeatureFlagsSettingsApiCreateSettingRequest) Execute() (*SettingModel, *http.Response, error) {
+func (r FeatureFlagsSettingsAPICreateSettingRequest) Execute() (*SettingModel, *http.Response, error) {
return r.ApiService.CreateSettingExecute(r)
}
@@ -50,10 +50,10 @@ identified by the `configId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param configId The identifier of the Config.
- @return FeatureFlagsSettingsApiCreateSettingRequest
+ @return FeatureFlagsSettingsAPICreateSettingRequest
*/
-func (a *FeatureFlagsSettingsApiService) CreateSetting(ctx context.Context, configId string) FeatureFlagsSettingsApiCreateSettingRequest {
- return FeatureFlagsSettingsApiCreateSettingRequest{
+func (a *FeatureFlagsSettingsAPIService) CreateSetting(ctx context.Context, configId string) FeatureFlagsSettingsAPICreateSettingRequest {
+ return FeatureFlagsSettingsAPICreateSettingRequest{
ApiService: a,
ctx: ctx,
configId: configId,
@@ -62,7 +62,7 @@ func (a *FeatureFlagsSettingsApiService) CreateSetting(ctx context.Context, conf
// Execute executes the request
// @return SettingModel
-func (a *FeatureFlagsSettingsApiService) CreateSettingExecute(r FeatureFlagsSettingsApiCreateSettingRequest) (*SettingModel, *http.Response, error) {
+func (a *FeatureFlagsSettingsAPIService) CreateSettingExecute(r FeatureFlagsSettingsAPICreateSettingRequest) (*SettingModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -70,7 +70,7 @@ func (a *FeatureFlagsSettingsApiService) CreateSettingExecute(r FeatureFlagsSett
localVarReturnValue *SettingModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagsSettingsApiService.CreateSetting")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagsSettingsAPIService.CreateSetting")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -141,13 +141,13 @@ func (a *FeatureFlagsSettingsApiService) CreateSettingExecute(r FeatureFlagsSett
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagsSettingsApiDeleteSettingRequest struct {
+type FeatureFlagsSettingsAPIDeleteSettingRequest struct {
ctx context.Context
- ApiService *FeatureFlagsSettingsApiService
+ ApiService *FeatureFlagsSettingsAPIService
settingId int32
}
-func (r FeatureFlagsSettingsApiDeleteSettingRequest) Execute() (*http.Response, error) {
+func (r FeatureFlagsSettingsAPIDeleteSettingRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteSettingExecute(r)
}
@@ -159,10 +159,10 @@ identified by the `configId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param settingId The identifier of the Setting.
- @return FeatureFlagsSettingsApiDeleteSettingRequest
+ @return FeatureFlagsSettingsAPIDeleteSettingRequest
*/
-func (a *FeatureFlagsSettingsApiService) DeleteSetting(ctx context.Context, settingId int32) FeatureFlagsSettingsApiDeleteSettingRequest {
- return FeatureFlagsSettingsApiDeleteSettingRequest{
+func (a *FeatureFlagsSettingsAPIService) DeleteSetting(ctx context.Context, settingId int32) FeatureFlagsSettingsAPIDeleteSettingRequest {
+ return FeatureFlagsSettingsAPIDeleteSettingRequest{
ApiService: a,
ctx: ctx,
settingId: settingId,
@@ -170,14 +170,14 @@ func (a *FeatureFlagsSettingsApiService) DeleteSetting(ctx context.Context, sett
}
// Execute executes the request
-func (a *FeatureFlagsSettingsApiService) DeleteSettingExecute(r FeatureFlagsSettingsApiDeleteSettingRequest) (*http.Response, error) {
+func (a *FeatureFlagsSettingsAPIService) DeleteSettingExecute(r FeatureFlagsSettingsAPIDeleteSettingRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagsSettingsApiService.DeleteSetting")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagsSettingsAPIService.DeleteSetting")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -234,13 +234,13 @@ func (a *FeatureFlagsSettingsApiService) DeleteSettingExecute(r FeatureFlagsSett
return localVarHTTPResponse, nil
}
-type FeatureFlagsSettingsApiGetSettingRequest struct {
+type FeatureFlagsSettingsAPIGetSettingRequest struct {
ctx context.Context
- ApiService *FeatureFlagsSettingsApiService
+ ApiService *FeatureFlagsSettingsAPIService
settingId int32
}
-func (r FeatureFlagsSettingsApiGetSettingRequest) Execute() (*SettingModel, *http.Response, error) {
+func (r FeatureFlagsSettingsAPIGetSettingRequest) Execute() (*SettingModel, *http.Response, error) {
return r.ApiService.GetSettingExecute(r)
}
@@ -252,10 +252,10 @@ identified by the `settingId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param settingId The identifier of the Setting.
- @return FeatureFlagsSettingsApiGetSettingRequest
+ @return FeatureFlagsSettingsAPIGetSettingRequest
*/
-func (a *FeatureFlagsSettingsApiService) GetSetting(ctx context.Context, settingId int32) FeatureFlagsSettingsApiGetSettingRequest {
- return FeatureFlagsSettingsApiGetSettingRequest{
+func (a *FeatureFlagsSettingsAPIService) GetSetting(ctx context.Context, settingId int32) FeatureFlagsSettingsAPIGetSettingRequest {
+ return FeatureFlagsSettingsAPIGetSettingRequest{
ApiService: a,
ctx: ctx,
settingId: settingId,
@@ -264,7 +264,7 @@ func (a *FeatureFlagsSettingsApiService) GetSetting(ctx context.Context, setting
// Execute executes the request
// @return SettingModel
-func (a *FeatureFlagsSettingsApiService) GetSettingExecute(r FeatureFlagsSettingsApiGetSettingRequest) (*SettingModel, *http.Response, error) {
+func (a *FeatureFlagsSettingsAPIService) GetSettingExecute(r FeatureFlagsSettingsAPIGetSettingRequest) (*SettingModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -272,7 +272,7 @@ func (a *FeatureFlagsSettingsApiService) GetSettingExecute(r FeatureFlagsSetting
localVarReturnValue *SettingModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagsSettingsApiService.GetSetting")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagsSettingsAPIService.GetSetting")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -338,13 +338,13 @@ func (a *FeatureFlagsSettingsApiService) GetSettingExecute(r FeatureFlagsSetting
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagsSettingsApiGetSettingsRequest struct {
+type FeatureFlagsSettingsAPIGetSettingsRequest struct {
ctx context.Context
- ApiService *FeatureFlagsSettingsApiService
+ ApiService *FeatureFlagsSettingsAPIService
configId string
}
-func (r FeatureFlagsSettingsApiGetSettingsRequest) Execute() ([]SettingModel, *http.Response, error) {
+func (r FeatureFlagsSettingsAPIGetSettingsRequest) Execute() ([]SettingModel, *http.Response, error) {
return r.ApiService.GetSettingsExecute(r)
}
@@ -356,10 +356,10 @@ specified Config, identified by the `configId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param configId The identifier of the Config.
- @return FeatureFlagsSettingsApiGetSettingsRequest
+ @return FeatureFlagsSettingsAPIGetSettingsRequest
*/
-func (a *FeatureFlagsSettingsApiService) GetSettings(ctx context.Context, configId string) FeatureFlagsSettingsApiGetSettingsRequest {
- return FeatureFlagsSettingsApiGetSettingsRequest{
+func (a *FeatureFlagsSettingsAPIService) GetSettings(ctx context.Context, configId string) FeatureFlagsSettingsAPIGetSettingsRequest {
+ return FeatureFlagsSettingsAPIGetSettingsRequest{
ApiService: a,
ctx: ctx,
configId: configId,
@@ -368,7 +368,7 @@ func (a *FeatureFlagsSettingsApiService) GetSettings(ctx context.Context, config
// Execute executes the request
// @return []SettingModel
-func (a *FeatureFlagsSettingsApiService) GetSettingsExecute(r FeatureFlagsSettingsApiGetSettingsRequest) ([]SettingModel, *http.Response, error) {
+func (a *FeatureFlagsSettingsAPIService) GetSettingsExecute(r FeatureFlagsSettingsAPIGetSettingsRequest) ([]SettingModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -376,7 +376,7 @@ func (a *FeatureFlagsSettingsApiService) GetSettingsExecute(r FeatureFlagsSettin
localVarReturnValue []SettingModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagsSettingsApiService.GetSettings")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagsSettingsAPIService.GetSettings")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -442,19 +442,19 @@ func (a *FeatureFlagsSettingsApiService) GetSettingsExecute(r FeatureFlagsSettin
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagsSettingsApiReplaceSettingRequest struct {
+type FeatureFlagsSettingsAPIReplaceSettingRequest struct {
ctx context.Context
- ApiService *FeatureFlagsSettingsApiService
+ ApiService *FeatureFlagsSettingsAPIService
settingId int32
replaceSettingModel *ReplaceSettingModel
}
-func (r FeatureFlagsSettingsApiReplaceSettingRequest) ReplaceSettingModel(replaceSettingModel ReplaceSettingModel) FeatureFlagsSettingsApiReplaceSettingRequest {
+func (r FeatureFlagsSettingsAPIReplaceSettingRequest) ReplaceSettingModel(replaceSettingModel ReplaceSettingModel) FeatureFlagsSettingsAPIReplaceSettingRequest {
r.replaceSettingModel = &replaceSettingModel
return r
}
-func (r FeatureFlagsSettingsApiReplaceSettingRequest) Execute() (*SettingModel, *http.Response, error) {
+func (r FeatureFlagsSettingsAPIReplaceSettingRequest) Execute() (*SettingModel, *http.Response, error) {
return r.ApiService.ReplaceSettingExecute(r)
}
@@ -469,10 +469,10 @@ want to change in its original state. Not listing one means it will reset.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param settingId The identifier of the Setting.
- @return FeatureFlagsSettingsApiReplaceSettingRequest
+ @return FeatureFlagsSettingsAPIReplaceSettingRequest
*/
-func (a *FeatureFlagsSettingsApiService) ReplaceSetting(ctx context.Context, settingId int32) FeatureFlagsSettingsApiReplaceSettingRequest {
- return FeatureFlagsSettingsApiReplaceSettingRequest{
+func (a *FeatureFlagsSettingsAPIService) ReplaceSetting(ctx context.Context, settingId int32) FeatureFlagsSettingsAPIReplaceSettingRequest {
+ return FeatureFlagsSettingsAPIReplaceSettingRequest{
ApiService: a,
ctx: ctx,
settingId: settingId,
@@ -481,7 +481,7 @@ func (a *FeatureFlagsSettingsApiService) ReplaceSetting(ctx context.Context, set
// Execute executes the request
// @return SettingModel
-func (a *FeatureFlagsSettingsApiService) ReplaceSettingExecute(r FeatureFlagsSettingsApiReplaceSettingRequest) (*SettingModel, *http.Response, error) {
+func (a *FeatureFlagsSettingsAPIService) ReplaceSettingExecute(r FeatureFlagsSettingsAPIReplaceSettingRequest) (*SettingModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -489,7 +489,7 @@ func (a *FeatureFlagsSettingsApiService) ReplaceSettingExecute(r FeatureFlagsSet
localVarReturnValue *SettingModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagsSettingsApiService.ReplaceSetting")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagsSettingsAPIService.ReplaceSetting")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -560,19 +560,19 @@ func (a *FeatureFlagsSettingsApiService) ReplaceSettingExecute(r FeatureFlagsSet
return localVarReturnValue, localVarHTTPResponse, nil
}
-type FeatureFlagsSettingsApiUpdateSettingRequest struct {
+type FeatureFlagsSettingsAPIUpdateSettingRequest struct {
ctx context.Context
- ApiService *FeatureFlagsSettingsApiService
+ ApiService *FeatureFlagsSettingsAPIService
settingId int32
jsonPatchOperation *[]JsonPatchOperation
}
-func (r FeatureFlagsSettingsApiUpdateSettingRequest) JsonPatchOperation(jsonPatchOperation []JsonPatchOperation) FeatureFlagsSettingsApiUpdateSettingRequest {
+func (r FeatureFlagsSettingsAPIUpdateSettingRequest) JsonPatchOperation(jsonPatchOperation []JsonPatchOperation) FeatureFlagsSettingsAPIUpdateSettingRequest {
r.jsonPatchOperation = &jsonPatchOperation
return r
}
-func (r FeatureFlagsSettingsApiUpdateSettingRequest) Execute() (*SettingModel, *http.Response, error) {
+func (r FeatureFlagsSettingsAPIUpdateSettingRequest) Execute() (*SettingModel, *http.Response, error) {
return r.ApiService.UpdateSettingExecute(r)
}
@@ -646,10 +646,10 @@ So we get a response like this:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param settingId The identifier of the Setting.
- @return FeatureFlagsSettingsApiUpdateSettingRequest
+ @return FeatureFlagsSettingsAPIUpdateSettingRequest
*/
-func (a *FeatureFlagsSettingsApiService) UpdateSetting(ctx context.Context, settingId int32) FeatureFlagsSettingsApiUpdateSettingRequest {
- return FeatureFlagsSettingsApiUpdateSettingRequest{
+func (a *FeatureFlagsSettingsAPIService) UpdateSetting(ctx context.Context, settingId int32) FeatureFlagsSettingsAPIUpdateSettingRequest {
+ return FeatureFlagsSettingsAPIUpdateSettingRequest{
ApiService: a,
ctx: ctx,
settingId: settingId,
@@ -658,7 +658,7 @@ func (a *FeatureFlagsSettingsApiService) UpdateSetting(ctx context.Context, sett
// Execute executes the request
// @return SettingModel
-func (a *FeatureFlagsSettingsApiService) UpdateSettingExecute(r FeatureFlagsSettingsApiUpdateSettingRequest) (*SettingModel, *http.Response, error) {
+func (a *FeatureFlagsSettingsAPIService) UpdateSettingExecute(r FeatureFlagsSettingsAPIUpdateSettingRequest) (*SettingModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
@@ -666,7 +666,7 @@ func (a *FeatureFlagsSettingsApiService) UpdateSettingExecute(r FeatureFlagsSett
localVarReturnValue *SettingModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagsSettingsApiService.UpdateSetting")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FeatureFlagsSettingsAPIService.UpdateSetting")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_integration_links.go b/api_integration_links.go
index 76c6b31..6c04ecf 100644
--- a/api_integration_links.go
+++ b/api_integration_links.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,12 +21,12 @@ import (
)
-// IntegrationLinksApiService IntegrationLinksApi service
-type IntegrationLinksApiService service
+// IntegrationLinksAPIService IntegrationLinksAPI service
+type IntegrationLinksAPIService service
-type IntegrationLinksApiAddOrUpdateIntegrationLinkRequest struct {
+type IntegrationLinksAPIAddOrUpdateIntegrationLinkRequest struct {
ctx context.Context
- ApiService *IntegrationLinksApiService
+ ApiService *IntegrationLinksAPIService
environmentId string
settingId int32
integrationLinkType IntegrationLinkType
@@ -34,12 +34,12 @@ type IntegrationLinksApiAddOrUpdateIntegrationLinkRequest struct {
addOrUpdateIntegrationLinkModel *AddOrUpdateIntegrationLinkModel
}
-func (r IntegrationLinksApiAddOrUpdateIntegrationLinkRequest) AddOrUpdateIntegrationLinkModel(addOrUpdateIntegrationLinkModel AddOrUpdateIntegrationLinkModel) IntegrationLinksApiAddOrUpdateIntegrationLinkRequest {
+func (r IntegrationLinksAPIAddOrUpdateIntegrationLinkRequest) AddOrUpdateIntegrationLinkModel(addOrUpdateIntegrationLinkModel AddOrUpdateIntegrationLinkModel) IntegrationLinksAPIAddOrUpdateIntegrationLinkRequest {
r.addOrUpdateIntegrationLinkModel = &addOrUpdateIntegrationLinkModel
return r
}
-func (r IntegrationLinksApiAddOrUpdateIntegrationLinkRequest) Execute() (*IntegrationLinkModel, *http.Response, error) {
+func (r IntegrationLinksAPIAddOrUpdateIntegrationLinkRequest) Execute() (*IntegrationLinkModel, *http.Response, error) {
return r.ApiService.AddOrUpdateIntegrationLinkExecute(r)
}
@@ -53,10 +53,10 @@ AddOrUpdateIntegrationLink Add or update Integration link
@param settingId The id of the Setting.
@param integrationLinkType The integration link's type.
@param key The key of the integration link.
- @return IntegrationLinksApiAddOrUpdateIntegrationLinkRequest
+ @return IntegrationLinksAPIAddOrUpdateIntegrationLinkRequest
*/
-func (a *IntegrationLinksApiService) AddOrUpdateIntegrationLink(ctx context.Context, environmentId string, settingId int32, integrationLinkType IntegrationLinkType, key string) IntegrationLinksApiAddOrUpdateIntegrationLinkRequest {
- return IntegrationLinksApiAddOrUpdateIntegrationLinkRequest{
+func (a *IntegrationLinksAPIService) AddOrUpdateIntegrationLink(ctx context.Context, environmentId string, settingId int32, integrationLinkType IntegrationLinkType, key string) IntegrationLinksAPIAddOrUpdateIntegrationLinkRequest {
+ return IntegrationLinksAPIAddOrUpdateIntegrationLinkRequest{
ApiService: a,
ctx: ctx,
environmentId: environmentId,
@@ -68,7 +68,7 @@ func (a *IntegrationLinksApiService) AddOrUpdateIntegrationLink(ctx context.Cont
// Execute executes the request
// @return IntegrationLinkModel
-func (a *IntegrationLinksApiService) AddOrUpdateIntegrationLinkExecute(r IntegrationLinksApiAddOrUpdateIntegrationLinkRequest) (*IntegrationLinkModel, *http.Response, error) {
+func (a *IntegrationLinksAPIService) AddOrUpdateIntegrationLinkExecute(r IntegrationLinksAPIAddOrUpdateIntegrationLinkRequest) (*IntegrationLinkModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -76,7 +76,7 @@ func (a *IntegrationLinksApiService) AddOrUpdateIntegrationLinkExecute(r Integra
localVarReturnValue *IntegrationLinkModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationLinksApiService.AddOrUpdateIntegrationLink")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationLinksAPIService.AddOrUpdateIntegrationLink")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -147,16 +147,16 @@ func (a *IntegrationLinksApiService) AddOrUpdateIntegrationLinkExecute(r Integra
return localVarReturnValue, localVarHTTPResponse, nil
}
-type IntegrationLinksApiDeleteIntegrationLinkRequest struct {
+type IntegrationLinksAPIDeleteIntegrationLinkRequest struct {
ctx context.Context
- ApiService *IntegrationLinksApiService
+ ApiService *IntegrationLinksAPIService
environmentId string
settingId int32
integrationLinkType IntegrationLinkType
key string
}
-func (r IntegrationLinksApiDeleteIntegrationLinkRequest) Execute() (*DeleteIntegrationLinkModel, *http.Response, error) {
+func (r IntegrationLinksAPIDeleteIntegrationLinkRequest) Execute() (*DeleteIntegrationLinkModel, *http.Response, error) {
return r.ApiService.DeleteIntegrationLinkExecute(r)
}
@@ -170,10 +170,10 @@ DeleteIntegrationLink Delete Integration link
@param settingId The id of the Setting.
@param integrationLinkType The integration's type.
@param key The key of the integration link.
- @return IntegrationLinksApiDeleteIntegrationLinkRequest
+ @return IntegrationLinksAPIDeleteIntegrationLinkRequest
*/
-func (a *IntegrationLinksApiService) DeleteIntegrationLink(ctx context.Context, environmentId string, settingId int32, integrationLinkType IntegrationLinkType, key string) IntegrationLinksApiDeleteIntegrationLinkRequest {
- return IntegrationLinksApiDeleteIntegrationLinkRequest{
+func (a *IntegrationLinksAPIService) DeleteIntegrationLink(ctx context.Context, environmentId string, settingId int32, integrationLinkType IntegrationLinkType, key string) IntegrationLinksAPIDeleteIntegrationLinkRequest {
+ return IntegrationLinksAPIDeleteIntegrationLinkRequest{
ApiService: a,
ctx: ctx,
environmentId: environmentId,
@@ -185,7 +185,7 @@ func (a *IntegrationLinksApiService) DeleteIntegrationLink(ctx context.Context,
// Execute executes the request
// @return DeleteIntegrationLinkModel
-func (a *IntegrationLinksApiService) DeleteIntegrationLinkExecute(r IntegrationLinksApiDeleteIntegrationLinkRequest) (*DeleteIntegrationLinkModel, *http.Response, error) {
+func (a *IntegrationLinksAPIService) DeleteIntegrationLinkExecute(r IntegrationLinksAPIDeleteIntegrationLinkRequest) (*DeleteIntegrationLinkModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
@@ -193,7 +193,7 @@ func (a *IntegrationLinksApiService) DeleteIntegrationLinkExecute(r IntegrationL
localVarReturnValue *DeleteIntegrationLinkModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationLinksApiService.DeleteIntegrationLink")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationLinksAPIService.DeleteIntegrationLink")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -262,14 +262,14 @@ func (a *IntegrationLinksApiService) DeleteIntegrationLinkExecute(r IntegrationL
return localVarReturnValue, localVarHTTPResponse, nil
}
-type IntegrationLinksApiGetIntegrationLinkDetailsRequest struct {
+type IntegrationLinksAPIGetIntegrationLinkDetailsRequest struct {
ctx context.Context
- ApiService *IntegrationLinksApiService
+ ApiService *IntegrationLinksAPIService
integrationLinkType IntegrationLinkType
key string
}
-func (r IntegrationLinksApiGetIntegrationLinkDetailsRequest) Execute() (*IntegrationLinkDetailsModel, *http.Response, error) {
+func (r IntegrationLinksAPIGetIntegrationLinkDetailsRequest) Execute() (*IntegrationLinkDetailsModel, *http.Response, error) {
return r.ApiService.GetIntegrationLinkDetailsExecute(r)
}
@@ -281,10 +281,10 @@ GetIntegrationLinkDetails Get Integration link
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param integrationLinkType The integration link's type.
@param key The key of the integration link.
- @return IntegrationLinksApiGetIntegrationLinkDetailsRequest
+ @return IntegrationLinksAPIGetIntegrationLinkDetailsRequest
*/
-func (a *IntegrationLinksApiService) GetIntegrationLinkDetails(ctx context.Context, integrationLinkType IntegrationLinkType, key string) IntegrationLinksApiGetIntegrationLinkDetailsRequest {
- return IntegrationLinksApiGetIntegrationLinkDetailsRequest{
+func (a *IntegrationLinksAPIService) GetIntegrationLinkDetails(ctx context.Context, integrationLinkType IntegrationLinkType, key string) IntegrationLinksAPIGetIntegrationLinkDetailsRequest {
+ return IntegrationLinksAPIGetIntegrationLinkDetailsRequest{
ApiService: a,
ctx: ctx,
integrationLinkType: integrationLinkType,
@@ -294,7 +294,7 @@ func (a *IntegrationLinksApiService) GetIntegrationLinkDetails(ctx context.Conte
// Execute executes the request
// @return IntegrationLinkDetailsModel
-func (a *IntegrationLinksApiService) GetIntegrationLinkDetailsExecute(r IntegrationLinksApiGetIntegrationLinkDetailsRequest) (*IntegrationLinkDetailsModel, *http.Response, error) {
+func (a *IntegrationLinksAPIService) GetIntegrationLinkDetailsExecute(r IntegrationLinksAPIGetIntegrationLinkDetailsRequest) (*IntegrationLinkDetailsModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -302,7 +302,7 @@ func (a *IntegrationLinksApiService) GetIntegrationLinkDetailsExecute(r Integrat
localVarReturnValue *IntegrationLinkDetailsModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationLinksApiService.GetIntegrationLinkDetails")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationLinksAPIService.GetIntegrationLinkDetails")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -369,21 +369,21 @@ func (a *IntegrationLinksApiService) GetIntegrationLinkDetailsExecute(r Integrat
return localVarReturnValue, localVarHTTPResponse, nil
}
-type IntegrationLinksApiJiraAddOrUpdateIntegrationLinkRequest struct {
+type IntegrationLinksAPIJiraAddOrUpdateIntegrationLinkRequest struct {
ctx context.Context
- ApiService *IntegrationLinksApiService
+ ApiService *IntegrationLinksAPIService
environmentId string
settingId int32
key string
addOrUpdateJiraIntegrationLinkModel *AddOrUpdateJiraIntegrationLinkModel
}
-func (r IntegrationLinksApiJiraAddOrUpdateIntegrationLinkRequest) AddOrUpdateJiraIntegrationLinkModel(addOrUpdateJiraIntegrationLinkModel AddOrUpdateJiraIntegrationLinkModel) IntegrationLinksApiJiraAddOrUpdateIntegrationLinkRequest {
+func (r IntegrationLinksAPIJiraAddOrUpdateIntegrationLinkRequest) AddOrUpdateJiraIntegrationLinkModel(addOrUpdateJiraIntegrationLinkModel AddOrUpdateJiraIntegrationLinkModel) IntegrationLinksAPIJiraAddOrUpdateIntegrationLinkRequest {
r.addOrUpdateJiraIntegrationLinkModel = &addOrUpdateJiraIntegrationLinkModel
return r
}
-func (r IntegrationLinksApiJiraAddOrUpdateIntegrationLinkRequest) Execute() (*IntegrationLinkModel, *http.Response, error) {
+func (r IntegrationLinksAPIJiraAddOrUpdateIntegrationLinkRequest) Execute() (*IntegrationLinkModel, *http.Response, error) {
return r.ApiService.JiraAddOrUpdateIntegrationLinkExecute(r)
}
@@ -394,10 +394,10 @@ JiraAddOrUpdateIntegrationLink Method for JiraAddOrUpdateIntegrationLink
@param environmentId The identifier of the Environment.
@param settingId The id of the Setting.
@param key The key of the integration link.
- @return IntegrationLinksApiJiraAddOrUpdateIntegrationLinkRequest
+ @return IntegrationLinksAPIJiraAddOrUpdateIntegrationLinkRequest
*/
-func (a *IntegrationLinksApiService) JiraAddOrUpdateIntegrationLink(ctx context.Context, environmentId string, settingId int32, key string) IntegrationLinksApiJiraAddOrUpdateIntegrationLinkRequest {
- return IntegrationLinksApiJiraAddOrUpdateIntegrationLinkRequest{
+func (a *IntegrationLinksAPIService) JiraAddOrUpdateIntegrationLink(ctx context.Context, environmentId string, settingId int32, key string) IntegrationLinksAPIJiraAddOrUpdateIntegrationLinkRequest {
+ return IntegrationLinksAPIJiraAddOrUpdateIntegrationLinkRequest{
ApiService: a,
ctx: ctx,
environmentId: environmentId,
@@ -408,7 +408,7 @@ func (a *IntegrationLinksApiService) JiraAddOrUpdateIntegrationLink(ctx context.
// Execute executes the request
// @return IntegrationLinkModel
-func (a *IntegrationLinksApiService) JiraAddOrUpdateIntegrationLinkExecute(r IntegrationLinksApiJiraAddOrUpdateIntegrationLinkRequest) (*IntegrationLinkModel, *http.Response, error) {
+func (a *IntegrationLinksAPIService) JiraAddOrUpdateIntegrationLinkExecute(r IntegrationLinksAPIJiraAddOrUpdateIntegrationLinkRequest) (*IntegrationLinkModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -416,7 +416,7 @@ func (a *IntegrationLinksApiService) JiraAddOrUpdateIntegrationLinkExecute(r Int
localVarReturnValue *IntegrationLinkModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationLinksApiService.JiraAddOrUpdateIntegrationLink")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationLinksAPIService.JiraAddOrUpdateIntegrationLink")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -486,18 +486,18 @@ func (a *IntegrationLinksApiService) JiraAddOrUpdateIntegrationLinkExecute(r Int
return localVarReturnValue, localVarHTTPResponse, nil
}
-type IntegrationLinksApiJiraConnectRequest struct {
+type IntegrationLinksAPIJiraConnectRequest struct {
ctx context.Context
- ApiService *IntegrationLinksApiService
+ ApiService *IntegrationLinksAPIService
connectRequest *ConnectRequest
}
-func (r IntegrationLinksApiJiraConnectRequest) ConnectRequest(connectRequest ConnectRequest) IntegrationLinksApiJiraConnectRequest {
+func (r IntegrationLinksAPIJiraConnectRequest) ConnectRequest(connectRequest ConnectRequest) IntegrationLinksAPIJiraConnectRequest {
r.connectRequest = &connectRequest
return r
}
-func (r IntegrationLinksApiJiraConnectRequest) Execute() (*http.Response, error) {
+func (r IntegrationLinksAPIJiraConnectRequest) Execute() (*http.Response, error) {
return r.ApiService.JiraConnectExecute(r)
}
@@ -505,24 +505,24 @@ func (r IntegrationLinksApiJiraConnectRequest) Execute() (*http.Response, error)
JiraConnect Method for JiraConnect
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return IntegrationLinksApiJiraConnectRequest
+ @return IntegrationLinksAPIJiraConnectRequest
*/
-func (a *IntegrationLinksApiService) JiraConnect(ctx context.Context) IntegrationLinksApiJiraConnectRequest {
- return IntegrationLinksApiJiraConnectRequest{
+func (a *IntegrationLinksAPIService) JiraConnect(ctx context.Context) IntegrationLinksAPIJiraConnectRequest {
+ return IntegrationLinksAPIJiraConnectRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
-func (a *IntegrationLinksApiService) JiraConnectExecute(r IntegrationLinksApiJiraConnectRequest) (*http.Response, error) {
+func (a *IntegrationLinksAPIService) JiraConnectExecute(r IntegrationLinksAPIJiraConnectRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationLinksApiService.JiraConnect")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationLinksAPIService.JiraConnect")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_integrations.go b/api_integrations.go
new file mode 100644
index 0000000..4df1402
--- /dev/null
+++ b/api_integrations.go
@@ -0,0 +1,594 @@
+/*
+ConfigCat Public Management API
+
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package configcatpublicapi
+
+import (
+ "bytes"
+ "context"
+ "io"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+
+// IntegrationsAPIService IntegrationsAPI service
+type IntegrationsAPIService service
+
+type IntegrationsAPICreateIntegrationRequest struct {
+ ctx context.Context
+ ApiService *IntegrationsAPIService
+ productId string
+ createIntegrationModel *CreateIntegrationModel
+}
+
+func (r IntegrationsAPICreateIntegrationRequest) CreateIntegrationModel(createIntegrationModel CreateIntegrationModel) IntegrationsAPICreateIntegrationRequest {
+ r.createIntegrationModel = &createIntegrationModel
+ return r
+}
+
+func (r IntegrationsAPICreateIntegrationRequest) Execute() (*IntegrationModel, *http.Response, error) {
+ return r.ApiService.CreateIntegrationExecute(r)
+}
+
+/*
+CreateIntegration Create Integration
+
+This endpoint creates a new Integration in a specified Product
+identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.
+
+The Parameters dictionary differs for each IntegrationType:
+- Datadog
+ - `apikey`: Required. Datadog API key.
+ - `site`: Datadog site. Available values: `Us`, `Eu`, `Us1Fed`, `Us3`, `Us5`. Default: `Us`.
+- Slack
+ Connecting the Slack integration through the Public Management API will not post messages with the ConfigCat Feature Flags Slack app but with an incoming webhook.
+ - `incoming_webhook.url`: Required. The [incoming webhook URL](https://api.slack.com/messaging/webhooks) where the integration should post messages.
+- Amplitude
+ - `apiKey`: Required. Amplitude API Key.
+ - `secretKey`: Required. Amplitude Secret Key.
+- Mixpanel
+ - `serviceAccountUserName`: Required. Mixpanel Service Account Username.
+ - `serviceAccountSecret`: Required. Mixpanel Service Account Secret.
+ - `projectId`: Required. Mixpanel Project ID.
+ - `server`: Mixpanel Server. Available values: `StandardServer`, `EUResidencyServer`. Default: `StandardServer`.
+- Twilio Segment
+ - `writeKey`: Required. Twilio Segment Write Key.
+ - `server`: Twilio Segment Server. Available values: `Us`, `Eu`. Default: `Us`.
+- PubNub (work in progress)
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param productId The identifier of the Product.
+ @return IntegrationsAPICreateIntegrationRequest
+*/
+func (a *IntegrationsAPIService) CreateIntegration(ctx context.Context, productId string) IntegrationsAPICreateIntegrationRequest {
+ return IntegrationsAPICreateIntegrationRequest{
+ ApiService: a,
+ ctx: ctx,
+ productId: productId,
+ }
+}
+
+// Execute executes the request
+// @return IntegrationModel
+func (a *IntegrationsAPIService) CreateIntegrationExecute(r IntegrationsAPICreateIntegrationRequest) (*IntegrationModel, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IntegrationModel
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreateIntegration")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/products/{productId}/integrations"
+ localVarPath = strings.Replace(localVarPath, "{"+"productId"+"}", url.PathEscape(parameterValueToString(r.productId, "productId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.createIntegrationModel == nil {
+ return localVarReturnValue, nil, reportError("createIntegrationModel is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "text/json", "application/*+json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.createIntegrationModel
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type IntegrationsAPIDeleteIntegrationRequest struct {
+ ctx context.Context
+ ApiService *IntegrationsAPIService
+ integrationId string
+}
+
+func (r IntegrationsAPIDeleteIntegrationRequest) Execute() (*http.Response, error) {
+ return r.ApiService.DeleteIntegrationExecute(r)
+}
+
+/*
+DeleteIntegration Delete Integration
+
+This endpoint removes a Integration identified by the `integrationId` parameter.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param integrationId The identifier of the Integration.
+ @return IntegrationsAPIDeleteIntegrationRequest
+*/
+func (a *IntegrationsAPIService) DeleteIntegration(ctx context.Context, integrationId string) IntegrationsAPIDeleteIntegrationRequest {
+ return IntegrationsAPIDeleteIntegrationRequest{
+ ApiService: a,
+ ctx: ctx,
+ integrationId: integrationId,
+ }
+}
+
+// Execute executes the request
+func (a *IntegrationsAPIService) DeleteIntegrationExecute(r IntegrationsAPIDeleteIntegrationRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeleteIntegration")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/integrations/{integrationId}"
+ localVarPath = strings.Replace(localVarPath, "{"+"integrationId"+"}", url.PathEscape(parameterValueToString(r.integrationId, "integrationId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarHTTPResponse, newErr
+ }
+
+ return localVarHTTPResponse, nil
+}
+
+type IntegrationsAPIGetIntegrationRequest struct {
+ ctx context.Context
+ ApiService *IntegrationsAPIService
+ integrationId string
+}
+
+func (r IntegrationsAPIGetIntegrationRequest) Execute() (*IntegrationModel, *http.Response, error) {
+ return r.ApiService.GetIntegrationExecute(r)
+}
+
+/*
+GetIntegration Get Integration
+
+This endpoint returns the metadata of an Integration
+identified by the `integrationId`.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param integrationId The identifier of the Integration.
+ @return IntegrationsAPIGetIntegrationRequest
+*/
+func (a *IntegrationsAPIService) GetIntegration(ctx context.Context, integrationId string) IntegrationsAPIGetIntegrationRequest {
+ return IntegrationsAPIGetIntegrationRequest{
+ ApiService: a,
+ ctx: ctx,
+ integrationId: integrationId,
+ }
+}
+
+// Execute executes the request
+// @return IntegrationModel
+func (a *IntegrationsAPIService) GetIntegrationExecute(r IntegrationsAPIGetIntegrationRequest) (*IntegrationModel, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IntegrationModel
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetIntegration")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/integrations/{integrationId}"
+ localVarPath = strings.Replace(localVarPath, "{"+"integrationId"+"}", url.PathEscape(parameterValueToString(r.integrationId, "integrationId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type IntegrationsAPIGetIntegrationsRequest struct {
+ ctx context.Context
+ ApiService *IntegrationsAPIService
+ productId string
+}
+
+func (r IntegrationsAPIGetIntegrationsRequest) Execute() (*IntegrationsModel, *http.Response, error) {
+ return r.ApiService.GetIntegrationsExecute(r)
+}
+
+/*
+GetIntegrations List Integrations
+
+This endpoint returns the list of the Integrations that belongs to the given Product identified by the
+`productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param productId The identifier of the Product.
+ @return IntegrationsAPIGetIntegrationsRequest
+*/
+func (a *IntegrationsAPIService) GetIntegrations(ctx context.Context, productId string) IntegrationsAPIGetIntegrationsRequest {
+ return IntegrationsAPIGetIntegrationsRequest{
+ ApiService: a,
+ ctx: ctx,
+ productId: productId,
+ }
+}
+
+// Execute executes the request
+// @return IntegrationsModel
+func (a *IntegrationsAPIService) GetIntegrationsExecute(r IntegrationsAPIGetIntegrationsRequest) (*IntegrationsModel, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IntegrationsModel
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetIntegrations")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/products/{productId}/integrations"
+ localVarPath = strings.Replace(localVarPath, "{"+"productId"+"}", url.PathEscape(parameterValueToString(r.productId, "productId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type IntegrationsAPIUpdateIntegrationRequest struct {
+ ctx context.Context
+ ApiService *IntegrationsAPIService
+ integrationId string
+ modifyIntegrationRequest *ModifyIntegrationRequest
+}
+
+func (r IntegrationsAPIUpdateIntegrationRequest) ModifyIntegrationRequest(modifyIntegrationRequest ModifyIntegrationRequest) IntegrationsAPIUpdateIntegrationRequest {
+ r.modifyIntegrationRequest = &modifyIntegrationRequest
+ return r
+}
+
+func (r IntegrationsAPIUpdateIntegrationRequest) Execute() (*IntegrationModel, *http.Response, error) {
+ return r.ApiService.UpdateIntegrationExecute(r)
+}
+
+/*
+UpdateIntegration Update Integration
+
+This endpoint updates a Config identified by the `integrationId` parameter.
+
+The Parameters dictionary differs for each IntegrationType:
+- Datadog
+ - `apikey`: Required. Datadog API key.
+ - `site`: Datadog site. Available values: `Us`, `Eu`, `Us1Fed`, `Us3`, `Us5`. Default: `Us`.
+- Slack
+ Connecting the Slack integration through the Public Management API will not post messages with the ConfigCat Feature Flags Slack app but with an incoming webhook.
+ - `incoming_webhook.url`: Required. The [incoming webhook URL](https://api.slack.com/messaging/webhooks) where the integration should post messages.
+- Amplitude
+ - `apiKey`: Required. Amplitude API Key.
+ - `secretKey`: Required. Amplitude Secret Key.
+- Mixpanel
+ - `serviceAccountUserName`: Required. Mixpanel Service Account Username.
+ - `serviceAccountSecret`: Required. Mixpanel Service Account Secret.
+ - `projectId`: Required. Mixpanel Project ID.
+ - `server`: Mixpanel Server. Available values: `StandardServer`, `EUResidencyServer`. Default: `StandardServer`.
+- Twilio Segment
+ - `writeKey`: Required. Twilio Segment Write Key.
+ - `server`: Twilio Segment Server. Available values: `Us`, `Eu`. Default: `Us`.
+- PubNub (work in progress)
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param integrationId The identifier of the Integration.
+ @return IntegrationsAPIUpdateIntegrationRequest
+*/
+func (a *IntegrationsAPIService) UpdateIntegration(ctx context.Context, integrationId string) IntegrationsAPIUpdateIntegrationRequest {
+ return IntegrationsAPIUpdateIntegrationRequest{
+ ApiService: a,
+ ctx: ctx,
+ integrationId: integrationId,
+ }
+}
+
+// Execute executes the request
+// @return IntegrationModel
+func (a *IntegrationsAPIService) UpdateIntegrationExecute(r IntegrationsAPIUpdateIntegrationRequest) (*IntegrationModel, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IntegrationModel
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdateIntegration")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/integrations/{integrationId}"
+ localVarPath = strings.Replace(localVarPath, "{"+"integrationId"+"}", url.PathEscape(parameterValueToString(r.integrationId, "integrationId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.modifyIntegrationRequest == nil {
+ return localVarReturnValue, nil, reportError("modifyIntegrationRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json", "text/json", "application/*+json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.modifyIntegrationRequest
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
diff --git a/api_me.go b/api_me.go
index 06d542f..6e4cbae 100644
--- a/api_me.go
+++ b/api_me.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -20,15 +20,15 @@ import (
)
-// MeApiService MeApi service
-type MeApiService service
+// MeAPIService MeAPI service
+type MeAPIService service
-type MeApiGetMeRequest struct {
+type MeAPIGetMeRequest struct {
ctx context.Context
- ApiService *MeApiService
+ ApiService *MeAPIService
}
-func (r MeApiGetMeRequest) Execute() (*MeModel, *http.Response, error) {
+func (r MeAPIGetMeRequest) Execute() (*MeModel, *http.Response, error) {
return r.ApiService.GetMeExecute(r)
}
@@ -38,10 +38,10 @@ GetMe Get authenticated user details
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return MeApiGetMeRequest
+ @return MeAPIGetMeRequest
*/
-func (a *MeApiService) GetMe(ctx context.Context) MeApiGetMeRequest {
- return MeApiGetMeRequest{
+func (a *MeAPIService) GetMe(ctx context.Context) MeAPIGetMeRequest {
+ return MeAPIGetMeRequest{
ApiService: a,
ctx: ctx,
}
@@ -49,7 +49,7 @@ func (a *MeApiService) GetMe(ctx context.Context) MeApiGetMeRequest {
// Execute executes the request
// @return MeModel
-func (a *MeApiService) GetMeExecute(r MeApiGetMeRequest) (*MeModel, *http.Response, error) {
+func (a *MeAPIService) GetMeExecute(r MeAPIGetMeRequest) (*MeModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -57,7 +57,7 @@ func (a *MeApiService) GetMeExecute(r MeApiGetMeRequest) (*MeModel, *http.Respon
localVarReturnValue *MeModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeApiService.GetMe")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeAPIService.GetMe")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_members.go b/api_members.go
index 7d8ae5b..bd8daa1 100644
--- a/api_members.go
+++ b/api_members.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,23 +21,23 @@ import (
)
-// MembersApiService MembersApi service
-type MembersApiService service
+// MembersAPIService MembersAPI service
+type MembersAPIService service
-type MembersApiAddMemberToGroupRequest struct {
+type MembersAPIAddMemberToGroupRequest struct {
ctx context.Context
- ApiService *MembersApiService
+ ApiService *MembersAPIService
organizationId string
userId string
updateMemberPermissionsRequest *UpdateMemberPermissionsRequest
}
-func (r MembersApiAddMemberToGroupRequest) UpdateMemberPermissionsRequest(updateMemberPermissionsRequest UpdateMemberPermissionsRequest) MembersApiAddMemberToGroupRequest {
+func (r MembersAPIAddMemberToGroupRequest) UpdateMemberPermissionsRequest(updateMemberPermissionsRequest UpdateMemberPermissionsRequest) MembersAPIAddMemberToGroupRequest {
r.updateMemberPermissionsRequest = &updateMemberPermissionsRequest
return r
}
-func (r MembersApiAddMemberToGroupRequest) Execute() (*http.Response, error) {
+func (r MembersAPIAddMemberToGroupRequest) Execute() (*http.Response, error) {
return r.ApiService.AddMemberToGroupExecute(r)
}
@@ -51,10 +51,10 @@ Only a single Permission Group can be set per Product.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId The identifier of the Organization.
@param userId The identifier of the Member.
- @return MembersApiAddMemberToGroupRequest
+ @return MembersAPIAddMemberToGroupRequest
*/
-func (a *MembersApiService) AddMemberToGroup(ctx context.Context, organizationId string, userId string) MembersApiAddMemberToGroupRequest {
- return MembersApiAddMemberToGroupRequest{
+func (a *MembersAPIService) AddMemberToGroup(ctx context.Context, organizationId string, userId string) MembersAPIAddMemberToGroupRequest {
+ return MembersAPIAddMemberToGroupRequest{
ApiService: a,
ctx: ctx,
organizationId: organizationId,
@@ -63,14 +63,14 @@ func (a *MembersApiService) AddMemberToGroup(ctx context.Context, organizationId
}
// Execute executes the request
-func (a *MembersApiService) AddMemberToGroupExecute(r MembersApiAddMemberToGroupRequest) (*http.Response, error) {
+func (a *MembersAPIService) AddMemberToGroupExecute(r MembersAPIAddMemberToGroupRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersApiService.AddMemberToGroup")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersAPIService.AddMemberToGroup")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -133,13 +133,13 @@ func (a *MembersApiService) AddMemberToGroupExecute(r MembersApiAddMemberToGroup
return localVarHTTPResponse, nil
}
-type MembersApiDeleteInvitationRequest struct {
+type MembersAPIDeleteInvitationRequest struct {
ctx context.Context
- ApiService *MembersApiService
+ ApiService *MembersAPIService
invitationId string
}
-func (r MembersApiDeleteInvitationRequest) Execute() (*http.Response, error) {
+func (r MembersAPIDeleteInvitationRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteInvitationExecute(r)
}
@@ -150,10 +150,10 @@ This endpoint removes an Invitation identified by the `invitationId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param invitationId The identifier of the Invitation.
- @return MembersApiDeleteInvitationRequest
+ @return MembersAPIDeleteInvitationRequest
*/
-func (a *MembersApiService) DeleteInvitation(ctx context.Context, invitationId string) MembersApiDeleteInvitationRequest {
- return MembersApiDeleteInvitationRequest{
+func (a *MembersAPIService) DeleteInvitation(ctx context.Context, invitationId string) MembersAPIDeleteInvitationRequest {
+ return MembersAPIDeleteInvitationRequest{
ApiService: a,
ctx: ctx,
invitationId: invitationId,
@@ -161,14 +161,14 @@ func (a *MembersApiService) DeleteInvitation(ctx context.Context, invitationId s
}
// Execute executes the request
-func (a *MembersApiService) DeleteInvitationExecute(r MembersApiDeleteInvitationRequest) (*http.Response, error) {
+func (a *MembersAPIService) DeleteInvitationExecute(r MembersAPIDeleteInvitationRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersApiService.DeleteInvitation")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersAPIService.DeleteInvitation")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -225,14 +225,14 @@ func (a *MembersApiService) DeleteInvitationExecute(r MembersApiDeleteInvitation
return localVarHTTPResponse, nil
}
-type MembersApiDeleteOrganizationMemberRequest struct {
+type MembersAPIDeleteOrganizationMemberRequest struct {
ctx context.Context
- ApiService *MembersApiService
+ ApiService *MembersAPIService
organizationId string
userId string
}
-func (r MembersApiDeleteOrganizationMemberRequest) Execute() (*http.Response, error) {
+func (r MembersAPIDeleteOrganizationMemberRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteOrganizationMemberExecute(r)
}
@@ -245,10 +245,10 @@ given Organization identified by the `organizationId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId The identifier of the Organization.
@param userId The identifier of the Member.
- @return MembersApiDeleteOrganizationMemberRequest
+ @return MembersAPIDeleteOrganizationMemberRequest
*/
-func (a *MembersApiService) DeleteOrganizationMember(ctx context.Context, organizationId string, userId string) MembersApiDeleteOrganizationMemberRequest {
- return MembersApiDeleteOrganizationMemberRequest{
+func (a *MembersAPIService) DeleteOrganizationMember(ctx context.Context, organizationId string, userId string) MembersAPIDeleteOrganizationMemberRequest {
+ return MembersAPIDeleteOrganizationMemberRequest{
ApiService: a,
ctx: ctx,
organizationId: organizationId,
@@ -257,14 +257,14 @@ func (a *MembersApiService) DeleteOrganizationMember(ctx context.Context, organi
}
// Execute executes the request
-func (a *MembersApiService) DeleteOrganizationMemberExecute(r MembersApiDeleteOrganizationMemberRequest) (*http.Response, error) {
+func (a *MembersAPIService) DeleteOrganizationMemberExecute(r MembersAPIDeleteOrganizationMemberRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersApiService.DeleteOrganizationMember")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersAPIService.DeleteOrganizationMember")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -322,14 +322,14 @@ func (a *MembersApiService) DeleteOrganizationMemberExecute(r MembersApiDeleteOr
return localVarHTTPResponse, nil
}
-type MembersApiDeleteProductMemberRequest struct {
+type MembersAPIDeleteProductMemberRequest struct {
ctx context.Context
- ApiService *MembersApiService
+ ApiService *MembersAPIService
productId string
userId string
}
-func (r MembersApiDeleteProductMemberRequest) Execute() (*http.Response, error) {
+func (r MembersAPIDeleteProductMemberRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteProductMemberExecute(r)
}
@@ -342,10 +342,10 @@ given Product identified by the `productId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
@param userId The identifier of the Member.
- @return MembersApiDeleteProductMemberRequest
+ @return MembersAPIDeleteProductMemberRequest
*/
-func (a *MembersApiService) DeleteProductMember(ctx context.Context, productId string, userId string) MembersApiDeleteProductMemberRequest {
- return MembersApiDeleteProductMemberRequest{
+func (a *MembersAPIService) DeleteProductMember(ctx context.Context, productId string, userId string) MembersAPIDeleteProductMemberRequest {
+ return MembersAPIDeleteProductMemberRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -354,14 +354,14 @@ func (a *MembersApiService) DeleteProductMember(ctx context.Context, productId s
}
// Execute executes the request
-func (a *MembersApiService) DeleteProductMemberExecute(r MembersApiDeleteProductMemberRequest) (*http.Response, error) {
+func (a *MembersAPIService) DeleteProductMemberExecute(r MembersAPIDeleteProductMemberRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersApiService.DeleteProductMember")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersAPIService.DeleteProductMember")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -419,13 +419,13 @@ func (a *MembersApiService) DeleteProductMemberExecute(r MembersApiDeleteProduct
return localVarHTTPResponse, nil
}
-type MembersApiGetOrganizationMembersRequest struct {
+type MembersAPIGetOrganizationMembersRequest struct {
ctx context.Context
- ApiService *MembersApiService
+ ApiService *MembersAPIService
organizationId string
}
-func (r MembersApiGetOrganizationMembersRequest) Execute() ([]UserModel, *http.Response, error) {
+func (r MembersAPIGetOrganizationMembersRequest) Execute() ([]UserModel, *http.Response, error) {
return r.ApiService.GetOrganizationMembersExecute(r)
}
@@ -442,12 +442,12 @@ The results may vary based on the access level of the user who calls the endpoin
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId The identifier of the Organization.
- @return MembersApiGetOrganizationMembersRequest
+ @return MembersAPIGetOrganizationMembersRequest
Deprecated
*/
-func (a *MembersApiService) GetOrganizationMembers(ctx context.Context, organizationId string) MembersApiGetOrganizationMembersRequest {
- return MembersApiGetOrganizationMembersRequest{
+func (a *MembersAPIService) GetOrganizationMembers(ctx context.Context, organizationId string) MembersAPIGetOrganizationMembersRequest {
+ return MembersAPIGetOrganizationMembersRequest{
ApiService: a,
ctx: ctx,
organizationId: organizationId,
@@ -457,7 +457,7 @@ func (a *MembersApiService) GetOrganizationMembers(ctx context.Context, organiza
// Execute executes the request
// @return []UserModel
// Deprecated
-func (a *MembersApiService) GetOrganizationMembersExecute(r MembersApiGetOrganizationMembersRequest) ([]UserModel, *http.Response, error) {
+func (a *MembersAPIService) GetOrganizationMembersExecute(r MembersAPIGetOrganizationMembersRequest) ([]UserModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -465,7 +465,7 @@ func (a *MembersApiService) GetOrganizationMembersExecute(r MembersApiGetOrganiz
localVarReturnValue []UserModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersApiService.GetOrganizationMembers")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersAPIService.GetOrganizationMembers")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -531,13 +531,13 @@ func (a *MembersApiService) GetOrganizationMembersExecute(r MembersApiGetOrganiz
return localVarReturnValue, localVarHTTPResponse, nil
}
-type MembersApiGetOrganizationMembersV2Request struct {
+type MembersAPIGetOrganizationMembersV2Request struct {
ctx context.Context
- ApiService *MembersApiService
+ ApiService *MembersAPIService
organizationId string
}
-func (r MembersApiGetOrganizationMembersV2Request) Execute() (*OrganizationMembersModel, *http.Response, error) {
+func (r MembersAPIGetOrganizationMembersV2Request) Execute() (*OrganizationMembersModel, *http.Response, error) {
return r.ApiService.GetOrganizationMembersV2Execute(r)
}
@@ -554,10 +554,10 @@ The results may vary based on the access level of the user who calls the endpoin
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId The identifier of the Organization.
- @return MembersApiGetOrganizationMembersV2Request
+ @return MembersAPIGetOrganizationMembersV2Request
*/
-func (a *MembersApiService) GetOrganizationMembersV2(ctx context.Context, organizationId string) MembersApiGetOrganizationMembersV2Request {
- return MembersApiGetOrganizationMembersV2Request{
+func (a *MembersAPIService) GetOrganizationMembersV2(ctx context.Context, organizationId string) MembersAPIGetOrganizationMembersV2Request {
+ return MembersAPIGetOrganizationMembersV2Request{
ApiService: a,
ctx: ctx,
organizationId: organizationId,
@@ -566,7 +566,7 @@ func (a *MembersApiService) GetOrganizationMembersV2(ctx context.Context, organi
// Execute executes the request
// @return OrganizationMembersModel
-func (a *MembersApiService) GetOrganizationMembersV2Execute(r MembersApiGetOrganizationMembersV2Request) (*OrganizationMembersModel, *http.Response, error) {
+func (a *MembersAPIService) GetOrganizationMembersV2Execute(r MembersAPIGetOrganizationMembersV2Request) (*OrganizationMembersModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -574,7 +574,7 @@ func (a *MembersApiService) GetOrganizationMembersV2Execute(r MembersApiGetOrgan
localVarReturnValue *OrganizationMembersModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersApiService.GetOrganizationMembersV2")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersAPIService.GetOrganizationMembersV2")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -640,13 +640,13 @@ func (a *MembersApiService) GetOrganizationMembersV2Execute(r MembersApiGetOrgan
return localVarReturnValue, localVarHTTPResponse, nil
}
-type MembersApiGetPendingInvitationsRequest struct {
+type MembersAPIGetPendingInvitationsRequest struct {
ctx context.Context
- ApiService *MembersApiService
+ ApiService *MembersAPIService
productId string
}
-func (r MembersApiGetPendingInvitationsRequest) Execute() ([]InvitationModel, *http.Response, error) {
+func (r MembersAPIGetPendingInvitationsRequest) Execute() ([]InvitationModel, *http.Response, error) {
return r.ApiService.GetPendingInvitationsExecute(r)
}
@@ -658,10 +658,10 @@ given Product identified by the `productId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return MembersApiGetPendingInvitationsRequest
+ @return MembersAPIGetPendingInvitationsRequest
*/
-func (a *MembersApiService) GetPendingInvitations(ctx context.Context, productId string) MembersApiGetPendingInvitationsRequest {
- return MembersApiGetPendingInvitationsRequest{
+func (a *MembersAPIService) GetPendingInvitations(ctx context.Context, productId string) MembersAPIGetPendingInvitationsRequest {
+ return MembersAPIGetPendingInvitationsRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -670,7 +670,7 @@ func (a *MembersApiService) GetPendingInvitations(ctx context.Context, productId
// Execute executes the request
// @return []InvitationModel
-func (a *MembersApiService) GetPendingInvitationsExecute(r MembersApiGetPendingInvitationsRequest) ([]InvitationModel, *http.Response, error) {
+func (a *MembersAPIService) GetPendingInvitationsExecute(r MembersAPIGetPendingInvitationsRequest) ([]InvitationModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -678,7 +678,7 @@ func (a *MembersApiService) GetPendingInvitationsExecute(r MembersApiGetPendingI
localVarReturnValue []InvitationModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersApiService.GetPendingInvitations")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersAPIService.GetPendingInvitations")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -744,13 +744,13 @@ func (a *MembersApiService) GetPendingInvitationsExecute(r MembersApiGetPendingI
return localVarReturnValue, localVarHTTPResponse, nil
}
-type MembersApiGetPendingInvitationsOrgRequest struct {
+type MembersAPIGetPendingInvitationsOrgRequest struct {
ctx context.Context
- ApiService *MembersApiService
+ ApiService *MembersAPIService
organizationId string
}
-func (r MembersApiGetPendingInvitationsOrgRequest) Execute() ([]OrganizationInvitationModel, *http.Response, error) {
+func (r MembersAPIGetPendingInvitationsOrgRequest) Execute() ([]OrganizationInvitationModel, *http.Response, error) {
return r.ApiService.GetPendingInvitationsOrgExecute(r)
}
@@ -762,10 +762,10 @@ given Organization identified by the `organizationId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId The identifier of the Organization.
- @return MembersApiGetPendingInvitationsOrgRequest
+ @return MembersAPIGetPendingInvitationsOrgRequest
*/
-func (a *MembersApiService) GetPendingInvitationsOrg(ctx context.Context, organizationId string) MembersApiGetPendingInvitationsOrgRequest {
- return MembersApiGetPendingInvitationsOrgRequest{
+func (a *MembersAPIService) GetPendingInvitationsOrg(ctx context.Context, organizationId string) MembersAPIGetPendingInvitationsOrgRequest {
+ return MembersAPIGetPendingInvitationsOrgRequest{
ApiService: a,
ctx: ctx,
organizationId: organizationId,
@@ -774,7 +774,7 @@ func (a *MembersApiService) GetPendingInvitationsOrg(ctx context.Context, organi
// Execute executes the request
// @return []OrganizationInvitationModel
-func (a *MembersApiService) GetPendingInvitationsOrgExecute(r MembersApiGetPendingInvitationsOrgRequest) ([]OrganizationInvitationModel, *http.Response, error) {
+func (a *MembersAPIService) GetPendingInvitationsOrgExecute(r MembersAPIGetPendingInvitationsOrgRequest) ([]OrganizationInvitationModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -782,7 +782,7 @@ func (a *MembersApiService) GetPendingInvitationsOrgExecute(r MembersApiGetPendi
localVarReturnValue []OrganizationInvitationModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersApiService.GetPendingInvitationsOrg")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersAPIService.GetPendingInvitationsOrg")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -848,13 +848,13 @@ func (a *MembersApiService) GetPendingInvitationsOrgExecute(r MembersApiGetPendi
return localVarReturnValue, localVarHTTPResponse, nil
}
-type MembersApiGetProductMembersRequest struct {
+type MembersAPIGetProductMembersRequest struct {
ctx context.Context
- ApiService *MembersApiService
+ ApiService *MembersAPIService
productId string
}
-func (r MembersApiGetProductMembersRequest) Execute() ([]MemberModel, *http.Response, error) {
+func (r MembersAPIGetProductMembersRequest) Execute() ([]MemberModel, *http.Response, error) {
return r.ApiService.GetProductMembersExecute(r)
}
@@ -866,10 +866,10 @@ to the given Product, identified by the `productId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return MembersApiGetProductMembersRequest
+ @return MembersAPIGetProductMembersRequest
*/
-func (a *MembersApiService) GetProductMembers(ctx context.Context, productId string) MembersApiGetProductMembersRequest {
- return MembersApiGetProductMembersRequest{
+func (a *MembersAPIService) GetProductMembers(ctx context.Context, productId string) MembersAPIGetProductMembersRequest {
+ return MembersAPIGetProductMembersRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -878,7 +878,7 @@ func (a *MembersApiService) GetProductMembers(ctx context.Context, productId str
// Execute executes the request
// @return []MemberModel
-func (a *MembersApiService) GetProductMembersExecute(r MembersApiGetProductMembersRequest) ([]MemberModel, *http.Response, error) {
+func (a *MembersAPIService) GetProductMembersExecute(r MembersAPIGetProductMembersRequest) ([]MemberModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -886,7 +886,7 @@ func (a *MembersApiService) GetProductMembersExecute(r MembersApiGetProductMembe
localVarReturnValue []MemberModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersApiService.GetProductMembers")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersAPIService.GetProductMembers")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -952,19 +952,19 @@ func (a *MembersApiService) GetProductMembersExecute(r MembersApiGetProductMembe
return localVarReturnValue, localVarHTTPResponse, nil
}
-type MembersApiInviteMemberRequest struct {
+type MembersAPIInviteMemberRequest struct {
ctx context.Context
- ApiService *MembersApiService
+ ApiService *MembersAPIService
productId string
inviteMembersRequest *InviteMembersRequest
}
-func (r MembersApiInviteMemberRequest) InviteMembersRequest(inviteMembersRequest InviteMembersRequest) MembersApiInviteMemberRequest {
+func (r MembersAPIInviteMemberRequest) InviteMembersRequest(inviteMembersRequest InviteMembersRequest) MembersAPIInviteMemberRequest {
r.inviteMembersRequest = &inviteMembersRequest
return r
}
-func (r MembersApiInviteMemberRequest) Execute() (*http.Response, error) {
+func (r MembersAPIInviteMemberRequest) Execute() (*http.Response, error) {
return r.ApiService.InviteMemberExecute(r)
}
@@ -975,10 +975,10 @@ This endpoint invites a Member into the given Product identified by the `product
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return MembersApiInviteMemberRequest
+ @return MembersAPIInviteMemberRequest
*/
-func (a *MembersApiService) InviteMember(ctx context.Context, productId string) MembersApiInviteMemberRequest {
- return MembersApiInviteMemberRequest{
+func (a *MembersAPIService) InviteMember(ctx context.Context, productId string) MembersAPIInviteMemberRequest {
+ return MembersAPIInviteMemberRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -986,14 +986,14 @@ func (a *MembersApiService) InviteMember(ctx context.Context, productId string)
}
// Execute executes the request
-func (a *MembersApiService) InviteMemberExecute(r MembersApiInviteMemberRequest) (*http.Response, error) {
+func (a *MembersAPIService) InviteMemberExecute(r MembersAPIInviteMemberRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersApiService.InviteMember")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MembersAPIService.InviteMember")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_organizations.go b/api_organizations.go
index 5f48f8f..ae19453 100644
--- a/api_organizations.go
+++ b/api_organizations.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -20,15 +20,15 @@ import (
)
-// OrganizationsApiService OrganizationsApi service
-type OrganizationsApiService service
+// OrganizationsAPIService OrganizationsAPI service
+type OrganizationsAPIService service
-type OrganizationsApiGetOrganizationsRequest struct {
+type OrganizationsAPIGetOrganizationsRequest struct {
ctx context.Context
- ApiService *OrganizationsApiService
+ ApiService *OrganizationsAPIService
}
-func (r OrganizationsApiGetOrganizationsRequest) Execute() ([]OrganizationModel, *http.Response, error) {
+func (r OrganizationsAPIGetOrganizationsRequest) Execute() ([]OrganizationModel, *http.Response, error) {
return r.ApiService.GetOrganizationsExecute(r)
}
@@ -38,10 +38,10 @@ GetOrganizations List Organizations
This endpoint returns the list of the Organizations that belongs to the user.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return OrganizationsApiGetOrganizationsRequest
+ @return OrganizationsAPIGetOrganizationsRequest
*/
-func (a *OrganizationsApiService) GetOrganizations(ctx context.Context) OrganizationsApiGetOrganizationsRequest {
- return OrganizationsApiGetOrganizationsRequest{
+func (a *OrganizationsAPIService) GetOrganizations(ctx context.Context) OrganizationsAPIGetOrganizationsRequest {
+ return OrganizationsAPIGetOrganizationsRequest{
ApiService: a,
ctx: ctx,
}
@@ -49,7 +49,7 @@ func (a *OrganizationsApiService) GetOrganizations(ctx context.Context) Organiza
// Execute executes the request
// @return []OrganizationModel
-func (a *OrganizationsApiService) GetOrganizationsExecute(r OrganizationsApiGetOrganizationsRequest) ([]OrganizationModel, *http.Response, error) {
+func (a *OrganizationsAPIService) GetOrganizationsExecute(r OrganizationsAPIGetOrganizationsRequest) ([]OrganizationModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -57,7 +57,7 @@ func (a *OrganizationsApiService) GetOrganizationsExecute(r OrganizationsApiGetO
localVarReturnValue []OrganizationModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsApiService.GetOrganizations")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.GetOrganizations")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_permission_groups.go b/api_permission_groups.go
index ca8625a..27a316f 100644
--- a/api_permission_groups.go
+++ b/api_permission_groups.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,22 +21,22 @@ import (
)
-// PermissionGroupsApiService PermissionGroupsApi service
-type PermissionGroupsApiService service
+// PermissionGroupsAPIService PermissionGroupsAPI service
+type PermissionGroupsAPIService service
-type PermissionGroupsApiCreatePermissionGroupRequest struct {
+type PermissionGroupsAPICreatePermissionGroupRequest struct {
ctx context.Context
- ApiService *PermissionGroupsApiService
+ ApiService *PermissionGroupsAPIService
productId string
createPermissionGroupRequest *CreatePermissionGroupRequest
}
-func (r PermissionGroupsApiCreatePermissionGroupRequest) CreatePermissionGroupRequest(createPermissionGroupRequest CreatePermissionGroupRequest) PermissionGroupsApiCreatePermissionGroupRequest {
+func (r PermissionGroupsAPICreatePermissionGroupRequest) CreatePermissionGroupRequest(createPermissionGroupRequest CreatePermissionGroupRequest) PermissionGroupsAPICreatePermissionGroupRequest {
r.createPermissionGroupRequest = &createPermissionGroupRequest
return r
}
-func (r PermissionGroupsApiCreatePermissionGroupRequest) Execute() (*PermissionGroupModel, *http.Response, error) {
+func (r PermissionGroupsAPICreatePermissionGroupRequest) Execute() (*PermissionGroupModel, *http.Response, error) {
return r.ApiService.CreatePermissionGroupExecute(r)
}
@@ -48,10 +48,10 @@ identified by the `productId` parameter, which can be obtained from the [List Pr
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return PermissionGroupsApiCreatePermissionGroupRequest
+ @return PermissionGroupsAPICreatePermissionGroupRequest
*/
-func (a *PermissionGroupsApiService) CreatePermissionGroup(ctx context.Context, productId string) PermissionGroupsApiCreatePermissionGroupRequest {
- return PermissionGroupsApiCreatePermissionGroupRequest{
+func (a *PermissionGroupsAPIService) CreatePermissionGroup(ctx context.Context, productId string) PermissionGroupsAPICreatePermissionGroupRequest {
+ return PermissionGroupsAPICreatePermissionGroupRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -60,7 +60,7 @@ func (a *PermissionGroupsApiService) CreatePermissionGroup(ctx context.Context,
// Execute executes the request
// @return PermissionGroupModel
-func (a *PermissionGroupsApiService) CreatePermissionGroupExecute(r PermissionGroupsApiCreatePermissionGroupRequest) (*PermissionGroupModel, *http.Response, error) {
+func (a *PermissionGroupsAPIService) CreatePermissionGroupExecute(r PermissionGroupsAPICreatePermissionGroupRequest) (*PermissionGroupModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -68,7 +68,7 @@ func (a *PermissionGroupsApiService) CreatePermissionGroupExecute(r PermissionGr
localVarReturnValue *PermissionGroupModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionGroupsApiService.CreatePermissionGroup")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionGroupsAPIService.CreatePermissionGroup")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -139,13 +139,13 @@ func (a *PermissionGroupsApiService) CreatePermissionGroupExecute(r PermissionGr
return localVarReturnValue, localVarHTTPResponse, nil
}
-type PermissionGroupsApiDeletePermissionGroupRequest struct {
+type PermissionGroupsAPIDeletePermissionGroupRequest struct {
ctx context.Context
- ApiService *PermissionGroupsApiService
+ ApiService *PermissionGroupsAPIService
permissionGroupId int64
}
-func (r PermissionGroupsApiDeletePermissionGroupRequest) Execute() (*http.Response, error) {
+func (r PermissionGroupsAPIDeletePermissionGroupRequest) Execute() (*http.Response, error) {
return r.ApiService.DeletePermissionGroupExecute(r)
}
@@ -156,10 +156,10 @@ This endpoint removes a Permission Group identified by the `permissionGroupId` p
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param permissionGroupId The identifier of the Permission Group.
- @return PermissionGroupsApiDeletePermissionGroupRequest
+ @return PermissionGroupsAPIDeletePermissionGroupRequest
*/
-func (a *PermissionGroupsApiService) DeletePermissionGroup(ctx context.Context, permissionGroupId int64) PermissionGroupsApiDeletePermissionGroupRequest {
- return PermissionGroupsApiDeletePermissionGroupRequest{
+func (a *PermissionGroupsAPIService) DeletePermissionGroup(ctx context.Context, permissionGroupId int64) PermissionGroupsAPIDeletePermissionGroupRequest {
+ return PermissionGroupsAPIDeletePermissionGroupRequest{
ApiService: a,
ctx: ctx,
permissionGroupId: permissionGroupId,
@@ -167,14 +167,14 @@ func (a *PermissionGroupsApiService) DeletePermissionGroup(ctx context.Context,
}
// Execute executes the request
-func (a *PermissionGroupsApiService) DeletePermissionGroupExecute(r PermissionGroupsApiDeletePermissionGroupRequest) (*http.Response, error) {
+func (a *PermissionGroupsAPIService) DeletePermissionGroupExecute(r PermissionGroupsAPIDeletePermissionGroupRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionGroupsApiService.DeletePermissionGroup")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionGroupsAPIService.DeletePermissionGroup")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -231,13 +231,13 @@ func (a *PermissionGroupsApiService) DeletePermissionGroupExecute(r PermissionGr
return localVarHTTPResponse, nil
}
-type PermissionGroupsApiGetPermissionGroupRequest struct {
+type PermissionGroupsAPIGetPermissionGroupRequest struct {
ctx context.Context
- ApiService *PermissionGroupsApiService
+ ApiService *PermissionGroupsAPIService
permissionGroupId int64
}
-func (r PermissionGroupsApiGetPermissionGroupRequest) Execute() (*PermissionGroupModel, *http.Response, error) {
+func (r PermissionGroupsAPIGetPermissionGroupRequest) Execute() (*PermissionGroupModel, *http.Response, error) {
return r.ApiService.GetPermissionGroupExecute(r)
}
@@ -249,10 +249,10 @@ identified by the `permissionGroupId`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param permissionGroupId The identifier of the Permission Group.
- @return PermissionGroupsApiGetPermissionGroupRequest
+ @return PermissionGroupsAPIGetPermissionGroupRequest
*/
-func (a *PermissionGroupsApiService) GetPermissionGroup(ctx context.Context, permissionGroupId int64) PermissionGroupsApiGetPermissionGroupRequest {
- return PermissionGroupsApiGetPermissionGroupRequest{
+func (a *PermissionGroupsAPIService) GetPermissionGroup(ctx context.Context, permissionGroupId int64) PermissionGroupsAPIGetPermissionGroupRequest {
+ return PermissionGroupsAPIGetPermissionGroupRequest{
ApiService: a,
ctx: ctx,
permissionGroupId: permissionGroupId,
@@ -261,7 +261,7 @@ func (a *PermissionGroupsApiService) GetPermissionGroup(ctx context.Context, per
// Execute executes the request
// @return PermissionGroupModel
-func (a *PermissionGroupsApiService) GetPermissionGroupExecute(r PermissionGroupsApiGetPermissionGroupRequest) (*PermissionGroupModel, *http.Response, error) {
+func (a *PermissionGroupsAPIService) GetPermissionGroupExecute(r PermissionGroupsAPIGetPermissionGroupRequest) (*PermissionGroupModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -269,7 +269,7 @@ func (a *PermissionGroupsApiService) GetPermissionGroupExecute(r PermissionGroup
localVarReturnValue *PermissionGroupModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionGroupsApiService.GetPermissionGroup")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionGroupsAPIService.GetPermissionGroup")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -335,13 +335,13 @@ func (a *PermissionGroupsApiService) GetPermissionGroupExecute(r PermissionGroup
return localVarReturnValue, localVarHTTPResponse, nil
}
-type PermissionGroupsApiGetPermissionGroupsRequest struct {
+type PermissionGroupsAPIGetPermissionGroupsRequest struct {
ctx context.Context
- ApiService *PermissionGroupsApiService
+ ApiService *PermissionGroupsAPIService
productId string
}
-func (r PermissionGroupsApiGetPermissionGroupsRequest) Execute() ([]PermissionGroupModel, *http.Response, error) {
+func (r PermissionGroupsAPIGetPermissionGroupsRequest) Execute() ([]PermissionGroupModel, *http.Response, error) {
return r.ApiService.GetPermissionGroupsExecute(r)
}
@@ -353,10 +353,10 @@ This endpoint returns the list of the Permission Groups that belongs to the give
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return PermissionGroupsApiGetPermissionGroupsRequest
+ @return PermissionGroupsAPIGetPermissionGroupsRequest
*/
-func (a *PermissionGroupsApiService) GetPermissionGroups(ctx context.Context, productId string) PermissionGroupsApiGetPermissionGroupsRequest {
- return PermissionGroupsApiGetPermissionGroupsRequest{
+func (a *PermissionGroupsAPIService) GetPermissionGroups(ctx context.Context, productId string) PermissionGroupsAPIGetPermissionGroupsRequest {
+ return PermissionGroupsAPIGetPermissionGroupsRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -365,7 +365,7 @@ func (a *PermissionGroupsApiService) GetPermissionGroups(ctx context.Context, pr
// Execute executes the request
// @return []PermissionGroupModel
-func (a *PermissionGroupsApiService) GetPermissionGroupsExecute(r PermissionGroupsApiGetPermissionGroupsRequest) ([]PermissionGroupModel, *http.Response, error) {
+func (a *PermissionGroupsAPIService) GetPermissionGroupsExecute(r PermissionGroupsAPIGetPermissionGroupsRequest) ([]PermissionGroupModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -373,7 +373,7 @@ func (a *PermissionGroupsApiService) GetPermissionGroupsExecute(r PermissionGrou
localVarReturnValue []PermissionGroupModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionGroupsApiService.GetPermissionGroups")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionGroupsAPIService.GetPermissionGroups")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -439,19 +439,19 @@ func (a *PermissionGroupsApiService) GetPermissionGroupsExecute(r PermissionGrou
return localVarReturnValue, localVarHTTPResponse, nil
}
-type PermissionGroupsApiUpdatePermissionGroupRequest struct {
+type PermissionGroupsAPIUpdatePermissionGroupRequest struct {
ctx context.Context
- ApiService *PermissionGroupsApiService
+ ApiService *PermissionGroupsAPIService
permissionGroupId int64
updatePermissionGroupRequest *UpdatePermissionGroupRequest
}
-func (r PermissionGroupsApiUpdatePermissionGroupRequest) UpdatePermissionGroupRequest(updatePermissionGroupRequest UpdatePermissionGroupRequest) PermissionGroupsApiUpdatePermissionGroupRequest {
+func (r PermissionGroupsAPIUpdatePermissionGroupRequest) UpdatePermissionGroupRequest(updatePermissionGroupRequest UpdatePermissionGroupRequest) PermissionGroupsAPIUpdatePermissionGroupRequest {
r.updatePermissionGroupRequest = &updatePermissionGroupRequest
return r
}
-func (r PermissionGroupsApiUpdatePermissionGroupRequest) Execute() (*PermissionGroupModel, *http.Response, error) {
+func (r PermissionGroupsAPIUpdatePermissionGroupRequest) Execute() (*PermissionGroupModel, *http.Response, error) {
return r.ApiService.UpdatePermissionGroupExecute(r)
}
@@ -462,10 +462,10 @@ This endpoint updates a Permission Group identified by the `permissionGroupId` p
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param permissionGroupId The identifier of the Permission Group.
- @return PermissionGroupsApiUpdatePermissionGroupRequest
+ @return PermissionGroupsAPIUpdatePermissionGroupRequest
*/
-func (a *PermissionGroupsApiService) UpdatePermissionGroup(ctx context.Context, permissionGroupId int64) PermissionGroupsApiUpdatePermissionGroupRequest {
- return PermissionGroupsApiUpdatePermissionGroupRequest{
+func (a *PermissionGroupsAPIService) UpdatePermissionGroup(ctx context.Context, permissionGroupId int64) PermissionGroupsAPIUpdatePermissionGroupRequest {
+ return PermissionGroupsAPIUpdatePermissionGroupRequest{
ApiService: a,
ctx: ctx,
permissionGroupId: permissionGroupId,
@@ -474,7 +474,7 @@ func (a *PermissionGroupsApiService) UpdatePermissionGroup(ctx context.Context,
// Execute executes the request
// @return PermissionGroupModel
-func (a *PermissionGroupsApiService) UpdatePermissionGroupExecute(r PermissionGroupsApiUpdatePermissionGroupRequest) (*PermissionGroupModel, *http.Response, error) {
+func (a *PermissionGroupsAPIService) UpdatePermissionGroupExecute(r PermissionGroupsAPIUpdatePermissionGroupRequest) (*PermissionGroupModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -482,7 +482,7 @@ func (a *PermissionGroupsApiService) UpdatePermissionGroupExecute(r PermissionGr
localVarReturnValue *PermissionGroupModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionGroupsApiService.UpdatePermissionGroup")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionGroupsAPIService.UpdatePermissionGroup")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_products.go b/api_products.go
index 3944e64..f05d1ad 100644
--- a/api_products.go
+++ b/api_products.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,22 +21,22 @@ import (
)
-// ProductsApiService ProductsApi service
-type ProductsApiService service
+// ProductsAPIService ProductsAPI service
+type ProductsAPIService service
-type ProductsApiCreateProductRequest struct {
+type ProductsAPICreateProductRequest struct {
ctx context.Context
- ApiService *ProductsApiService
+ ApiService *ProductsAPIService
organizationId string
createProductRequest *CreateProductRequest
}
-func (r ProductsApiCreateProductRequest) CreateProductRequest(createProductRequest CreateProductRequest) ProductsApiCreateProductRequest {
+func (r ProductsAPICreateProductRequest) CreateProductRequest(createProductRequest CreateProductRequest) ProductsAPICreateProductRequest {
r.createProductRequest = &createProductRequest
return r
}
-func (r ProductsApiCreateProductRequest) Execute() (*ProductModel, *http.Response, error) {
+func (r ProductsAPICreateProductRequest) Execute() (*ProductModel, *http.Response, error) {
return r.ApiService.CreateProductExecute(r)
}
@@ -48,10 +48,10 @@ identified by the `organizationId` parameter, which can be obtained from the [Li
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param organizationId The identifier of the Organization.
- @return ProductsApiCreateProductRequest
+ @return ProductsAPICreateProductRequest
*/
-func (a *ProductsApiService) CreateProduct(ctx context.Context, organizationId string) ProductsApiCreateProductRequest {
- return ProductsApiCreateProductRequest{
+func (a *ProductsAPIService) CreateProduct(ctx context.Context, organizationId string) ProductsAPICreateProductRequest {
+ return ProductsAPICreateProductRequest{
ApiService: a,
ctx: ctx,
organizationId: organizationId,
@@ -60,7 +60,7 @@ func (a *ProductsApiService) CreateProduct(ctx context.Context, organizationId s
// Execute executes the request
// @return ProductModel
-func (a *ProductsApiService) CreateProductExecute(r ProductsApiCreateProductRequest) (*ProductModel, *http.Response, error) {
+func (a *ProductsAPIService) CreateProductExecute(r ProductsAPICreateProductRequest) (*ProductModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -68,7 +68,7 @@ func (a *ProductsApiService) CreateProductExecute(r ProductsApiCreateProductRequ
localVarReturnValue *ProductModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProductsApiService.CreateProduct")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProductsAPIService.CreateProduct")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -139,13 +139,13 @@ func (a *ProductsApiService) CreateProductExecute(r ProductsApiCreateProductRequ
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ProductsApiDeleteProductRequest struct {
+type ProductsAPIDeleteProductRequest struct {
ctx context.Context
- ApiService *ProductsApiService
+ ApiService *ProductsAPIService
productId string
}
-func (r ProductsApiDeleteProductRequest) Execute() (*http.Response, error) {
+func (r ProductsAPIDeleteProductRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteProductExecute(r)
}
@@ -156,10 +156,10 @@ This endpoint removes a Product identified by the `productId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return ProductsApiDeleteProductRequest
+ @return ProductsAPIDeleteProductRequest
*/
-func (a *ProductsApiService) DeleteProduct(ctx context.Context, productId string) ProductsApiDeleteProductRequest {
- return ProductsApiDeleteProductRequest{
+func (a *ProductsAPIService) DeleteProduct(ctx context.Context, productId string) ProductsAPIDeleteProductRequest {
+ return ProductsAPIDeleteProductRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -167,14 +167,14 @@ func (a *ProductsApiService) DeleteProduct(ctx context.Context, productId string
}
// Execute executes the request
-func (a *ProductsApiService) DeleteProductExecute(r ProductsApiDeleteProductRequest) (*http.Response, error) {
+func (a *ProductsAPIService) DeleteProductExecute(r ProductsAPIDeleteProductRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProductsApiService.DeleteProduct")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProductsAPIService.DeleteProduct")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -231,13 +231,13 @@ func (a *ProductsApiService) DeleteProductExecute(r ProductsApiDeleteProductRequ
return localVarHTTPResponse, nil
}
-type ProductsApiGetProductRequest struct {
+type ProductsAPIGetProductRequest struct {
ctx context.Context
- ApiService *ProductsApiService
+ ApiService *ProductsAPIService
productId string
}
-func (r ProductsApiGetProductRequest) Execute() (*ProductModel, *http.Response, error) {
+func (r ProductsAPIGetProductRequest) Execute() (*ProductModel, *http.Response, error) {
return r.ApiService.GetProductExecute(r)
}
@@ -249,10 +249,10 @@ identified by the `productId`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return ProductsApiGetProductRequest
+ @return ProductsAPIGetProductRequest
*/
-func (a *ProductsApiService) GetProduct(ctx context.Context, productId string) ProductsApiGetProductRequest {
- return ProductsApiGetProductRequest{
+func (a *ProductsAPIService) GetProduct(ctx context.Context, productId string) ProductsAPIGetProductRequest {
+ return ProductsAPIGetProductRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -261,7 +261,7 @@ func (a *ProductsApiService) GetProduct(ctx context.Context, productId string) P
// Execute executes the request
// @return ProductModel
-func (a *ProductsApiService) GetProductExecute(r ProductsApiGetProductRequest) (*ProductModel, *http.Response, error) {
+func (a *ProductsAPIService) GetProductExecute(r ProductsAPIGetProductRequest) (*ProductModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -269,7 +269,7 @@ func (a *ProductsApiService) GetProductExecute(r ProductsApiGetProductRequest) (
localVarReturnValue *ProductModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProductsApiService.GetProduct")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProductsAPIService.GetProduct")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -335,13 +335,13 @@ func (a *ProductsApiService) GetProductExecute(r ProductsApiGetProductRequest) (
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ProductsApiGetProductPreferencesRequest struct {
+type ProductsAPIGetProductPreferencesRequest struct {
ctx context.Context
- ApiService *ProductsApiService
+ ApiService *ProductsAPIService
productId string
}
-func (r ProductsApiGetProductPreferencesRequest) Execute() (*PreferencesModel, *http.Response, error) {
+func (r ProductsAPIGetProductPreferencesRequest) Execute() (*PreferencesModel, *http.Response, error) {
return r.ApiService.GetProductPreferencesExecute(r)
}
@@ -353,10 +353,10 @@ identified by the `productId`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return ProductsApiGetProductPreferencesRequest
+ @return ProductsAPIGetProductPreferencesRequest
*/
-func (a *ProductsApiService) GetProductPreferences(ctx context.Context, productId string) ProductsApiGetProductPreferencesRequest {
- return ProductsApiGetProductPreferencesRequest{
+func (a *ProductsAPIService) GetProductPreferences(ctx context.Context, productId string) ProductsAPIGetProductPreferencesRequest {
+ return ProductsAPIGetProductPreferencesRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -365,7 +365,7 @@ func (a *ProductsApiService) GetProductPreferences(ctx context.Context, productI
// Execute executes the request
// @return PreferencesModel
-func (a *ProductsApiService) GetProductPreferencesExecute(r ProductsApiGetProductPreferencesRequest) (*PreferencesModel, *http.Response, error) {
+func (a *ProductsAPIService) GetProductPreferencesExecute(r ProductsAPIGetProductPreferencesRequest) (*PreferencesModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -373,7 +373,7 @@ func (a *ProductsApiService) GetProductPreferencesExecute(r ProductsApiGetProduc
localVarReturnValue *PreferencesModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProductsApiService.GetProductPreferences")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProductsAPIService.GetProductPreferences")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -439,12 +439,12 @@ func (a *ProductsApiService) GetProductPreferencesExecute(r ProductsApiGetProduc
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ProductsApiGetProductsRequest struct {
+type ProductsAPIGetProductsRequest struct {
ctx context.Context
- ApiService *ProductsApiService
+ ApiService *ProductsAPIService
}
-func (r ProductsApiGetProductsRequest) Execute() ([]ProductModel, *http.Response, error) {
+func (r ProductsAPIGetProductsRequest) Execute() ([]ProductModel, *http.Response, error) {
return r.ApiService.GetProductsExecute(r)
}
@@ -454,10 +454,10 @@ GetProducts List Products
This endpoint returns the list of the Products that belongs to the user.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ProductsApiGetProductsRequest
+ @return ProductsAPIGetProductsRequest
*/
-func (a *ProductsApiService) GetProducts(ctx context.Context) ProductsApiGetProductsRequest {
- return ProductsApiGetProductsRequest{
+func (a *ProductsAPIService) GetProducts(ctx context.Context) ProductsAPIGetProductsRequest {
+ return ProductsAPIGetProductsRequest{
ApiService: a,
ctx: ctx,
}
@@ -465,7 +465,7 @@ func (a *ProductsApiService) GetProducts(ctx context.Context) ProductsApiGetProd
// Execute executes the request
// @return []ProductModel
-func (a *ProductsApiService) GetProductsExecute(r ProductsApiGetProductsRequest) ([]ProductModel, *http.Response, error) {
+func (a *ProductsAPIService) GetProductsExecute(r ProductsAPIGetProductsRequest) ([]ProductModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -473,7 +473,7 @@ func (a *ProductsApiService) GetProductsExecute(r ProductsApiGetProductsRequest)
localVarReturnValue []ProductModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProductsApiService.GetProducts")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProductsAPIService.GetProducts")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -538,19 +538,19 @@ func (a *ProductsApiService) GetProductsExecute(r ProductsApiGetProductsRequest)
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ProductsApiUpdateProductRequest struct {
+type ProductsAPIUpdateProductRequest struct {
ctx context.Context
- ApiService *ProductsApiService
+ ApiService *ProductsAPIService
productId string
updateProductRequest *UpdateProductRequest
}
-func (r ProductsApiUpdateProductRequest) UpdateProductRequest(updateProductRequest UpdateProductRequest) ProductsApiUpdateProductRequest {
+func (r ProductsAPIUpdateProductRequest) UpdateProductRequest(updateProductRequest UpdateProductRequest) ProductsAPIUpdateProductRequest {
r.updateProductRequest = &updateProductRequest
return r
}
-func (r ProductsApiUpdateProductRequest) Execute() (*ProductModel, *http.Response, error) {
+func (r ProductsAPIUpdateProductRequest) Execute() (*ProductModel, *http.Response, error) {
return r.ApiService.UpdateProductExecute(r)
}
@@ -561,10 +561,10 @@ This endpoint updates a Product identified by the `productId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return ProductsApiUpdateProductRequest
+ @return ProductsAPIUpdateProductRequest
*/
-func (a *ProductsApiService) UpdateProduct(ctx context.Context, productId string) ProductsApiUpdateProductRequest {
- return ProductsApiUpdateProductRequest{
+func (a *ProductsAPIService) UpdateProduct(ctx context.Context, productId string) ProductsAPIUpdateProductRequest {
+ return ProductsAPIUpdateProductRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -573,7 +573,7 @@ func (a *ProductsApiService) UpdateProduct(ctx context.Context, productId string
// Execute executes the request
// @return ProductModel
-func (a *ProductsApiService) UpdateProductExecute(r ProductsApiUpdateProductRequest) (*ProductModel, *http.Response, error) {
+func (a *ProductsAPIService) UpdateProductExecute(r ProductsAPIUpdateProductRequest) (*ProductModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -581,7 +581,7 @@ func (a *ProductsApiService) UpdateProductExecute(r ProductsApiUpdateProductRequ
localVarReturnValue *ProductModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProductsApiService.UpdateProduct")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProductsAPIService.UpdateProduct")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -652,19 +652,19 @@ func (a *ProductsApiService) UpdateProductExecute(r ProductsApiUpdateProductRequ
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ProductsApiUpdateProductPreferencesRequest struct {
+type ProductsAPIUpdateProductPreferencesRequest struct {
ctx context.Context
- ApiService *ProductsApiService
+ ApiService *ProductsAPIService
productId string
updatePreferencesRequest *UpdatePreferencesRequest
}
-func (r ProductsApiUpdateProductPreferencesRequest) UpdatePreferencesRequest(updatePreferencesRequest UpdatePreferencesRequest) ProductsApiUpdateProductPreferencesRequest {
+func (r ProductsAPIUpdateProductPreferencesRequest) UpdatePreferencesRequest(updatePreferencesRequest UpdatePreferencesRequest) ProductsAPIUpdateProductPreferencesRequest {
r.updatePreferencesRequest = &updatePreferencesRequest
return r
}
-func (r ProductsApiUpdateProductPreferencesRequest) Execute() (*PreferencesModel, *http.Response, error) {
+func (r ProductsAPIUpdateProductPreferencesRequest) Execute() (*PreferencesModel, *http.Response, error) {
return r.ApiService.UpdateProductPreferencesExecute(r)
}
@@ -675,10 +675,10 @@ This endpoint updates the preferences of a Product identified by the `productId`
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return ProductsApiUpdateProductPreferencesRequest
+ @return ProductsAPIUpdateProductPreferencesRequest
*/
-func (a *ProductsApiService) UpdateProductPreferences(ctx context.Context, productId string) ProductsApiUpdateProductPreferencesRequest {
- return ProductsApiUpdateProductPreferencesRequest{
+func (a *ProductsAPIService) UpdateProductPreferences(ctx context.Context, productId string) ProductsAPIUpdateProductPreferencesRequest {
+ return ProductsAPIUpdateProductPreferencesRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -687,7 +687,7 @@ func (a *ProductsApiService) UpdateProductPreferences(ctx context.Context, produ
// Execute executes the request
// @return PreferencesModel
-func (a *ProductsApiService) UpdateProductPreferencesExecute(r ProductsApiUpdateProductPreferencesRequest) (*PreferencesModel, *http.Response, error) {
+func (a *ProductsAPIService) UpdateProductPreferencesExecute(r ProductsAPIUpdateProductPreferencesRequest) (*PreferencesModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -695,7 +695,7 @@ func (a *ProductsApiService) UpdateProductPreferencesExecute(r ProductsApiUpdate
localVarReturnValue *PreferencesModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProductsApiService.UpdateProductPreferences")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProductsAPIService.UpdateProductPreferences")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_sdk_keys.go b/api_sdk_keys.go
index 1c23f00..3fa2bc4 100644
--- a/api_sdk_keys.go
+++ b/api_sdk_keys.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,17 +21,17 @@ import (
)
-// SDKKeysApiService SDKKeysApi service
-type SDKKeysApiService service
+// SDKKeysAPIService SDKKeysAPI service
+type SDKKeysAPIService service
-type SDKKeysApiGetSdkKeysRequest struct {
+type SDKKeysAPIGetSdkKeysRequest struct {
ctx context.Context
- ApiService *SDKKeysApiService
+ ApiService *SDKKeysAPIService
configId string
environmentId string
}
-func (r SDKKeysApiGetSdkKeysRequest) Execute() (*SdkKeysModel, *http.Response, error) {
+func (r SDKKeysAPIGetSdkKeysRequest) Execute() (*SdkKeysModel, *http.Response, error) {
return r.ApiService.GetSdkKeysExecute(r)
}
@@ -43,10 +43,10 @@ This endpoint returns the SDK Key for your Config in a specified Environment.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param configId The identifier of the Config.
@param environmentId The identifier of the Environment.
- @return SDKKeysApiGetSdkKeysRequest
+ @return SDKKeysAPIGetSdkKeysRequest
*/
-func (a *SDKKeysApiService) GetSdkKeys(ctx context.Context, configId string, environmentId string) SDKKeysApiGetSdkKeysRequest {
- return SDKKeysApiGetSdkKeysRequest{
+func (a *SDKKeysAPIService) GetSdkKeys(ctx context.Context, configId string, environmentId string) SDKKeysAPIGetSdkKeysRequest {
+ return SDKKeysAPIGetSdkKeysRequest{
ApiService: a,
ctx: ctx,
configId: configId,
@@ -56,7 +56,7 @@ func (a *SDKKeysApiService) GetSdkKeys(ctx context.Context, configId string, env
// Execute executes the request
// @return SdkKeysModel
-func (a *SDKKeysApiService) GetSdkKeysExecute(r SDKKeysApiGetSdkKeysRequest) (*SdkKeysModel, *http.Response, error) {
+func (a *SDKKeysAPIService) GetSdkKeysExecute(r SDKKeysAPIGetSdkKeysRequest) (*SdkKeysModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -64,7 +64,7 @@ func (a *SDKKeysApiService) GetSdkKeysExecute(r SDKKeysApiGetSdkKeysRequest) (*S
localVarReturnValue *SdkKeysModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SDKKeysApiService.GetSdkKeys")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SDKKeysAPIService.GetSdkKeys")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_segments.go b/api_segments.go
index 4a141c1..19e14f0 100644
--- a/api_segments.go
+++ b/api_segments.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,22 +21,22 @@ import (
)
-// SegmentsApiService SegmentsApi service
-type SegmentsApiService service
+// SegmentsAPIService SegmentsAPI service
+type SegmentsAPIService service
-type SegmentsApiCreateSegmentRequest struct {
+type SegmentsAPICreateSegmentRequest struct {
ctx context.Context
- ApiService *SegmentsApiService
+ ApiService *SegmentsAPIService
productId string
createSegmentModel *CreateSegmentModel
}
-func (r SegmentsApiCreateSegmentRequest) CreateSegmentModel(createSegmentModel CreateSegmentModel) SegmentsApiCreateSegmentRequest {
+func (r SegmentsAPICreateSegmentRequest) CreateSegmentModel(createSegmentModel CreateSegmentModel) SegmentsAPICreateSegmentRequest {
r.createSegmentModel = &createSegmentModel
return r
}
-func (r SegmentsApiCreateSegmentRequest) Execute() (*SegmentModel, *http.Response, error) {
+func (r SegmentsAPICreateSegmentRequest) Execute() (*SegmentModel, *http.Response, error) {
return r.ApiService.CreateSegmentExecute(r)
}
@@ -48,10 +48,10 @@ identified by the `productId` parameter, which can be obtained from the [List Pr
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return SegmentsApiCreateSegmentRequest
+ @return SegmentsAPICreateSegmentRequest
*/
-func (a *SegmentsApiService) CreateSegment(ctx context.Context, productId string) SegmentsApiCreateSegmentRequest {
- return SegmentsApiCreateSegmentRequest{
+func (a *SegmentsAPIService) CreateSegment(ctx context.Context, productId string) SegmentsAPICreateSegmentRequest {
+ return SegmentsAPICreateSegmentRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -60,7 +60,7 @@ func (a *SegmentsApiService) CreateSegment(ctx context.Context, productId string
// Execute executes the request
// @return SegmentModel
-func (a *SegmentsApiService) CreateSegmentExecute(r SegmentsApiCreateSegmentRequest) (*SegmentModel, *http.Response, error) {
+func (a *SegmentsAPIService) CreateSegmentExecute(r SegmentsAPICreateSegmentRequest) (*SegmentModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -68,7 +68,7 @@ func (a *SegmentsApiService) CreateSegmentExecute(r SegmentsApiCreateSegmentRequ
localVarReturnValue *SegmentModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SegmentsApiService.CreateSegment")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SegmentsAPIService.CreateSegment")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -139,13 +139,13 @@ func (a *SegmentsApiService) CreateSegmentExecute(r SegmentsApiCreateSegmentRequ
return localVarReturnValue, localVarHTTPResponse, nil
}
-type SegmentsApiDeleteSegmentRequest struct {
+type SegmentsAPIDeleteSegmentRequest struct {
ctx context.Context
- ApiService *SegmentsApiService
+ ApiService *SegmentsAPIService
segmentId string
}
-func (r SegmentsApiDeleteSegmentRequest) Execute() (*http.Response, error) {
+func (r SegmentsAPIDeleteSegmentRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteSegmentExecute(r)
}
@@ -156,10 +156,10 @@ This endpoint removes a Segment identified by the `segmentId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param segmentId The identifier of the Segment.
- @return SegmentsApiDeleteSegmentRequest
+ @return SegmentsAPIDeleteSegmentRequest
*/
-func (a *SegmentsApiService) DeleteSegment(ctx context.Context, segmentId string) SegmentsApiDeleteSegmentRequest {
- return SegmentsApiDeleteSegmentRequest{
+func (a *SegmentsAPIService) DeleteSegment(ctx context.Context, segmentId string) SegmentsAPIDeleteSegmentRequest {
+ return SegmentsAPIDeleteSegmentRequest{
ApiService: a,
ctx: ctx,
segmentId: segmentId,
@@ -167,14 +167,14 @@ func (a *SegmentsApiService) DeleteSegment(ctx context.Context, segmentId string
}
// Execute executes the request
-func (a *SegmentsApiService) DeleteSegmentExecute(r SegmentsApiDeleteSegmentRequest) (*http.Response, error) {
+func (a *SegmentsAPIService) DeleteSegmentExecute(r SegmentsAPIDeleteSegmentRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SegmentsApiService.DeleteSegment")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SegmentsAPIService.DeleteSegment")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -231,13 +231,13 @@ func (a *SegmentsApiService) DeleteSegmentExecute(r SegmentsApiDeleteSegmentRequ
return localVarHTTPResponse, nil
}
-type SegmentsApiGetSegmentRequest struct {
+type SegmentsAPIGetSegmentRequest struct {
ctx context.Context
- ApiService *SegmentsApiService
+ ApiService *SegmentsAPIService
segmentId string
}
-func (r SegmentsApiGetSegmentRequest) Execute() (*SegmentModel, *http.Response, error) {
+func (r SegmentsAPIGetSegmentRequest) Execute() (*SegmentModel, *http.Response, error) {
return r.ApiService.GetSegmentExecute(r)
}
@@ -249,10 +249,10 @@ identified by the `segmentId`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param segmentId The identifier of the Segment.
- @return SegmentsApiGetSegmentRequest
+ @return SegmentsAPIGetSegmentRequest
*/
-func (a *SegmentsApiService) GetSegment(ctx context.Context, segmentId string) SegmentsApiGetSegmentRequest {
- return SegmentsApiGetSegmentRequest{
+func (a *SegmentsAPIService) GetSegment(ctx context.Context, segmentId string) SegmentsAPIGetSegmentRequest {
+ return SegmentsAPIGetSegmentRequest{
ApiService: a,
ctx: ctx,
segmentId: segmentId,
@@ -261,7 +261,7 @@ func (a *SegmentsApiService) GetSegment(ctx context.Context, segmentId string) S
// Execute executes the request
// @return SegmentModel
-func (a *SegmentsApiService) GetSegmentExecute(r SegmentsApiGetSegmentRequest) (*SegmentModel, *http.Response, error) {
+func (a *SegmentsAPIService) GetSegmentExecute(r SegmentsAPIGetSegmentRequest) (*SegmentModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -269,7 +269,7 @@ func (a *SegmentsApiService) GetSegmentExecute(r SegmentsApiGetSegmentRequest) (
localVarReturnValue *SegmentModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SegmentsApiService.GetSegment")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SegmentsAPIService.GetSegment")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -335,13 +335,13 @@ func (a *SegmentsApiService) GetSegmentExecute(r SegmentsApiGetSegmentRequest) (
return localVarReturnValue, localVarHTTPResponse, nil
}
-type SegmentsApiGetSegmentsRequest struct {
+type SegmentsAPIGetSegmentsRequest struct {
ctx context.Context
- ApiService *SegmentsApiService
+ ApiService *SegmentsAPIService
productId string
}
-func (r SegmentsApiGetSegmentsRequest) Execute() ([]SegmentListModel, *http.Response, error) {
+func (r SegmentsAPIGetSegmentsRequest) Execute() ([]SegmentListModel, *http.Response, error) {
return r.ApiService.GetSegmentsExecute(r)
}
@@ -353,10 +353,10 @@ This endpoint returns the list of the Segments that belongs to the given Product
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return SegmentsApiGetSegmentsRequest
+ @return SegmentsAPIGetSegmentsRequest
*/
-func (a *SegmentsApiService) GetSegments(ctx context.Context, productId string) SegmentsApiGetSegmentsRequest {
- return SegmentsApiGetSegmentsRequest{
+func (a *SegmentsAPIService) GetSegments(ctx context.Context, productId string) SegmentsAPIGetSegmentsRequest {
+ return SegmentsAPIGetSegmentsRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -365,7 +365,7 @@ func (a *SegmentsApiService) GetSegments(ctx context.Context, productId string)
// Execute executes the request
// @return []SegmentListModel
-func (a *SegmentsApiService) GetSegmentsExecute(r SegmentsApiGetSegmentsRequest) ([]SegmentListModel, *http.Response, error) {
+func (a *SegmentsAPIService) GetSegmentsExecute(r SegmentsAPIGetSegmentsRequest) ([]SegmentListModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -373,7 +373,7 @@ func (a *SegmentsApiService) GetSegmentsExecute(r SegmentsApiGetSegmentsRequest)
localVarReturnValue []SegmentListModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SegmentsApiService.GetSegments")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SegmentsAPIService.GetSegments")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -439,19 +439,19 @@ func (a *SegmentsApiService) GetSegmentsExecute(r SegmentsApiGetSegmentsRequest)
return localVarReturnValue, localVarHTTPResponse, nil
}
-type SegmentsApiUpdateSegmentRequest struct {
+type SegmentsAPIUpdateSegmentRequest struct {
ctx context.Context
- ApiService *SegmentsApiService
+ ApiService *SegmentsAPIService
segmentId string
updateSegmentModel *UpdateSegmentModel
}
-func (r SegmentsApiUpdateSegmentRequest) UpdateSegmentModel(updateSegmentModel UpdateSegmentModel) SegmentsApiUpdateSegmentRequest {
+func (r SegmentsAPIUpdateSegmentRequest) UpdateSegmentModel(updateSegmentModel UpdateSegmentModel) SegmentsAPIUpdateSegmentRequest {
r.updateSegmentModel = &updateSegmentModel
return r
}
-func (r SegmentsApiUpdateSegmentRequest) Execute() (*SegmentModel, *http.Response, error) {
+func (r SegmentsAPIUpdateSegmentRequest) Execute() (*SegmentModel, *http.Response, error) {
return r.ApiService.UpdateSegmentExecute(r)
}
@@ -462,10 +462,10 @@ This endpoint updates a Segment identified by the `segmentId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param segmentId The identifier of the Segment.
- @return SegmentsApiUpdateSegmentRequest
+ @return SegmentsAPIUpdateSegmentRequest
*/
-func (a *SegmentsApiService) UpdateSegment(ctx context.Context, segmentId string) SegmentsApiUpdateSegmentRequest {
- return SegmentsApiUpdateSegmentRequest{
+func (a *SegmentsAPIService) UpdateSegment(ctx context.Context, segmentId string) SegmentsAPIUpdateSegmentRequest {
+ return SegmentsAPIUpdateSegmentRequest{
ApiService: a,
ctx: ctx,
segmentId: segmentId,
@@ -474,7 +474,7 @@ func (a *SegmentsApiService) UpdateSegment(ctx context.Context, segmentId string
// Execute executes the request
// @return SegmentModel
-func (a *SegmentsApiService) UpdateSegmentExecute(r SegmentsApiUpdateSegmentRequest) (*SegmentModel, *http.Response, error) {
+func (a *SegmentsAPIService) UpdateSegmentExecute(r SegmentsAPIUpdateSegmentRequest) (*SegmentModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -482,7 +482,7 @@ func (a *SegmentsApiService) UpdateSegmentExecute(r SegmentsApiUpdateSegmentRequ
localVarReturnValue *SegmentModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SegmentsApiService.UpdateSegment")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SegmentsAPIService.UpdateSegment")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_tags.go b/api_tags.go
index f93020a..7d89c80 100644
--- a/api_tags.go
+++ b/api_tags.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,22 +21,22 @@ import (
)
-// TagsApiService TagsApi service
-type TagsApiService service
+// TagsAPIService TagsAPI service
+type TagsAPIService service
-type TagsApiCreateTagRequest struct {
+type TagsAPICreateTagRequest struct {
ctx context.Context
- ApiService *TagsApiService
+ ApiService *TagsAPIService
productId string
createTagModel *CreateTagModel
}
-func (r TagsApiCreateTagRequest) CreateTagModel(createTagModel CreateTagModel) TagsApiCreateTagRequest {
+func (r TagsAPICreateTagRequest) CreateTagModel(createTagModel CreateTagModel) TagsAPICreateTagRequest {
r.createTagModel = &createTagModel
return r
}
-func (r TagsApiCreateTagRequest) Execute() (*TagModel, *http.Response, error) {
+func (r TagsAPICreateTagRequest) Execute() (*TagModel, *http.Response, error) {
return r.ApiService.CreateTagExecute(r)
}
@@ -48,10 +48,10 @@ identified by the `productId` parameter, which can be obtained from the [List Pr
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Organization.
- @return TagsApiCreateTagRequest
+ @return TagsAPICreateTagRequest
*/
-func (a *TagsApiService) CreateTag(ctx context.Context, productId string) TagsApiCreateTagRequest {
- return TagsApiCreateTagRequest{
+func (a *TagsAPIService) CreateTag(ctx context.Context, productId string) TagsAPICreateTagRequest {
+ return TagsAPICreateTagRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -60,7 +60,7 @@ func (a *TagsApiService) CreateTag(ctx context.Context, productId string) TagsAp
// Execute executes the request
// @return TagModel
-func (a *TagsApiService) CreateTagExecute(r TagsApiCreateTagRequest) (*TagModel, *http.Response, error) {
+func (a *TagsAPIService) CreateTagExecute(r TagsAPICreateTagRequest) (*TagModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -68,7 +68,7 @@ func (a *TagsApiService) CreateTagExecute(r TagsApiCreateTagRequest) (*TagModel,
localVarReturnValue *TagModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.CreateTag")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsAPIService.CreateTag")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -139,13 +139,13 @@ func (a *TagsApiService) CreateTagExecute(r TagsApiCreateTagRequest) (*TagModel,
return localVarReturnValue, localVarHTTPResponse, nil
}
-type TagsApiDeleteTagRequest struct {
+type TagsAPIDeleteTagRequest struct {
ctx context.Context
- ApiService *TagsApiService
+ ApiService *TagsAPIService
tagId int64
}
-func (r TagsApiDeleteTagRequest) Execute() (*http.Response, error) {
+func (r TagsAPIDeleteTagRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteTagExecute(r)
}
@@ -156,10 +156,10 @@ This endpoint deletes a Tag identified by the `tagId` parameter. To remove a Tag
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param tagId The identifier of the Tag.
- @return TagsApiDeleteTagRequest
+ @return TagsAPIDeleteTagRequest
*/
-func (a *TagsApiService) DeleteTag(ctx context.Context, tagId int64) TagsApiDeleteTagRequest {
- return TagsApiDeleteTagRequest{
+func (a *TagsAPIService) DeleteTag(ctx context.Context, tagId int64) TagsAPIDeleteTagRequest {
+ return TagsAPIDeleteTagRequest{
ApiService: a,
ctx: ctx,
tagId: tagId,
@@ -167,14 +167,14 @@ func (a *TagsApiService) DeleteTag(ctx context.Context, tagId int64) TagsApiDele
}
// Execute executes the request
-func (a *TagsApiService) DeleteTagExecute(r TagsApiDeleteTagRequest) (*http.Response, error) {
+func (a *TagsAPIService) DeleteTagExecute(r TagsAPIDeleteTagRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.DeleteTag")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsAPIService.DeleteTag")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -231,13 +231,13 @@ func (a *TagsApiService) DeleteTagExecute(r TagsApiDeleteTagRequest) (*http.Resp
return localVarHTTPResponse, nil
}
-type TagsApiGetSettingsByTagRequest struct {
+type TagsAPIGetSettingsByTagRequest struct {
ctx context.Context
- ApiService *TagsApiService
+ ApiService *TagsAPIService
tagId int64
}
-func (r TagsApiGetSettingsByTagRequest) Execute() ([]SettingModel, *http.Response, error) {
+func (r TagsAPIGetSettingsByTagRequest) Execute() ([]SettingModel, *http.Response, error) {
return r.ApiService.GetSettingsByTagExecute(r)
}
@@ -249,10 +249,10 @@ has the specified Tag, identified by the `tagId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param tagId The identifier of the Tag.
- @return TagsApiGetSettingsByTagRequest
+ @return TagsAPIGetSettingsByTagRequest
*/
-func (a *TagsApiService) GetSettingsByTag(ctx context.Context, tagId int64) TagsApiGetSettingsByTagRequest {
- return TagsApiGetSettingsByTagRequest{
+func (a *TagsAPIService) GetSettingsByTag(ctx context.Context, tagId int64) TagsAPIGetSettingsByTagRequest {
+ return TagsAPIGetSettingsByTagRequest{
ApiService: a,
ctx: ctx,
tagId: tagId,
@@ -261,7 +261,7 @@ func (a *TagsApiService) GetSettingsByTag(ctx context.Context, tagId int64) Tags
// Execute executes the request
// @return []SettingModel
-func (a *TagsApiService) GetSettingsByTagExecute(r TagsApiGetSettingsByTagRequest) ([]SettingModel, *http.Response, error) {
+func (a *TagsAPIService) GetSettingsByTagExecute(r TagsAPIGetSettingsByTagRequest) ([]SettingModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -269,7 +269,7 @@ func (a *TagsApiService) GetSettingsByTagExecute(r TagsApiGetSettingsByTagReques
localVarReturnValue []SettingModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GetSettingsByTag")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsAPIService.GetSettingsByTag")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -335,13 +335,13 @@ func (a *TagsApiService) GetSettingsByTagExecute(r TagsApiGetSettingsByTagReques
return localVarReturnValue, localVarHTTPResponse, nil
}
-type TagsApiGetTagRequest struct {
+type TagsAPIGetTagRequest struct {
ctx context.Context
- ApiService *TagsApiService
+ ApiService *TagsAPIService
tagId int64
}
-func (r TagsApiGetTagRequest) Execute() (*TagModel, *http.Response, error) {
+func (r TagsAPIGetTagRequest) Execute() (*TagModel, *http.Response, error) {
return r.ApiService.GetTagExecute(r)
}
@@ -353,10 +353,10 @@ identified by the `tagId`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param tagId The identifier of the Tag.
- @return TagsApiGetTagRequest
+ @return TagsAPIGetTagRequest
*/
-func (a *TagsApiService) GetTag(ctx context.Context, tagId int64) TagsApiGetTagRequest {
- return TagsApiGetTagRequest{
+func (a *TagsAPIService) GetTag(ctx context.Context, tagId int64) TagsAPIGetTagRequest {
+ return TagsAPIGetTagRequest{
ApiService: a,
ctx: ctx,
tagId: tagId,
@@ -365,7 +365,7 @@ func (a *TagsApiService) GetTag(ctx context.Context, tagId int64) TagsApiGetTagR
// Execute executes the request
// @return TagModel
-func (a *TagsApiService) GetTagExecute(r TagsApiGetTagRequest) (*TagModel, *http.Response, error) {
+func (a *TagsAPIService) GetTagExecute(r TagsAPIGetTagRequest) (*TagModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -373,7 +373,7 @@ func (a *TagsApiService) GetTagExecute(r TagsApiGetTagRequest) (*TagModel, *http
localVarReturnValue *TagModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GetTag")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsAPIService.GetTag")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -439,13 +439,13 @@ func (a *TagsApiService) GetTagExecute(r TagsApiGetTagRequest) (*TagModel, *http
return localVarReturnValue, localVarHTTPResponse, nil
}
-type TagsApiGetTagsRequest struct {
+type TagsAPIGetTagsRequest struct {
ctx context.Context
- ApiService *TagsApiService
+ ApiService *TagsAPIService
productId string
}
-func (r TagsApiGetTagsRequest) Execute() ([]TagModel, *http.Response, error) {
+func (r TagsAPIGetTagsRequest) Execute() ([]TagModel, *http.Response, error) {
return r.ApiService.GetTagsExecute(r)
}
@@ -457,10 +457,10 @@ specified Product, identified by the `productId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return TagsApiGetTagsRequest
+ @return TagsAPIGetTagsRequest
*/
-func (a *TagsApiService) GetTags(ctx context.Context, productId string) TagsApiGetTagsRequest {
- return TagsApiGetTagsRequest{
+func (a *TagsAPIService) GetTags(ctx context.Context, productId string) TagsAPIGetTagsRequest {
+ return TagsAPIGetTagsRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -469,7 +469,7 @@ func (a *TagsApiService) GetTags(ctx context.Context, productId string) TagsApiG
// Execute executes the request
// @return []TagModel
-func (a *TagsApiService) GetTagsExecute(r TagsApiGetTagsRequest) ([]TagModel, *http.Response, error) {
+func (a *TagsAPIService) GetTagsExecute(r TagsAPIGetTagsRequest) ([]TagModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -477,7 +477,7 @@ func (a *TagsApiService) GetTagsExecute(r TagsApiGetTagsRequest) ([]TagModel, *h
localVarReturnValue []TagModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GetTags")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsAPIService.GetTags")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -543,19 +543,19 @@ func (a *TagsApiService) GetTagsExecute(r TagsApiGetTagsRequest) ([]TagModel, *h
return localVarReturnValue, localVarHTTPResponse, nil
}
-type TagsApiUpdateTagRequest struct {
+type TagsAPIUpdateTagRequest struct {
ctx context.Context
- ApiService *TagsApiService
+ ApiService *TagsAPIService
tagId int64
updateTagModel *UpdateTagModel
}
-func (r TagsApiUpdateTagRequest) UpdateTagModel(updateTagModel UpdateTagModel) TagsApiUpdateTagRequest {
+func (r TagsAPIUpdateTagRequest) UpdateTagModel(updateTagModel UpdateTagModel) TagsAPIUpdateTagRequest {
r.updateTagModel = &updateTagModel
return r
}
-func (r TagsApiUpdateTagRequest) Execute() (*TagModel, *http.Response, error) {
+func (r TagsAPIUpdateTagRequest) Execute() (*TagModel, *http.Response, error) {
return r.ApiService.UpdateTagExecute(r)
}
@@ -566,10 +566,10 @@ This endpoint updates a Tag identified by the `tagId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param tagId The identifier of the Tag.
- @return TagsApiUpdateTagRequest
+ @return TagsAPIUpdateTagRequest
*/
-func (a *TagsApiService) UpdateTag(ctx context.Context, tagId int64) TagsApiUpdateTagRequest {
- return TagsApiUpdateTagRequest{
+func (a *TagsAPIService) UpdateTag(ctx context.Context, tagId int64) TagsAPIUpdateTagRequest {
+ return TagsAPIUpdateTagRequest{
ApiService: a,
ctx: ctx,
tagId: tagId,
@@ -578,7 +578,7 @@ func (a *TagsApiService) UpdateTag(ctx context.Context, tagId int64) TagsApiUpda
// Execute executes the request
// @return TagModel
-func (a *TagsApiService) UpdateTagExecute(r TagsApiUpdateTagRequest) (*TagModel, *http.Response, error) {
+func (a *TagsAPIService) UpdateTagExecute(r TagsAPIUpdateTagRequest) (*TagModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -586,7 +586,7 @@ func (a *TagsApiService) UpdateTagExecute(r TagsApiUpdateTagRequest) (*TagModel,
localVarReturnValue *TagModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.UpdateTag")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsAPIService.UpdateTag")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/api_webhooks.go b/api_webhooks.go
index f29e366..dd8b42a 100644
--- a/api_webhooks.go
+++ b/api_webhooks.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -21,23 +21,23 @@ import (
)
-// WebhooksApiService WebhooksApi service
-type WebhooksApiService service
+// WebhooksAPIService WebhooksAPI service
+type WebhooksAPIService service
-type WebhooksApiCreateWebhookRequest struct {
+type WebhooksAPICreateWebhookRequest struct {
ctx context.Context
- ApiService *WebhooksApiService
+ ApiService *WebhooksAPIService
configId string
environmentId string
webHookRequest *WebHookRequest
}
-func (r WebhooksApiCreateWebhookRequest) WebHookRequest(webHookRequest WebHookRequest) WebhooksApiCreateWebhookRequest {
+func (r WebhooksAPICreateWebhookRequest) WebHookRequest(webHookRequest WebHookRequest) WebhooksAPICreateWebhookRequest {
r.webHookRequest = &webHookRequest
return r
}
-func (r WebhooksApiCreateWebhookRequest) Execute() (*WebhookModel, *http.Response, error) {
+func (r WebhooksAPICreateWebhookRequest) Execute() (*WebhookModel, *http.Response, error) {
return r.ApiService.CreateWebhookExecute(r)
}
@@ -50,10 +50,10 @@ identified by the `productId` parameter, which can be obtained from the [List Pr
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param configId The identifier of the Config.
@param environmentId The identifier of the Environment.
- @return WebhooksApiCreateWebhookRequest
+ @return WebhooksAPICreateWebhookRequest
*/
-func (a *WebhooksApiService) CreateWebhook(ctx context.Context, configId string, environmentId string) WebhooksApiCreateWebhookRequest {
- return WebhooksApiCreateWebhookRequest{
+func (a *WebhooksAPIService) CreateWebhook(ctx context.Context, configId string, environmentId string) WebhooksAPICreateWebhookRequest {
+ return WebhooksAPICreateWebhookRequest{
ApiService: a,
ctx: ctx,
configId: configId,
@@ -63,7 +63,7 @@ func (a *WebhooksApiService) CreateWebhook(ctx context.Context, configId string,
// Execute executes the request
// @return WebhookModel
-func (a *WebhooksApiService) CreateWebhookExecute(r WebhooksApiCreateWebhookRequest) (*WebhookModel, *http.Response, error) {
+func (a *WebhooksAPIService) CreateWebhookExecute(r WebhooksAPICreateWebhookRequest) (*WebhookModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -71,7 +71,7 @@ func (a *WebhooksApiService) CreateWebhookExecute(r WebhooksApiCreateWebhookRequ
localVarReturnValue *WebhookModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksApiService.CreateWebhook")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksAPIService.CreateWebhook")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -143,13 +143,13 @@ func (a *WebhooksApiService) CreateWebhookExecute(r WebhooksApiCreateWebhookRequ
return localVarReturnValue, localVarHTTPResponse, nil
}
-type WebhooksApiDeleteWebhookRequest struct {
+type WebhooksAPIDeleteWebhookRequest struct {
ctx context.Context
- ApiService *WebhooksApiService
+ ApiService *WebhooksAPIService
webhookId int32
}
-func (r WebhooksApiDeleteWebhookRequest) Execute() (*http.Response, error) {
+func (r WebhooksAPIDeleteWebhookRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteWebhookExecute(r)
}
@@ -160,10 +160,10 @@ This endpoint removes a Webhook identified by the `webhookId` parameter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param webhookId The identifier of the Webhook.
- @return WebhooksApiDeleteWebhookRequest
+ @return WebhooksAPIDeleteWebhookRequest
*/
-func (a *WebhooksApiService) DeleteWebhook(ctx context.Context, webhookId int32) WebhooksApiDeleteWebhookRequest {
- return WebhooksApiDeleteWebhookRequest{
+func (a *WebhooksAPIService) DeleteWebhook(ctx context.Context, webhookId int32) WebhooksAPIDeleteWebhookRequest {
+ return WebhooksAPIDeleteWebhookRequest{
ApiService: a,
ctx: ctx,
webhookId: webhookId,
@@ -171,14 +171,14 @@ func (a *WebhooksApiService) DeleteWebhook(ctx context.Context, webhookId int32)
}
// Execute executes the request
-func (a *WebhooksApiService) DeleteWebhookExecute(r WebhooksApiDeleteWebhookRequest) (*http.Response, error) {
+func (a *WebhooksAPIService) DeleteWebhookExecute(r WebhooksAPIDeleteWebhookRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksApiService.DeleteWebhook")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksAPIService.DeleteWebhook")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -235,13 +235,13 @@ func (a *WebhooksApiService) DeleteWebhookExecute(r WebhooksApiDeleteWebhookRequ
return localVarHTTPResponse, nil
}
-type WebhooksApiGetWebhookRequest struct {
+type WebhooksAPIGetWebhookRequest struct {
ctx context.Context
- ApiService *WebhooksApiService
+ ApiService *WebhooksAPIService
webhookId int32
}
-func (r WebhooksApiGetWebhookRequest) Execute() (*WebhookModel, *http.Response, error) {
+func (r WebhooksAPIGetWebhookRequest) Execute() (*WebhookModel, *http.Response, error) {
return r.ApiService.GetWebhookExecute(r)
}
@@ -253,10 +253,10 @@ identified by the `webhookId`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param webhookId The identifier of the Webhook.
- @return WebhooksApiGetWebhookRequest
+ @return WebhooksAPIGetWebhookRequest
*/
-func (a *WebhooksApiService) GetWebhook(ctx context.Context, webhookId int32) WebhooksApiGetWebhookRequest {
- return WebhooksApiGetWebhookRequest{
+func (a *WebhooksAPIService) GetWebhook(ctx context.Context, webhookId int32) WebhooksAPIGetWebhookRequest {
+ return WebhooksAPIGetWebhookRequest{
ApiService: a,
ctx: ctx,
webhookId: webhookId,
@@ -265,7 +265,7 @@ func (a *WebhooksApiService) GetWebhook(ctx context.Context, webhookId int32) We
// Execute executes the request
// @return WebhookModel
-func (a *WebhooksApiService) GetWebhookExecute(r WebhooksApiGetWebhookRequest) (*WebhookModel, *http.Response, error) {
+func (a *WebhooksAPIService) GetWebhookExecute(r WebhooksAPIGetWebhookRequest) (*WebhookModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -273,7 +273,7 @@ func (a *WebhooksApiService) GetWebhookExecute(r WebhooksApiGetWebhookRequest) (
localVarReturnValue *WebhookModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksApiService.GetWebhook")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksAPIService.GetWebhook")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -339,13 +339,13 @@ func (a *WebhooksApiService) GetWebhookExecute(r WebhooksApiGetWebhookRequest) (
return localVarReturnValue, localVarHTTPResponse, nil
}
-type WebhooksApiGetWebhookSigningKeysRequest struct {
+type WebhooksAPIGetWebhookSigningKeysRequest struct {
ctx context.Context
- ApiService *WebhooksApiService
+ ApiService *WebhooksAPIService
webhookId int32
}
-func (r WebhooksApiGetWebhookSigningKeysRequest) Execute() (*WebhookSigningKeysModel, *http.Response, error) {
+func (r WebhooksAPIGetWebhookSigningKeysRequest) Execute() (*WebhookSigningKeysModel, *http.Response, error) {
return r.ApiService.GetWebhookSigningKeysExecute(r)
}
@@ -361,10 +361,10 @@ Signing keys are used for ensuring the Webhook requests you receive are actually
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param webhookId The identifier of the Webhook.
- @return WebhooksApiGetWebhookSigningKeysRequest
+ @return WebhooksAPIGetWebhookSigningKeysRequest
*/
-func (a *WebhooksApiService) GetWebhookSigningKeys(ctx context.Context, webhookId int32) WebhooksApiGetWebhookSigningKeysRequest {
- return WebhooksApiGetWebhookSigningKeysRequest{
+func (a *WebhooksAPIService) GetWebhookSigningKeys(ctx context.Context, webhookId int32) WebhooksAPIGetWebhookSigningKeysRequest {
+ return WebhooksAPIGetWebhookSigningKeysRequest{
ApiService: a,
ctx: ctx,
webhookId: webhookId,
@@ -373,7 +373,7 @@ func (a *WebhooksApiService) GetWebhookSigningKeys(ctx context.Context, webhookI
// Execute executes the request
// @return WebhookSigningKeysModel
-func (a *WebhooksApiService) GetWebhookSigningKeysExecute(r WebhooksApiGetWebhookSigningKeysRequest) (*WebhookSigningKeysModel, *http.Response, error) {
+func (a *WebhooksAPIService) GetWebhookSigningKeysExecute(r WebhooksAPIGetWebhookSigningKeysRequest) (*WebhookSigningKeysModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -381,7 +381,7 @@ func (a *WebhooksApiService) GetWebhookSigningKeysExecute(r WebhooksApiGetWebhoo
localVarReturnValue *WebhookSigningKeysModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksApiService.GetWebhookSigningKeys")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksAPIService.GetWebhookSigningKeys")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -447,13 +447,13 @@ func (a *WebhooksApiService) GetWebhookSigningKeysExecute(r WebhooksApiGetWebhoo
return localVarReturnValue, localVarHTTPResponse, nil
}
-type WebhooksApiGetWebhooksRequest struct {
+type WebhooksAPIGetWebhooksRequest struct {
ctx context.Context
- ApiService *WebhooksApiService
+ ApiService *WebhooksAPIService
productId string
}
-func (r WebhooksApiGetWebhooksRequest) Execute() ([]WebhookModel, *http.Response, error) {
+func (r WebhooksAPIGetWebhooksRequest) Execute() ([]WebhookModel, *http.Response, error) {
return r.ApiService.GetWebhooksExecute(r)
}
@@ -465,10 +465,10 @@ This endpoint returns the list of the Webhooks that belongs to the given Product
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId The identifier of the Product.
- @return WebhooksApiGetWebhooksRequest
+ @return WebhooksAPIGetWebhooksRequest
*/
-func (a *WebhooksApiService) GetWebhooks(ctx context.Context, productId string) WebhooksApiGetWebhooksRequest {
- return WebhooksApiGetWebhooksRequest{
+func (a *WebhooksAPIService) GetWebhooks(ctx context.Context, productId string) WebhooksAPIGetWebhooksRequest {
+ return WebhooksAPIGetWebhooksRequest{
ApiService: a,
ctx: ctx,
productId: productId,
@@ -477,7 +477,7 @@ func (a *WebhooksApiService) GetWebhooks(ctx context.Context, productId string)
// Execute executes the request
// @return []WebhookModel
-func (a *WebhooksApiService) GetWebhooksExecute(r WebhooksApiGetWebhooksRequest) ([]WebhookModel, *http.Response, error) {
+func (a *WebhooksAPIService) GetWebhooksExecute(r WebhooksAPIGetWebhooksRequest) ([]WebhookModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -485,7 +485,7 @@ func (a *WebhooksApiService) GetWebhooksExecute(r WebhooksApiGetWebhooksRequest)
localVarReturnValue []WebhookModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksApiService.GetWebhooks")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksAPIService.GetWebhooks")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -551,19 +551,19 @@ func (a *WebhooksApiService) GetWebhooksExecute(r WebhooksApiGetWebhooksRequest)
return localVarReturnValue, localVarHTTPResponse, nil
}
-type WebhooksApiReplaceWebhookRequest struct {
+type WebhooksAPIReplaceWebhookRequest struct {
ctx context.Context
- ApiService *WebhooksApiService
+ ApiService *WebhooksAPIService
webhookId int32
webHookRequest *WebHookRequest
}
-func (r WebhooksApiReplaceWebhookRequest) WebHookRequest(webHookRequest WebHookRequest) WebhooksApiReplaceWebhookRequest {
+func (r WebhooksAPIReplaceWebhookRequest) WebHookRequest(webHookRequest WebHookRequest) WebhooksAPIReplaceWebhookRequest {
r.webHookRequest = &webHookRequest
return r
}
-func (r WebhooksApiReplaceWebhookRequest) Execute() (*WebhookModel, *http.Response, error) {
+func (r WebhooksAPIReplaceWebhookRequest) Execute() (*WebhookModel, *http.Response, error) {
return r.ApiService.ReplaceWebhookExecute(r)
}
@@ -577,10 +577,10 @@ want to change in its original state. Not listing one means it will reset.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param webhookId The identifier of the Webhook.
- @return WebhooksApiReplaceWebhookRequest
+ @return WebhooksAPIReplaceWebhookRequest
*/
-func (a *WebhooksApiService) ReplaceWebhook(ctx context.Context, webhookId int32) WebhooksApiReplaceWebhookRequest {
- return WebhooksApiReplaceWebhookRequest{
+func (a *WebhooksAPIService) ReplaceWebhook(ctx context.Context, webhookId int32) WebhooksAPIReplaceWebhookRequest {
+ return WebhooksAPIReplaceWebhookRequest{
ApiService: a,
ctx: ctx,
webhookId: webhookId,
@@ -589,7 +589,7 @@ func (a *WebhooksApiService) ReplaceWebhook(ctx context.Context, webhookId int32
// Execute executes the request
// @return WebhookModel
-func (a *WebhooksApiService) ReplaceWebhookExecute(r WebhooksApiReplaceWebhookRequest) (*WebhookModel, *http.Response, error) {
+func (a *WebhooksAPIService) ReplaceWebhookExecute(r WebhooksAPIReplaceWebhookRequest) (*WebhookModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -597,7 +597,7 @@ func (a *WebhooksApiService) ReplaceWebhookExecute(r WebhooksApiReplaceWebhookRe
localVarReturnValue *WebhookModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksApiService.ReplaceWebhook")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksAPIService.ReplaceWebhook")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -668,19 +668,19 @@ func (a *WebhooksApiService) ReplaceWebhookExecute(r WebhooksApiReplaceWebhookRe
return localVarReturnValue, localVarHTTPResponse, nil
}
-type WebhooksApiUpdateWebhookRequest struct {
+type WebhooksAPIUpdateWebhookRequest struct {
ctx context.Context
- ApiService *WebhooksApiService
+ ApiService *WebhooksAPIService
webhookId int32
jsonPatchOperation *[]JsonPatchOperation
}
-func (r WebhooksApiUpdateWebhookRequest) JsonPatchOperation(jsonPatchOperation []JsonPatchOperation) WebhooksApiUpdateWebhookRequest {
+func (r WebhooksAPIUpdateWebhookRequest) JsonPatchOperation(jsonPatchOperation []JsonPatchOperation) WebhooksAPIUpdateWebhookRequest {
r.jsonPatchOperation = &jsonPatchOperation
return r
}
-func (r WebhooksApiUpdateWebhookRequest) Execute() (*WebhookModel, *http.Response, error) {
+func (r WebhooksAPIUpdateWebhookRequest) Execute() (*WebhookModel, *http.Response, error) {
return r.ApiService.UpdateWebhookExecute(r)
}
@@ -739,10 +739,10 @@ So we get a response like this:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param webhookId The identifier of the Webhook.
- @return WebhooksApiUpdateWebhookRequest
+ @return WebhooksAPIUpdateWebhookRequest
*/
-func (a *WebhooksApiService) UpdateWebhook(ctx context.Context, webhookId int32) WebhooksApiUpdateWebhookRequest {
- return WebhooksApiUpdateWebhookRequest{
+func (a *WebhooksAPIService) UpdateWebhook(ctx context.Context, webhookId int32) WebhooksAPIUpdateWebhookRequest {
+ return WebhooksAPIUpdateWebhookRequest{
ApiService: a,
ctx: ctx,
webhookId: webhookId,
@@ -751,7 +751,7 @@ func (a *WebhooksApiService) UpdateWebhook(ctx context.Context, webhookId int32)
// Execute executes the request
// @return WebhookModel
-func (a *WebhooksApiService) UpdateWebhookExecute(r WebhooksApiUpdateWebhookRequest) (*WebhookModel, *http.Response, error) {
+func (a *WebhooksAPIService) UpdateWebhookExecute(r WebhooksAPIUpdateWebhookRequest) (*WebhookModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
@@ -759,7 +759,7 @@ func (a *WebhooksApiService) UpdateWebhookExecute(r WebhooksApiUpdateWebhookRequ
localVarReturnValue *WebhookModel
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksApiService.UpdateWebhook")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksAPIService.UpdateWebhook")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
diff --git a/client.go b/client.go
index c881015..1ff456d 100644
--- a/client.go
+++ b/client.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -36,8 +36,8 @@ import (
)
var (
- jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`)
- xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`)
+ JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
+ XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`)
queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" )
)
@@ -50,43 +50,45 @@ type APIClient struct {
// API Services
- AuditLogsApi *AuditLogsApiService
+ AuditLogsAPI *AuditLogsAPIService
- CodeReferencesApi *CodeReferencesApiService
+ CodeReferencesAPI *CodeReferencesAPIService
- ConfigsApi *ConfigsApiService
+ ConfigsAPI *ConfigsAPIService
- EnvironmentsApi *EnvironmentsApiService
+ EnvironmentsAPI *EnvironmentsAPIService
- FeatureFlagSettingValuesApi *FeatureFlagSettingValuesApiService
+ FeatureFlagSettingValuesAPI *FeatureFlagSettingValuesAPIService
- FeatureFlagSettingValuesUsingSDKKeyApi *FeatureFlagSettingValuesUsingSDKKeyApiService
+ FeatureFlagSettingValuesUsingSDKKeyAPI *FeatureFlagSettingValuesUsingSDKKeyAPIService
- FeatureFlagSettingValuesUsingSDKKeyV2Api *FeatureFlagSettingValuesUsingSDKKeyV2ApiService
+ FeatureFlagSettingValuesUsingSDKKeyV2API *FeatureFlagSettingValuesUsingSDKKeyV2APIService
- FeatureFlagSettingValuesV2Api *FeatureFlagSettingValuesV2ApiService
+ FeatureFlagSettingValuesV2API *FeatureFlagSettingValuesV2APIService
- FeatureFlagsSettingsApi *FeatureFlagsSettingsApiService
+ FeatureFlagsSettingsAPI *FeatureFlagsSettingsAPIService
- IntegrationLinksApi *IntegrationLinksApiService
+ IntegrationLinksAPI *IntegrationLinksAPIService
- MeApi *MeApiService
+ IntegrationsAPI *IntegrationsAPIService
- MembersApi *MembersApiService
+ MeAPI *MeAPIService
- OrganizationsApi *OrganizationsApiService
+ MembersAPI *MembersAPIService
- PermissionGroupsApi *PermissionGroupsApiService
+ OrganizationsAPI *OrganizationsAPIService
- ProductsApi *ProductsApiService
+ PermissionGroupsAPI *PermissionGroupsAPIService
- SDKKeysApi *SDKKeysApiService
+ ProductsAPI *ProductsAPIService
- SegmentsApi *SegmentsApiService
+ SDKKeysAPI *SDKKeysAPIService
- TagsApi *TagsApiService
+ SegmentsAPI *SegmentsAPIService
- WebhooksApi *WebhooksApiService
+ TagsAPI *TagsAPIService
+
+ WebhooksAPI *WebhooksAPIService
}
type service struct {
@@ -105,25 +107,26 @@ func NewAPIClient(cfg *Configuration) *APIClient {
c.common.client = c
// API Services
- c.AuditLogsApi = (*AuditLogsApiService)(&c.common)
- c.CodeReferencesApi = (*CodeReferencesApiService)(&c.common)
- c.ConfigsApi = (*ConfigsApiService)(&c.common)
- c.EnvironmentsApi = (*EnvironmentsApiService)(&c.common)
- c.FeatureFlagSettingValuesApi = (*FeatureFlagSettingValuesApiService)(&c.common)
- c.FeatureFlagSettingValuesUsingSDKKeyApi = (*FeatureFlagSettingValuesUsingSDKKeyApiService)(&c.common)
- c.FeatureFlagSettingValuesUsingSDKKeyV2Api = (*FeatureFlagSettingValuesUsingSDKKeyV2ApiService)(&c.common)
- c.FeatureFlagSettingValuesV2Api = (*FeatureFlagSettingValuesV2ApiService)(&c.common)
- c.FeatureFlagsSettingsApi = (*FeatureFlagsSettingsApiService)(&c.common)
- c.IntegrationLinksApi = (*IntegrationLinksApiService)(&c.common)
- c.MeApi = (*MeApiService)(&c.common)
- c.MembersApi = (*MembersApiService)(&c.common)
- c.OrganizationsApi = (*OrganizationsApiService)(&c.common)
- c.PermissionGroupsApi = (*PermissionGroupsApiService)(&c.common)
- c.ProductsApi = (*ProductsApiService)(&c.common)
- c.SDKKeysApi = (*SDKKeysApiService)(&c.common)
- c.SegmentsApi = (*SegmentsApiService)(&c.common)
- c.TagsApi = (*TagsApiService)(&c.common)
- c.WebhooksApi = (*WebhooksApiService)(&c.common)
+ c.AuditLogsAPI = (*AuditLogsAPIService)(&c.common)
+ c.CodeReferencesAPI = (*CodeReferencesAPIService)(&c.common)
+ c.ConfigsAPI = (*ConfigsAPIService)(&c.common)
+ c.EnvironmentsAPI = (*EnvironmentsAPIService)(&c.common)
+ c.FeatureFlagSettingValuesAPI = (*FeatureFlagSettingValuesAPIService)(&c.common)
+ c.FeatureFlagSettingValuesUsingSDKKeyAPI = (*FeatureFlagSettingValuesUsingSDKKeyAPIService)(&c.common)
+ c.FeatureFlagSettingValuesUsingSDKKeyV2API = (*FeatureFlagSettingValuesUsingSDKKeyV2APIService)(&c.common)
+ c.FeatureFlagSettingValuesV2API = (*FeatureFlagSettingValuesV2APIService)(&c.common)
+ c.FeatureFlagsSettingsAPI = (*FeatureFlagsSettingsAPIService)(&c.common)
+ c.IntegrationLinksAPI = (*IntegrationLinksAPIService)(&c.common)
+ c.IntegrationsAPI = (*IntegrationsAPIService)(&c.common)
+ c.MeAPI = (*MeAPIService)(&c.common)
+ c.MembersAPI = (*MembersAPIService)(&c.common)
+ c.OrganizationsAPI = (*OrganizationsAPIService)(&c.common)
+ c.PermissionGroupsAPI = (*PermissionGroupsAPIService)(&c.common)
+ c.ProductsAPI = (*ProductsAPIService)(&c.common)
+ c.SDKKeysAPI = (*SDKKeysAPIService)(&c.common)
+ c.SegmentsAPI = (*SegmentsAPIService)(&c.common)
+ c.TagsAPI = (*TagsAPIService)(&c.common)
+ c.WebhooksAPI = (*WebhooksAPIService)(&c.common)
return c
}
@@ -217,7 +220,7 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri
return
}
if t, ok := obj.(time.Time); ok {
- parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType)
+ parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), collectionType)
return
}
value = v.Type().String() + " value"
@@ -510,13 +513,13 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err
_, err = (*f).Seek(0, io.SeekStart)
return
}
- if xmlCheck.MatchString(contentType) {
+ if XmlCheck.MatchString(contentType) {
if err = xml.Unmarshal(b, v); err != nil {
return err
}
return nil
}
- if jsonCheck.MatchString(contentType) {
+ if JsonCheck.MatchString(contentType) {
if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas
if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined
if err = unmarshalObj.UnmarshalJSON(b); err != nil {
@@ -553,18 +556,6 @@ func addFile(w *multipart.Writer, fieldName, path string) error {
return err
}
-// Prevent trying to import "fmt"
-func reportError(format string, a ...interface{}) error {
- return fmt.Errorf(format, a...)
-}
-
-// A wrapper for strict JSON decoding
-func newStrictDecoder(data []byte) *json.Decoder {
- dec := json.NewDecoder(bytes.NewBuffer(data))
- dec.DisallowUnknownFields()
- return dec
-}
-
// Set request body from an interface{}
func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) {
if bodyBuf == nil {
@@ -581,10 +572,14 @@ func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err e
_, err = bodyBuf.WriteString(s)
} else if s, ok := body.(*string); ok {
_, err = bodyBuf.WriteString(*s)
- } else if jsonCheck.MatchString(contentType) {
+ } else if JsonCheck.MatchString(contentType) {
err = json.NewEncoder(bodyBuf).Encode(body)
- } else if xmlCheck.MatchString(contentType) {
- err = xml.NewEncoder(bodyBuf).Encode(body)
+ } else if XmlCheck.MatchString(contentType) {
+ var bs []byte
+ bs, err = xml.Marshal(body)
+ if err == nil {
+ bodyBuf.Write(bs)
+ }
}
if err != nil {
diff --git a/configuration.go b/configuration.go
index f180066..d355afb 100644
--- a/configuration.go
+++ b/configuration.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/docs/AuditLogsApi.md b/docs/AuditLogsApi.md
index 0932490..e55e7ca 100644
--- a/docs/AuditLogsApi.md
+++ b/docs/AuditLogsApi.md
@@ -1,12 +1,12 @@
-# \AuditLogsApi
+# \AuditLogsAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**GetAuditlogs**](AuditLogsApi.md#GetAuditlogs) | **Get** /v1/products/{productId}/auditlogs | List Audit log items for Product
-[**GetDeletedSettings**](AuditLogsApi.md#GetDeletedSettings) | **Get** /v1/configs/{configId}/deleted-settings | List Deleted Settings
-[**GetOrganizationAuditlogs**](AuditLogsApi.md#GetOrganizationAuditlogs) | **Get** /v1/organizations/{organizationId}/auditlogs | List Audit log items for Organization
+[**GetAuditlogs**](AuditLogsAPI.md#GetAuditlogs) | **Get** /v1/products/{productId}/auditlogs | List Audit log items for Product
+[**GetDeletedSettings**](AuditLogsAPI.md#GetDeletedSettings) | **Get** /v1/configs/{configId}/deleted-settings | List Deleted Settings
+[**GetOrganizationAuditlogs**](AuditLogsAPI.md#GetOrganizationAuditlogs) | **Get** /v1/organizations/{organizationId}/auditlogs | List Audit log items for Organization
@@ -24,30 +24,30 @@ List Audit log items for Product
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config. (optional)
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment. (optional)
- auditLogType := openapiclient.AuditLogType("productCreated") // AuditLogType | Filter Audit logs by Audit log type. (optional)
- fromUtcDateTime := time.Now() // time.Time | Filter Audit logs by starting UTC date. (optional)
- toUtcDateTime := time.Now() // time.Time | Filter Audit logs by ending UTC date. (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.AuditLogsApi.GetAuditlogs(context.Background(), productId).ConfigId(configId).EnvironmentId(environmentId).AuditLogType(auditLogType).FromUtcDateTime(fromUtcDateTime).ToUtcDateTime(toUtcDateTime).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `AuditLogsApi.GetAuditlogs``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetAuditlogs`: []AuditLogItemModel
- fmt.Fprintf(os.Stdout, "Response from `AuditLogsApi.GetAuditlogs`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+ configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config. (optional)
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment. (optional)
+ auditLogType := openapiclient.AuditLogType("productCreated") // AuditLogType | Filter Audit logs by Audit log type. (optional)
+ fromUtcDateTime := time.Now() // time.Time | Filter Audit logs by starting UTC date. (optional)
+ toUtcDateTime := time.Now() // time.Time | Filter Audit logs by ending UTC date. (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.AuditLogsAPI.GetAuditlogs(context.Background(), productId).ConfigId(configId).EnvironmentId(environmentId).AuditLogType(auditLogType).FromUtcDateTime(fromUtcDateTime).ToUtcDateTime(toUtcDateTime).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `AuditLogsAPI.GetAuditlogs``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetAuditlogs`: []AuditLogItemModel
+ fmt.Fprintf(os.Stdout, "Response from `AuditLogsAPI.GetAuditlogs`: %v\n", resp)
}
```
@@ -105,24 +105,24 @@ List Deleted Settings
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.AuditLogsApi.GetDeletedSettings(context.Background(), configId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `AuditLogsApi.GetDeletedSettings``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetDeletedSettings`: []SettingModel
- fmt.Fprintf(os.Stdout, "Response from `AuditLogsApi.GetDeletedSettings`: %v\n", resp)
+ configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.AuditLogsAPI.GetDeletedSettings(context.Background(), configId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `AuditLogsAPI.GetDeletedSettings``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetDeletedSettings`: []SettingModel
+ fmt.Fprintf(os.Stdout, "Response from `AuditLogsAPI.GetDeletedSettings`: %v\n", resp)
}
```
@@ -175,31 +175,31 @@ List Audit log items for Organization
package main
import (
- "context"
- "fmt"
- "os"
+ "context"
+ "fmt"
+ "os"
"time"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product. (optional)
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config. (optional)
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment. (optional)
- auditLogType := openapiclient.AuditLogType("productCreated") // AuditLogType | Filter Audit logs by Audit log type. (optional)
- fromUtcDateTime := time.Now() // time.Time | Filter Audit logs by starting UTC date. (optional)
- toUtcDateTime := time.Now() // time.Time | Filter Audit logs by ending UTC date. (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.AuditLogsApi.GetOrganizationAuditlogs(context.Background(), organizationId).ProductId(productId).ConfigId(configId).EnvironmentId(environmentId).AuditLogType(auditLogType).FromUtcDateTime(fromUtcDateTime).ToUtcDateTime(toUtcDateTime).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `AuditLogsApi.GetOrganizationAuditlogs``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetOrganizationAuditlogs`: []AuditLogItemModel
- fmt.Fprintf(os.Stdout, "Response from `AuditLogsApi.GetOrganizationAuditlogs`: %v\n", resp)
+ organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product. (optional)
+ configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config. (optional)
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment. (optional)
+ auditLogType := openapiclient.AuditLogType("productCreated") // AuditLogType | Filter Audit logs by Audit log type. (optional)
+ fromUtcDateTime := time.Now() // time.Time | Filter Audit logs by starting UTC date. (optional)
+ toUtcDateTime := time.Now() // time.Time | Filter Audit logs by ending UTC date. (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.AuditLogsAPI.GetOrganizationAuditlogs(context.Background(), organizationId).ProductId(productId).ConfigId(configId).EnvironmentId(environmentId).AuditLogType(auditLogType).FromUtcDateTime(fromUtcDateTime).ToUtcDateTime(toUtcDateTime).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `AuditLogsAPI.GetOrganizationAuditlogs``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetOrganizationAuditlogs`: []AuditLogItemModel
+ fmt.Fprintf(os.Stdout, "Response from `AuditLogsAPI.GetOrganizationAuditlogs`: %v\n", resp)
}
```
diff --git a/docs/CodeReferencesApi.md b/docs/CodeReferencesApi.md
index 6897372..a366254 100644
--- a/docs/CodeReferencesApi.md
+++ b/docs/CodeReferencesApi.md
@@ -1,13 +1,12 @@
-# \CodeReferencesApi
+# \CodeReferencesAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**V1CodeReferencesDeleteReportsPost**](CodeReferencesApi.md#V1CodeReferencesDeleteReportsPost) | **Post** /v1/code-references/delete-reports | Delete Reference reports
-[**V1CodeReferencesPost**](CodeReferencesApi.md#V1CodeReferencesPost) | **Post** /v1/code-references | Upload References
-[**V1ConfigsConfigIdCodeReferencesGet**](CodeReferencesApi.md#V1ConfigsConfigIdCodeReferencesGet) | **Get** /v1/configs/{configId}/code-references | Get References in Config
-[**V1SettingsSettingIdCodeReferencesGet**](CodeReferencesApi.md#V1SettingsSettingIdCodeReferencesGet) | **Get** /v1/settings/{settingId}/code-references | Get References for Feature Flag or Setting
+[**V1CodeReferencesDeleteReportsPost**](CodeReferencesAPI.md#V1CodeReferencesDeleteReportsPost) | **Post** /v1/code-references/delete-reports | Delete Reference reports
+[**V1CodeReferencesPost**](CodeReferencesAPI.md#V1CodeReferencesPost) | **Post** /v1/code-references | Upload References
+[**V1SettingsSettingIdCodeReferencesGet**](CodeReferencesAPI.md#V1SettingsSettingIdCodeReferencesGet) | **Get** /v1/settings/{settingId}/code-references | Get References for Feature Flag or Setting
@@ -25,22 +24,22 @@ Delete Reference reports
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- deleteRepositoryReportsRequest := *openapiclient.NewDeleteRepositoryReportsRequest("ConfigId_example", "Repository_example") // DeleteRepositoryReportsRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CodeReferencesApi.V1CodeReferencesDeleteReportsPost(context.Background()).DeleteRepositoryReportsRequest(deleteRepositoryReportsRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CodeReferencesApi.V1CodeReferencesDeleteReportsPost``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ deleteRepositoryReportsRequest := *openapiclient.NewDeleteRepositoryReportsRequest("ConfigId_example", "Repository_example") // DeleteRepositoryReportsRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CodeReferencesAPI.V1CodeReferencesDeleteReportsPost(context.Background()).DeleteRepositoryReportsRequest(deleteRepositoryReportsRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CodeReferencesAPI.V1CodeReferencesDeleteReportsPost``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -89,22 +88,22 @@ Upload References
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- codeReferenceRequest := *openapiclient.NewCodeReferenceRequest("ConfigId_example", "Repository_example", "Branch_example") // CodeReferenceRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.CodeReferencesApi.V1CodeReferencesPost(context.Background()).CodeReferenceRequest(codeReferenceRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CodeReferencesApi.V1CodeReferencesPost``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ codeReferenceRequest := *openapiclient.NewCodeReferenceRequest("ConfigId_example", "Repository_example", "Branch_example") // CodeReferenceRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.CodeReferencesAPI.V1CodeReferencesPost(context.Background()).CodeReferenceRequest(codeReferenceRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CodeReferencesAPI.V1CodeReferencesPost``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -139,76 +138,6 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## V1ConfigsConfigIdCodeReferencesGet
-
-> []CodeReferencesForSettingModel V1ConfigsConfigIdCodeReferencesGet(ctx, configId).Execute()
-
-Get References in Config
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
-)
-
-func main() {
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CodeReferencesApi.V1ConfigsConfigIdCodeReferencesGet(context.Background(), configId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CodeReferencesApi.V1ConfigsConfigIdCodeReferencesGet``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `V1ConfigsConfigIdCodeReferencesGet`: []CodeReferencesForSettingModel
- fmt.Fprintf(os.Stdout, "Response from `CodeReferencesApi.V1ConfigsConfigIdCodeReferencesGet`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**configId** | **string** | The identifier of the Config. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiV1ConfigsConfigIdCodeReferencesGetRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**[]CodeReferencesForSettingModel**](CodeReferencesForSettingModel.md)
-
-### Authorization
-
-[Basic](../README.md#Basic)
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: application/json
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
## V1SettingsSettingIdCodeReferencesGet
> []CodeReferenceModel V1SettingsSettingIdCodeReferencesGet(ctx, settingId).Execute()
@@ -223,24 +152,24 @@ Get References for Feature Flag or Setting
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- settingId := int32(56) // int32 | The identifier of the Feature Flag or Setting.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CodeReferencesApi.V1SettingsSettingIdCodeReferencesGet(context.Background(), settingId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `CodeReferencesApi.V1SettingsSettingIdCodeReferencesGet``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `V1SettingsSettingIdCodeReferencesGet`: []CodeReferenceModel
- fmt.Fprintf(os.Stdout, "Response from `CodeReferencesApi.V1SettingsSettingIdCodeReferencesGet`: %v\n", resp)
+ settingId := int32(56) // int32 | The identifier of the Feature Flag or Setting.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.CodeReferencesAPI.V1SettingsSettingIdCodeReferencesGet(context.Background(), settingId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `CodeReferencesAPI.V1SettingsSettingIdCodeReferencesGet``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `V1SettingsSettingIdCodeReferencesGet`: []CodeReferenceModel
+ fmt.Fprintf(os.Stdout, "Response from `CodeReferencesAPI.V1SettingsSettingIdCodeReferencesGet`: %v\n", resp)
}
```
diff --git a/docs/ConfigsApi.md b/docs/ConfigsApi.md
index 3ca06f7..572d84b 100644
--- a/docs/ConfigsApi.md
+++ b/docs/ConfigsApi.md
@@ -1,14 +1,14 @@
-# \ConfigsApi
+# \ConfigsAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**CreateConfig**](ConfigsApi.md#CreateConfig) | **Post** /v1/products/{productId}/configs | Create Config
-[**DeleteConfig**](ConfigsApi.md#DeleteConfig) | **Delete** /v1/configs/{configId} | Delete Config
-[**GetConfig**](ConfigsApi.md#GetConfig) | **Get** /v1/configs/{configId} | Get Config
-[**GetConfigs**](ConfigsApi.md#GetConfigs) | **Get** /v1/products/{productId}/configs | List Configs
-[**UpdateConfig**](ConfigsApi.md#UpdateConfig) | **Put** /v1/configs/{configId} | Update Config
+[**CreateConfig**](ConfigsAPI.md#CreateConfig) | **Post** /v1/products/{productId}/configs | Create Config
+[**DeleteConfig**](ConfigsAPI.md#DeleteConfig) | **Delete** /v1/configs/{configId} | Delete Config
+[**GetConfig**](ConfigsAPI.md#GetConfig) | **Get** /v1/configs/{configId} | Get Config
+[**GetConfigs**](ConfigsAPI.md#GetConfigs) | **Get** /v1/products/{productId}/configs | List Configs
+[**UpdateConfig**](ConfigsAPI.md#UpdateConfig) | **Put** /v1/configs/{configId} | Update Config
@@ -26,25 +26,25 @@ Create Config
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
- createConfigRequest := *openapiclient.NewCreateConfigRequest("Name_example") // CreateConfigRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ConfigsApi.CreateConfig(context.Background(), productId).CreateConfigRequest(createConfigRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ConfigsApi.CreateConfig``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CreateConfig`: ConfigModel
- fmt.Fprintf(os.Stdout, "Response from `ConfigsApi.CreateConfig`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+ createConfigRequest := *openapiclient.NewCreateConfigRequest("Name_example") // CreateConfigRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ConfigsAPI.CreateConfig(context.Background(), productId).CreateConfigRequest(createConfigRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.CreateConfig``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CreateConfig`: ConfigModel
+ fmt.Fprintf(os.Stdout, "Response from `ConfigsAPI.CreateConfig`: %v\n", resp)
}
```
@@ -98,22 +98,22 @@ Delete Config
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ConfigsApi.DeleteConfig(context.Background(), configId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ConfigsApi.DeleteConfig``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ConfigsAPI.DeleteConfig(context.Background(), configId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.DeleteConfig``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -166,24 +166,24 @@ Get Config
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ConfigsApi.GetConfig(context.Background(), configId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ConfigsApi.GetConfig``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetConfig`: ConfigModel
- fmt.Fprintf(os.Stdout, "Response from `ConfigsApi.GetConfig`: %v\n", resp)
+ configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ConfigsAPI.GetConfig(context.Background(), configId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.GetConfig``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetConfig`: ConfigModel
+ fmt.Fprintf(os.Stdout, "Response from `ConfigsAPI.GetConfig`: %v\n", resp)
}
```
@@ -236,24 +236,24 @@ List Configs
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ConfigsApi.GetConfigs(context.Background(), productId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ConfigsApi.GetConfigs``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetConfigs`: []ConfigModel
- fmt.Fprintf(os.Stdout, "Response from `ConfigsApi.GetConfigs`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ConfigsAPI.GetConfigs(context.Background(), productId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.GetConfigs``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetConfigs`: []ConfigModel
+ fmt.Fprintf(os.Stdout, "Response from `ConfigsAPI.GetConfigs`: %v\n", resp)
}
```
@@ -306,25 +306,25 @@ Update Config
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
- updateConfigRequest := *openapiclient.NewUpdateConfigRequest() // UpdateConfigRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ConfigsApi.UpdateConfig(context.Background(), configId).UpdateConfigRequest(updateConfigRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ConfigsApi.UpdateConfig``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UpdateConfig`: ConfigModel
- fmt.Fprintf(os.Stdout, "Response from `ConfigsApi.UpdateConfig`: %v\n", resp)
+ configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
+ updateConfigRequest := *openapiclient.NewUpdateConfigRequest() // UpdateConfigRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ConfigsAPI.UpdateConfig(context.Background(), configId).UpdateConfigRequest(updateConfigRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.UpdateConfig``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UpdateConfig`: ConfigModel
+ fmt.Fprintf(os.Stdout, "Response from `ConfigsAPI.UpdateConfig`: %v\n", resp)
}
```
diff --git a/docs/CreateIntegrationModel.md b/docs/CreateIntegrationModel.md
new file mode 100644
index 0000000..0d820fd
--- /dev/null
+++ b/docs/CreateIntegrationModel.md
@@ -0,0 +1,135 @@
+# CreateIntegrationModel
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**IntegrationType** | [**IntegrationType**](IntegrationType.md) | |
+**Name** | **string** | Name of the Integration. |
+**Parameters** | **map[string]string** | Parameters of the Integration. |
+**EnvironmentIds** | **[]string** | List of Environment IDs that are connected with this Integration. If the list is empty, all of the Environments are connected. |
+**ConfigIds** | **[]string** | List of Config IDs that are connected with this Integration. If the list is empty, all of the Configs are connected. |
+
+## Methods
+
+### NewCreateIntegrationModel
+
+`func NewCreateIntegrationModel(integrationType IntegrationType, name string, parameters map[string]string, environmentIds []string, configIds []string, ) *CreateIntegrationModel`
+
+NewCreateIntegrationModel instantiates a new CreateIntegrationModel 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
+
+### NewCreateIntegrationModelWithDefaults
+
+`func NewCreateIntegrationModelWithDefaults() *CreateIntegrationModel`
+
+NewCreateIntegrationModelWithDefaults instantiates a new CreateIntegrationModel 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
+
+### GetIntegrationType
+
+`func (o *CreateIntegrationModel) GetIntegrationType() IntegrationType`
+
+GetIntegrationType returns the IntegrationType field if non-nil, zero value otherwise.
+
+### GetIntegrationTypeOk
+
+`func (o *CreateIntegrationModel) GetIntegrationTypeOk() (*IntegrationType, bool)`
+
+GetIntegrationTypeOk returns a tuple with the IntegrationType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetIntegrationType
+
+`func (o *CreateIntegrationModel) SetIntegrationType(v IntegrationType)`
+
+SetIntegrationType sets IntegrationType field to given value.
+
+
+### GetName
+
+`func (o *CreateIntegrationModel) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *CreateIntegrationModel) 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 *CreateIntegrationModel) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetParameters
+
+`func (o *CreateIntegrationModel) GetParameters() map[string]string`
+
+GetParameters returns the Parameters field if non-nil, zero value otherwise.
+
+### GetParametersOk
+
+`func (o *CreateIntegrationModel) GetParametersOk() (*map[string]string, bool)`
+
+GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetParameters
+
+`func (o *CreateIntegrationModel) SetParameters(v map[string]string)`
+
+SetParameters sets Parameters field to given value.
+
+
+### GetEnvironmentIds
+
+`func (o *CreateIntegrationModel) GetEnvironmentIds() []string`
+
+GetEnvironmentIds returns the EnvironmentIds field if non-nil, zero value otherwise.
+
+### GetEnvironmentIdsOk
+
+`func (o *CreateIntegrationModel) GetEnvironmentIdsOk() (*[]string, bool)`
+
+GetEnvironmentIdsOk returns a tuple with the EnvironmentIds field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEnvironmentIds
+
+`func (o *CreateIntegrationModel) SetEnvironmentIds(v []string)`
+
+SetEnvironmentIds sets EnvironmentIds field to given value.
+
+
+### GetConfigIds
+
+`func (o *CreateIntegrationModel) GetConfigIds() []string`
+
+GetConfigIds returns the ConfigIds field if non-nil, zero value otherwise.
+
+### GetConfigIdsOk
+
+`func (o *CreateIntegrationModel) GetConfigIdsOk() (*[]string, bool)`
+
+GetConfigIdsOk returns a tuple with the ConfigIds field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetConfigIds
+
+`func (o *CreateIntegrationModel) SetConfigIds(v []string)`
+
+SetConfigIds sets ConfigIds field to given value.
+
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/EnvironmentsApi.md b/docs/EnvironmentsApi.md
index f40520f..2030c08 100644
--- a/docs/EnvironmentsApi.md
+++ b/docs/EnvironmentsApi.md
@@ -1,14 +1,14 @@
-# \EnvironmentsApi
+# \EnvironmentsAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**CreateEnvironment**](EnvironmentsApi.md#CreateEnvironment) | **Post** /v1/products/{productId}/environments | Create Environment
-[**DeleteEnvironment**](EnvironmentsApi.md#DeleteEnvironment) | **Delete** /v1/environments/{environmentId} | Delete Environment
-[**GetEnvironment**](EnvironmentsApi.md#GetEnvironment) | **Get** /v1/environments/{environmentId} | Get Environment
-[**GetEnvironments**](EnvironmentsApi.md#GetEnvironments) | **Get** /v1/products/{productId}/environments | List Environments
-[**UpdateEnvironment**](EnvironmentsApi.md#UpdateEnvironment) | **Put** /v1/environments/{environmentId} | Update Environment
+[**CreateEnvironment**](EnvironmentsAPI.md#CreateEnvironment) | **Post** /v1/products/{productId}/environments | Create Environment
+[**DeleteEnvironment**](EnvironmentsAPI.md#DeleteEnvironment) | **Delete** /v1/environments/{environmentId} | Delete Environment
+[**GetEnvironment**](EnvironmentsAPI.md#GetEnvironment) | **Get** /v1/environments/{environmentId} | Get Environment
+[**GetEnvironments**](EnvironmentsAPI.md#GetEnvironments) | **Get** /v1/products/{productId}/environments | List Environments
+[**UpdateEnvironment**](EnvironmentsAPI.md#UpdateEnvironment) | **Put** /v1/environments/{environmentId} | Update Environment
@@ -26,25 +26,25 @@ Create Environment
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
- createEnvironmentModel := *openapiclient.NewCreateEnvironmentModel("Name_example") // CreateEnvironmentModel |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.EnvironmentsApi.CreateEnvironment(context.Background(), productId).CreateEnvironmentModel(createEnvironmentModel).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsApi.CreateEnvironment``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CreateEnvironment`: EnvironmentModel
- fmt.Fprintf(os.Stdout, "Response from `EnvironmentsApi.CreateEnvironment`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+ createEnvironmentModel := *openapiclient.NewCreateEnvironmentModel("Name_example") // CreateEnvironmentModel |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.EnvironmentsAPI.CreateEnvironment(context.Background(), productId).CreateEnvironmentModel(createEnvironmentModel).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.CreateEnvironment``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CreateEnvironment`: EnvironmentModel
+ fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.CreateEnvironment`: %v\n", resp)
}
```
@@ -98,23 +98,23 @@ Delete Environment
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
- cleanupAuditLogs := true // bool | An optional flag which indicates whether the audit log records related to the environment should be deleted or not. (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.EnvironmentsApi.DeleteEnvironment(context.Background(), environmentId).CleanupAuditLogs(cleanupAuditLogs).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsApi.DeleteEnvironment``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+ cleanupAuditLogs := true // bool | An optional flag which indicates whether the audit log records related to the environment should be deleted or not. (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.EnvironmentsAPI.DeleteEnvironment(context.Background(), environmentId).CleanupAuditLogs(cleanupAuditLogs).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.DeleteEnvironment``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -168,24 +168,24 @@ Get Environment
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.EnvironmentsApi.GetEnvironment(context.Background(), environmentId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsApi.GetEnvironment``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetEnvironment`: EnvironmentModel
- fmt.Fprintf(os.Stdout, "Response from `EnvironmentsApi.GetEnvironment`: %v\n", resp)
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.EnvironmentsAPI.GetEnvironment(context.Background(), environmentId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.GetEnvironment``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetEnvironment`: EnvironmentModel
+ fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.GetEnvironment`: %v\n", resp)
}
```
@@ -238,24 +238,24 @@ List Environments
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.EnvironmentsApi.GetEnvironments(context.Background(), productId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsApi.GetEnvironments``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetEnvironments`: []EnvironmentModel
- fmt.Fprintf(os.Stdout, "Response from `EnvironmentsApi.GetEnvironments`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.EnvironmentsAPI.GetEnvironments(context.Background(), productId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.GetEnvironments``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetEnvironments`: []EnvironmentModel
+ fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.GetEnvironments`: %v\n", resp)
}
```
@@ -308,25 +308,25 @@ Update Environment
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
- updateEnvironmentModel := *openapiclient.NewUpdateEnvironmentModel() // UpdateEnvironmentModel |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.EnvironmentsApi.UpdateEnvironment(context.Background(), environmentId).UpdateEnvironmentModel(updateEnvironmentModel).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsApi.UpdateEnvironment``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UpdateEnvironment`: EnvironmentModel
- fmt.Fprintf(os.Stdout, "Response from `EnvironmentsApi.UpdateEnvironment`: %v\n", resp)
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+ updateEnvironmentModel := *openapiclient.NewUpdateEnvironmentModel() // UpdateEnvironmentModel |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.EnvironmentsAPI.UpdateEnvironment(context.Background(), environmentId).UpdateEnvironmentModel(updateEnvironmentModel).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.UpdateEnvironment``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UpdateEnvironment`: EnvironmentModel
+ fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.UpdateEnvironment`: %v\n", resp)
}
```
diff --git a/docs/FeatureFlagLimitations.md b/docs/FeatureFlagLimitations.md
index 617640e..2adc104 100644
--- a/docs/FeatureFlagLimitations.md
+++ b/docs/FeatureFlagLimitations.md
@@ -4,13 +4,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**MaxPercentageOptionCount** | Pointer to **int32** | Maximum number of percentage options a Feature Flag or Setting can have within a targeting rule. | [optional] [readonly]
-**MaxTargetingRuleCount** | Pointer to **int32** | Maximum number of targeting rules a Feature Flag or Setting can have. | [optional] [readonly]
-**MaxComparisonValueLength** | Pointer to **int32** | Maximum length of a text comparison value. | [optional] [readonly]
-**MaxComparisonValueListLength** | Pointer to **int32** | Maximum item count of a list comparison value. | [optional] [readonly]
-**MaxComparisonValueListItemLength** | Pointer to **int32** | Maximum length of a list comparison value's item. | [optional] [readonly]
-**MaxStringFlagValueLength** | Pointer to **int32** | Maximum length of a text Setting's value. | [optional] [readonly]
-**MaxConditionPerTargetingRuleCount** | Pointer to **int32** | Maximum number of `AND` conditions a Feature Flag or Setting can have within a targeting rule. | [optional] [readonly]
+**MaxPercentageOptionCount** | Pointer to **int32** | Maximum number of percentage options a Feature Flag or Setting can have within a targeting rule. | [optional]
+**MaxTargetingRuleCount** | Pointer to **int32** | Maximum number of targeting rules a Feature Flag or Setting can have. | [optional]
+**MaxComparisonValueLength** | Pointer to **int32** | Maximum length of a text comparison value. | [optional]
+**MaxComparisonValueListLength** | Pointer to **int32** | Maximum item count of a list comparison value. | [optional]
+**MaxComparisonValueListItemLength** | Pointer to **int32** | Maximum length of a list comparison value's item. | [optional]
+**MaxStringFlagValueLength** | Pointer to **int32** | Maximum length of a text Setting's value. | [optional]
+**MaxConditionPerTargetingRuleCount** | Pointer to **int32** | Maximum number of `AND` conditions a Feature Flag or Setting can have within a targeting rule. | [optional]
## Methods
diff --git a/docs/FeatureFlagSettingValuesApi.md b/docs/FeatureFlagSettingValuesApi.md
index f90eee2..af6126b 100644
--- a/docs/FeatureFlagSettingValuesApi.md
+++ b/docs/FeatureFlagSettingValuesApi.md
@@ -1,14 +1,14 @@
-# \FeatureFlagSettingValuesApi
+# \FeatureFlagSettingValuesAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**GetSettingValue**](FeatureFlagSettingValuesApi.md#GetSettingValue) | **Get** /v1/environments/{environmentId}/settings/{settingId}/value | Get value
-[**GetSettingValues**](FeatureFlagSettingValuesApi.md#GetSettingValues) | **Get** /v1/configs/{configId}/environments/{environmentId}/values | Get values
-[**PostSettingValues**](FeatureFlagSettingValuesApi.md#PostSettingValues) | **Post** /v1/configs/{configId}/environments/{environmentId}/values | Post values
-[**ReplaceSettingValue**](FeatureFlagSettingValuesApi.md#ReplaceSettingValue) | **Put** /v1/environments/{environmentId}/settings/{settingId}/value | Replace value
-[**UpdateSettingValue**](FeatureFlagSettingValuesApi.md#UpdateSettingValue) | **Patch** /v1/environments/{environmentId}/settings/{settingId}/value | Update value
+[**GetSettingValue**](FeatureFlagSettingValuesAPI.md#GetSettingValue) | **Get** /v1/environments/{environmentId}/settings/{settingId}/value | Get value
+[**GetSettingValues**](FeatureFlagSettingValuesAPI.md#GetSettingValues) | **Get** /v1/configs/{configId}/environments/{environmentId}/values | Get values
+[**PostSettingValues**](FeatureFlagSettingValuesAPI.md#PostSettingValues) | **Post** /v1/configs/{configId}/environments/{environmentId}/values | Post values
+[**ReplaceSettingValue**](FeatureFlagSettingValuesAPI.md#ReplaceSettingValue) | **Put** /v1/environments/{environmentId}/settings/{settingId}/value | Replace value
+[**UpdateSettingValue**](FeatureFlagSettingValuesAPI.md#UpdateSettingValue) | **Patch** /v1/environments/{environmentId}/settings/{settingId}/value | Update value
@@ -26,25 +26,25 @@ Get value
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
- settingId := int32(56) // int32 | The id of the Setting.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesApi.GetSettingValue(context.Background(), environmentId, settingId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesApi.GetSettingValue``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetSettingValue`: SettingValueModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesApi.GetSettingValue`: %v\n", resp)
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+ settingId := int32(56) // int32 | The id of the Setting.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesAPI.GetSettingValue(context.Background(), environmentId, settingId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesAPI.GetSettingValue``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetSettingValue`: SettingValueModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesAPI.GetSettingValue`: %v\n", resp)
}
```
@@ -99,25 +99,25 @@ Get values
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesApi.GetSettingValues(context.Background(), configId, environmentId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesApi.GetSettingValues``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetSettingValues`: ConfigSettingValuesModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesApi.GetSettingValues`: %v\n", resp)
+ configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesAPI.GetSettingValues(context.Background(), configId, environmentId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesAPI.GetSettingValues``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetSettingValues`: ConfigSettingValuesModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesAPI.GetSettingValues`: %v\n", resp)
}
```
@@ -172,27 +172,27 @@ Post values
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
- updateSettingValuesWithIdModel := *openapiclient.NewUpdateSettingValuesWithIdModel() // UpdateSettingValuesWithIdModel |
- reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesApi.PostSettingValues(context.Background(), configId, environmentId).UpdateSettingValuesWithIdModel(updateSettingValuesWithIdModel).Reason(reason).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesApi.PostSettingValues``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `PostSettingValues`: ConfigSettingValuesModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesApi.PostSettingValues`: %v\n", resp)
+ configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+ updateSettingValuesWithIdModel := *openapiclient.NewUpdateSettingValuesWithIdModel() // UpdateSettingValuesWithIdModel |
+ reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesAPI.PostSettingValues(context.Background(), configId, environmentId).UpdateSettingValuesWithIdModel(updateSettingValuesWithIdModel).Reason(reason).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesAPI.PostSettingValues``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `PostSettingValues`: ConfigSettingValuesModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesAPI.PostSettingValues`: %v\n", resp)
}
```
@@ -249,27 +249,27 @@ Replace value
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
- settingId := int32(56) // int32 | The id of the Setting.
- updateSettingValueModel := *openapiclient.NewUpdateSettingValueModel() // UpdateSettingValueModel |
- reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesApi.ReplaceSettingValue(context.Background(), environmentId, settingId).UpdateSettingValueModel(updateSettingValueModel).Reason(reason).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesApi.ReplaceSettingValue``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ReplaceSettingValue`: SettingValueModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesApi.ReplaceSettingValue`: %v\n", resp)
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+ settingId := int32(56) // int32 | The id of the Setting.
+ updateSettingValueModel := *openapiclient.NewUpdateSettingValueModel() // UpdateSettingValueModel |
+ reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesAPI.ReplaceSettingValue(context.Background(), environmentId, settingId).UpdateSettingValueModel(updateSettingValueModel).Reason(reason).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesAPI.ReplaceSettingValue``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ReplaceSettingValue`: SettingValueModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesAPI.ReplaceSettingValue`: %v\n", resp)
}
```
@@ -326,27 +326,27 @@ Update value
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
- settingId := int32(56) // int32 | The id of the Setting.
- jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation(openapiclient.OperationType("unknown"), "Path_example")} // []JsonPatchOperation |
- reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesApi.UpdateSettingValue(context.Background(), environmentId, settingId).JsonPatchOperation(jsonPatchOperation).Reason(reason).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesApi.UpdateSettingValue``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UpdateSettingValue`: SettingValueModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesApi.UpdateSettingValue`: %v\n", resp)
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+ settingId := int32(56) // int32 | The id of the Setting.
+ jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation(openapiclient.OperationType("unknown"), "Path_example")} // []JsonPatchOperation |
+ reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesAPI.UpdateSettingValue(context.Background(), environmentId, settingId).JsonPatchOperation(jsonPatchOperation).Reason(reason).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesAPI.UpdateSettingValue``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UpdateSettingValue`: SettingValueModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesAPI.UpdateSettingValue`: %v\n", resp)
}
```
diff --git a/docs/FeatureFlagSettingValuesUsingSDKKeyApi.md b/docs/FeatureFlagSettingValuesUsingSDKKeyApi.md
index 38e47e5..f03bb99 100644
--- a/docs/FeatureFlagSettingValuesUsingSDKKeyApi.md
+++ b/docs/FeatureFlagSettingValuesUsingSDKKeyApi.md
@@ -1,12 +1,12 @@
-# \FeatureFlagSettingValuesUsingSDKKeyApi
+# \FeatureFlagSettingValuesUsingSDKKeyAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**GetSettingValueBySdkkey**](FeatureFlagSettingValuesUsingSDKKeyApi.md#GetSettingValueBySdkkey) | **Get** /v1/settings/{settingKeyOrId}/value | Get value
-[**ReplaceSettingValueBySdkkey**](FeatureFlagSettingValuesUsingSDKKeyApi.md#ReplaceSettingValueBySdkkey) | **Put** /v1/settings/{settingKeyOrId}/value | Replace value
-[**UpdateSettingValueBySdkkey**](FeatureFlagSettingValuesUsingSDKKeyApi.md#UpdateSettingValueBySdkkey) | **Patch** /v1/settings/{settingKeyOrId}/value | Update value
+[**GetSettingValueBySdkkey**](FeatureFlagSettingValuesUsingSDKKeyAPI.md#GetSettingValueBySdkkey) | **Get** /v1/settings/{settingKeyOrId}/value | Get value
+[**ReplaceSettingValueBySdkkey**](FeatureFlagSettingValuesUsingSDKKeyAPI.md#ReplaceSettingValueBySdkkey) | **Put** /v1/settings/{settingKeyOrId}/value | Replace value
+[**UpdateSettingValueBySdkkey**](FeatureFlagSettingValuesUsingSDKKeyAPI.md#UpdateSettingValueBySdkkey) | **Patch** /v1/settings/{settingKeyOrId}/value | Update value
@@ -24,25 +24,25 @@ Get value
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- settingKeyOrId := "settingKeyOrId_example" // string | The key or id of the Setting.
- xCONFIGCATSDKKEY := "xCONFIGCATSDKKEY_example" // string | The ConfigCat SDK Key. (https://app.configcat.com/sdkkey) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesUsingSDKKeyApi.GetSettingValueBySdkkey(context.Background(), settingKeyOrId).XCONFIGCATSDKKEY(xCONFIGCATSDKKEY).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesUsingSDKKeyApi.GetSettingValueBySdkkey``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetSettingValueBySdkkey`: SettingValueModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesUsingSDKKeyApi.GetSettingValueBySdkkey`: %v\n", resp)
+ settingKeyOrId := "settingKeyOrId_example" // string | The key or id of the Setting.
+ xCONFIGCATSDKKEY := "xCONFIGCATSDKKEY_example" // string | The ConfigCat SDK Key. (https://app.configcat.com/sdkkey) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesUsingSDKKeyAPI.GetSettingValueBySdkkey(context.Background(), settingKeyOrId).XCONFIGCATSDKKEY(xCONFIGCATSDKKEY).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesUsingSDKKeyAPI.GetSettingValueBySdkkey``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetSettingValueBySdkkey`: SettingValueModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesUsingSDKKeyAPI.GetSettingValueBySdkkey`: %v\n", resp)
}
```
@@ -96,27 +96,27 @@ Replace value
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- settingKeyOrId := "settingKeyOrId_example" // string | The key or id of the Setting.
- updateSettingValueModel := *openapiclient.NewUpdateSettingValueModel() // UpdateSettingValueModel |
- reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
- xCONFIGCATSDKKEY := "xCONFIGCATSDKKEY_example" // string | The ConfigCat SDK Key. (https://app.configcat.com/sdkkey) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesUsingSDKKeyApi.ReplaceSettingValueBySdkkey(context.Background(), settingKeyOrId).UpdateSettingValueModel(updateSettingValueModel).Reason(reason).XCONFIGCATSDKKEY(xCONFIGCATSDKKEY).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesUsingSDKKeyApi.ReplaceSettingValueBySdkkey``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ReplaceSettingValueBySdkkey`: SettingValueModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesUsingSDKKeyApi.ReplaceSettingValueBySdkkey`: %v\n", resp)
+ settingKeyOrId := "settingKeyOrId_example" // string | The key or id of the Setting.
+ updateSettingValueModel := *openapiclient.NewUpdateSettingValueModel() // UpdateSettingValueModel |
+ reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
+ xCONFIGCATSDKKEY := "xCONFIGCATSDKKEY_example" // string | The ConfigCat SDK Key. (https://app.configcat.com/sdkkey) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesUsingSDKKeyAPI.ReplaceSettingValueBySdkkey(context.Background(), settingKeyOrId).UpdateSettingValueModel(updateSettingValueModel).Reason(reason).XCONFIGCATSDKKEY(xCONFIGCATSDKKEY).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesUsingSDKKeyAPI.ReplaceSettingValueBySdkkey``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ReplaceSettingValueBySdkkey`: SettingValueModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesUsingSDKKeyAPI.ReplaceSettingValueBySdkkey`: %v\n", resp)
}
```
@@ -172,27 +172,27 @@ Update value
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- settingKeyOrId := "settingKeyOrId_example" // string | The key or id of the Setting.
- jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation(openapiclient.OperationType("unknown"), "Path_example")} // []JsonPatchOperation |
- reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
- xCONFIGCATSDKKEY := "xCONFIGCATSDKKEY_example" // string | The ConfigCat SDK Key. (https://app.configcat.com/sdkkey) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesUsingSDKKeyApi.UpdateSettingValueBySdkkey(context.Background(), settingKeyOrId).JsonPatchOperation(jsonPatchOperation).Reason(reason).XCONFIGCATSDKKEY(xCONFIGCATSDKKEY).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesUsingSDKKeyApi.UpdateSettingValueBySdkkey``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UpdateSettingValueBySdkkey`: SettingValueModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesUsingSDKKeyApi.UpdateSettingValueBySdkkey`: %v\n", resp)
+ settingKeyOrId := "settingKeyOrId_example" // string | The key or id of the Setting.
+ jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation(openapiclient.OperationType("unknown"), "Path_example")} // []JsonPatchOperation |
+ reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
+ xCONFIGCATSDKKEY := "xCONFIGCATSDKKEY_example" // string | The ConfigCat SDK Key. (https://app.configcat.com/sdkkey) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesUsingSDKKeyAPI.UpdateSettingValueBySdkkey(context.Background(), settingKeyOrId).JsonPatchOperation(jsonPatchOperation).Reason(reason).XCONFIGCATSDKKEY(xCONFIGCATSDKKEY).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesUsingSDKKeyAPI.UpdateSettingValueBySdkkey``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UpdateSettingValueBySdkkey`: SettingValueModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesUsingSDKKeyAPI.UpdateSettingValueBySdkkey`: %v\n", resp)
}
```
diff --git a/docs/FeatureFlagSettingValuesUsingSDKKeyV2Api.md b/docs/FeatureFlagSettingValuesUsingSDKKeyV2Api.md
index 3e3c25b..46bbda6 100644
--- a/docs/FeatureFlagSettingValuesUsingSDKKeyV2Api.md
+++ b/docs/FeatureFlagSettingValuesUsingSDKKeyV2Api.md
@@ -1,12 +1,12 @@
-# \FeatureFlagSettingValuesUsingSDKKeyV2Api
+# \FeatureFlagSettingValuesUsingSDKKeyV2API
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**GetSettingValueBySdkkeyV2**](FeatureFlagSettingValuesUsingSDKKeyV2Api.md#GetSettingValueBySdkkeyV2) | **Get** /v2/settings/{settingKeyOrId}/value | Get value
-[**ReplaceSettingValueBySdkkeyV2**](FeatureFlagSettingValuesUsingSDKKeyV2Api.md#ReplaceSettingValueBySdkkeyV2) | **Put** /v2/settings/{settingKeyOrId}/value | Replace value
-[**UpdateSettingValueBySdkkeyV2**](FeatureFlagSettingValuesUsingSDKKeyV2Api.md#UpdateSettingValueBySdkkeyV2) | **Patch** /v2/settings/{settingKeyOrId}/value | Update value
+[**GetSettingValueBySdkkeyV2**](FeatureFlagSettingValuesUsingSDKKeyV2API.md#GetSettingValueBySdkkeyV2) | **Get** /v2/settings/{settingKeyOrId}/value | Get value
+[**ReplaceSettingValueBySdkkeyV2**](FeatureFlagSettingValuesUsingSDKKeyV2API.md#ReplaceSettingValueBySdkkeyV2) | **Put** /v2/settings/{settingKeyOrId}/value | Replace value
+[**UpdateSettingValueBySdkkeyV2**](FeatureFlagSettingValuesUsingSDKKeyV2API.md#UpdateSettingValueBySdkkeyV2) | **Patch** /v2/settings/{settingKeyOrId}/value | Update value
@@ -24,25 +24,25 @@ Get value
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- settingKeyOrId := "settingKeyOrId_example" // string | The key or id of the Setting.
- xCONFIGCATSDKKEY := "xCONFIGCATSDKKEY_example" // string | The ConfigCat SDK Key. (https://app.configcat.com/sdkkey) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesUsingSDKKeyV2Api.GetSettingValueBySdkkeyV2(context.Background(), settingKeyOrId).XCONFIGCATSDKKEY(xCONFIGCATSDKKEY).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesUsingSDKKeyV2Api.GetSettingValueBySdkkeyV2``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetSettingValueBySdkkeyV2`: SettingFormulaModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesUsingSDKKeyV2Api.GetSettingValueBySdkkeyV2`: %v\n", resp)
+ settingKeyOrId := "settingKeyOrId_example" // string | The key or id of the Setting.
+ xCONFIGCATSDKKEY := "xCONFIGCATSDKKEY_example" // string | The ConfigCat SDK Key. (https://app.configcat.com/sdkkey) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesUsingSDKKeyV2API.GetSettingValueBySdkkeyV2(context.Background(), settingKeyOrId).XCONFIGCATSDKKEY(xCONFIGCATSDKKEY).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesUsingSDKKeyV2API.GetSettingValueBySdkkeyV2``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetSettingValueBySdkkeyV2`: SettingFormulaModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesUsingSDKKeyV2API.GetSettingValueBySdkkeyV2`: %v\n", resp)
}
```
@@ -96,27 +96,27 @@ Replace value
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- settingKeyOrId := "settingKeyOrId_example" // string | The key or id of the Setting.
- updateEvaluationFormulaModel := *openapiclient.NewUpdateEvaluationFormulaModel(*openapiclient.NewValueModel()) // UpdateEvaluationFormulaModel |
- reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
- xCONFIGCATSDKKEY := "xCONFIGCATSDKKEY_example" // string | The ConfigCat SDK Key. (https://app.configcat.com/sdkkey) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesUsingSDKKeyV2Api.ReplaceSettingValueBySdkkeyV2(context.Background(), settingKeyOrId).UpdateEvaluationFormulaModel(updateEvaluationFormulaModel).Reason(reason).XCONFIGCATSDKKEY(xCONFIGCATSDKKEY).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesUsingSDKKeyV2Api.ReplaceSettingValueBySdkkeyV2``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ReplaceSettingValueBySdkkeyV2`: SettingFormulaModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesUsingSDKKeyV2Api.ReplaceSettingValueBySdkkeyV2`: %v\n", resp)
+ settingKeyOrId := "settingKeyOrId_example" // string | The key or id of the Setting.
+ updateEvaluationFormulaModel := *openapiclient.NewUpdateEvaluationFormulaModel(*openapiclient.NewValueModel()) // UpdateEvaluationFormulaModel |
+ reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
+ xCONFIGCATSDKKEY := "xCONFIGCATSDKKEY_example" // string | The ConfigCat SDK Key. (https://app.configcat.com/sdkkey) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesUsingSDKKeyV2API.ReplaceSettingValueBySdkkeyV2(context.Background(), settingKeyOrId).UpdateEvaluationFormulaModel(updateEvaluationFormulaModel).Reason(reason).XCONFIGCATSDKKEY(xCONFIGCATSDKKEY).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesUsingSDKKeyV2API.ReplaceSettingValueBySdkkeyV2``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ReplaceSettingValueBySdkkeyV2`: SettingFormulaModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesUsingSDKKeyV2API.ReplaceSettingValueBySdkkeyV2`: %v\n", resp)
}
```
@@ -172,27 +172,27 @@ Update value
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- settingKeyOrId := "settingKeyOrId_example" // string | The key or id of the Setting.
- jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation(openapiclient.OperationType("unknown"), "Path_example")} // []JsonPatchOperation |
- reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
- xCONFIGCATSDKKEY := "xCONFIGCATSDKKEY_example" // string | The ConfigCat SDK Key. (https://app.configcat.com/sdkkey) (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesUsingSDKKeyV2Api.UpdateSettingValueBySdkkeyV2(context.Background(), settingKeyOrId).JsonPatchOperation(jsonPatchOperation).Reason(reason).XCONFIGCATSDKKEY(xCONFIGCATSDKKEY).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesUsingSDKKeyV2Api.UpdateSettingValueBySdkkeyV2``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UpdateSettingValueBySdkkeyV2`: SettingFormulaModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesUsingSDKKeyV2Api.UpdateSettingValueBySdkkeyV2`: %v\n", resp)
+ settingKeyOrId := "settingKeyOrId_example" // string | The key or id of the Setting.
+ jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation(openapiclient.OperationType("unknown"), "Path_example")} // []JsonPatchOperation |
+ reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
+ xCONFIGCATSDKKEY := "xCONFIGCATSDKKEY_example" // string | The ConfigCat SDK Key. (https://app.configcat.com/sdkkey) (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesUsingSDKKeyV2API.UpdateSettingValueBySdkkeyV2(context.Background(), settingKeyOrId).JsonPatchOperation(jsonPatchOperation).Reason(reason).XCONFIGCATSDKKEY(xCONFIGCATSDKKEY).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesUsingSDKKeyV2API.UpdateSettingValueBySdkkeyV2``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UpdateSettingValueBySdkkeyV2`: SettingFormulaModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesUsingSDKKeyV2API.UpdateSettingValueBySdkkeyV2`: %v\n", resp)
}
```
diff --git a/docs/FeatureFlagSettingValuesV2Api.md b/docs/FeatureFlagSettingValuesV2Api.md
index 48e6e63..8fba02a 100644
--- a/docs/FeatureFlagSettingValuesV2Api.md
+++ b/docs/FeatureFlagSettingValuesV2Api.md
@@ -1,14 +1,14 @@
-# \FeatureFlagSettingValuesV2Api
+# \FeatureFlagSettingValuesV2API
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**GetSettingValueV2**](FeatureFlagSettingValuesV2Api.md#GetSettingValueV2) | **Get** /v2/environments/{environmentId}/settings/{settingId}/value | Get value
-[**GetSettingValuesV2**](FeatureFlagSettingValuesV2Api.md#GetSettingValuesV2) | **Get** /v2/configs/{configId}/environments/{environmentId}/values | Get values
-[**PostSettingValuesV2**](FeatureFlagSettingValuesV2Api.md#PostSettingValuesV2) | **Post** /v2/configs/{configId}/environments/{environmentId}/values | Post values
-[**ReplaceSettingValueV2**](FeatureFlagSettingValuesV2Api.md#ReplaceSettingValueV2) | **Put** /v2/environments/{environmentId}/settings/{settingId}/value | Replace value
-[**UpdateSettingValueV2**](FeatureFlagSettingValuesV2Api.md#UpdateSettingValueV2) | **Patch** /v2/environments/{environmentId}/settings/{settingId}/value | Update value
+[**GetSettingValueV2**](FeatureFlagSettingValuesV2API.md#GetSettingValueV2) | **Get** /v2/environments/{environmentId}/settings/{settingId}/value | Get value
+[**GetSettingValuesV2**](FeatureFlagSettingValuesV2API.md#GetSettingValuesV2) | **Get** /v2/configs/{configId}/environments/{environmentId}/values | Get values
+[**PostSettingValuesV2**](FeatureFlagSettingValuesV2API.md#PostSettingValuesV2) | **Post** /v2/configs/{configId}/environments/{environmentId}/values | Post values
+[**ReplaceSettingValueV2**](FeatureFlagSettingValuesV2API.md#ReplaceSettingValueV2) | **Put** /v2/environments/{environmentId}/settings/{settingId}/value | Replace value
+[**UpdateSettingValueV2**](FeatureFlagSettingValuesV2API.md#UpdateSettingValueV2) | **Patch** /v2/environments/{environmentId}/settings/{settingId}/value | Update value
@@ -26,25 +26,25 @@ Get value
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
- settingId := int32(56) // int32 | The id of the Setting.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesV2Api.GetSettingValueV2(context.Background(), environmentId, settingId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesV2Api.GetSettingValueV2``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetSettingValueV2`: SettingFormulaModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesV2Api.GetSettingValueV2`: %v\n", resp)
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+ settingId := int32(56) // int32 | The id of the Setting.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesV2API.GetSettingValueV2(context.Background(), environmentId, settingId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesV2API.GetSettingValueV2``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetSettingValueV2`: SettingFormulaModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesV2API.GetSettingValueV2`: %v\n", resp)
}
```
@@ -99,25 +99,25 @@ Get values
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesV2Api.GetSettingValuesV2(context.Background(), configId, environmentId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesV2Api.GetSettingValuesV2``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetSettingValuesV2`: ConfigSettingFormulasModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesV2Api.GetSettingValuesV2`: %v\n", resp)
+ configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesV2API.GetSettingValuesV2(context.Background(), configId, environmentId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesV2API.GetSettingValuesV2``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetSettingValuesV2`: ConfigSettingFormulasModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesV2API.GetSettingValuesV2`: %v\n", resp)
}
```
@@ -172,27 +172,27 @@ Post values
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
- updateEvaluationFormulasModel := *openapiclient.NewUpdateEvaluationFormulasModel() // UpdateEvaluationFormulasModel |
- reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesV2Api.PostSettingValuesV2(context.Background(), configId, environmentId).UpdateEvaluationFormulasModel(updateEvaluationFormulasModel).Reason(reason).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesV2Api.PostSettingValuesV2``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `PostSettingValuesV2`: ConfigSettingFormulasModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesV2Api.PostSettingValuesV2`: %v\n", resp)
+ configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+ updateEvaluationFormulasModel := *openapiclient.NewUpdateEvaluationFormulasModel() // UpdateEvaluationFormulasModel |
+ reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesV2API.PostSettingValuesV2(context.Background(), configId, environmentId).UpdateEvaluationFormulasModel(updateEvaluationFormulasModel).Reason(reason).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesV2API.PostSettingValuesV2``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `PostSettingValuesV2`: ConfigSettingFormulasModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesV2API.PostSettingValuesV2`: %v\n", resp)
}
```
@@ -249,27 +249,27 @@ Replace value
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
- settingId := int32(56) // int32 | The id of the Setting.
- updateEvaluationFormulaModel := *openapiclient.NewUpdateEvaluationFormulaModel(*openapiclient.NewValueModel()) // UpdateEvaluationFormulaModel |
- reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesV2Api.ReplaceSettingValueV2(context.Background(), environmentId, settingId).UpdateEvaluationFormulaModel(updateEvaluationFormulaModel).Reason(reason).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesV2Api.ReplaceSettingValueV2``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ReplaceSettingValueV2`: SettingFormulaModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesV2Api.ReplaceSettingValueV2`: %v\n", resp)
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+ settingId := int32(56) // int32 | The id of the Setting.
+ updateEvaluationFormulaModel := *openapiclient.NewUpdateEvaluationFormulaModel(*openapiclient.NewValueModel()) // UpdateEvaluationFormulaModel |
+ reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesV2API.ReplaceSettingValueV2(context.Background(), environmentId, settingId).UpdateEvaluationFormulaModel(updateEvaluationFormulaModel).Reason(reason).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesV2API.ReplaceSettingValueV2``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ReplaceSettingValueV2`: SettingFormulaModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesV2API.ReplaceSettingValueV2`: %v\n", resp)
}
```
@@ -326,27 +326,27 @@ Update value
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
- settingId := int32(56) // int32 | The id of the Setting.
- jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation(openapiclient.OperationType("unknown"), "Path_example")} // []JsonPatchOperation |
- reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagSettingValuesV2Api.UpdateSettingValueV2(context.Background(), environmentId, settingId).JsonPatchOperation(jsonPatchOperation).Reason(reason).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesV2Api.UpdateSettingValueV2``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UpdateSettingValueV2`: SettingFormulaModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesV2Api.UpdateSettingValueV2`: %v\n", resp)
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+ settingId := int32(56) // int32 | The id of the Setting.
+ jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation(openapiclient.OperationType("unknown"), "Path_example")} // []JsonPatchOperation |
+ reason := "reason_example" // string | The reason note for the Audit Log if the Product's \"Config changes require a reason\" preference is turned on. (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagSettingValuesV2API.UpdateSettingValueV2(context.Background(), environmentId, settingId).JsonPatchOperation(jsonPatchOperation).Reason(reason).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagSettingValuesV2API.UpdateSettingValueV2``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UpdateSettingValueV2`: SettingFormulaModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagSettingValuesV2API.UpdateSettingValueV2`: %v\n", resp)
}
```
diff --git a/docs/FeatureFlagsSettingsApi.md b/docs/FeatureFlagsSettingsApi.md
index baea4e6..e8a4b19 100644
--- a/docs/FeatureFlagsSettingsApi.md
+++ b/docs/FeatureFlagsSettingsApi.md
@@ -1,15 +1,15 @@
-# \FeatureFlagsSettingsApi
+# \FeatureFlagsSettingsAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**CreateSetting**](FeatureFlagsSettingsApi.md#CreateSetting) | **Post** /v1/configs/{configId}/settings | Create Flag
-[**DeleteSetting**](FeatureFlagsSettingsApi.md#DeleteSetting) | **Delete** /v1/settings/{settingId} | Delete Flag
-[**GetSetting**](FeatureFlagsSettingsApi.md#GetSetting) | **Get** /v1/settings/{settingId} | Get Flag
-[**GetSettings**](FeatureFlagsSettingsApi.md#GetSettings) | **Get** /v1/configs/{configId}/settings | List Flags
-[**ReplaceSetting**](FeatureFlagsSettingsApi.md#ReplaceSetting) | **Put** /v1/settings/{settingId} | Replace Flag
-[**UpdateSetting**](FeatureFlagsSettingsApi.md#UpdateSetting) | **Patch** /v1/settings/{settingId} | Update Flag
+[**CreateSetting**](FeatureFlagsSettingsAPI.md#CreateSetting) | **Post** /v1/configs/{configId}/settings | Create Flag
+[**DeleteSetting**](FeatureFlagsSettingsAPI.md#DeleteSetting) | **Delete** /v1/settings/{settingId} | Delete Flag
+[**GetSetting**](FeatureFlagsSettingsAPI.md#GetSetting) | **Get** /v1/settings/{settingId} | Get Flag
+[**GetSettings**](FeatureFlagsSettingsAPI.md#GetSettings) | **Get** /v1/configs/{configId}/settings | List Flags
+[**ReplaceSetting**](FeatureFlagsSettingsAPI.md#ReplaceSetting) | **Put** /v1/settings/{settingId} | Replace Flag
+[**UpdateSetting**](FeatureFlagsSettingsAPI.md#UpdateSetting) | **Patch** /v1/settings/{settingId} | Update Flag
@@ -27,25 +27,25 @@ Create Flag
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
- createSettingInitialValues := *openapiclient.NewCreateSettingInitialValues("Key_example", "Name_example", openapiclient.SettingType("boolean")) // CreateSettingInitialValues |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagsSettingsApi.CreateSetting(context.Background(), configId).CreateSettingInitialValues(createSettingInitialValues).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsSettingsApi.CreateSetting``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CreateSetting`: SettingModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagsSettingsApi.CreateSetting`: %v\n", resp)
+ configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
+ createSettingInitialValues := *openapiclient.NewCreateSettingInitialValues("Key_example", "Name_example", openapiclient.SettingType("boolean")) // CreateSettingInitialValues |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagsSettingsAPI.CreateSetting(context.Background(), configId).CreateSettingInitialValues(createSettingInitialValues).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsSettingsAPI.CreateSetting``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CreateSetting`: SettingModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagsSettingsAPI.CreateSetting`: %v\n", resp)
}
```
@@ -99,22 +99,22 @@ Delete Flag
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- settingId := int32(56) // int32 | The identifier of the Setting.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.FeatureFlagsSettingsApi.DeleteSetting(context.Background(), settingId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsSettingsApi.DeleteSetting``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ settingId := int32(56) // int32 | The identifier of the Setting.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.FeatureFlagsSettingsAPI.DeleteSetting(context.Background(), settingId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsSettingsAPI.DeleteSetting``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -167,24 +167,24 @@ Get Flag
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- settingId := int32(56) // int32 | The identifier of the Setting.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagsSettingsApi.GetSetting(context.Background(), settingId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsSettingsApi.GetSetting``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetSetting`: SettingModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagsSettingsApi.GetSetting`: %v\n", resp)
+ settingId := int32(56) // int32 | The identifier of the Setting.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagsSettingsAPI.GetSetting(context.Background(), settingId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsSettingsAPI.GetSetting``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetSetting`: SettingModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagsSettingsAPI.GetSetting`: %v\n", resp)
}
```
@@ -237,24 +237,24 @@ List Flags
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagsSettingsApi.GetSettings(context.Background(), configId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsSettingsApi.GetSettings``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetSettings`: []SettingModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagsSettingsApi.GetSettings`: %v\n", resp)
+ configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagsSettingsAPI.GetSettings(context.Background(), configId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsSettingsAPI.GetSettings``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetSettings`: []SettingModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagsSettingsAPI.GetSettings`: %v\n", resp)
}
```
@@ -307,25 +307,25 @@ Replace Flag
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- settingId := int32(56) // int32 | The identifier of the Setting.
- replaceSettingModel := *openapiclient.NewReplaceSettingModel("Name_example") // ReplaceSettingModel |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagsSettingsApi.ReplaceSetting(context.Background(), settingId).ReplaceSettingModel(replaceSettingModel).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsSettingsApi.ReplaceSetting``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ReplaceSetting`: SettingModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagsSettingsApi.ReplaceSetting`: %v\n", resp)
+ settingId := int32(56) // int32 | The identifier of the Setting.
+ replaceSettingModel := *openapiclient.NewReplaceSettingModel("Name_example") // ReplaceSettingModel |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagsSettingsAPI.ReplaceSetting(context.Background(), settingId).ReplaceSettingModel(replaceSettingModel).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsSettingsAPI.ReplaceSetting``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ReplaceSetting`: SettingModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagsSettingsAPI.ReplaceSetting`: %v\n", resp)
}
```
@@ -379,25 +379,25 @@ Update Flag
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- settingId := int32(56) // int32 | The identifier of the Setting.
- jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation(openapiclient.OperationType("unknown"), "Path_example")} // []JsonPatchOperation |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.FeatureFlagsSettingsApi.UpdateSetting(context.Background(), settingId).JsonPatchOperation(jsonPatchOperation).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsSettingsApi.UpdateSetting``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UpdateSetting`: SettingModel
- fmt.Fprintf(os.Stdout, "Response from `FeatureFlagsSettingsApi.UpdateSetting`: %v\n", resp)
+ settingId := int32(56) // int32 | The identifier of the Setting.
+ jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation(openapiclient.OperationType("unknown"), "Path_example")} // []JsonPatchOperation |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.FeatureFlagsSettingsAPI.UpdateSetting(context.Background(), settingId).JsonPatchOperation(jsonPatchOperation).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsSettingsAPI.UpdateSetting``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UpdateSetting`: SettingModel
+ fmt.Fprintf(os.Stdout, "Response from `FeatureFlagsSettingsAPI.UpdateSetting`: %v\n", resp)
}
```
diff --git a/docs/IntegrationLinksApi.md b/docs/IntegrationLinksApi.md
index 190cb4a..4964b5f 100644
--- a/docs/IntegrationLinksApi.md
+++ b/docs/IntegrationLinksApi.md
@@ -1,14 +1,14 @@
-# \IntegrationLinksApi
+# \IntegrationLinksAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**AddOrUpdateIntegrationLink**](IntegrationLinksApi.md#AddOrUpdateIntegrationLink) | **Post** /v1/environments/{environmentId}/settings/{settingId}/integrationLinks/{integrationLinkType}/{key} | Add or update Integration link
-[**DeleteIntegrationLink**](IntegrationLinksApi.md#DeleteIntegrationLink) | **Delete** /v1/environments/{environmentId}/settings/{settingId}/integrationLinks/{integrationLinkType}/{key} | Delete Integration link
-[**GetIntegrationLinkDetails**](IntegrationLinksApi.md#GetIntegrationLinkDetails) | **Get** /v1/integrationLink/{integrationLinkType}/{key}/details | Get Integration link
-[**JiraAddOrUpdateIntegrationLink**](IntegrationLinksApi.md#JiraAddOrUpdateIntegrationLink) | **Post** /v1/jira/environments/{environmentId}/settings/{settingId}/integrationLinks/{key} |
-[**JiraConnect**](IntegrationLinksApi.md#JiraConnect) | **Post** /v1/jira/connect |
+[**AddOrUpdateIntegrationLink**](IntegrationLinksAPI.md#AddOrUpdateIntegrationLink) | **Post** /v1/environments/{environmentId}/settings/{settingId}/integrationLinks/{integrationLinkType}/{key} | Add or update Integration link
+[**DeleteIntegrationLink**](IntegrationLinksAPI.md#DeleteIntegrationLink) | **Delete** /v1/environments/{environmentId}/settings/{settingId}/integrationLinks/{integrationLinkType}/{key} | Delete Integration link
+[**GetIntegrationLinkDetails**](IntegrationLinksAPI.md#GetIntegrationLinkDetails) | **Get** /v1/integrationLink/{integrationLinkType}/{key}/details | Get Integration link
+[**JiraAddOrUpdateIntegrationLink**](IntegrationLinksAPI.md#JiraAddOrUpdateIntegrationLink) | **Post** /v1/jira/environments/{environmentId}/settings/{settingId}/integrationLinks/{key} |
+[**JiraConnect**](IntegrationLinksAPI.md#JiraConnect) | **Post** /v1/jira/connect |
@@ -26,28 +26,28 @@ Add or update Integration link
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
- settingId := int32(56) // int32 | The id of the Setting.
- integrationLinkType := openapiclient.IntegrationLinkType("trello") // IntegrationLinkType | The integration link's type.
- key := "key_example" // string | The key of the integration link.
- addOrUpdateIntegrationLinkModel := *openapiclient.NewAddOrUpdateIntegrationLinkModel() // AddOrUpdateIntegrationLinkModel | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IntegrationLinksApi.AddOrUpdateIntegrationLink(context.Background(), environmentId, settingId, integrationLinkType, key).AddOrUpdateIntegrationLinkModel(addOrUpdateIntegrationLinkModel).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IntegrationLinksApi.AddOrUpdateIntegrationLink``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `AddOrUpdateIntegrationLink`: IntegrationLinkModel
- fmt.Fprintf(os.Stdout, "Response from `IntegrationLinksApi.AddOrUpdateIntegrationLink`: %v\n", resp)
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+ settingId := int32(56) // int32 | The id of the Setting.
+ integrationLinkType := openapiclient.IntegrationLinkType("trello") // IntegrationLinkType | The integration link's type.
+ key := "key_example" // string | The key of the integration link.
+ addOrUpdateIntegrationLinkModel := *openapiclient.NewAddOrUpdateIntegrationLinkModel() // AddOrUpdateIntegrationLinkModel | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IntegrationLinksAPI.AddOrUpdateIntegrationLink(context.Background(), environmentId, settingId, integrationLinkType, key).AddOrUpdateIntegrationLinkModel(addOrUpdateIntegrationLinkModel).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IntegrationLinksAPI.AddOrUpdateIntegrationLink``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `AddOrUpdateIntegrationLink`: IntegrationLinkModel
+ fmt.Fprintf(os.Stdout, "Response from `IntegrationLinksAPI.AddOrUpdateIntegrationLink`: %v\n", resp)
}
```
@@ -107,27 +107,27 @@ Delete Integration link
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
- settingId := int32(56) // int32 | The id of the Setting.
- integrationLinkType := openapiclient.IntegrationLinkType("trello") // IntegrationLinkType | The integration's type.
- key := "key_example" // string | The key of the integration link.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IntegrationLinksApi.DeleteIntegrationLink(context.Background(), environmentId, settingId, integrationLinkType, key).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IntegrationLinksApi.DeleteIntegrationLink``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `DeleteIntegrationLink`: DeleteIntegrationLinkModel
- fmt.Fprintf(os.Stdout, "Response from `IntegrationLinksApi.DeleteIntegrationLink`: %v\n", resp)
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+ settingId := int32(56) // int32 | The id of the Setting.
+ integrationLinkType := openapiclient.IntegrationLinkType("trello") // IntegrationLinkType | The integration's type.
+ key := "key_example" // string | The key of the integration link.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IntegrationLinksAPI.DeleteIntegrationLink(context.Background(), environmentId, settingId, integrationLinkType, key).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IntegrationLinksAPI.DeleteIntegrationLink``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `DeleteIntegrationLink`: DeleteIntegrationLinkModel
+ fmt.Fprintf(os.Stdout, "Response from `IntegrationLinksAPI.DeleteIntegrationLink`: %v\n", resp)
}
```
@@ -186,25 +186,25 @@ Get Integration link
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- integrationLinkType := openapiclient.IntegrationLinkType("trello") // IntegrationLinkType | The integration link's type.
- key := "key_example" // string | The key of the integration link.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IntegrationLinksApi.GetIntegrationLinkDetails(context.Background(), integrationLinkType, key).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IntegrationLinksApi.GetIntegrationLinkDetails``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetIntegrationLinkDetails`: IntegrationLinkDetailsModel
- fmt.Fprintf(os.Stdout, "Response from `IntegrationLinksApi.GetIntegrationLinkDetails`: %v\n", resp)
+ integrationLinkType := openapiclient.IntegrationLinkType("trello") // IntegrationLinkType | The integration link's type.
+ key := "key_example" // string | The key of the integration link.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IntegrationLinksAPI.GetIntegrationLinkDetails(context.Background(), integrationLinkType, key).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IntegrationLinksAPI.GetIntegrationLinkDetails``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetIntegrationLinkDetails`: IntegrationLinkDetailsModel
+ fmt.Fprintf(os.Stdout, "Response from `IntegrationLinksAPI.GetIntegrationLinkDetails`: %v\n", resp)
}
```
@@ -257,27 +257,27 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
- settingId := int32(56) // int32 | The id of the Setting.
- key := "key_example" // string | The key of the integration link.
- addOrUpdateJiraIntegrationLinkModel := *openapiclient.NewAddOrUpdateJiraIntegrationLinkModel("JiraJwtToken_example", "ClientKey_example") // AddOrUpdateJiraIntegrationLinkModel | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IntegrationLinksApi.JiraAddOrUpdateIntegrationLink(context.Background(), environmentId, settingId, key).AddOrUpdateJiraIntegrationLinkModel(addOrUpdateJiraIntegrationLinkModel).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IntegrationLinksApi.JiraAddOrUpdateIntegrationLink``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `JiraAddOrUpdateIntegrationLink`: IntegrationLinkModel
- fmt.Fprintf(os.Stdout, "Response from `IntegrationLinksApi.JiraAddOrUpdateIntegrationLink`: %v\n", resp)
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+ settingId := int32(56) // int32 | The id of the Setting.
+ key := "key_example" // string | The key of the integration link.
+ addOrUpdateJiraIntegrationLinkModel := *openapiclient.NewAddOrUpdateJiraIntegrationLinkModel("JiraJwtToken_example", "ClientKey_example") // AddOrUpdateJiraIntegrationLinkModel | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IntegrationLinksAPI.JiraAddOrUpdateIntegrationLink(context.Background(), environmentId, settingId, key).AddOrUpdateJiraIntegrationLinkModel(addOrUpdateJiraIntegrationLinkModel).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IntegrationLinksAPI.JiraAddOrUpdateIntegrationLink``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `JiraAddOrUpdateIntegrationLink`: IntegrationLinkModel
+ fmt.Fprintf(os.Stdout, "Response from `IntegrationLinksAPI.JiraAddOrUpdateIntegrationLink`: %v\n", resp)
}
```
@@ -333,22 +333,22 @@ Name | Type | Description | Notes
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- connectRequest := *openapiclient.NewConnectRequest("ClientKey_example", "JiraJwtToken_example") // ConnectRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.IntegrationLinksApi.JiraConnect(context.Background()).ConnectRequest(connectRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `IntegrationLinksApi.JiraConnect``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ connectRequest := *openapiclient.NewConnectRequest("ClientKey_example", "JiraJwtToken_example") // ConnectRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IntegrationLinksAPI.JiraConnect(context.Background()).ConnectRequest(connectRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IntegrationLinksAPI.JiraConnect``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
diff --git a/docs/IntegrationModel.md b/docs/IntegrationModel.md
new file mode 100644
index 0000000..0c1fe91
--- /dev/null
+++ b/docs/IntegrationModel.md
@@ -0,0 +1,226 @@
+# IntegrationModel
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**IntegrationId** | Pointer to **string** | Identifier of the Integration. | [optional]
+**Name** | Pointer to **NullableString** | Name of the Integration. | [optional]
+**IntegrationType** | Pointer to [**IntegrationType**](IntegrationType.md) | | [optional]
+**Parameters** | Pointer to **map[string]string** | Parameters of the Integration. | [optional]
+**IntegrationEnvironmentIds** | Pointer to **[]string** | List of Environment IDs that are connected with this Integration. If the list is empty, all of the Environments are connected. | [optional]
+**IntegrationConfigIds** | Pointer to **[]string** | List of Config IDs that are connected with this Integration. If the list is empty, all of the Configs are connected. | [optional]
+
+## Methods
+
+### NewIntegrationModel
+
+`func NewIntegrationModel() *IntegrationModel`
+
+NewIntegrationModel instantiates a new IntegrationModel 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
+
+### NewIntegrationModelWithDefaults
+
+`func NewIntegrationModelWithDefaults() *IntegrationModel`
+
+NewIntegrationModelWithDefaults instantiates a new IntegrationModel 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
+
+### GetIntegrationId
+
+`func (o *IntegrationModel) GetIntegrationId() string`
+
+GetIntegrationId returns the IntegrationId field if non-nil, zero value otherwise.
+
+### GetIntegrationIdOk
+
+`func (o *IntegrationModel) GetIntegrationIdOk() (*string, bool)`
+
+GetIntegrationIdOk returns a tuple with the IntegrationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetIntegrationId
+
+`func (o *IntegrationModel) SetIntegrationId(v string)`
+
+SetIntegrationId sets IntegrationId field to given value.
+
+### HasIntegrationId
+
+`func (o *IntegrationModel) HasIntegrationId() bool`
+
+HasIntegrationId returns a boolean if a field has been set.
+
+### GetName
+
+`func (o *IntegrationModel) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *IntegrationModel) 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 *IntegrationModel) SetName(v string)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *IntegrationModel) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### SetNameNil
+
+`func (o *IntegrationModel) SetNameNil(b bool)`
+
+ SetNameNil sets the value for Name to be an explicit nil
+
+### UnsetName
+`func (o *IntegrationModel) UnsetName()`
+
+UnsetName ensures that no value is present for Name, not even an explicit nil
+### GetIntegrationType
+
+`func (o *IntegrationModel) GetIntegrationType() IntegrationType`
+
+GetIntegrationType returns the IntegrationType field if non-nil, zero value otherwise.
+
+### GetIntegrationTypeOk
+
+`func (o *IntegrationModel) GetIntegrationTypeOk() (*IntegrationType, bool)`
+
+GetIntegrationTypeOk returns a tuple with the IntegrationType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetIntegrationType
+
+`func (o *IntegrationModel) SetIntegrationType(v IntegrationType)`
+
+SetIntegrationType sets IntegrationType field to given value.
+
+### HasIntegrationType
+
+`func (o *IntegrationModel) HasIntegrationType() bool`
+
+HasIntegrationType returns a boolean if a field has been set.
+
+### GetParameters
+
+`func (o *IntegrationModel) GetParameters() map[string]string`
+
+GetParameters returns the Parameters field if non-nil, zero value otherwise.
+
+### GetParametersOk
+
+`func (o *IntegrationModel) GetParametersOk() (*map[string]string, bool)`
+
+GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetParameters
+
+`func (o *IntegrationModel) SetParameters(v map[string]string)`
+
+SetParameters sets Parameters field to given value.
+
+### HasParameters
+
+`func (o *IntegrationModel) HasParameters() bool`
+
+HasParameters returns a boolean if a field has been set.
+
+### SetParametersNil
+
+`func (o *IntegrationModel) SetParametersNil(b bool)`
+
+ SetParametersNil sets the value for Parameters to be an explicit nil
+
+### UnsetParameters
+`func (o *IntegrationModel) UnsetParameters()`
+
+UnsetParameters ensures that no value is present for Parameters, not even an explicit nil
+### GetIntegrationEnvironmentIds
+
+`func (o *IntegrationModel) GetIntegrationEnvironmentIds() []string`
+
+GetIntegrationEnvironmentIds returns the IntegrationEnvironmentIds field if non-nil, zero value otherwise.
+
+### GetIntegrationEnvironmentIdsOk
+
+`func (o *IntegrationModel) GetIntegrationEnvironmentIdsOk() (*[]string, bool)`
+
+GetIntegrationEnvironmentIdsOk returns a tuple with the IntegrationEnvironmentIds field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetIntegrationEnvironmentIds
+
+`func (o *IntegrationModel) SetIntegrationEnvironmentIds(v []string)`
+
+SetIntegrationEnvironmentIds sets IntegrationEnvironmentIds field to given value.
+
+### HasIntegrationEnvironmentIds
+
+`func (o *IntegrationModel) HasIntegrationEnvironmentIds() bool`
+
+HasIntegrationEnvironmentIds returns a boolean if a field has been set.
+
+### SetIntegrationEnvironmentIdsNil
+
+`func (o *IntegrationModel) SetIntegrationEnvironmentIdsNil(b bool)`
+
+ SetIntegrationEnvironmentIdsNil sets the value for IntegrationEnvironmentIds to be an explicit nil
+
+### UnsetIntegrationEnvironmentIds
+`func (o *IntegrationModel) UnsetIntegrationEnvironmentIds()`
+
+UnsetIntegrationEnvironmentIds ensures that no value is present for IntegrationEnvironmentIds, not even an explicit nil
+### GetIntegrationConfigIds
+
+`func (o *IntegrationModel) GetIntegrationConfigIds() []string`
+
+GetIntegrationConfigIds returns the IntegrationConfigIds field if non-nil, zero value otherwise.
+
+### GetIntegrationConfigIdsOk
+
+`func (o *IntegrationModel) GetIntegrationConfigIdsOk() (*[]string, bool)`
+
+GetIntegrationConfigIdsOk returns a tuple with the IntegrationConfigIds field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetIntegrationConfigIds
+
+`func (o *IntegrationModel) SetIntegrationConfigIds(v []string)`
+
+SetIntegrationConfigIds sets IntegrationConfigIds field to given value.
+
+### HasIntegrationConfigIds
+
+`func (o *IntegrationModel) HasIntegrationConfigIds() bool`
+
+HasIntegrationConfigIds returns a boolean if a field has been set.
+
+### SetIntegrationConfigIdsNil
+
+`func (o *IntegrationModel) SetIntegrationConfigIdsNil(b bool)`
+
+ SetIntegrationConfigIdsNil sets the value for IntegrationConfigIds to be an explicit nil
+
+### UnsetIntegrationConfigIds
+`func (o *IntegrationModel) UnsetIntegrationConfigIds()`
+
+UnsetIntegrationConfigIds ensures that no value is present for IntegrationConfigIds, not even an explicit nil
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IntegrationType.md b/docs/IntegrationType.md
new file mode 100644
index 0000000..aab13db
--- /dev/null
+++ b/docs/IntegrationType.md
@@ -0,0 +1,21 @@
+# IntegrationType
+
+## Enum
+
+
+* `DATA_DOG` (value: `"dataDog"`)
+
+* `SLACK` (value: `"slack"`)
+
+* `AMPLITUDE` (value: `"amplitude"`)
+
+* `MIX_PANEL` (value: `"mixPanel"`)
+
+* `SEGMENT` (value: `"segment"`)
+
+* `PUB_NUB` (value: `"pubNub"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/IntegrationsAPI.md b/docs/IntegrationsAPI.md
new file mode 100644
index 0000000..65889c0
--- /dev/null
+++ b/docs/IntegrationsAPI.md
@@ -0,0 +1,365 @@
+# \IntegrationsAPI
+
+All URIs are relative to *https://test-api.configcat.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**CreateIntegration**](IntegrationsAPI.md#CreateIntegration) | **Post** /v1/products/{productId}/integrations | Create Integration
+[**DeleteIntegration**](IntegrationsAPI.md#DeleteIntegration) | **Delete** /v1/integrations/{integrationId} | Delete Integration
+[**GetIntegration**](IntegrationsAPI.md#GetIntegration) | **Get** /v1/integrations/{integrationId} | Get Integration
+[**GetIntegrations**](IntegrationsAPI.md#GetIntegrations) | **Get** /v1/products/{productId}/integrations | List Integrations
+[**UpdateIntegration**](IntegrationsAPI.md#UpdateIntegration) | **Put** /v1/integrations/{integrationId} | Update Integration
+
+
+
+## CreateIntegration
+
+> IntegrationModel CreateIntegration(ctx, productId).CreateIntegrationModel(createIntegrationModel).Execute()
+
+Create Integration
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
+)
+
+func main() {
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+ createIntegrationModel := *openapiclient.NewCreateIntegrationModel(openapiclient.IntegrationType("dataDog"), "Name_example", map[string]string{"key": "Inner_example"}, []string{"EnvironmentIds_example"}, []string{"ConfigIds_example"}) // CreateIntegrationModel |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IntegrationsAPI.CreateIntegration(context.Background(), productId).CreateIntegrationModel(createIntegrationModel).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IntegrationsAPI.CreateIntegration``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CreateIntegration`: IntegrationModel
+ fmt.Fprintf(os.Stdout, "Response from `IntegrationsAPI.CreateIntegration`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**productId** | **string** | The identifier of the Product. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiCreateIntegrationRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **createIntegrationModel** | [**CreateIntegrationModel**](CreateIntegrationModel.md) | |
+
+### Return type
+
+[**IntegrationModel**](IntegrationModel.md)
+
+### Authorization
+
+[Basic](../README.md#Basic)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, text/json, application/*+json
+- **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## DeleteIntegration
+
+> DeleteIntegration(ctx, integrationId).Execute()
+
+Delete Integration
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
+)
+
+func main() {
+ integrationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Integration.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.IntegrationsAPI.DeleteIntegration(context.Background(), integrationId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IntegrationsAPI.DeleteIntegration``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**integrationId** | **string** | The identifier of the Integration. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiDeleteIntegrationRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[Basic](../README.md#Basic)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## GetIntegration
+
+> IntegrationModel GetIntegration(ctx, integrationId).Execute()
+
+Get Integration
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
+)
+
+func main() {
+ integrationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Integration.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IntegrationsAPI.GetIntegration(context.Background(), integrationId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IntegrationsAPI.GetIntegration``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetIntegration`: IntegrationModel
+ fmt.Fprintf(os.Stdout, "Response from `IntegrationsAPI.GetIntegration`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**integrationId** | **string** | The identifier of the Integration. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiGetIntegrationRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**IntegrationModel**](IntegrationModel.md)
+
+### Authorization
+
+[Basic](../README.md#Basic)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## GetIntegrations
+
+> IntegrationsModel GetIntegrations(ctx, productId).Execute()
+
+List Integrations
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
+)
+
+func main() {
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IntegrationsAPI.GetIntegrations(context.Background(), productId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IntegrationsAPI.GetIntegrations``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetIntegrations`: IntegrationsModel
+ fmt.Fprintf(os.Stdout, "Response from `IntegrationsAPI.GetIntegrations`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**productId** | **string** | The identifier of the Product. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiGetIntegrationsRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**IntegrationsModel**](IntegrationsModel.md)
+
+### Authorization
+
+[Basic](../README.md#Basic)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## UpdateIntegration
+
+> IntegrationModel UpdateIntegration(ctx, integrationId).ModifyIntegrationRequest(modifyIntegrationRequest).Execute()
+
+Update Integration
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
+)
+
+func main() {
+ integrationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Integration.
+ modifyIntegrationRequest := *openapiclient.NewModifyIntegrationRequest("Name_example", map[string]string{"key": "Inner_example"}, []string{"EnvironmentIds_example"}, []string{"ConfigIds_example"}) // ModifyIntegrationRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.IntegrationsAPI.UpdateIntegration(context.Background(), integrationId).ModifyIntegrationRequest(modifyIntegrationRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `IntegrationsAPI.UpdateIntegration``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UpdateIntegration`: IntegrationModel
+ fmt.Fprintf(os.Stdout, "Response from `IntegrationsAPI.UpdateIntegration`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**integrationId** | **string** | The identifier of the Integration. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiUpdateIntegrationRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **modifyIntegrationRequest** | [**ModifyIntegrationRequest**](ModifyIntegrationRequest.md) | |
+
+### Return type
+
+[**IntegrationModel**](IntegrationModel.md)
+
+### Authorization
+
+[Basic](../README.md#Basic)
+
+### HTTP request headers
+
+- **Content-Type**: application/json, text/json, application/*+json
+- **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
diff --git a/docs/IntegrationsModel.md b/docs/IntegrationsModel.md
new file mode 100644
index 0000000..5b8d0e3
--- /dev/null
+++ b/docs/IntegrationsModel.md
@@ -0,0 +1,66 @@
+# IntegrationsModel
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Integrations** | Pointer to [**[]IntegrationModel**](IntegrationModel.md) | The Integrations of the Product. | [optional]
+
+## Methods
+
+### NewIntegrationsModel
+
+`func NewIntegrationsModel() *IntegrationsModel`
+
+NewIntegrationsModel instantiates a new IntegrationsModel 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
+
+### NewIntegrationsModelWithDefaults
+
+`func NewIntegrationsModelWithDefaults() *IntegrationsModel`
+
+NewIntegrationsModelWithDefaults instantiates a new IntegrationsModel 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
+
+### GetIntegrations
+
+`func (o *IntegrationsModel) GetIntegrations() []IntegrationModel`
+
+GetIntegrations returns the Integrations field if non-nil, zero value otherwise.
+
+### GetIntegrationsOk
+
+`func (o *IntegrationsModel) GetIntegrationsOk() (*[]IntegrationModel, bool)`
+
+GetIntegrationsOk returns a tuple with the Integrations field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetIntegrations
+
+`func (o *IntegrationsModel) SetIntegrations(v []IntegrationModel)`
+
+SetIntegrations sets Integrations field to given value.
+
+### HasIntegrations
+
+`func (o *IntegrationsModel) HasIntegrations() bool`
+
+HasIntegrations returns a boolean if a field has been set.
+
+### SetIntegrationsNil
+
+`func (o *IntegrationsModel) SetIntegrationsNil(b bool)`
+
+ SetIntegrationsNil sets the value for Integrations to be an explicit nil
+
+### UnsetIntegrations
+`func (o *IntegrationsModel) UnsetIntegrations()`
+
+UnsetIntegrations ensures that no value is present for Integrations, not even an explicit nil
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/MeApi.md b/docs/MeApi.md
index 004ae98..8e437a8 100644
--- a/docs/MeApi.md
+++ b/docs/MeApi.md
@@ -1,10 +1,10 @@
-# \MeApi
+# \MeAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**GetMe**](MeApi.md#GetMe) | **Get** /v1/me | Get authenticated user details
+[**GetMe**](MeAPI.md#GetMe) | **Get** /v1/me | Get authenticated user details
@@ -22,23 +22,23 @@ Get authenticated user details
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.MeApi.GetMe(context.Background()).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `MeApi.GetMe``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetMe`: MeModel
- fmt.Fprintf(os.Stdout, "Response from `MeApi.GetMe`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.MeAPI.GetMe(context.Background()).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `MeAPI.GetMe``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetMe`: MeModel
+ fmt.Fprintf(os.Stdout, "Response from `MeAPI.GetMe`: %v\n", resp)
}
```
diff --git a/docs/MembersApi.md b/docs/MembersApi.md
index 5ec47d6..ebd9b9e 100644
--- a/docs/MembersApi.md
+++ b/docs/MembersApi.md
@@ -1,19 +1,19 @@
-# \MembersApi
+# \MembersAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**AddMemberToGroup**](MembersApi.md#AddMemberToGroup) | **Post** /v1/organizations/{organizationId}/members/{userId} | Update Member Permissions
-[**DeleteInvitation**](MembersApi.md#DeleteInvitation) | **Delete** /v1/invitations/{invitationId} | Delete Invitation
-[**DeleteOrganizationMember**](MembersApi.md#DeleteOrganizationMember) | **Delete** /v1/organizations/{organizationId}/members/{userId} | Delete Member from Organization
-[**DeleteProductMember**](MembersApi.md#DeleteProductMember) | **Delete** /v1/products/{productId}/members/{userId} | Delete Member from Product
-[**GetOrganizationMembers**](MembersApi.md#GetOrganizationMembers) | **Get** /v1/organizations/{organizationId}/members | List Organization Members
-[**GetOrganizationMembersV2**](MembersApi.md#GetOrganizationMembersV2) | **Get** /v2/organizations/{organizationId}/members | List Organization Members
-[**GetPendingInvitations**](MembersApi.md#GetPendingInvitations) | **Get** /v1/products/{productId}/invitations | List Pending Invitations in Product
-[**GetPendingInvitationsOrg**](MembersApi.md#GetPendingInvitationsOrg) | **Get** /v1/organizations/{organizationId}/invitations | List Pending Invitations in Organization
-[**GetProductMembers**](MembersApi.md#GetProductMembers) | **Get** /v1/products/{productId}/members | List Product Members
-[**InviteMember**](MembersApi.md#InviteMember) | **Post** /v1/products/{productId}/members/invite | Invite Member
+[**AddMemberToGroup**](MembersAPI.md#AddMemberToGroup) | **Post** /v1/organizations/{organizationId}/members/{userId} | Update Member Permissions
+[**DeleteInvitation**](MembersAPI.md#DeleteInvitation) | **Delete** /v1/invitations/{invitationId} | Delete Invitation
+[**DeleteOrganizationMember**](MembersAPI.md#DeleteOrganizationMember) | **Delete** /v1/organizations/{organizationId}/members/{userId} | Delete Member from Organization
+[**DeleteProductMember**](MembersAPI.md#DeleteProductMember) | **Delete** /v1/products/{productId}/members/{userId} | Delete Member from Product
+[**GetOrganizationMembers**](MembersAPI.md#GetOrganizationMembers) | **Get** /v1/organizations/{organizationId}/members | List Organization Members
+[**GetOrganizationMembersV2**](MembersAPI.md#GetOrganizationMembersV2) | **Get** /v2/organizations/{organizationId}/members | List Organization Members
+[**GetPendingInvitations**](MembersAPI.md#GetPendingInvitations) | **Get** /v1/products/{productId}/invitations | List Pending Invitations in Product
+[**GetPendingInvitationsOrg**](MembersAPI.md#GetPendingInvitationsOrg) | **Get** /v1/organizations/{organizationId}/invitations | List Pending Invitations in Organization
+[**GetProductMembers**](MembersAPI.md#GetProductMembers) | **Get** /v1/products/{productId}/members | List Product Members
+[**InviteMember**](MembersAPI.md#InviteMember) | **Post** /v1/products/{productId}/members/invite | Invite Member
@@ -31,24 +31,24 @@ Update Member Permissions
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
- userId := "userId_example" // string | The identifier of the Member.
- updateMemberPermissionsRequest := *openapiclient.NewUpdateMemberPermissionsRequest() // UpdateMemberPermissionsRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.MembersApi.AddMemberToGroup(context.Background(), organizationId, userId).UpdateMemberPermissionsRequest(updateMemberPermissionsRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `MembersApi.AddMemberToGroup``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
+ userId := "userId_example" // string | The identifier of the Member.
+ updateMemberPermissionsRequest := *openapiclient.NewUpdateMemberPermissionsRequest() // UpdateMemberPermissionsRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.MembersAPI.AddMemberToGroup(context.Background(), organizationId, userId).UpdateMemberPermissionsRequest(updateMemberPermissionsRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `MembersAPI.AddMemberToGroup``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -104,22 +104,22 @@ Delete Invitation
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- invitationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Invitation.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.MembersApi.DeleteInvitation(context.Background(), invitationId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `MembersApi.DeleteInvitation``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ invitationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Invitation.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.MembersAPI.DeleteInvitation(context.Background(), invitationId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `MembersAPI.DeleteInvitation``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -172,23 +172,23 @@ Delete Member from Organization
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
- userId := "userId_example" // string | The identifier of the Member.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.MembersApi.DeleteOrganizationMember(context.Background(), organizationId, userId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `MembersApi.DeleteOrganizationMember``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
+ userId := "userId_example" // string | The identifier of the Member.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.MembersAPI.DeleteOrganizationMember(context.Background(), organizationId, userId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `MembersAPI.DeleteOrganizationMember``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -243,23 +243,23 @@ Delete Member from Product
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
- userId := "userId_example" // string | The identifier of the Member.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.MembersApi.DeleteProductMember(context.Background(), productId, userId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `MembersApi.DeleteProductMember``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+ userId := "userId_example" // string | The identifier of the Member.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.MembersAPI.DeleteProductMember(context.Background(), productId, userId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `MembersAPI.DeleteProductMember``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -314,24 +314,24 @@ List Organization Members
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.MembersApi.GetOrganizationMembers(context.Background(), organizationId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `MembersApi.GetOrganizationMembers``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetOrganizationMembers`: []UserModel
- fmt.Fprintf(os.Stdout, "Response from `MembersApi.GetOrganizationMembers`: %v\n", resp)
+ organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.MembersAPI.GetOrganizationMembers(context.Background(), organizationId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `MembersAPI.GetOrganizationMembers``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetOrganizationMembers`: []UserModel
+ fmt.Fprintf(os.Stdout, "Response from `MembersAPI.GetOrganizationMembers`: %v\n", resp)
}
```
@@ -384,24 +384,24 @@ List Organization Members
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.MembersApi.GetOrganizationMembersV2(context.Background(), organizationId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `MembersApi.GetOrganizationMembersV2``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetOrganizationMembersV2`: OrganizationMembersModel
- fmt.Fprintf(os.Stdout, "Response from `MembersApi.GetOrganizationMembersV2`: %v\n", resp)
+ organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.MembersAPI.GetOrganizationMembersV2(context.Background(), organizationId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `MembersAPI.GetOrganizationMembersV2``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetOrganizationMembersV2`: OrganizationMembersModel
+ fmt.Fprintf(os.Stdout, "Response from `MembersAPI.GetOrganizationMembersV2`: %v\n", resp)
}
```
@@ -454,24 +454,24 @@ List Pending Invitations in Product
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.MembersApi.GetPendingInvitations(context.Background(), productId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `MembersApi.GetPendingInvitations``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetPendingInvitations`: []InvitationModel
- fmt.Fprintf(os.Stdout, "Response from `MembersApi.GetPendingInvitations`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.MembersAPI.GetPendingInvitations(context.Background(), productId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `MembersAPI.GetPendingInvitations``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetPendingInvitations`: []InvitationModel
+ fmt.Fprintf(os.Stdout, "Response from `MembersAPI.GetPendingInvitations`: %v\n", resp)
}
```
@@ -524,24 +524,24 @@ List Pending Invitations in Organization
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.MembersApi.GetPendingInvitationsOrg(context.Background(), organizationId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `MembersApi.GetPendingInvitationsOrg``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetPendingInvitationsOrg`: []OrganizationInvitationModel
- fmt.Fprintf(os.Stdout, "Response from `MembersApi.GetPendingInvitationsOrg`: %v\n", resp)
+ organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.MembersAPI.GetPendingInvitationsOrg(context.Background(), organizationId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `MembersAPI.GetPendingInvitationsOrg``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetPendingInvitationsOrg`: []OrganizationInvitationModel
+ fmt.Fprintf(os.Stdout, "Response from `MembersAPI.GetPendingInvitationsOrg`: %v\n", resp)
}
```
@@ -594,24 +594,24 @@ List Product Members
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.MembersApi.GetProductMembers(context.Background(), productId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `MembersApi.GetProductMembers``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetProductMembers`: []MemberModel
- fmt.Fprintf(os.Stdout, "Response from `MembersApi.GetProductMembers`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.MembersAPI.GetProductMembers(context.Background(), productId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `MembersAPI.GetProductMembers``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetProductMembers`: []MemberModel
+ fmt.Fprintf(os.Stdout, "Response from `MembersAPI.GetProductMembers`: %v\n", resp)
}
```
@@ -664,23 +664,23 @@ Invite Member
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
- inviteMembersRequest := *openapiclient.NewInviteMembersRequest([]string{"Emails_example"}, int64(123)) // InviteMembersRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.MembersApi.InviteMember(context.Background(), productId).InviteMembersRequest(inviteMembersRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `MembersApi.InviteMember``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+ inviteMembersRequest := *openapiclient.NewInviteMembersRequest([]string{"Emails_example"}, int64(123)) // InviteMembersRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.MembersAPI.InviteMember(context.Background(), productId).InviteMembersRequest(inviteMembersRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `MembersAPI.InviteMember``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
diff --git a/docs/ModifyIntegrationRequest.md b/docs/ModifyIntegrationRequest.md
new file mode 100644
index 0000000..c0d5ea3
--- /dev/null
+++ b/docs/ModifyIntegrationRequest.md
@@ -0,0 +1,114 @@
+# ModifyIntegrationRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | Name of the Integration. |
+**Parameters** | **map[string]string** | Parameters of the Integration. |
+**EnvironmentIds** | **[]string** | List of Environment IDs that are connected with this Integration. If the list is empty, all of the Environments are connected. |
+**ConfigIds** | **[]string** | List of Config IDs that are connected with this Integration. If the list is empty, all of the Configs are connected. |
+
+## Methods
+
+### NewModifyIntegrationRequest
+
+`func NewModifyIntegrationRequest(name string, parameters map[string]string, environmentIds []string, configIds []string, ) *ModifyIntegrationRequest`
+
+NewModifyIntegrationRequest instantiates a new ModifyIntegrationRequest 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
+
+### NewModifyIntegrationRequestWithDefaults
+
+`func NewModifyIntegrationRequestWithDefaults() *ModifyIntegrationRequest`
+
+NewModifyIntegrationRequestWithDefaults instantiates a new ModifyIntegrationRequest 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 *ModifyIntegrationRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *ModifyIntegrationRequest) 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 *ModifyIntegrationRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetParameters
+
+`func (o *ModifyIntegrationRequest) GetParameters() map[string]string`
+
+GetParameters returns the Parameters field if non-nil, zero value otherwise.
+
+### GetParametersOk
+
+`func (o *ModifyIntegrationRequest) GetParametersOk() (*map[string]string, bool)`
+
+GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetParameters
+
+`func (o *ModifyIntegrationRequest) SetParameters(v map[string]string)`
+
+SetParameters sets Parameters field to given value.
+
+
+### GetEnvironmentIds
+
+`func (o *ModifyIntegrationRequest) GetEnvironmentIds() []string`
+
+GetEnvironmentIds returns the EnvironmentIds field if non-nil, zero value otherwise.
+
+### GetEnvironmentIdsOk
+
+`func (o *ModifyIntegrationRequest) GetEnvironmentIdsOk() (*[]string, bool)`
+
+GetEnvironmentIdsOk returns a tuple with the EnvironmentIds field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEnvironmentIds
+
+`func (o *ModifyIntegrationRequest) SetEnvironmentIds(v []string)`
+
+SetEnvironmentIds sets EnvironmentIds field to given value.
+
+
+### GetConfigIds
+
+`func (o *ModifyIntegrationRequest) GetConfigIds() []string`
+
+GetConfigIds returns the ConfigIds field if non-nil, zero value otherwise.
+
+### GetConfigIdsOk
+
+`func (o *ModifyIntegrationRequest) GetConfigIdsOk() (*[]string, bool)`
+
+GetConfigIdsOk returns a tuple with the ConfigIds field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetConfigIds
+
+`func (o *ModifyIntegrationRequest) SetConfigIds(v []string)`
+
+SetConfigIds sets ConfigIds field to given value.
+
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/OrganizationsApi.md b/docs/OrganizationsApi.md
index 69bd897..0febde7 100644
--- a/docs/OrganizationsApi.md
+++ b/docs/OrganizationsApi.md
@@ -1,10 +1,10 @@
-# \OrganizationsApi
+# \OrganizationsAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**GetOrganizations**](OrganizationsApi.md#GetOrganizations) | **Get** /v1/organizations | List Organizations
+[**GetOrganizations**](OrganizationsAPI.md#GetOrganizations) | **Get** /v1/organizations | List Organizations
@@ -22,23 +22,23 @@ List Organizations
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.OrganizationsApi.GetOrganizations(context.Background()).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsApi.GetOrganizations``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetOrganizations`: []OrganizationModel
- fmt.Fprintf(os.Stdout, "Response from `OrganizationsApi.GetOrganizations`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.OrganizationsAPI.GetOrganizations(context.Background()).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.GetOrganizations``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetOrganizations`: []OrganizationModel
+ fmt.Fprintf(os.Stdout, "Response from `OrganizationsAPI.GetOrganizations`: %v\n", resp)
}
```
diff --git a/docs/PermissionGroupsApi.md b/docs/PermissionGroupsApi.md
index 2239c0c..8b5845f 100644
--- a/docs/PermissionGroupsApi.md
+++ b/docs/PermissionGroupsApi.md
@@ -1,14 +1,14 @@
-# \PermissionGroupsApi
+# \PermissionGroupsAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**CreatePermissionGroup**](PermissionGroupsApi.md#CreatePermissionGroup) | **Post** /v1/products/{productId}/permissions | Create Permission Group
-[**DeletePermissionGroup**](PermissionGroupsApi.md#DeletePermissionGroup) | **Delete** /v1/permissions/{permissionGroupId} | Delete Permission Group
-[**GetPermissionGroup**](PermissionGroupsApi.md#GetPermissionGroup) | **Get** /v1/permissions/{permissionGroupId} | Get Permission Group
-[**GetPermissionGroups**](PermissionGroupsApi.md#GetPermissionGroups) | **Get** /v1/products/{productId}/permissions | List Permission Groups
-[**UpdatePermissionGroup**](PermissionGroupsApi.md#UpdatePermissionGroup) | **Put** /v1/permissions/{permissionGroupId} | Update Permission Group
+[**CreatePermissionGroup**](PermissionGroupsAPI.md#CreatePermissionGroup) | **Post** /v1/products/{productId}/permissions | Create Permission Group
+[**DeletePermissionGroup**](PermissionGroupsAPI.md#DeletePermissionGroup) | **Delete** /v1/permissions/{permissionGroupId} | Delete Permission Group
+[**GetPermissionGroup**](PermissionGroupsAPI.md#GetPermissionGroup) | **Get** /v1/permissions/{permissionGroupId} | Get Permission Group
+[**GetPermissionGroups**](PermissionGroupsAPI.md#GetPermissionGroups) | **Get** /v1/products/{productId}/permissions | List Permission Groups
+[**UpdatePermissionGroup**](PermissionGroupsAPI.md#UpdatePermissionGroup) | **Put** /v1/permissions/{permissionGroupId} | Update Permission Group
@@ -26,25 +26,25 @@ Create Permission Group
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
- createPermissionGroupRequest := *openapiclient.NewCreatePermissionGroupRequest("Name_example") // CreatePermissionGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.PermissionGroupsApi.CreatePermissionGroup(context.Background(), productId).CreatePermissionGroupRequest(createPermissionGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `PermissionGroupsApi.CreatePermissionGroup``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CreatePermissionGroup`: PermissionGroupModel
- fmt.Fprintf(os.Stdout, "Response from `PermissionGroupsApi.CreatePermissionGroup`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+ createPermissionGroupRequest := *openapiclient.NewCreatePermissionGroupRequest("Name_example") // CreatePermissionGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.PermissionGroupsAPI.CreatePermissionGroup(context.Background(), productId).CreatePermissionGroupRequest(createPermissionGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `PermissionGroupsAPI.CreatePermissionGroup``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CreatePermissionGroup`: PermissionGroupModel
+ fmt.Fprintf(os.Stdout, "Response from `PermissionGroupsAPI.CreatePermissionGroup`: %v\n", resp)
}
```
@@ -98,22 +98,22 @@ Delete Permission Group
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- permissionGroupId := int64(789) // int64 | The identifier of the Permission Group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.PermissionGroupsApi.DeletePermissionGroup(context.Background(), permissionGroupId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `PermissionGroupsApi.DeletePermissionGroup``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ permissionGroupId := int64(789) // int64 | The identifier of the Permission Group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.PermissionGroupsAPI.DeletePermissionGroup(context.Background(), permissionGroupId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `PermissionGroupsAPI.DeletePermissionGroup``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -166,24 +166,24 @@ Get Permission Group
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- permissionGroupId := int64(789) // int64 | The identifier of the Permission Group.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.PermissionGroupsApi.GetPermissionGroup(context.Background(), permissionGroupId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `PermissionGroupsApi.GetPermissionGroup``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetPermissionGroup`: PermissionGroupModel
- fmt.Fprintf(os.Stdout, "Response from `PermissionGroupsApi.GetPermissionGroup`: %v\n", resp)
+ permissionGroupId := int64(789) // int64 | The identifier of the Permission Group.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.PermissionGroupsAPI.GetPermissionGroup(context.Background(), permissionGroupId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `PermissionGroupsAPI.GetPermissionGroup``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetPermissionGroup`: PermissionGroupModel
+ fmt.Fprintf(os.Stdout, "Response from `PermissionGroupsAPI.GetPermissionGroup`: %v\n", resp)
}
```
@@ -236,24 +236,24 @@ List Permission Groups
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.PermissionGroupsApi.GetPermissionGroups(context.Background(), productId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `PermissionGroupsApi.GetPermissionGroups``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetPermissionGroups`: []PermissionGroupModel
- fmt.Fprintf(os.Stdout, "Response from `PermissionGroupsApi.GetPermissionGroups`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.PermissionGroupsAPI.GetPermissionGroups(context.Background(), productId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `PermissionGroupsAPI.GetPermissionGroups``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetPermissionGroups`: []PermissionGroupModel
+ fmt.Fprintf(os.Stdout, "Response from `PermissionGroupsAPI.GetPermissionGroups`: %v\n", resp)
}
```
@@ -306,25 +306,25 @@ Update Permission Group
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- permissionGroupId := int64(789) // int64 | The identifier of the Permission Group.
- updatePermissionGroupRequest := *openapiclient.NewUpdatePermissionGroupRequest() // UpdatePermissionGroupRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.PermissionGroupsApi.UpdatePermissionGroup(context.Background(), permissionGroupId).UpdatePermissionGroupRequest(updatePermissionGroupRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `PermissionGroupsApi.UpdatePermissionGroup``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UpdatePermissionGroup`: PermissionGroupModel
- fmt.Fprintf(os.Stdout, "Response from `PermissionGroupsApi.UpdatePermissionGroup`: %v\n", resp)
+ permissionGroupId := int64(789) // int64 | The identifier of the Permission Group.
+ updatePermissionGroupRequest := *openapiclient.NewUpdatePermissionGroupRequest() // UpdatePermissionGroupRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.PermissionGroupsAPI.UpdatePermissionGroup(context.Background(), permissionGroupId).UpdatePermissionGroupRequest(updatePermissionGroupRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `PermissionGroupsAPI.UpdatePermissionGroup``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UpdatePermissionGroup`: PermissionGroupModel
+ fmt.Fprintf(os.Stdout, "Response from `PermissionGroupsAPI.UpdatePermissionGroup`: %v\n", resp)
}
```
diff --git a/docs/ProductsApi.md b/docs/ProductsApi.md
index d50e6c1..7c02b43 100644
--- a/docs/ProductsApi.md
+++ b/docs/ProductsApi.md
@@ -1,16 +1,16 @@
-# \ProductsApi
+# \ProductsAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**CreateProduct**](ProductsApi.md#CreateProduct) | **Post** /v1/organizations/{organizationId}/products | Create Product
-[**DeleteProduct**](ProductsApi.md#DeleteProduct) | **Delete** /v1/products/{productId} | Delete Product
-[**GetProduct**](ProductsApi.md#GetProduct) | **Get** /v1/products/{productId} | Get Product
-[**GetProductPreferences**](ProductsApi.md#GetProductPreferences) | **Get** /v1/products/{productId}/preferences | Get Product Preferences
-[**GetProducts**](ProductsApi.md#GetProducts) | **Get** /v1/products | List Products
-[**UpdateProduct**](ProductsApi.md#UpdateProduct) | **Put** /v1/products/{productId} | Update Product
-[**UpdateProductPreferences**](ProductsApi.md#UpdateProductPreferences) | **Post** /v1/products/{productId}/preferences | Update Product Preferences
+[**CreateProduct**](ProductsAPI.md#CreateProduct) | **Post** /v1/organizations/{organizationId}/products | Create Product
+[**DeleteProduct**](ProductsAPI.md#DeleteProduct) | **Delete** /v1/products/{productId} | Delete Product
+[**GetProduct**](ProductsAPI.md#GetProduct) | **Get** /v1/products/{productId} | Get Product
+[**GetProductPreferences**](ProductsAPI.md#GetProductPreferences) | **Get** /v1/products/{productId}/preferences | Get Product Preferences
+[**GetProducts**](ProductsAPI.md#GetProducts) | **Get** /v1/products | List Products
+[**UpdateProduct**](ProductsAPI.md#UpdateProduct) | **Put** /v1/products/{productId} | Update Product
+[**UpdateProductPreferences**](ProductsAPI.md#UpdateProductPreferences) | **Post** /v1/products/{productId}/preferences | Update Product Preferences
@@ -28,25 +28,25 @@ Create Product
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
- createProductRequest := *openapiclient.NewCreateProductRequest("Name_example") // CreateProductRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ProductsApi.CreateProduct(context.Background(), organizationId).CreateProductRequest(createProductRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ProductsApi.CreateProduct``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CreateProduct`: ProductModel
- fmt.Fprintf(os.Stdout, "Response from `ProductsApi.CreateProduct`: %v\n", resp)
+ organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
+ createProductRequest := *openapiclient.NewCreateProductRequest("Name_example") // CreateProductRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ProductsAPI.CreateProduct(context.Background(), organizationId).CreateProductRequest(createProductRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ProductsAPI.CreateProduct``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CreateProduct`: ProductModel
+ fmt.Fprintf(os.Stdout, "Response from `ProductsAPI.CreateProduct`: %v\n", resp)
}
```
@@ -100,22 +100,22 @@ Delete Product
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.ProductsApi.DeleteProduct(context.Background(), productId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ProductsApi.DeleteProduct``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.ProductsAPI.DeleteProduct(context.Background(), productId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ProductsAPI.DeleteProduct``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -168,24 +168,24 @@ Get Product
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ProductsApi.GetProduct(context.Background(), productId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ProductsApi.GetProduct``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetProduct`: ProductModel
- fmt.Fprintf(os.Stdout, "Response from `ProductsApi.GetProduct`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ProductsAPI.GetProduct(context.Background(), productId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ProductsAPI.GetProduct``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetProduct`: ProductModel
+ fmt.Fprintf(os.Stdout, "Response from `ProductsAPI.GetProduct`: %v\n", resp)
}
```
@@ -238,24 +238,24 @@ Get Product Preferences
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ProductsApi.GetProductPreferences(context.Background(), productId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ProductsApi.GetProductPreferences``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetProductPreferences`: PreferencesModel
- fmt.Fprintf(os.Stdout, "Response from `ProductsApi.GetProductPreferences`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ProductsAPI.GetProductPreferences(context.Background(), productId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ProductsAPI.GetProductPreferences``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetProductPreferences`: PreferencesModel
+ fmt.Fprintf(os.Stdout, "Response from `ProductsAPI.GetProductPreferences`: %v\n", resp)
}
```
@@ -308,23 +308,23 @@ List Products
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ProductsApi.GetProducts(context.Background()).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ProductsApi.GetProducts``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetProducts`: []ProductModel
- fmt.Fprintf(os.Stdout, "Response from `ProductsApi.GetProducts`: %v\n", resp)
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ProductsAPI.GetProducts(context.Background()).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ProductsAPI.GetProducts``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetProducts`: []ProductModel
+ fmt.Fprintf(os.Stdout, "Response from `ProductsAPI.GetProducts`: %v\n", resp)
}
```
@@ -369,25 +369,25 @@ Update Product
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
- updateProductRequest := *openapiclient.NewUpdateProductRequest() // UpdateProductRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ProductsApi.UpdateProduct(context.Background(), productId).UpdateProductRequest(updateProductRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ProductsApi.UpdateProduct``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UpdateProduct`: ProductModel
- fmt.Fprintf(os.Stdout, "Response from `ProductsApi.UpdateProduct`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+ updateProductRequest := *openapiclient.NewUpdateProductRequest() // UpdateProductRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ProductsAPI.UpdateProduct(context.Background(), productId).UpdateProductRequest(updateProductRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ProductsAPI.UpdateProduct``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UpdateProduct`: ProductModel
+ fmt.Fprintf(os.Stdout, "Response from `ProductsAPI.UpdateProduct`: %v\n", resp)
}
```
@@ -441,25 +441,25 @@ Update Product Preferences
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
- updatePreferencesRequest := *openapiclient.NewUpdatePreferencesRequest() // UpdatePreferencesRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ProductsApi.UpdateProductPreferences(context.Background(), productId).UpdatePreferencesRequest(updatePreferencesRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ProductsApi.UpdateProductPreferences``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UpdateProductPreferences`: PreferencesModel
- fmt.Fprintf(os.Stdout, "Response from `ProductsApi.UpdateProductPreferences`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+ updatePreferencesRequest := *openapiclient.NewUpdatePreferencesRequest() // UpdatePreferencesRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.ProductsAPI.UpdateProductPreferences(context.Background(), productId).UpdatePreferencesRequest(updatePreferencesRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `ProductsAPI.UpdateProductPreferences``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UpdateProductPreferences`: PreferencesModel
+ fmt.Fprintf(os.Stdout, "Response from `ProductsAPI.UpdateProductPreferences`: %v\n", resp)
}
```
diff --git a/docs/SDKKeysApi.md b/docs/SDKKeysApi.md
index 967bb61..1714d8d 100644
--- a/docs/SDKKeysApi.md
+++ b/docs/SDKKeysApi.md
@@ -1,10 +1,10 @@
-# \SDKKeysApi
+# \SDKKeysAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**GetSdkKeys**](SDKKeysApi.md#GetSdkKeys) | **Get** /v1/configs/{configId}/environments/{environmentId} | Get SDK Key
+[**GetSdkKeys**](SDKKeysAPI.md#GetSdkKeys) | **Get** /v1/configs/{configId}/environments/{environmentId} | Get SDK Key
@@ -22,25 +22,25 @@ Get SDK Key
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.SDKKeysApi.GetSdkKeys(context.Background(), configId, environmentId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `SDKKeysApi.GetSdkKeys``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetSdkKeys`: SdkKeysModel
- fmt.Fprintf(os.Stdout, "Response from `SDKKeysApi.GetSdkKeys`: %v\n", resp)
+ configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.SDKKeysAPI.GetSdkKeys(context.Background(), configId, environmentId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `SDKKeysAPI.GetSdkKeys``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetSdkKeys`: SdkKeysModel
+ fmt.Fprintf(os.Stdout, "Response from `SDKKeysAPI.GetSdkKeys`: %v\n", resp)
}
```
diff --git a/docs/SegmentsApi.md b/docs/SegmentsApi.md
index 6d0c692..5133bf9 100644
--- a/docs/SegmentsApi.md
+++ b/docs/SegmentsApi.md
@@ -1,14 +1,14 @@
-# \SegmentsApi
+# \SegmentsAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**CreateSegment**](SegmentsApi.md#CreateSegment) | **Post** /v1/products/{productId}/segments | Create Segment
-[**DeleteSegment**](SegmentsApi.md#DeleteSegment) | **Delete** /v1/segments/{segmentId} | Delete Segment
-[**GetSegment**](SegmentsApi.md#GetSegment) | **Get** /v1/segments/{segmentId} | Get Segment
-[**GetSegments**](SegmentsApi.md#GetSegments) | **Get** /v1/products/{productId}/segments | List Segments
-[**UpdateSegment**](SegmentsApi.md#UpdateSegment) | **Put** /v1/segments/{segmentId} | Update Segment
+[**CreateSegment**](SegmentsAPI.md#CreateSegment) | **Post** /v1/products/{productId}/segments | Create Segment
+[**DeleteSegment**](SegmentsAPI.md#DeleteSegment) | **Delete** /v1/segments/{segmentId} | Delete Segment
+[**GetSegment**](SegmentsAPI.md#GetSegment) | **Get** /v1/segments/{segmentId} | Get Segment
+[**GetSegments**](SegmentsAPI.md#GetSegments) | **Get** /v1/products/{productId}/segments | List Segments
+[**UpdateSegment**](SegmentsAPI.md#UpdateSegment) | **Put** /v1/segments/{segmentId} | Update Segment
@@ -26,25 +26,25 @@ Create Segment
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
- createSegmentModel := *openapiclient.NewCreateSegmentModel("Name_example", "ComparisonAttribute_example", openapiclient.RolloutRuleComparator("isOneOf"), "ComparisonValue_example") // CreateSegmentModel |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.SegmentsApi.CreateSegment(context.Background(), productId).CreateSegmentModel(createSegmentModel).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `SegmentsApi.CreateSegment``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CreateSegment`: SegmentModel
- fmt.Fprintf(os.Stdout, "Response from `SegmentsApi.CreateSegment`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+ createSegmentModel := *openapiclient.NewCreateSegmentModel("Name_example", "ComparisonAttribute_example", openapiclient.RolloutRuleComparator("isOneOf"), "ComparisonValue_example") // CreateSegmentModel |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.SegmentsAPI.CreateSegment(context.Background(), productId).CreateSegmentModel(createSegmentModel).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.CreateSegment``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CreateSegment`: SegmentModel
+ fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.CreateSegment`: %v\n", resp)
}
```
@@ -98,22 +98,22 @@ Delete Segment
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- segmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Segment.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.SegmentsApi.DeleteSegment(context.Background(), segmentId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `SegmentsApi.DeleteSegment``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ segmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Segment.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.SegmentsAPI.DeleteSegment(context.Background(), segmentId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.DeleteSegment``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -166,24 +166,24 @@ Get Segment
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- segmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Segment.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.SegmentsApi.GetSegment(context.Background(), segmentId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `SegmentsApi.GetSegment``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetSegment`: SegmentModel
- fmt.Fprintf(os.Stdout, "Response from `SegmentsApi.GetSegment`: %v\n", resp)
+ segmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Segment.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.SegmentsAPI.GetSegment(context.Background(), segmentId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.GetSegment``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetSegment`: SegmentModel
+ fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.GetSegment`: %v\n", resp)
}
```
@@ -236,24 +236,24 @@ List Segments
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.SegmentsApi.GetSegments(context.Background(), productId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `SegmentsApi.GetSegments``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetSegments`: []SegmentListModel
- fmt.Fprintf(os.Stdout, "Response from `SegmentsApi.GetSegments`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.SegmentsAPI.GetSegments(context.Background(), productId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.GetSegments``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetSegments`: []SegmentListModel
+ fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.GetSegments`: %v\n", resp)
}
```
@@ -306,25 +306,25 @@ Update Segment
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- segmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Segment.
- updateSegmentModel := *openapiclient.NewUpdateSegmentModel() // UpdateSegmentModel |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.SegmentsApi.UpdateSegment(context.Background(), segmentId).UpdateSegmentModel(updateSegmentModel).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `SegmentsApi.UpdateSegment``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UpdateSegment`: SegmentModel
- fmt.Fprintf(os.Stdout, "Response from `SegmentsApi.UpdateSegment`: %v\n", resp)
+ segmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Segment.
+ updateSegmentModel := *openapiclient.NewUpdateSegmentModel() // UpdateSegmentModel |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.SegmentsAPI.UpdateSegment(context.Background(), segmentId).UpdateSegmentModel(updateSegmentModel).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.UpdateSegment``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UpdateSegment`: SegmentModel
+ fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.UpdateSegment`: %v\n", resp)
}
```
diff --git a/docs/TagsApi.md b/docs/TagsApi.md
index f1f96b1..35702e8 100644
--- a/docs/TagsApi.md
+++ b/docs/TagsApi.md
@@ -1,15 +1,15 @@
-# \TagsApi
+# \TagsAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**CreateTag**](TagsApi.md#CreateTag) | **Post** /v1/products/{productId}/tags | Create Tag
-[**DeleteTag**](TagsApi.md#DeleteTag) | **Delete** /v1/tags/{tagId} | Delete Tag
-[**GetSettingsByTag**](TagsApi.md#GetSettingsByTag) | **Get** /v1/tags/{tagId}/settings | List Settings by Tag
-[**GetTag**](TagsApi.md#GetTag) | **Get** /v1/tags/{tagId} | Get Tag
-[**GetTags**](TagsApi.md#GetTags) | **Get** /v1/products/{productId}/tags | List Tags
-[**UpdateTag**](TagsApi.md#UpdateTag) | **Put** /v1/tags/{tagId} | Update Tag
+[**CreateTag**](TagsAPI.md#CreateTag) | **Post** /v1/products/{productId}/tags | Create Tag
+[**DeleteTag**](TagsAPI.md#DeleteTag) | **Delete** /v1/tags/{tagId} | Delete Tag
+[**GetSettingsByTag**](TagsAPI.md#GetSettingsByTag) | **Get** /v1/tags/{tagId}/settings | List Settings by Tag
+[**GetTag**](TagsAPI.md#GetTag) | **Get** /v1/tags/{tagId} | Get Tag
+[**GetTags**](TagsAPI.md#GetTags) | **Get** /v1/products/{productId}/tags | List Tags
+[**UpdateTag**](TagsAPI.md#UpdateTag) | **Put** /v1/tags/{tagId} | Update Tag
@@ -27,25 +27,25 @@ Create Tag
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
- createTagModel := *openapiclient.NewCreateTagModel("Name_example") // CreateTagModel |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TagsApi.CreateTag(context.Background(), productId).CreateTagModel(createTagModel).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.CreateTag``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CreateTag`: TagModel
- fmt.Fprintf(os.Stdout, "Response from `TagsApi.CreateTag`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Organization.
+ createTagModel := *openapiclient.NewCreateTagModel("Name_example") // CreateTagModel |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TagsAPI.CreateTag(context.Background(), productId).CreateTagModel(createTagModel).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.CreateTag``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CreateTag`: TagModel
+ fmt.Fprintf(os.Stdout, "Response from `TagsAPI.CreateTag`: %v\n", resp)
}
```
@@ -99,22 +99,22 @@ Delete Tag
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- tagId := int64(789) // int64 | The identifier of the Tag.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.TagsApi.DeleteTag(context.Background(), tagId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.DeleteTag``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ tagId := int64(789) // int64 | The identifier of the Tag.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.TagsAPI.DeleteTag(context.Background(), tagId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.DeleteTag``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -167,24 +167,24 @@ List Settings by Tag
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- tagId := int64(789) // int64 | The identifier of the Tag.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TagsApi.GetSettingsByTag(context.Background(), tagId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GetSettingsByTag``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetSettingsByTag`: []SettingModel
- fmt.Fprintf(os.Stdout, "Response from `TagsApi.GetSettingsByTag`: %v\n", resp)
+ tagId := int64(789) // int64 | The identifier of the Tag.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TagsAPI.GetSettingsByTag(context.Background(), tagId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.GetSettingsByTag``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetSettingsByTag`: []SettingModel
+ fmt.Fprintf(os.Stdout, "Response from `TagsAPI.GetSettingsByTag`: %v\n", resp)
}
```
@@ -237,24 +237,24 @@ Get Tag
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- tagId := int64(789) // int64 | The identifier of the Tag.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TagsApi.GetTag(context.Background(), tagId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GetTag``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetTag`: TagModel
- fmt.Fprintf(os.Stdout, "Response from `TagsApi.GetTag`: %v\n", resp)
+ tagId := int64(789) // int64 | The identifier of the Tag.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TagsAPI.GetTag(context.Background(), tagId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.GetTag``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetTag`: TagModel
+ fmt.Fprintf(os.Stdout, "Response from `TagsAPI.GetTag`: %v\n", resp)
}
```
@@ -307,24 +307,24 @@ List Tags
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TagsApi.GetTags(context.Background(), productId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GetTags``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetTags`: []TagModel
- fmt.Fprintf(os.Stdout, "Response from `TagsApi.GetTags`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TagsAPI.GetTags(context.Background(), productId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.GetTags``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetTags`: []TagModel
+ fmt.Fprintf(os.Stdout, "Response from `TagsAPI.GetTags`: %v\n", resp)
}
```
@@ -377,25 +377,25 @@ Update Tag
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- tagId := int64(789) // int64 | The identifier of the Tag.
- updateTagModel := *openapiclient.NewUpdateTagModel() // UpdateTagModel |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TagsApi.UpdateTag(context.Background(), tagId).UpdateTagModel(updateTagModel).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.UpdateTag``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UpdateTag`: TagModel
- fmt.Fprintf(os.Stdout, "Response from `TagsApi.UpdateTag`: %v\n", resp)
+ tagId := int64(789) // int64 | The identifier of the Tag.
+ updateTagModel := *openapiclient.NewUpdateTagModel() // UpdateTagModel |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.TagsAPI.UpdateTag(context.Background(), tagId).UpdateTagModel(updateTagModel).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.UpdateTag``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UpdateTag`: TagModel
+ fmt.Fprintf(os.Stdout, "Response from `TagsAPI.UpdateTag`: %v\n", resp)
}
```
diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md
index f43b73c..f7439c4 100644
--- a/docs/WebhooksApi.md
+++ b/docs/WebhooksApi.md
@@ -1,16 +1,16 @@
-# \WebhooksApi
+# \WebhooksAPI
All URIs are relative to *https://test-api.configcat.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**CreateWebhook**](WebhooksApi.md#CreateWebhook) | **Post** /v1/configs/{configId}/environments/{environmentId}/webhooks | Create Webhook
-[**DeleteWebhook**](WebhooksApi.md#DeleteWebhook) | **Delete** /v1/webhooks/{webhookId} | Delete Webhook
-[**GetWebhook**](WebhooksApi.md#GetWebhook) | **Get** /v1/webhooks/{webhookId} | Get Webhook
-[**GetWebhookSigningKeys**](WebhooksApi.md#GetWebhookSigningKeys) | **Get** /v1/webhooks/{webhookId}/keys | Get Webhook Signing Keys
-[**GetWebhooks**](WebhooksApi.md#GetWebhooks) | **Get** /v1/products/{productId}/webhooks | List Webhooks
-[**ReplaceWebhook**](WebhooksApi.md#ReplaceWebhook) | **Put** /v1/webhooks/{webhookId} | Replace Webhook
-[**UpdateWebhook**](WebhooksApi.md#UpdateWebhook) | **Patch** /v1/webhooks/{webhookId} | Update Webhook
+[**CreateWebhook**](WebhooksAPI.md#CreateWebhook) | **Post** /v1/configs/{configId}/environments/{environmentId}/webhooks | Create Webhook
+[**DeleteWebhook**](WebhooksAPI.md#DeleteWebhook) | **Delete** /v1/webhooks/{webhookId} | Delete Webhook
+[**GetWebhook**](WebhooksAPI.md#GetWebhook) | **Get** /v1/webhooks/{webhookId} | Get Webhook
+[**GetWebhookSigningKeys**](WebhooksAPI.md#GetWebhookSigningKeys) | **Get** /v1/webhooks/{webhookId}/keys | Get Webhook Signing Keys
+[**GetWebhooks**](WebhooksAPI.md#GetWebhooks) | **Get** /v1/products/{productId}/webhooks | List Webhooks
+[**ReplaceWebhook**](WebhooksAPI.md#ReplaceWebhook) | **Put** /v1/webhooks/{webhookId} | Replace Webhook
+[**UpdateWebhook**](WebhooksAPI.md#UpdateWebhook) | **Patch** /v1/webhooks/{webhookId} | Update Webhook
@@ -28,26 +28,26 @@ Create Webhook
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
- environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
- webHookRequest := *openapiclient.NewWebHookRequest("Url_example") // WebHookRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WebhooksApi.CreateWebhook(context.Background(), configId, environmentId).WebHookRequest(webHookRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WebhooksApi.CreateWebhook``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `CreateWebhook`: WebhookModel
- fmt.Fprintf(os.Stdout, "Response from `WebhooksApi.CreateWebhook`: %v\n", resp)
+ configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Config.
+ environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Environment.
+ webHookRequest := *openapiclient.NewWebHookRequest("Url_example") // WebHookRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WebhooksAPI.CreateWebhook(context.Background(), configId, environmentId).WebHookRequest(webHookRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.CreateWebhook``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `CreateWebhook`: WebhookModel
+ fmt.Fprintf(os.Stdout, "Response from `WebhooksAPI.CreateWebhook`: %v\n", resp)
}
```
@@ -103,22 +103,22 @@ Delete Webhook
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- webhookId := int32(56) // int32 | The identifier of the Webhook.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- r, err := apiClient.WebhooksApi.DeleteWebhook(context.Background(), webhookId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WebhooksApi.DeleteWebhook``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
+ webhookId := int32(56) // int32 | The identifier of the Webhook.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ r, err := apiClient.WebhooksAPI.DeleteWebhook(context.Background(), webhookId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.DeleteWebhook``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
}
```
@@ -171,24 +171,24 @@ Get Webhook
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- webhookId := int32(56) // int32 | The identifier of the Webhook.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WebhooksApi.GetWebhook(context.Background(), webhookId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WebhooksApi.GetWebhook``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetWebhook`: WebhookModel
- fmt.Fprintf(os.Stdout, "Response from `WebhooksApi.GetWebhook`: %v\n", resp)
+ webhookId := int32(56) // int32 | The identifier of the Webhook.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WebhooksAPI.GetWebhook(context.Background(), webhookId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.GetWebhook``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetWebhook`: WebhookModel
+ fmt.Fprintf(os.Stdout, "Response from `WebhooksAPI.GetWebhook`: %v\n", resp)
}
```
@@ -241,24 +241,24 @@ Get Webhook Signing Keys
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- webhookId := int32(56) // int32 | The identifier of the Webhook.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WebhooksApi.GetWebhookSigningKeys(context.Background(), webhookId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WebhooksApi.GetWebhookSigningKeys``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetWebhookSigningKeys`: WebhookSigningKeysModel
- fmt.Fprintf(os.Stdout, "Response from `WebhooksApi.GetWebhookSigningKeys`: %v\n", resp)
+ webhookId := int32(56) // int32 | The identifier of the Webhook.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WebhooksAPI.GetWebhookSigningKeys(context.Background(), webhookId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.GetWebhookSigningKeys``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetWebhookSigningKeys`: WebhookSigningKeysModel
+ fmt.Fprintf(os.Stdout, "Response from `WebhooksAPI.GetWebhookSigningKeys`: %v\n", resp)
}
```
@@ -311,24 +311,24 @@ List Webhooks
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WebhooksApi.GetWebhooks(context.Background(), productId).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WebhooksApi.GetWebhooks``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `GetWebhooks`: []WebhookModel
- fmt.Fprintf(os.Stdout, "Response from `WebhooksApi.GetWebhooks`: %v\n", resp)
+ productId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The identifier of the Product.
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WebhooksAPI.GetWebhooks(context.Background(), productId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.GetWebhooks``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetWebhooks`: []WebhookModel
+ fmt.Fprintf(os.Stdout, "Response from `WebhooksAPI.GetWebhooks`: %v\n", resp)
}
```
@@ -381,25 +381,25 @@ Replace Webhook
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- webhookId := int32(56) // int32 | The identifier of the Webhook.
- webHookRequest := *openapiclient.NewWebHookRequest("Url_example") // WebHookRequest |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WebhooksApi.ReplaceWebhook(context.Background(), webhookId).WebHookRequest(webHookRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WebhooksApi.ReplaceWebhook``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ReplaceWebhook`: WebhookModel
- fmt.Fprintf(os.Stdout, "Response from `WebhooksApi.ReplaceWebhook`: %v\n", resp)
+ webhookId := int32(56) // int32 | The identifier of the Webhook.
+ webHookRequest := *openapiclient.NewWebHookRequest("Url_example") // WebHookRequest |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WebhooksAPI.ReplaceWebhook(context.Background(), webhookId).WebHookRequest(webHookRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.ReplaceWebhook``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ReplaceWebhook`: WebhookModel
+ fmt.Fprintf(os.Stdout, "Response from `WebhooksAPI.ReplaceWebhook`: %v\n", resp)
}
```
@@ -453,25 +453,25 @@ Update Webhook
package main
import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/configcat/configcat-publicapi-go-client"
+ "context"
+ "fmt"
+ "os"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
)
func main() {
- webhookId := int32(56) // int32 | The identifier of the Webhook.
- jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation(openapiclient.OperationType("unknown"), "Path_example")} // []JsonPatchOperation |
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WebhooksApi.UpdateWebhook(context.Background(), webhookId).JsonPatchOperation(jsonPatchOperation).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `WebhooksApi.UpdateWebhook``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `UpdateWebhook`: WebhookModel
- fmt.Fprintf(os.Stdout, "Response from `WebhooksApi.UpdateWebhook`: %v\n", resp)
+ webhookId := int32(56) // int32 | The identifier of the Webhook.
+ jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation(openapiclient.OperationType("unknown"), "Path_example")} // []JsonPatchOperation |
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.WebhooksAPI.UpdateWebhook(context.Background(), webhookId).JsonPatchOperation(jsonPatchOperation).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.UpdateWebhook``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `UpdateWebhook`: WebhookModel
+ fmt.Fprintf(os.Stdout, "Response from `WebhooksAPI.UpdateWebhook`: %v\n", resp)
}
```
diff --git a/generation.md b/generation.md
index b5e0d9e..6985533 100644
--- a/generation.md
+++ b/generation.md
@@ -1,5 +1,5 @@
1. Regenerate public api
Linux:
-```docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli:v6.6.0 generate -i https://test-api.configcat.com/docs/v1/swagger.json -g go -o /local --git-repo-id configcat-publicapi-go-client --git-user-id configcat --additional-properties=packageName=configcatpublicapi,enumClassPrefix=true,structPrefix=true```
+```docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli:v7.7.0 generate -i https://test-api.configcat.com/docs/v1/swagger.json -g go -o /local --git-repo-id configcat-publicapi-go-client --git-user-id configcat --additional-properties=packageName=configcatpublicapi,enumClassPrefix=true,structPrefix=true```
Windows:
-```docker run --rm -v %CD%:/local openapitools/openapi-generator-cli:v6.6.0 generate -i https://test-api.configcat.com/docs/v1/swagger.json -g go -o /local --git-repo-id configcat-publicapi-go-client --git-user-id configcat --additional-properties=packageName=configcatpublicapi,enumClassPrefix=true,structPrefix=true```
+```docker run --rm -v %CD%:/local openapitools/openapi-generator-cli:v7.7.0 generate -i https://test-api.configcat.com/docs/v1/swagger.json -g go -o /local --git-repo-id configcat-publicapi-go-client --git-user-id configcat --additional-properties=packageName=configcatpublicapi,enumClassPrefix=true,structPrefix=true```
diff --git a/go.mod b/go.mod
index 76b20d9..22a88a7 100644
--- a/go.mod
+++ b/go.mod
@@ -2,10 +2,5 @@ module github.com/configcat/configcat-publicapi-go-client
go 1.18
-require github.com/stretchr/testify v1.9.0
-
require (
- github.com/davecgh/go-spew v1.1.1 // indirect
- github.com/pmezard/go-difflib v1.0.0 // indirect
- gopkg.in/yaml.v3 v3.0.1 // indirect
)
diff --git a/go.sum b/go.sum
index 60ce688..c966c8d 100644
--- a/go.sum
+++ b/go.sum
@@ -1,10 +1,11 @@
-github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
-github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
-github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
-github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
-github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
-github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
-gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
-gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
-gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg=
+golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw=
+golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508=
+google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
diff --git a/model_access_type.go b/model_access_type.go
index b15e315..714cc49 100644
--- a/model_access_type.go
+++ b/model_access_type.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_add_or_update_integration_link_model.go b/model_add_or_update_integration_link_model.go
index eb43c1b..6e8c8f0 100644
--- a/model_add_or_update_integration_link_model.go
+++ b/model_add_or_update_integration_link_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_add_or_update_jira_integration_link_model.go b/model_add_or_update_jira_integration_link_model.go
index e111c49..a6a849c 100644
--- a/model_add_or_update_jira_integration_link_model.go
+++ b/model_add_or_update_jira_integration_link_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the AddOrUpdateJiraIntegrationLinkModel type satisfies the MappedNullable interface at compile time
@@ -26,6 +28,8 @@ type AddOrUpdateJiraIntegrationLinkModel struct {
Url NullableString `json:"url,omitempty"`
}
+type _AddOrUpdateJiraIntegrationLinkModel AddOrUpdateJiraIntegrationLinkModel
+
// NewAddOrUpdateJiraIntegrationLinkModel instantiates a new AddOrUpdateJiraIntegrationLinkModel 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
@@ -198,6 +202,44 @@ func (o AddOrUpdateJiraIntegrationLinkModel) ToMap() (map[string]interface{}, er
return toSerialize, nil
}
+func (o *AddOrUpdateJiraIntegrationLinkModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "jiraJwtToken",
+ "clientKey",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varAddOrUpdateJiraIntegrationLinkModel := _AddOrUpdateJiraIntegrationLinkModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varAddOrUpdateJiraIntegrationLinkModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = AddOrUpdateJiraIntegrationLinkModel(varAddOrUpdateJiraIntegrationLinkModel)
+
+ return err
+}
+
type NullableAddOrUpdateJiraIntegrationLinkModel struct {
value *AddOrUpdateJiraIntegrationLinkModel
isSet bool
diff --git a/model_audit_log_item_model.go b/model_audit_log_item_model.go
index 98ccf09..ee63d27 100644
--- a/model_audit_log_item_model.go
+++ b/model_audit_log_item_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_audit_log_type.go b/model_audit_log_type.go
index b4a1f7f..d67ed70 100644
--- a/model_audit_log_type.go
+++ b/model_audit_log_type.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_code_reference_model.go b/model_code_reference_model.go
index 4999d9c..c663115 100644
--- a/model_code_reference_model.go
+++ b/model_code_reference_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -119,7 +119,7 @@ func (o *CodeReferenceModel) GetReferencesOk() ([]ReferenceLines, bool) {
// HasReferences returns a boolean if a field has been set.
func (o *CodeReferenceModel) HasReferences() bool {
- if o != nil && IsNil(o.References) {
+ if o != nil && !IsNil(o.References) {
return true
}
diff --git a/model_code_reference_request.go b/model_code_reference_request.go
index 0f755bc..c32708f 100644
--- a/model_code_reference_request.go
+++ b/model_code_reference_request.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the CodeReferenceRequest type satisfies the MappedNullable interface at compile time
@@ -38,6 +40,8 @@ type CodeReferenceRequest struct {
FlagReferences []FlagReference `json:"flagReferences,omitempty"`
}
+type _CodeReferenceRequest CodeReferenceRequest
+
// NewCodeReferenceRequest instantiates a new CodeReferenceRequest 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
@@ -277,7 +281,7 @@ func (o *CodeReferenceRequest) GetActiveBranchesOk() ([]string, bool) {
// HasActiveBranches returns a boolean if a field has been set.
func (o *CodeReferenceRequest) HasActiveBranches() bool {
- if o != nil && IsNil(o.ActiveBranches) {
+ if o != nil && !IsNil(o.ActiveBranches) {
return true
}
@@ -310,7 +314,7 @@ func (o *CodeReferenceRequest) GetFlagReferencesOk() ([]FlagReference, bool) {
// HasFlagReferences returns a boolean if a field has been set.
func (o *CodeReferenceRequest) HasFlagReferences() bool {
- if o != nil && IsNil(o.FlagReferences) {
+ if o != nil && !IsNil(o.FlagReferences) {
return true
}
@@ -353,6 +357,45 @@ func (o CodeReferenceRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *CodeReferenceRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "configId",
+ "repository",
+ "branch",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCodeReferenceRequest := _CodeReferenceRequest{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCodeReferenceRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CodeReferenceRequest(varCodeReferenceRequest)
+
+ return err
+}
+
type NullableCodeReferenceRequest struct {
value *CodeReferenceRequest
isSet bool
diff --git a/model_comparison_value_list_model.go b/model_comparison_value_list_model.go
index 929c5a3..704658b 100644
--- a/model_comparison_value_list_model.go
+++ b/model_comparison_value_list_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the ComparisonValueListModel type satisfies the MappedNullable interface at compile time
@@ -26,6 +28,8 @@ type ComparisonValueListModel struct {
Hint NullableString `json:"hint,omitempty"`
}
+type _ComparisonValueListModel ComparisonValueListModel
+
// NewComparisonValueListModel instantiates a new ComparisonValueListModel 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
@@ -127,6 +131,43 @@ func (o ComparisonValueListModel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *ComparisonValueListModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "value",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varComparisonValueListModel := _ComparisonValueListModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varComparisonValueListModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ComparisonValueListModel(varComparisonValueListModel)
+
+ return err
+}
+
type NullableComparisonValueListModel struct {
value *ComparisonValueListModel
isSet bool
diff --git a/model_comparison_value_model.go b/model_comparison_value_model.go
index 21df9d5..68e9e20 100644
--- a/model_comparison_value_model.go
+++ b/model_comparison_value_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -150,7 +150,7 @@ func (o *ComparisonValueModel) GetListValueOk() ([]ComparisonValueListModel, boo
// HasListValue returns a boolean if a field has been set.
func (o *ComparisonValueModel) HasListValue() bool {
- if o != nil && IsNil(o.ListValue) {
+ if o != nil && !IsNil(o.ListValue) {
return true
}
diff --git a/model_condition_model.go b/model_condition_model.go
index 193f9df..0b4d759 100644
--- a/model_condition_model.go
+++ b/model_condition_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_config_model.go b/model_config_model.go
index ce32983..01d33e3 100644
--- a/model_config_model.go
+++ b/model_config_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_config_setting_formula_model.go b/model_config_setting_formula_model.go
index 0ef9a4f..79518b6 100644
--- a/model_config_setting_formula_model.go
+++ b/model_config_setting_formula_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -144,7 +144,7 @@ func (o *ConfigSettingFormulaModel) GetTargetingRulesOk() ([]TargetingRuleModel,
// HasTargetingRules returns a boolean if a field has been set.
func (o *ConfigSettingFormulaModel) HasTargetingRules() bool {
- if o != nil && IsNil(o.TargetingRules) {
+ if o != nil && !IsNil(o.TargetingRules) {
return true
}
@@ -377,7 +377,7 @@ func (o *ConfigSettingFormulaModel) GetIntegrationLinksOk() ([]IntegrationLinkMo
// HasIntegrationLinks returns a boolean if a field has been set.
func (o *ConfigSettingFormulaModel) HasIntegrationLinks() bool {
- if o != nil && IsNil(o.IntegrationLinks) {
+ if o != nil && !IsNil(o.IntegrationLinks) {
return true
}
@@ -410,7 +410,7 @@ func (o *ConfigSettingFormulaModel) GetSettingTagsOk() ([]SettingTagModel, bool)
// HasSettingTags returns a boolean if a field has been set.
func (o *ConfigSettingFormulaModel) HasSettingTags() bool {
- if o != nil && IsNil(o.SettingTags) {
+ if o != nil && !IsNil(o.SettingTags) {
return true
}
@@ -443,7 +443,7 @@ func (o *ConfigSettingFormulaModel) GetSettingIdsWherePrerequisiteOk() ([]int32,
// HasSettingIdsWherePrerequisite returns a boolean if a field has been set.
func (o *ConfigSettingFormulaModel) HasSettingIdsWherePrerequisite() bool {
- if o != nil && IsNil(o.SettingIdsWherePrerequisite) {
+ if o != nil && !IsNil(o.SettingIdsWherePrerequisite) {
return true
}
diff --git a/model_config_setting_formulas_model.go b/model_config_setting_formulas_model.go
index 0430cff..b21b558 100644
--- a/model_config_setting_formulas_model.go
+++ b/model_config_setting_formulas_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -162,7 +162,7 @@ func (o *ConfigSettingFormulasModel) GetSettingFormulasOk() ([]ConfigSettingForm
// HasSettingFormulas returns a boolean if a field has been set.
func (o *ConfigSettingFormulasModel) HasSettingFormulas() bool {
- if o != nil && IsNil(o.SettingFormulas) {
+ if o != nil && !IsNil(o.SettingFormulas) {
return true
}
diff --git a/model_config_setting_value_model.go b/model_config_setting_value_model.go
index c80870b..51ca422 100644
--- a/model_config_setting_value_model.go
+++ b/model_config_setting_value_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -78,7 +78,7 @@ func (o *ConfigSettingValueModel) GetRolloutRulesOk() ([]RolloutRuleModel, bool)
// HasRolloutRules returns a boolean if a field has been set.
func (o *ConfigSettingValueModel) HasRolloutRules() bool {
- if o != nil && IsNil(o.RolloutRules) {
+ if o != nil && !IsNil(o.RolloutRules) {
return true
}
@@ -111,7 +111,7 @@ func (o *ConfigSettingValueModel) GetRolloutPercentageItemsOk() ([]RolloutPercen
// HasRolloutPercentageItems returns a boolean if a field has been set.
func (o *ConfigSettingValueModel) HasRolloutPercentageItems() bool {
- if o != nil && IsNil(o.RolloutPercentageItems) {
+ if o != nil && !IsNil(o.RolloutPercentageItems) {
return true
}
@@ -144,7 +144,7 @@ func (o *ConfigSettingValueModel) GetValueOk() (*interface{}, bool) {
// HasValue returns a boolean if a field has been set.
func (o *ConfigSettingValueModel) HasValue() bool {
- if o != nil && IsNil(o.Value) {
+ if o != nil && !IsNil(o.Value) {
return true
}
@@ -335,7 +335,7 @@ func (o *ConfigSettingValueModel) GetIntegrationLinksOk() ([]IntegrationLinkMode
// HasIntegrationLinks returns a boolean if a field has been set.
func (o *ConfigSettingValueModel) HasIntegrationLinks() bool {
- if o != nil && IsNil(o.IntegrationLinks) {
+ if o != nil && !IsNil(o.IntegrationLinks) {
return true
}
@@ -368,7 +368,7 @@ func (o *ConfigSettingValueModel) GetSettingTagsOk() ([]SettingTagModel, bool) {
// HasSettingTags returns a boolean if a field has been set.
func (o *ConfigSettingValueModel) HasSettingTags() bool {
- if o != nil && IsNil(o.SettingTags) {
+ if o != nil && !IsNil(o.SettingTags) {
return true
}
diff --git a/model_config_setting_values_model.go b/model_config_setting_values_model.go
index 0049b08..2a75186 100644
--- a/model_config_setting_values_model.go
+++ b/model_config_setting_values_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -161,7 +161,7 @@ func (o *ConfigSettingValuesModel) GetSettingValuesOk() ([]ConfigSettingValueMod
// HasSettingValues returns a boolean if a field has been set.
func (o *ConfigSettingValuesModel) HasSettingValues() bool {
- if o != nil && IsNil(o.SettingValues) {
+ if o != nil && !IsNil(o.SettingValues) {
return true
}
diff --git a/model_connect_request.go b/model_connect_request.go
index 088a2a3..81e8b0f 100644
--- a/model_connect_request.go
+++ b/model_connect_request.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the ConnectRequest type satisfies the MappedNullable interface at compile time
@@ -24,6 +26,8 @@ type ConnectRequest struct {
JiraJwtToken string `json:"jiraJwtToken"`
}
+type _ConnectRequest ConnectRequest
+
// NewConnectRequest instantiates a new ConnectRequest 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
@@ -106,6 +110,44 @@ func (o ConnectRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *ConnectRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "clientKey",
+ "jiraJwtToken",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varConnectRequest := _ConnectRequest{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varConnectRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ConnectRequest(varConnectRequest)
+
+ return err
+}
+
type NullableConnectRequest struct {
value *ConnectRequest
isSet bool
diff --git a/model_create_config_request.go b/model_create_config_request.go
index 88273d2..2c5fe17 100644
--- a/model_create_config_request.go
+++ b/model_create_config_request.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the CreateConfigRequest type satisfies the MappedNullable interface at compile time
@@ -29,6 +31,8 @@ type CreateConfigRequest struct {
EvaluationVersion *EvaluationVersion `json:"evaluationVersion,omitempty"`
}
+type _CreateConfigRequest CreateConfigRequest
+
// NewCreateConfigRequest instantiates a new CreateConfigRequest 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
@@ -210,6 +214,43 @@ func (o CreateConfigRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *CreateConfigRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCreateConfigRequest := _CreateConfigRequest{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCreateConfigRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CreateConfigRequest(varCreateConfigRequest)
+
+ return err
+}
+
type NullableCreateConfigRequest struct {
value *CreateConfigRequest
isSet bool
diff --git a/model_create_environment_model.go b/model_create_environment_model.go
index 8006072..4304110 100644
--- a/model_create_environment_model.go
+++ b/model_create_environment_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the CreateEnvironmentModel type satisfies the MappedNullable interface at compile time
@@ -30,6 +32,8 @@ type CreateEnvironmentModel struct {
Order NullableInt32 `json:"order,omitempty"`
}
+type _CreateEnvironmentModel CreateEnvironmentModel
+
// NewCreateEnvironmentModel instantiates a new CreateEnvironmentModel 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
@@ -221,6 +225,43 @@ func (o CreateEnvironmentModel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *CreateEnvironmentModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCreateEnvironmentModel := _CreateEnvironmentModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCreateEnvironmentModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CreateEnvironmentModel(varCreateEnvironmentModel)
+
+ return err
+}
+
type NullableCreateEnvironmentModel struct {
value *CreateEnvironmentModel
isSet bool
diff --git a/model_create_integration_model.go b/model_create_integration_model.go
new file mode 100644
index 0000000..215e460
--- /dev/null
+++ b/model_create_integration_model.go
@@ -0,0 +1,275 @@
+/*
+ConfigCat Public Management API
+
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package configcatpublicapi
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the CreateIntegrationModel type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &CreateIntegrationModel{}
+
+// CreateIntegrationModel struct for CreateIntegrationModel
+type CreateIntegrationModel struct {
+ IntegrationType IntegrationType `json:"integrationType"`
+ // Name of the Integration.
+ Name string `json:"name"`
+ // Parameters of the Integration.
+ Parameters map[string]string `json:"parameters"`
+ // List of Environment IDs that are connected with this Integration. If the list is empty, all of the Environments are connected.
+ EnvironmentIds []string `json:"environmentIds"`
+ // List of Config IDs that are connected with this Integration. If the list is empty, all of the Configs are connected.
+ ConfigIds []string `json:"configIds"`
+}
+
+type _CreateIntegrationModel CreateIntegrationModel
+
+// NewCreateIntegrationModel instantiates a new CreateIntegrationModel 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
+func NewCreateIntegrationModel(integrationType IntegrationType, name string, parameters map[string]string, environmentIds []string, configIds []string) *CreateIntegrationModel {
+ this := CreateIntegrationModel{}
+ this.IntegrationType = integrationType
+ this.Name = name
+ this.Parameters = parameters
+ this.EnvironmentIds = environmentIds
+ this.ConfigIds = configIds
+ return &this
+}
+
+// NewCreateIntegrationModelWithDefaults instantiates a new CreateIntegrationModel 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
+func NewCreateIntegrationModelWithDefaults() *CreateIntegrationModel {
+ this := CreateIntegrationModel{}
+ return &this
+}
+
+// GetIntegrationType returns the IntegrationType field value
+func (o *CreateIntegrationModel) GetIntegrationType() IntegrationType {
+ if o == nil {
+ var ret IntegrationType
+ return ret
+ }
+
+ return o.IntegrationType
+}
+
+// GetIntegrationTypeOk returns a tuple with the IntegrationType field value
+// and a boolean to check if the value has been set.
+func (o *CreateIntegrationModel) GetIntegrationTypeOk() (*IntegrationType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.IntegrationType, true
+}
+
+// SetIntegrationType sets field value
+func (o *CreateIntegrationModel) SetIntegrationType(v IntegrationType) {
+ o.IntegrationType = v
+}
+
+// GetName returns the Name field value
+func (o *CreateIntegrationModel) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *CreateIntegrationModel) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *CreateIntegrationModel) SetName(v string) {
+ o.Name = v
+}
+
+// GetParameters returns the Parameters field value
+func (o *CreateIntegrationModel) GetParameters() map[string]string {
+ if o == nil {
+ var ret map[string]string
+ return ret
+ }
+
+ return o.Parameters
+}
+
+// GetParametersOk returns a tuple with the Parameters field value
+// and a boolean to check if the value has been set.
+func (o *CreateIntegrationModel) GetParametersOk() (*map[string]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Parameters, true
+}
+
+// SetParameters sets field value
+func (o *CreateIntegrationModel) SetParameters(v map[string]string) {
+ o.Parameters = v
+}
+
+// GetEnvironmentIds returns the EnvironmentIds field value
+func (o *CreateIntegrationModel) GetEnvironmentIds() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+
+ return o.EnvironmentIds
+}
+
+// GetEnvironmentIdsOk returns a tuple with the EnvironmentIds field value
+// and a boolean to check if the value has been set.
+func (o *CreateIntegrationModel) GetEnvironmentIdsOk() ([]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.EnvironmentIds, true
+}
+
+// SetEnvironmentIds sets field value
+func (o *CreateIntegrationModel) SetEnvironmentIds(v []string) {
+ o.EnvironmentIds = v
+}
+
+// GetConfigIds returns the ConfigIds field value
+func (o *CreateIntegrationModel) GetConfigIds() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+
+ return o.ConfigIds
+}
+
+// GetConfigIdsOk returns a tuple with the ConfigIds field value
+// and a boolean to check if the value has been set.
+func (o *CreateIntegrationModel) GetConfigIdsOk() ([]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.ConfigIds, true
+}
+
+// SetConfigIds sets field value
+func (o *CreateIntegrationModel) SetConfigIds(v []string) {
+ o.ConfigIds = v
+}
+
+func (o CreateIntegrationModel) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o CreateIntegrationModel) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["integrationType"] = o.IntegrationType
+ toSerialize["name"] = o.Name
+ toSerialize["parameters"] = o.Parameters
+ toSerialize["environmentIds"] = o.EnvironmentIds
+ toSerialize["configIds"] = o.ConfigIds
+ return toSerialize, nil
+}
+
+func (o *CreateIntegrationModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "integrationType",
+ "name",
+ "parameters",
+ "environmentIds",
+ "configIds",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCreateIntegrationModel := _CreateIntegrationModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCreateIntegrationModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CreateIntegrationModel(varCreateIntegrationModel)
+
+ return err
+}
+
+type NullableCreateIntegrationModel struct {
+ value *CreateIntegrationModel
+ isSet bool
+}
+
+func (v NullableCreateIntegrationModel) Get() *CreateIntegrationModel {
+ return v.value
+}
+
+func (v *NullableCreateIntegrationModel) Set(val *CreateIntegrationModel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCreateIntegrationModel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCreateIntegrationModel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCreateIntegrationModel(val *CreateIntegrationModel) *NullableCreateIntegrationModel {
+ return &NullableCreateIntegrationModel{value: val, isSet: true}
+}
+
+func (v NullableCreateIntegrationModel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCreateIntegrationModel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/model_create_or_update_environment_access_model.go b/model_create_or_update_environment_access_model.go
index 4d534b0..9a167e4 100644
--- a/model_create_or_update_environment_access_model.go
+++ b/model_create_or_update_environment_access_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_create_permission_group_request.go b/model_create_permission_group_request.go
index 25088cc..1def932 100644
--- a/model_create_permission_group_request.go
+++ b/model_create_permission_group_request.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the CreatePermissionGroupRequest type satisfies the MappedNullable interface at compile time
@@ -68,6 +70,8 @@ type CreatePermissionGroupRequest struct {
EnvironmentAccesses []CreateOrUpdateEnvironmentAccessModel `json:"environmentAccesses,omitempty"`
}
+type _CreatePermissionGroupRequest CreatePermissionGroupRequest
+
// NewCreatePermissionGroupRequest instantiates a new CreatePermissionGroupRequest 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
@@ -835,7 +839,7 @@ func (o *CreatePermissionGroupRequest) GetEnvironmentAccessesOk() ([]CreateOrUpd
// HasEnvironmentAccesses returns a boolean if a field has been set.
func (o *CreatePermissionGroupRequest) HasEnvironmentAccesses() bool {
- if o != nil && IsNil(o.EnvironmentAccesses) {
+ if o != nil && !IsNil(o.EnvironmentAccesses) {
return true
}
@@ -930,6 +934,43 @@ func (o CreatePermissionGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *CreatePermissionGroupRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCreatePermissionGroupRequest := _CreatePermissionGroupRequest{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCreatePermissionGroupRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CreatePermissionGroupRequest(varCreatePermissionGroupRequest)
+
+ return err
+}
+
type NullableCreatePermissionGroupRequest struct {
value *CreatePermissionGroupRequest
isSet bool
diff --git a/model_create_product_request.go b/model_create_product_request.go
index 02a78f7..0a355fe 100644
--- a/model_create_product_request.go
+++ b/model_create_product_request.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the CreateProductRequest type satisfies the MappedNullable interface at compile time
@@ -28,6 +30,8 @@ type CreateProductRequest struct {
Order NullableInt32 `json:"order,omitempty"`
}
+type _CreateProductRequest CreateProductRequest
+
// NewCreateProductRequest instantiates a new CreateProductRequest 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
@@ -174,6 +178,43 @@ func (o CreateProductRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *CreateProductRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCreateProductRequest := _CreateProductRequest{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCreateProductRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CreateProductRequest(varCreateProductRequest)
+
+ return err
+}
+
type NullableCreateProductRequest struct {
value *CreateProductRequest
isSet bool
diff --git a/model_create_segment_model.go b/model_create_segment_model.go
index 2c1c8dc..b40c277 100644
--- a/model_create_segment_model.go
+++ b/model_create_segment_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the CreateSegmentModel type satisfies the MappedNullable interface at compile time
@@ -31,6 +33,8 @@ type CreateSegmentModel struct {
ComparisonValue string `json:"comparisonValue"`
}
+type _CreateSegmentModel CreateSegmentModel
+
// NewCreateSegmentModel instantiates a new CreateSegmentModel 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
@@ -210,6 +214,46 @@ func (o CreateSegmentModel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *CreateSegmentModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ "comparisonAttribute",
+ "comparator",
+ "comparisonValue",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCreateSegmentModel := _CreateSegmentModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCreateSegmentModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CreateSegmentModel(varCreateSegmentModel)
+
+ return err
+}
+
type NullableCreateSegmentModel struct {
value *CreateSegmentModel
isSet bool
diff --git a/model_create_setting_initial_values.go b/model_create_setting_initial_values.go
index 49ab08b..47248d3 100644
--- a/model_create_setting_initial_values.go
+++ b/model_create_setting_initial_values.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the CreateSettingInitialValues type satisfies the MappedNullable interface at compile time
@@ -27,7 +29,7 @@ type CreateSettingInitialValues struct {
// The order of the Setting represented on the ConfigCat Dashboard. Determined from an ascending sequence of integers.
Order NullableInt32 `json:"order,omitempty"`
// The key of the Feature Flag or Setting.
- Key string `json:"key"`
+ Key string `json:"key" validate:"regexp=^[a-zA-Z]+[a-zA-Z0-9_-]*$"`
// The name of the Feature Flag or Setting.
Name string `json:"name"`
SettingType SettingType `json:"settingType"`
@@ -35,6 +37,8 @@ type CreateSettingInitialValues struct {
InitialValues []InitialValue `json:"initialValues,omitempty"`
}
+type _CreateSettingInitialValues CreateSettingInitialValues
+
// NewCreateSettingInitialValues instantiates a new CreateSettingInitialValues 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
@@ -118,7 +122,7 @@ func (o *CreateSettingInitialValues) GetTagsOk() ([]int64, bool) {
// HasTags returns a boolean if a field has been set.
func (o *CreateSettingInitialValues) HasTags() bool {
- if o != nil && IsNil(o.Tags) {
+ if o != nil && !IsNil(o.Tags) {
return true
}
@@ -265,7 +269,7 @@ func (o *CreateSettingInitialValues) GetInitialValuesOk() ([]InitialValue, bool)
// HasInitialValues returns a boolean if a field has been set.
func (o *CreateSettingInitialValues) HasInitialValues() bool {
- if o != nil && IsNil(o.InitialValues) {
+ if o != nil && !IsNil(o.InitialValues) {
return true
}
@@ -305,6 +309,45 @@ func (o CreateSettingInitialValues) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *CreateSettingInitialValues) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "key",
+ "name",
+ "settingType",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCreateSettingInitialValues := _CreateSettingInitialValues{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCreateSettingInitialValues)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CreateSettingInitialValues(varCreateSettingInitialValues)
+
+ return err
+}
+
type NullableCreateSettingInitialValues struct {
value *CreateSettingInitialValues
isSet bool
diff --git a/model_create_tag_model.go b/model_create_tag_model.go
index aa0cfc2..3f2951d 100644
--- a/model_create_tag_model.go
+++ b/model_create_tag_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the CreateTagModel type satisfies the MappedNullable interface at compile time
@@ -26,6 +28,8 @@ type CreateTagModel struct {
Color NullableString `json:"color,omitempty"`
}
+type _CreateTagModel CreateTagModel
+
// NewCreateTagModel instantiates a new CreateTagModel 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
@@ -127,6 +131,43 @@ func (o CreateTagModel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *CreateTagModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCreateTagModel := _CreateTagModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCreateTagModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CreateTagModel(varCreateTagModel)
+
+ return err
+}
+
type NullableCreateTagModel struct {
value *CreateTagModel
isSet bool
diff --git a/model_delete_integration_link_model.go b/model_delete_integration_link_model.go
index 363f74a..8c38988 100644
--- a/model_delete_integration_link_model.go
+++ b/model_delete_integration_link_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_delete_repository_reports_request.go b/model_delete_repository_reports_request.go
index e31df77..6932df6 100644
--- a/model_delete_repository_reports_request.go
+++ b/model_delete_repository_reports_request.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the DeleteRepositoryReportsRequest type satisfies the MappedNullable interface at compile time
@@ -30,6 +32,8 @@ type DeleteRepositoryReportsRequest struct {
SettingId NullableInt32 `json:"settingId,omitempty"`
}
+type _DeleteRepositoryReportsRequest DeleteRepositoryReportsRequest
+
// NewDeleteRepositoryReportsRequest instantiates a new DeleteRepositoryReportsRequest 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
@@ -202,6 +206,44 @@ func (o DeleteRepositoryReportsRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
+func (o *DeleteRepositoryReportsRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "configId",
+ "repository",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varDeleteRepositoryReportsRequest := _DeleteRepositoryReportsRequest{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varDeleteRepositoryReportsRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = DeleteRepositoryReportsRequest(varDeleteRepositoryReportsRequest)
+
+ return err
+}
+
type NullableDeleteRepositoryReportsRequest struct {
value *DeleteRepositoryReportsRequest
isSet bool
diff --git a/model_environment_access_model.go b/model_environment_access_model.go
index 9014578..9378766 100644
--- a/model_environment_access_model.go
+++ b/model_environment_access_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_environment_access_type.go b/model_environment_access_type.go
index bd983ed..bb8767b 100644
--- a/model_environment_access_type.go
+++ b/model_environment_access_type.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_environment_model.go b/model_environment_model.go
index 6b71332..eefe69c 100644
--- a/model_environment_model.go
+++ b/model_environment_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_evaluation_version.go b/model_evaluation_version.go
index d92c0f9..a0006ce 100644
--- a/model_evaluation_version.go
+++ b/model_evaluation_version.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_feature_flag_limitations.go b/model_feature_flag_limitations.go
index 9c7200e..b72e40a 100644
--- a/model_feature_flag_limitations.go
+++ b/model_feature_flag_limitations.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -287,13 +287,27 @@ func (o FeatureFlagLimitations) MarshalJSON() ([]byte, error) {
func (o FeatureFlagLimitations) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- // skip: maxPercentageOptionCount is readOnly
- // skip: maxTargetingRuleCount is readOnly
- // skip: maxComparisonValueLength is readOnly
- // skip: maxComparisonValueListLength is readOnly
- // skip: maxComparisonValueListItemLength is readOnly
- // skip: maxStringFlagValueLength is readOnly
- // skip: maxConditionPerTargetingRuleCount is readOnly
+ if !IsNil(o.MaxPercentageOptionCount) {
+ toSerialize["maxPercentageOptionCount"] = o.MaxPercentageOptionCount
+ }
+ if !IsNil(o.MaxTargetingRuleCount) {
+ toSerialize["maxTargetingRuleCount"] = o.MaxTargetingRuleCount
+ }
+ if !IsNil(o.MaxComparisonValueLength) {
+ toSerialize["maxComparisonValueLength"] = o.MaxComparisonValueLength
+ }
+ if !IsNil(o.MaxComparisonValueListLength) {
+ toSerialize["maxComparisonValueListLength"] = o.MaxComparisonValueListLength
+ }
+ if !IsNil(o.MaxComparisonValueListItemLength) {
+ toSerialize["maxComparisonValueListItemLength"] = o.MaxComparisonValueListItemLength
+ }
+ if !IsNil(o.MaxStringFlagValueLength) {
+ toSerialize["maxStringFlagValueLength"] = o.MaxStringFlagValueLength
+ }
+ if !IsNil(o.MaxConditionPerTargetingRuleCount) {
+ toSerialize["maxConditionPerTargetingRuleCount"] = o.MaxConditionPerTargetingRuleCount
+ }
return toSerialize, nil
}
diff --git a/model_flag_reference.go b/model_flag_reference.go
index 7d722dd..2c854c0 100644
--- a/model_flag_reference.go
+++ b/model_flag_reference.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the FlagReference type satisfies the MappedNullable interface at compile time
@@ -26,6 +28,8 @@ type FlagReference struct {
References []ReferenceLines `json:"references"`
}
+type _FlagReference FlagReference
+
// NewFlagReference instantiates a new FlagReference 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
@@ -108,6 +112,44 @@ func (o FlagReference) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *FlagReference) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "settingId",
+ "references",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varFlagReference := _FlagReference{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varFlagReference)
+
+ if err != nil {
+ return err
+ }
+
+ *o = FlagReference(varFlagReference)
+
+ return err
+}
+
type NullableFlagReference struct {
value *FlagReference
isSet bool
diff --git a/model_initial_value.go b/model_initial_value.go
index ee62a84..3ac11af 100644
--- a/model_initial_value.go
+++ b/model_initial_value.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -96,7 +96,7 @@ func (o *InitialValue) GetValueOk() (*interface{}, bool) {
// HasValue returns a boolean if a field has been set.
func (o *InitialValue) HasValue() bool {
- if o != nil && IsNil(o.Value) {
+ if o != nil && !IsNil(o.Value) {
return true
}
diff --git a/model_integration_link_detail.go b/model_integration_link_detail.go
index eaf4224..d3b1538 100644
--- a/model_integration_link_detail.go
+++ b/model_integration_link_detail.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_integration_link_details_model.go b/model_integration_link_details_model.go
index f0d9d3e..8e27c7c 100644
--- a/model_integration_link_details_model.go
+++ b/model_integration_link_details_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -62,7 +62,7 @@ func (o *IntegrationLinkDetailsModel) GetDetailsOk() ([]IntegrationLinkDetail, b
// HasDetails returns a boolean if a field has been set.
func (o *IntegrationLinkDetailsModel) HasDetails() bool {
- if o != nil && IsNil(o.Details) {
+ if o != nil && !IsNil(o.Details) {
return true
}
diff --git a/model_integration_link_model.go b/model_integration_link_model.go
index 4f54f0d..10ac60f 100644
--- a/model_integration_link_model.go
+++ b/model_integration_link_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_integration_link_type.go b/model_integration_link_type.go
index 71b2493..25d6f04 100644
--- a/model_integration_link_type.go
+++ b/model_integration_link_type.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_integration_model.go b/model_integration_model.go
new file mode 100644
index 0000000..9dc70bf
--- /dev/null
+++ b/model_integration_model.go
@@ -0,0 +1,325 @@
+/*
+ConfigCat Public Management API
+
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package configcatpublicapi
+
+import (
+ "encoding/json"
+)
+
+// checks if the IntegrationModel type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IntegrationModel{}
+
+// IntegrationModel Details of the Integration.
+type IntegrationModel struct {
+ // Identifier of the Integration.
+ IntegrationId *string `json:"integrationId,omitempty"`
+ // Name of the Integration.
+ Name NullableString `json:"name,omitempty"`
+ IntegrationType *IntegrationType `json:"integrationType,omitempty"`
+ // Parameters of the Integration.
+ Parameters map[string]string `json:"parameters,omitempty"`
+ // List of Environment IDs that are connected with this Integration. If the list is empty, all of the Environments are connected.
+ IntegrationEnvironmentIds []string `json:"integrationEnvironmentIds,omitempty"`
+ // List of Config IDs that are connected with this Integration. If the list is empty, all of the Configs are connected.
+ IntegrationConfigIds []string `json:"integrationConfigIds,omitempty"`
+}
+
+// NewIntegrationModel instantiates a new IntegrationModel 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
+func NewIntegrationModel() *IntegrationModel {
+ this := IntegrationModel{}
+ return &this
+}
+
+// NewIntegrationModelWithDefaults instantiates a new IntegrationModel 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
+func NewIntegrationModelWithDefaults() *IntegrationModel {
+ this := IntegrationModel{}
+ return &this
+}
+
+// GetIntegrationId returns the IntegrationId field value if set, zero value otherwise.
+func (o *IntegrationModel) GetIntegrationId() string {
+ if o == nil || IsNil(o.IntegrationId) {
+ var ret string
+ return ret
+ }
+ return *o.IntegrationId
+}
+
+// GetIntegrationIdOk returns a tuple with the IntegrationId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *IntegrationModel) GetIntegrationIdOk() (*string, bool) {
+ if o == nil || IsNil(o.IntegrationId) {
+ return nil, false
+ }
+ return o.IntegrationId, true
+}
+
+// HasIntegrationId returns a boolean if a field has been set.
+func (o *IntegrationModel) HasIntegrationId() bool {
+ if o != nil && !IsNil(o.IntegrationId) {
+ return true
+ }
+
+ return false
+}
+
+// SetIntegrationId gets a reference to the given string and assigns it to the IntegrationId field.
+func (o *IntegrationModel) SetIntegrationId(v string) {
+ o.IntegrationId = &v
+}
+
+// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *IntegrationModel) GetName() string {
+ if o == nil || IsNil(o.Name.Get()) {
+ var ret string
+ return ret
+ }
+ return *o.Name.Get()
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *IntegrationModel) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Name.Get(), o.Name.IsSet()
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *IntegrationModel) HasName() bool {
+ if o != nil && o.Name.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given NullableString and assigns it to the Name field.
+func (o *IntegrationModel) SetName(v string) {
+ o.Name.Set(&v)
+}
+// SetNameNil sets the value for Name to be an explicit nil
+func (o *IntegrationModel) SetNameNil() {
+ o.Name.Set(nil)
+}
+
+// UnsetName ensures that no value is present for Name, not even an explicit nil
+func (o *IntegrationModel) UnsetName() {
+ o.Name.Unset()
+}
+
+// GetIntegrationType returns the IntegrationType field value if set, zero value otherwise.
+func (o *IntegrationModel) GetIntegrationType() IntegrationType {
+ if o == nil || IsNil(o.IntegrationType) {
+ var ret IntegrationType
+ return ret
+ }
+ return *o.IntegrationType
+}
+
+// GetIntegrationTypeOk returns a tuple with the IntegrationType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *IntegrationModel) GetIntegrationTypeOk() (*IntegrationType, bool) {
+ if o == nil || IsNil(o.IntegrationType) {
+ return nil, false
+ }
+ return o.IntegrationType, true
+}
+
+// HasIntegrationType returns a boolean if a field has been set.
+func (o *IntegrationModel) HasIntegrationType() bool {
+ if o != nil && !IsNil(o.IntegrationType) {
+ return true
+ }
+
+ return false
+}
+
+// SetIntegrationType gets a reference to the given IntegrationType and assigns it to the IntegrationType field.
+func (o *IntegrationModel) SetIntegrationType(v IntegrationType) {
+ o.IntegrationType = &v
+}
+
+// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *IntegrationModel) GetParameters() map[string]string {
+ if o == nil {
+ var ret map[string]string
+ return ret
+ }
+ return o.Parameters
+}
+
+// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *IntegrationModel) GetParametersOk() (*map[string]string, bool) {
+ if o == nil || IsNil(o.Parameters) {
+ return nil, false
+ }
+ return &o.Parameters, true
+}
+
+// HasParameters returns a boolean if a field has been set.
+func (o *IntegrationModel) HasParameters() bool {
+ if o != nil && !IsNil(o.Parameters) {
+ return true
+ }
+
+ return false
+}
+
+// SetParameters gets a reference to the given map[string]string and assigns it to the Parameters field.
+func (o *IntegrationModel) SetParameters(v map[string]string) {
+ o.Parameters = v
+}
+
+// GetIntegrationEnvironmentIds returns the IntegrationEnvironmentIds field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *IntegrationModel) GetIntegrationEnvironmentIds() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.IntegrationEnvironmentIds
+}
+
+// GetIntegrationEnvironmentIdsOk returns a tuple with the IntegrationEnvironmentIds field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *IntegrationModel) GetIntegrationEnvironmentIdsOk() ([]string, bool) {
+ if o == nil || IsNil(o.IntegrationEnvironmentIds) {
+ return nil, false
+ }
+ return o.IntegrationEnvironmentIds, true
+}
+
+// HasIntegrationEnvironmentIds returns a boolean if a field has been set.
+func (o *IntegrationModel) HasIntegrationEnvironmentIds() bool {
+ if o != nil && !IsNil(o.IntegrationEnvironmentIds) {
+ return true
+ }
+
+ return false
+}
+
+// SetIntegrationEnvironmentIds gets a reference to the given []string and assigns it to the IntegrationEnvironmentIds field.
+func (o *IntegrationModel) SetIntegrationEnvironmentIds(v []string) {
+ o.IntegrationEnvironmentIds = v
+}
+
+// GetIntegrationConfigIds returns the IntegrationConfigIds field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *IntegrationModel) GetIntegrationConfigIds() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.IntegrationConfigIds
+}
+
+// GetIntegrationConfigIdsOk returns a tuple with the IntegrationConfigIds field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *IntegrationModel) GetIntegrationConfigIdsOk() ([]string, bool) {
+ if o == nil || IsNil(o.IntegrationConfigIds) {
+ return nil, false
+ }
+ return o.IntegrationConfigIds, true
+}
+
+// HasIntegrationConfigIds returns a boolean if a field has been set.
+func (o *IntegrationModel) HasIntegrationConfigIds() bool {
+ if o != nil && !IsNil(o.IntegrationConfigIds) {
+ return true
+ }
+
+ return false
+}
+
+// SetIntegrationConfigIds gets a reference to the given []string and assigns it to the IntegrationConfigIds field.
+func (o *IntegrationModel) SetIntegrationConfigIds(v []string) {
+ o.IntegrationConfigIds = v
+}
+
+func (o IntegrationModel) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IntegrationModel) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.IntegrationId) {
+ toSerialize["integrationId"] = o.IntegrationId
+ }
+ if o.Name.IsSet() {
+ toSerialize["name"] = o.Name.Get()
+ }
+ if !IsNil(o.IntegrationType) {
+ toSerialize["integrationType"] = o.IntegrationType
+ }
+ if o.Parameters != nil {
+ toSerialize["parameters"] = o.Parameters
+ }
+ if o.IntegrationEnvironmentIds != nil {
+ toSerialize["integrationEnvironmentIds"] = o.IntegrationEnvironmentIds
+ }
+ if o.IntegrationConfigIds != nil {
+ toSerialize["integrationConfigIds"] = o.IntegrationConfigIds
+ }
+ return toSerialize, nil
+}
+
+type NullableIntegrationModel struct {
+ value *IntegrationModel
+ isSet bool
+}
+
+func (v NullableIntegrationModel) Get() *IntegrationModel {
+ return v.value
+}
+
+func (v *NullableIntegrationModel) Set(val *IntegrationModel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIntegrationModel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIntegrationModel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIntegrationModel(val *IntegrationModel) *NullableIntegrationModel {
+ return &NullableIntegrationModel{value: val, isSet: true}
+}
+
+func (v NullableIntegrationModel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIntegrationModel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/model_integration_type.go b/model_integration_type.go
new file mode 100644
index 0000000..84f891c
--- /dev/null
+++ b/model_integration_type.go
@@ -0,0 +1,120 @@
+/*
+ConfigCat Public Management API
+
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package configcatpublicapi
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IntegrationType the model 'IntegrationType'
+type IntegrationType string
+
+// List of IntegrationType
+const (
+ INTEGRATIONTYPE_DATA_DOG IntegrationType = "dataDog"
+ INTEGRATIONTYPE_SLACK IntegrationType = "slack"
+ INTEGRATIONTYPE_AMPLITUDE IntegrationType = "amplitude"
+ INTEGRATIONTYPE_MIX_PANEL IntegrationType = "mixPanel"
+ INTEGRATIONTYPE_SEGMENT IntegrationType = "segment"
+ INTEGRATIONTYPE_PUB_NUB IntegrationType = "pubNub"
+)
+
+// All allowed values of IntegrationType enum
+var AllowedIntegrationTypeEnumValues = []IntegrationType{
+ "dataDog",
+ "slack",
+ "amplitude",
+ "mixPanel",
+ "segment",
+ "pubNub",
+}
+
+func (v *IntegrationType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IntegrationType(value)
+ for _, existing := range AllowedIntegrationTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IntegrationType", value)
+}
+
+// NewIntegrationTypeFromValue returns a pointer to a valid IntegrationType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIntegrationTypeFromValue(v string) (*IntegrationType, error) {
+ ev := IntegrationType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IntegrationType: valid values are %v", v, AllowedIntegrationTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IntegrationType) IsValid() bool {
+ for _, existing := range AllowedIntegrationTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to IntegrationType value
+func (v IntegrationType) Ptr() *IntegrationType {
+ return &v
+}
+
+type NullableIntegrationType struct {
+ value *IntegrationType
+ isSet bool
+}
+
+func (v NullableIntegrationType) Get() *IntegrationType {
+ return v.value
+}
+
+func (v *NullableIntegrationType) Set(val *IntegrationType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIntegrationType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIntegrationType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIntegrationType(val *IntegrationType) *NullableIntegrationType {
+ return &NullableIntegrationType{value: val, isSet: true}
+}
+
+func (v NullableIntegrationType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIntegrationType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
diff --git a/model_integrations_model.go b/model_integrations_model.go
new file mode 100644
index 0000000..717312f
--- /dev/null
+++ b/model_integrations_model.go
@@ -0,0 +1,129 @@
+/*
+ConfigCat Public Management API
+
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package configcatpublicapi
+
+import (
+ "encoding/json"
+)
+
+// checks if the IntegrationsModel type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &IntegrationsModel{}
+
+// IntegrationsModel struct for IntegrationsModel
+type IntegrationsModel struct {
+ // The Integrations of the Product.
+ Integrations []IntegrationModel `json:"integrations,omitempty"`
+}
+
+// NewIntegrationsModel instantiates a new IntegrationsModel 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
+func NewIntegrationsModel() *IntegrationsModel {
+ this := IntegrationsModel{}
+ return &this
+}
+
+// NewIntegrationsModelWithDefaults instantiates a new IntegrationsModel 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
+func NewIntegrationsModelWithDefaults() *IntegrationsModel {
+ this := IntegrationsModel{}
+ return &this
+}
+
+// GetIntegrations returns the Integrations field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *IntegrationsModel) GetIntegrations() []IntegrationModel {
+ if o == nil {
+ var ret []IntegrationModel
+ return ret
+ }
+ return o.Integrations
+}
+
+// GetIntegrationsOk returns a tuple with the Integrations field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *IntegrationsModel) GetIntegrationsOk() ([]IntegrationModel, bool) {
+ if o == nil || IsNil(o.Integrations) {
+ return nil, false
+ }
+ return o.Integrations, true
+}
+
+// HasIntegrations returns a boolean if a field has been set.
+func (o *IntegrationsModel) HasIntegrations() bool {
+ if o != nil && !IsNil(o.Integrations) {
+ return true
+ }
+
+ return false
+}
+
+// SetIntegrations gets a reference to the given []IntegrationModel and assigns it to the Integrations field.
+func (o *IntegrationsModel) SetIntegrations(v []IntegrationModel) {
+ o.Integrations = v
+}
+
+func (o IntegrationsModel) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o IntegrationsModel) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if o.Integrations != nil {
+ toSerialize["integrations"] = o.Integrations
+ }
+ return toSerialize, nil
+}
+
+type NullableIntegrationsModel struct {
+ value *IntegrationsModel
+ isSet bool
+}
+
+func (v NullableIntegrationsModel) Get() *IntegrationsModel {
+ return v.value
+}
+
+func (v *NullableIntegrationsModel) Set(val *IntegrationsModel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIntegrationsModel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIntegrationsModel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIntegrationsModel(val *IntegrationsModel) *NullableIntegrationsModel {
+ return &NullableIntegrationsModel{value: val, isSet: true}
+}
+
+func (v NullableIntegrationsModel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIntegrationsModel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/model_invitation_model.go b/model_invitation_model.go
index 9b5d92f..8a74789 100644
--- a/model_invitation_model.go
+++ b/model_invitation_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_invite_members_request.go b/model_invite_members_request.go
index df3ca7b..fada0d6 100644
--- a/model_invite_members_request.go
+++ b/model_invite_members_request.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the InviteMembersRequest type satisfies the MappedNullable interface at compile time
@@ -26,6 +28,8 @@ type InviteMembersRequest struct {
PermissionGroupId int64 `json:"permissionGroupId"`
}
+type _InviteMembersRequest InviteMembersRequest
+
// NewInviteMembersRequest instantiates a new InviteMembersRequest 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
@@ -108,6 +112,44 @@ func (o InviteMembersRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *InviteMembersRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "emails",
+ "permissionGroupId",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varInviteMembersRequest := _InviteMembersRequest{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varInviteMembersRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = InviteMembersRequest(varInviteMembersRequest)
+
+ return err
+}
+
type NullableInviteMembersRequest struct {
value *InviteMembersRequest
isSet bool
diff --git a/model_json_patch_operation.go b/model_json_patch_operation.go
index 9a935da..46e7d4c 100644
--- a/model_json_patch_operation.go
+++ b/model_json_patch_operation.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the JsonPatchOperation type satisfies the MappedNullable interface at compile time
@@ -29,6 +31,8 @@ type JsonPatchOperation struct {
Value interface{} `json:"value,omitempty"`
}
+type _JsonPatchOperation JsonPatchOperation
+
// NewJsonPatchOperation instantiates a new JsonPatchOperation 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
@@ -159,7 +163,7 @@ func (o *JsonPatchOperation) GetValueOk() (*interface{}, bool) {
// HasValue returns a boolean if a field has been set.
func (o *JsonPatchOperation) HasValue() bool {
- if o != nil && IsNil(o.Value) {
+ if o != nil && !IsNil(o.Value) {
return true
}
@@ -192,6 +196,44 @@ func (o JsonPatchOperation) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *JsonPatchOperation) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "op",
+ "path",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varJsonPatchOperation := _JsonPatchOperation{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varJsonPatchOperation)
+
+ if err != nil {
+ return err
+ }
+
+ *o = JsonPatchOperation(varJsonPatchOperation)
+
+ return err
+}
+
type NullableJsonPatchOperation struct {
value *JsonPatchOperation
isSet bool
diff --git a/model_key_generation_mode.go b/model_key_generation_mode.go
index 80645a4..fc0d8ab 100644
--- a/model_key_generation_mode.go
+++ b/model_key_generation_mode.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_me_model.go b/model_me_model.go
index 14f8677..4b0ad20 100644
--- a/model_me_model.go
+++ b/model_me_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_member_model.go b/model_member_model.go
index c9eaa25..2040d22 100644
--- a/model_member_model.go
+++ b/model_member_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_modify_integration_request.go b/model_modify_integration_request.go
new file mode 100644
index 0000000..cd439ea
--- /dev/null
+++ b/model_modify_integration_request.go
@@ -0,0 +1,247 @@
+/*
+ConfigCat Public Management API
+
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package configcatpublicapi
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the ModifyIntegrationRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ModifyIntegrationRequest{}
+
+// ModifyIntegrationRequest struct for ModifyIntegrationRequest
+type ModifyIntegrationRequest struct {
+ // Name of the Integration.
+ Name string `json:"name"`
+ // Parameters of the Integration.
+ Parameters map[string]string `json:"parameters"`
+ // List of Environment IDs that are connected with this Integration. If the list is empty, all of the Environments are connected.
+ EnvironmentIds []string `json:"environmentIds"`
+ // List of Config IDs that are connected with this Integration. If the list is empty, all of the Configs are connected.
+ ConfigIds []string `json:"configIds"`
+}
+
+type _ModifyIntegrationRequest ModifyIntegrationRequest
+
+// NewModifyIntegrationRequest instantiates a new ModifyIntegrationRequest 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
+func NewModifyIntegrationRequest(name string, parameters map[string]string, environmentIds []string, configIds []string) *ModifyIntegrationRequest {
+ this := ModifyIntegrationRequest{}
+ this.Name = name
+ this.Parameters = parameters
+ this.EnvironmentIds = environmentIds
+ this.ConfigIds = configIds
+ return &this
+}
+
+// NewModifyIntegrationRequestWithDefaults instantiates a new ModifyIntegrationRequest 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
+func NewModifyIntegrationRequestWithDefaults() *ModifyIntegrationRequest {
+ this := ModifyIntegrationRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *ModifyIntegrationRequest) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *ModifyIntegrationRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *ModifyIntegrationRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetParameters returns the Parameters field value
+func (o *ModifyIntegrationRequest) GetParameters() map[string]string {
+ if o == nil {
+ var ret map[string]string
+ return ret
+ }
+
+ return o.Parameters
+}
+
+// GetParametersOk returns a tuple with the Parameters field value
+// and a boolean to check if the value has been set.
+func (o *ModifyIntegrationRequest) GetParametersOk() (*map[string]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Parameters, true
+}
+
+// SetParameters sets field value
+func (o *ModifyIntegrationRequest) SetParameters(v map[string]string) {
+ o.Parameters = v
+}
+
+// GetEnvironmentIds returns the EnvironmentIds field value
+func (o *ModifyIntegrationRequest) GetEnvironmentIds() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+
+ return o.EnvironmentIds
+}
+
+// GetEnvironmentIdsOk returns a tuple with the EnvironmentIds field value
+// and a boolean to check if the value has been set.
+func (o *ModifyIntegrationRequest) GetEnvironmentIdsOk() ([]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.EnvironmentIds, true
+}
+
+// SetEnvironmentIds sets field value
+func (o *ModifyIntegrationRequest) SetEnvironmentIds(v []string) {
+ o.EnvironmentIds = v
+}
+
+// GetConfigIds returns the ConfigIds field value
+func (o *ModifyIntegrationRequest) GetConfigIds() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+
+ return o.ConfigIds
+}
+
+// GetConfigIdsOk returns a tuple with the ConfigIds field value
+// and a boolean to check if the value has been set.
+func (o *ModifyIntegrationRequest) GetConfigIdsOk() ([]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.ConfigIds, true
+}
+
+// SetConfigIds sets field value
+func (o *ModifyIntegrationRequest) SetConfigIds(v []string) {
+ o.ConfigIds = v
+}
+
+func (o ModifyIntegrationRequest) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ModifyIntegrationRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ toSerialize["parameters"] = o.Parameters
+ toSerialize["environmentIds"] = o.EnvironmentIds
+ toSerialize["configIds"] = o.ConfigIds
+ return toSerialize, nil
+}
+
+func (o *ModifyIntegrationRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ "parameters",
+ "environmentIds",
+ "configIds",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varModifyIntegrationRequest := _ModifyIntegrationRequest{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varModifyIntegrationRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ModifyIntegrationRequest(varModifyIntegrationRequest)
+
+ return err
+}
+
+type NullableModifyIntegrationRequest struct {
+ value *ModifyIntegrationRequest
+ isSet bool
+}
+
+func (v NullableModifyIntegrationRequest) Get() *ModifyIntegrationRequest {
+ return v.value
+}
+
+func (v *NullableModifyIntegrationRequest) Set(val *ModifyIntegrationRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableModifyIntegrationRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableModifyIntegrationRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableModifyIntegrationRequest(val *ModifyIntegrationRequest) *NullableModifyIntegrationRequest {
+ return &NullableModifyIntegrationRequest{value: val, isSet: true}
+}
+
+func (v NullableModifyIntegrationRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableModifyIntegrationRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/model_operation_type.go b/model_operation_type.go
index 9f09fc9..c16030f 100644
--- a/model_operation_type.go
+++ b/model_operation_type.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_organization_admin_model.go b/model_organization_admin_model.go
index 6180ef7..879ccbe 100644
--- a/model_organization_admin_model.go
+++ b/model_organization_admin_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_organization_invitation_model.go b/model_organization_invitation_model.go
index 0eac077..6575ea7 100644
--- a/model_organization_invitation_model.go
+++ b/model_organization_invitation_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_organization_member_model.go b/model_organization_member_model.go
index d785ea0..3d9f42b 100644
--- a/model_organization_member_model.go
+++ b/model_organization_member_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -228,7 +228,7 @@ func (o *OrganizationMemberModel) GetPermissionsOk() ([]OrganizationPermissionMo
// HasPermissions returns a boolean if a field has been set.
func (o *OrganizationMemberModel) HasPermissions() bool {
- if o != nil && IsNil(o.Permissions) {
+ if o != nil && !IsNil(o.Permissions) {
return true
}
diff --git a/model_organization_members_model.go b/model_organization_members_model.go
index e9de8cc..01da6d1 100644
--- a/model_organization_members_model.go
+++ b/model_organization_members_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -66,7 +66,7 @@ func (o *OrganizationMembersModel) GetAdminsOk() ([]OrganizationAdminModel, bool
// HasAdmins returns a boolean if a field has been set.
func (o *OrganizationMembersModel) HasAdmins() bool {
- if o != nil && IsNil(o.Admins) {
+ if o != nil && !IsNil(o.Admins) {
return true
}
@@ -99,7 +99,7 @@ func (o *OrganizationMembersModel) GetBillingManagersOk() ([]OrganizationAdminMo
// HasBillingManagers returns a boolean if a field has been set.
func (o *OrganizationMembersModel) HasBillingManagers() bool {
- if o != nil && IsNil(o.BillingManagers) {
+ if o != nil && !IsNil(o.BillingManagers) {
return true
}
@@ -132,7 +132,7 @@ func (o *OrganizationMembersModel) GetMembersOk() ([]OrganizationMemberModel, bo
// HasMembers returns a boolean if a field has been set.
func (o *OrganizationMembersModel) HasMembers() bool {
- if o != nil && IsNil(o.Members) {
+ if o != nil && !IsNil(o.Members) {
return true
}
diff --git a/model_organization_model.go b/model_organization_model.go
index 933cc87..99181fd 100644
--- a/model_organization_model.go
+++ b/model_organization_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_organization_permission_group_model.go b/model_organization_permission_group_model.go
index 9c4cfc4..411f673 100644
--- a/model_organization_permission_group_model.go
+++ b/model_organization_permission_group_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_organization_permission_model.go b/model_organization_permission_model.go
index 4c79ec7..0789232 100644
--- a/model_organization_permission_model.go
+++ b/model_organization_permission_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_organization_product_model.go b/model_organization_product_model.go
index fa9a6e4..2100a8d 100644
--- a/model_organization_product_model.go
+++ b/model_organization_product_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_percentage_option_model.go b/model_percentage_option_model.go
index 187de77..cf09143 100644
--- a/model_percentage_option_model.go
+++ b/model_percentage_option_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the PercentageOptionModel type satisfies the MappedNullable interface at compile time
@@ -25,6 +27,8 @@ type PercentageOptionModel struct {
Value ValueModel `json:"value"`
}
+type _PercentageOptionModel PercentageOptionModel
+
// NewPercentageOptionModel instantiates a new PercentageOptionModel 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
@@ -107,6 +111,44 @@ func (o PercentageOptionModel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *PercentageOptionModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "percentage",
+ "value",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varPercentageOptionModel := _PercentageOptionModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varPercentageOptionModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PercentageOptionModel(varPercentageOptionModel)
+
+ return err
+}
+
type NullablePercentageOptionModel struct {
value *PercentageOptionModel
isSet bool
diff --git a/model_permission_group_model.go b/model_permission_group_model.go
index 95e4b3a..8025d53 100644
--- a/model_permission_group_model.go
+++ b/model_permission_group_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -887,7 +887,7 @@ func (o *PermissionGroupModel) GetEnvironmentAccessesOk() ([]EnvironmentAccessMo
// HasEnvironmentAccesses returns a boolean if a field has been set.
func (o *PermissionGroupModel) HasEnvironmentAccesses() bool {
- if o != nil && IsNil(o.EnvironmentAccesses) {
+ if o != nil && !IsNil(o.EnvironmentAccesses) {
return true
}
diff --git a/model_preferences_model.go b/model_preferences_model.go
index babee10..707bc00 100644
--- a/model_preferences_model.go
+++ b/model_preferences_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -165,7 +165,7 @@ func (o *PreferencesModel) GetReasonRequiredEnvironmentsOk() ([]ReasonRequiredEn
// HasReasonRequiredEnvironments returns a boolean if a field has been set.
func (o *PreferencesModel) HasReasonRequiredEnvironments() bool {
- if o != nil && IsNil(o.ReasonRequiredEnvironments) {
+ if o != nil && !IsNil(o.ReasonRequiredEnvironments) {
return true
}
diff --git a/model_prerequisite_comparator.go b/model_prerequisite_comparator.go
index 507938f..dc20fa6 100644
--- a/model_prerequisite_comparator.go
+++ b/model_prerequisite_comparator.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_prerequisite_flag_condition_model.go b/model_prerequisite_flag_condition_model.go
index b53e4b5..647ead4 100644
--- a/model_prerequisite_flag_condition_model.go
+++ b/model_prerequisite_flag_condition_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the PrerequisiteFlagConditionModel type satisfies the MappedNullable interface at compile time
@@ -26,6 +28,8 @@ type PrerequisiteFlagConditionModel struct {
PrerequisiteComparisonValue ValueModel `json:"prerequisiteComparisonValue"`
}
+type _PrerequisiteFlagConditionModel PrerequisiteFlagConditionModel
+
// NewPrerequisiteFlagConditionModel instantiates a new PrerequisiteFlagConditionModel 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
@@ -134,6 +138,45 @@ func (o PrerequisiteFlagConditionModel) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
+func (o *PrerequisiteFlagConditionModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "prerequisiteSettingId",
+ "comparator",
+ "prerequisiteComparisonValue",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varPrerequisiteFlagConditionModel := _PrerequisiteFlagConditionModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varPrerequisiteFlagConditionModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PrerequisiteFlagConditionModel(varPrerequisiteFlagConditionModel)
+
+ return err
+}
+
type NullablePrerequisiteFlagConditionModel struct {
value *PrerequisiteFlagConditionModel
isSet bool
diff --git a/model_product_model.go b/model_product_model.go
index 0b01b02..266010a 100644
--- a/model_product_model.go
+++ b/model_product_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_reason_required_environment_model.go b/model_reason_required_environment_model.go
index a963cbb..372b137 100644
--- a/model_reason_required_environment_model.go
+++ b/model_reason_required_environment_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_reference_line.go b/model_reference_line.go
index 8d61a3f..35b22ba 100644
--- a/model_reference_line.go
+++ b/model_reference_line.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the ReferenceLine type satisfies the MappedNullable interface at compile time
@@ -26,6 +28,8 @@ type ReferenceLine struct {
LineNumber int32 `json:"lineNumber"`
}
+type _ReferenceLine ReferenceLine
+
// NewReferenceLine instantiates a new ReferenceLine 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
@@ -127,6 +131,43 @@ func (o ReferenceLine) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *ReferenceLine) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "lineNumber",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varReferenceLine := _ReferenceLine{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varReferenceLine)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ReferenceLine(varReferenceLine)
+
+ return err
+}
+
type NullableReferenceLine struct {
value *ReferenceLine
isSet bool
diff --git a/model_reference_lines.go b/model_reference_lines.go
index 064465b..372214e 100644
--- a/model_reference_lines.go
+++ b/model_reference_lines.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the ReferenceLines type satisfies the MappedNullable interface at compile time
@@ -31,6 +33,8 @@ type ReferenceLines struct {
ReferenceLine ReferenceLine `json:"referenceLine"`
}
+type _ReferenceLines ReferenceLines
+
// NewReferenceLines instantiates a new ReferenceLines 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
@@ -137,7 +141,7 @@ func (o *ReferenceLines) GetPreLinesOk() ([]ReferenceLine, bool) {
// HasPreLines returns a boolean if a field has been set.
func (o *ReferenceLines) HasPreLines() bool {
- if o != nil && IsNil(o.PreLines) {
+ if o != nil && !IsNil(o.PreLines) {
return true
}
@@ -170,7 +174,7 @@ func (o *ReferenceLines) GetPostLinesOk() ([]ReferenceLine, bool) {
// HasPostLines returns a boolean if a field has been set.
func (o *ReferenceLines) HasPostLines() bool {
- if o != nil && IsNil(o.PostLines) {
+ if o != nil && !IsNil(o.PostLines) {
return true
}
@@ -230,6 +234,44 @@ func (o ReferenceLines) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *ReferenceLines) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "file",
+ "referenceLine",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varReferenceLines := _ReferenceLines{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varReferenceLines)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ReferenceLines(varReferenceLines)
+
+ return err
+}
+
type NullableReferenceLines struct {
value *ReferenceLines
isSet bool
diff --git a/model_replace_setting_model.go b/model_replace_setting_model.go
index 57e8981..1f634ae 100644
--- a/model_replace_setting_model.go
+++ b/model_replace_setting_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the ReplaceSettingModel type satisfies the MappedNullable interface at compile time
@@ -30,6 +32,8 @@ type ReplaceSettingModel struct {
Name string `json:"name"`
}
+type _ReplaceSettingModel ReplaceSettingModel
+
// NewReplaceSettingModel instantiates a new ReplaceSettingModel 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
@@ -111,7 +115,7 @@ func (o *ReplaceSettingModel) GetTagsOk() ([]int64, bool) {
// HasTags returns a boolean if a field has been set.
func (o *ReplaceSettingModel) HasTags() bool {
- if o != nil && IsNil(o.Tags) {
+ if o != nil && !IsNil(o.Tags) {
return true
}
@@ -212,6 +216,43 @@ func (o ReplaceSettingModel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *ReplaceSettingModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varReplaceSettingModel := _ReplaceSettingModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varReplaceSettingModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ReplaceSettingModel(varReplaceSettingModel)
+
+ return err
+}
+
type NullableReplaceSettingModel struct {
value *ReplaceSettingModel
isSet bool
diff --git a/model_rollout_percentage_item_model.go b/model_rollout_percentage_item_model.go
index cc0229d..1e34c56 100644
--- a/model_rollout_percentage_item_model.go
+++ b/model_rollout_percentage_item_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the RolloutPercentageItemModel type satisfies the MappedNullable interface at compile time
@@ -26,6 +28,8 @@ type RolloutPercentageItemModel struct {
Value interface{} `json:"value,omitempty"`
}
+type _RolloutPercentageItemModel RolloutPercentageItemModel
+
// NewRolloutPercentageItemModel instantiates a new RolloutPercentageItemModel 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
@@ -89,7 +93,7 @@ func (o *RolloutPercentageItemModel) GetValueOk() (*interface{}, bool) {
// HasValue returns a boolean if a field has been set.
func (o *RolloutPercentageItemModel) HasValue() bool {
- if o != nil && IsNil(o.Value) {
+ if o != nil && !IsNil(o.Value) {
return true
}
@@ -118,6 +122,43 @@ func (o RolloutPercentageItemModel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *RolloutPercentageItemModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "percentage",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varRolloutPercentageItemModel := _RolloutPercentageItemModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varRolloutPercentageItemModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = RolloutPercentageItemModel(varRolloutPercentageItemModel)
+
+ return err
+}
+
type NullableRolloutPercentageItemModel struct {
value *RolloutPercentageItemModel
isSet bool
diff --git a/model_rollout_rule_comparator.go b/model_rollout_rule_comparator.go
index 38eb673..6a8cabc 100644
--- a/model_rollout_rule_comparator.go
+++ b/model_rollout_rule_comparator.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_rollout_rule_model.go b/model_rollout_rule_model.go
index 6a2d6af..469ff57 100644
--- a/model_rollout_rule_model.go
+++ b/model_rollout_rule_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -186,7 +186,7 @@ func (o *RolloutRuleModel) GetValueOk() (*interface{}, bool) {
// HasValue returns a boolean if a field has been set.
func (o *RolloutRuleModel) HasValue() bool {
- if o != nil && IsNil(o.Value) {
+ if o != nil && !IsNil(o.Value) {
return true
}
diff --git a/model_sdk_keys_model.go b/model_sdk_keys_model.go
index e4ca545..4b89c5b 100644
--- a/model_sdk_keys_model.go
+++ b/model_sdk_keys_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_segment_comparator.go b/model_segment_comparator.go
index bbf2f34..f9a89e7 100644
--- a/model_segment_comparator.go
+++ b/model_segment_comparator.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_segment_condition_model.go b/model_segment_condition_model.go
index a497b9f..7167095 100644
--- a/model_segment_condition_model.go
+++ b/model_segment_condition_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the SegmentConditionModel type satisfies the MappedNullable interface at compile time
@@ -25,6 +27,8 @@ type SegmentConditionModel struct {
Comparator SegmentComparator `json:"comparator"`
}
+type _SegmentConditionModel SegmentConditionModel
+
// NewSegmentConditionModel instantiates a new SegmentConditionModel 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
@@ -107,6 +111,44 @@ func (o SegmentConditionModel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *SegmentConditionModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "segmentId",
+ "comparator",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSegmentConditionModel := _SegmentConditionModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varSegmentConditionModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SegmentConditionModel(varSegmentConditionModel)
+
+ return err
+}
+
type NullableSegmentConditionModel struct {
value *SegmentConditionModel
isSet bool
diff --git a/model_segment_list_model.go b/model_segment_list_model.go
index d8d7844..2ec6986 100644
--- a/model_segment_list_model.go
+++ b/model_segment_list_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_segment_model.go b/model_segment_model.go
index 6ae28eb..0ad8f05 100644
--- a/model_segment_model.go
+++ b/model_segment_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_setting_data_model.go b/model_setting_data_model.go
index fb2790a..8b47eb1 100644
--- a/model_setting_data_model.go
+++ b/model_setting_data_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_setting_formula_model.go b/model_setting_formula_model.go
index 5202213..496d5c3 100644
--- a/model_setting_formula_model.go
+++ b/model_setting_formula_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -148,7 +148,7 @@ func (o *SettingFormulaModel) GetTargetingRulesOk() ([]TargetingRuleModel, bool)
// HasTargetingRules returns a boolean if a field has been set.
func (o *SettingFormulaModel) HasTargetingRules() bool {
- if o != nil && IsNil(o.TargetingRules) {
+ if o != nil && !IsNil(o.TargetingRules) {
return true
}
@@ -381,7 +381,7 @@ func (o *SettingFormulaModel) GetIntegrationLinksOk() ([]IntegrationLinkModel, b
// HasIntegrationLinks returns a boolean if a field has been set.
func (o *SettingFormulaModel) HasIntegrationLinks() bool {
- if o != nil && IsNil(o.IntegrationLinks) {
+ if o != nil && !IsNil(o.IntegrationLinks) {
return true
}
@@ -414,7 +414,7 @@ func (o *SettingFormulaModel) GetSettingTagsOk() ([]SettingTagModel, bool) {
// HasSettingTags returns a boolean if a field has been set.
func (o *SettingFormulaModel) HasSettingTags() bool {
- if o != nil && IsNil(o.SettingTags) {
+ if o != nil && !IsNil(o.SettingTags) {
return true
}
@@ -447,7 +447,7 @@ func (o *SettingFormulaModel) GetSettingIdsWherePrerequisiteOk() ([]int32, bool)
// HasSettingIdsWherePrerequisite returns a boolean if a field has been set.
func (o *SettingFormulaModel) HasSettingIdsWherePrerequisite() bool {
- if o != nil && IsNil(o.SettingIdsWherePrerequisite) {
+ if o != nil && !IsNil(o.SettingIdsWherePrerequisite) {
return true
}
diff --git a/model_setting_model.go b/model_setting_model.go
index 2d897c9..52c022b 100644
--- a/model_setting_model.go
+++ b/model_setting_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -373,7 +373,7 @@ func (o *SettingModel) GetTagsOk() ([]TagModel, bool) {
// HasTags returns a boolean if a field has been set.
func (o *SettingModel) HasTags() bool {
- if o != nil && IsNil(o.Tags) {
+ if o != nil && !IsNil(o.Tags) {
return true
}
diff --git a/model_setting_tag_model.go b/model_setting_tag_model.go
index d1c9d05..6bb2b09 100644
--- a/model_setting_tag_model.go
+++ b/model_setting_tag_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_setting_type.go b/model_setting_type.go
index 1d2de1e..74858ff 100644
--- a/model_setting_type.go
+++ b/model_setting_type.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_setting_value_model.go b/model_setting_value_model.go
index 66d4dd5..81ea9a5 100644
--- a/model_setting_value_model.go
+++ b/model_setting_value_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -82,7 +82,7 @@ func (o *SettingValueModel) GetRolloutRulesOk() ([]RolloutRuleModel, bool) {
// HasRolloutRules returns a boolean if a field has been set.
func (o *SettingValueModel) HasRolloutRules() bool {
- if o != nil && IsNil(o.RolloutRules) {
+ if o != nil && !IsNil(o.RolloutRules) {
return true
}
@@ -115,7 +115,7 @@ func (o *SettingValueModel) GetRolloutPercentageItemsOk() ([]RolloutPercentageIt
// HasRolloutPercentageItems returns a boolean if a field has been set.
func (o *SettingValueModel) HasRolloutPercentageItems() bool {
- if o != nil && IsNil(o.RolloutPercentageItems) {
+ if o != nil && !IsNil(o.RolloutPercentageItems) {
return true
}
@@ -148,7 +148,7 @@ func (o *SettingValueModel) GetValueOk() (*interface{}, bool) {
// HasValue returns a boolean if a field has been set.
func (o *SettingValueModel) HasValue() bool {
- if o != nil && IsNil(o.Value) {
+ if o != nil && !IsNil(o.Value) {
return true
}
@@ -339,7 +339,7 @@ func (o *SettingValueModel) GetIntegrationLinksOk() ([]IntegrationLinkModel, boo
// HasIntegrationLinks returns a boolean if a field has been set.
func (o *SettingValueModel) HasIntegrationLinks() bool {
- if o != nil && IsNil(o.IntegrationLinks) {
+ if o != nil && !IsNil(o.IntegrationLinks) {
return true
}
@@ -372,7 +372,7 @@ func (o *SettingValueModel) GetSettingTagsOk() ([]SettingTagModel, bool) {
// HasSettingTags returns a boolean if a field has been set.
func (o *SettingValueModel) HasSettingTags() bool {
- if o != nil && IsNil(o.SettingTags) {
+ if o != nil && !IsNil(o.SettingTags) {
return true
}
diff --git a/model_tag_model.go b/model_tag_model.go
index fc0df80..2494359 100644
--- a/model_tag_model.go
+++ b/model_tag_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_targeting_rule_model.go b/model_targeting_rule_model.go
index d3622bb..5830b18 100644
--- a/model_targeting_rule_model.go
+++ b/model_targeting_rule_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -65,7 +65,7 @@ func (o *TargetingRuleModel) GetConditionsOk() ([]ConditionModel, bool) {
// HasConditions returns a boolean if a field has been set.
func (o *TargetingRuleModel) HasConditions() bool {
- if o != nil && IsNil(o.Conditions) {
+ if o != nil && !IsNil(o.Conditions) {
return true
}
@@ -98,7 +98,7 @@ func (o *TargetingRuleModel) GetPercentageOptionsOk() ([]PercentageOptionModel,
// HasPercentageOptions returns a boolean if a field has been set.
func (o *TargetingRuleModel) HasPercentageOptions() bool {
- if o != nil && IsNil(o.PercentageOptions) {
+ if o != nil && !IsNil(o.PercentageOptions) {
return true
}
diff --git a/model_update_config_request.go b/model_update_config_request.go
index bd9690c..df2d33a 100644
--- a/model_update_config_request.go
+++ b/model_update_config_request.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_update_environment_model.go b/model_update_environment_model.go
index cd58d68..d2a20d8 100644
--- a/model_update_environment_model.go
+++ b/model_update_environment_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_update_evaluation_formula_model.go b/model_update_evaluation_formula_model.go
index 42eb1d1..10e04b7 100644
--- a/model_update_evaluation_formula_model.go
+++ b/model_update_evaluation_formula_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the UpdateEvaluationFormulaModel type satisfies the MappedNullable interface at compile time
@@ -27,6 +29,8 @@ type UpdateEvaluationFormulaModel struct {
PercentageEvaluationAttribute NullableString `json:"percentageEvaluationAttribute,omitempty"`
}
+type _UpdateEvaluationFormulaModel UpdateEvaluationFormulaModel
+
// NewUpdateEvaluationFormulaModel instantiates a new UpdateEvaluationFormulaModel 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
@@ -90,7 +94,7 @@ func (o *UpdateEvaluationFormulaModel) GetTargetingRulesOk() ([]TargetingRuleMod
// HasTargetingRules returns a boolean if a field has been set.
func (o *UpdateEvaluationFormulaModel) HasTargetingRules() bool {
- if o != nil && IsNil(o.TargetingRules) {
+ if o != nil && !IsNil(o.TargetingRules) {
return true
}
@@ -164,6 +168,43 @@ func (o UpdateEvaluationFormulaModel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *UpdateEvaluationFormulaModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "defaultValue",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateEvaluationFormulaModel := _UpdateEvaluationFormulaModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varUpdateEvaluationFormulaModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateEvaluationFormulaModel(varUpdateEvaluationFormulaModel)
+
+ return err
+}
+
type NullableUpdateEvaluationFormulaModel struct {
value *UpdateEvaluationFormulaModel
isSet bool
diff --git a/model_update_evaluation_formula_with_id_model.go b/model_update_evaluation_formula_with_id_model.go
index ad4961f..65d6e5d 100644
--- a/model_update_evaluation_formula_with_id_model.go
+++ b/model_update_evaluation_formula_with_id_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the UpdateEvaluationFormulaWithIdModel type satisfies the MappedNullable interface at compile time
@@ -29,6 +31,8 @@ type UpdateEvaluationFormulaWithIdModel struct {
SettingId *int32 `json:"settingId,omitempty"`
}
+type _UpdateEvaluationFormulaWithIdModel UpdateEvaluationFormulaWithIdModel
+
// NewUpdateEvaluationFormulaWithIdModel instantiates a new UpdateEvaluationFormulaWithIdModel 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
@@ -92,7 +96,7 @@ func (o *UpdateEvaluationFormulaWithIdModel) GetTargetingRulesOk() ([]TargetingR
// HasTargetingRules returns a boolean if a field has been set.
func (o *UpdateEvaluationFormulaWithIdModel) HasTargetingRules() bool {
- if o != nil && IsNil(o.TargetingRules) {
+ if o != nil && !IsNil(o.TargetingRules) {
return true
}
@@ -201,6 +205,43 @@ func (o UpdateEvaluationFormulaWithIdModel) ToMap() (map[string]interface{}, err
return toSerialize, nil
}
+func (o *UpdateEvaluationFormulaWithIdModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "defaultValue",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUpdateEvaluationFormulaWithIdModel := _UpdateEvaluationFormulaWithIdModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varUpdateEvaluationFormulaWithIdModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UpdateEvaluationFormulaWithIdModel(varUpdateEvaluationFormulaWithIdModel)
+
+ return err
+}
+
type NullableUpdateEvaluationFormulaWithIdModel struct {
value *UpdateEvaluationFormulaWithIdModel
isSet bool
diff --git a/model_update_evaluation_formulas_model.go b/model_update_evaluation_formulas_model.go
index 746642c..8876f85 100644
--- a/model_update_evaluation_formulas_model.go
+++ b/model_update_evaluation_formulas_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -62,7 +62,7 @@ func (o *UpdateEvaluationFormulasModel) GetUpdateFormulasOk() ([]UpdateEvaluatio
// HasUpdateFormulas returns a boolean if a field has been set.
func (o *UpdateEvaluationFormulasModel) HasUpdateFormulas() bool {
- if o != nil && IsNil(o.UpdateFormulas) {
+ if o != nil && !IsNil(o.UpdateFormulas) {
return true
}
diff --git a/model_update_member_permissions_request.go b/model_update_member_permissions_request.go
index 3044b8b..41a5ffc 100644
--- a/model_update_member_permissions_request.go
+++ b/model_update_member_permissions_request.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -68,7 +68,7 @@ func (o *UpdateMemberPermissionsRequest) GetPermissionGroupIdsOk() ([]int64, boo
// HasPermissionGroupIds returns a boolean if a field has been set.
func (o *UpdateMemberPermissionsRequest) HasPermissionGroupIds() bool {
- if o != nil && IsNil(o.PermissionGroupIds) {
+ if o != nil && !IsNil(o.PermissionGroupIds) {
return true
}
diff --git a/model_update_permission_group_request.go b/model_update_permission_group_request.go
index 74b87e2..3f557ea 100644
--- a/model_update_permission_group_request.go
+++ b/model_update_permission_group_request.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -1052,7 +1052,7 @@ func (o *UpdatePermissionGroupRequest) GetEnvironmentAccessesOk() ([]CreateOrUpd
// HasEnvironmentAccesses returns a boolean if a field has been set.
func (o *UpdatePermissionGroupRequest) HasEnvironmentAccesses() bool {
- if o != nil && IsNil(o.EnvironmentAccesses) {
+ if o != nil && !IsNil(o.EnvironmentAccesses) {
return true
}
diff --git a/model_update_preferences_request.go b/model_update_preferences_request.go
index 6e8b408..930cc16 100644
--- a/model_update_preferences_request.go
+++ b/model_update_preferences_request.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -227,7 +227,7 @@ func (o *UpdatePreferencesRequest) GetReasonRequiredEnvironmentsOk() ([]UpdateRe
// HasReasonRequiredEnvironments returns a boolean if a field has been set.
func (o *UpdatePreferencesRequest) HasReasonRequiredEnvironments() bool {
- if o != nil && IsNil(o.ReasonRequiredEnvironments) {
+ if o != nil && !IsNil(o.ReasonRequiredEnvironments) {
return true
}
diff --git a/model_update_product_request.go b/model_update_product_request.go
index 81d4846..c4134ee 100644
--- a/model_update_product_request.go
+++ b/model_update_product_request.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_update_reason_required_environment_model.go b/model_update_reason_required_environment_model.go
index e429456..779c866 100644
--- a/model_update_reason_required_environment_model.go
+++ b/model_update_reason_required_environment_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_update_segment_model.go b/model_update_segment_model.go
index 82c5b7f..0a1c467 100644
--- a/model_update_segment_model.go
+++ b/model_update_segment_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_update_setting_value_model.go b/model_update_setting_value_model.go
index 08b0271..fbb5b4c 100644
--- a/model_update_setting_value_model.go
+++ b/model_update_setting_value_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -66,7 +66,7 @@ func (o *UpdateSettingValueModel) GetRolloutRulesOk() ([]RolloutRuleModel, bool)
// HasRolloutRules returns a boolean if a field has been set.
func (o *UpdateSettingValueModel) HasRolloutRules() bool {
- if o != nil && IsNil(o.RolloutRules) {
+ if o != nil && !IsNil(o.RolloutRules) {
return true
}
@@ -99,7 +99,7 @@ func (o *UpdateSettingValueModel) GetRolloutPercentageItemsOk() ([]RolloutPercen
// HasRolloutPercentageItems returns a boolean if a field has been set.
func (o *UpdateSettingValueModel) HasRolloutPercentageItems() bool {
- if o != nil && IsNil(o.RolloutPercentageItems) {
+ if o != nil && !IsNil(o.RolloutPercentageItems) {
return true
}
@@ -132,7 +132,7 @@ func (o *UpdateSettingValueModel) GetValueOk() (*interface{}, bool) {
// HasValue returns a boolean if a field has been set.
func (o *UpdateSettingValueModel) HasValue() bool {
- if o != nil && IsNil(o.Value) {
+ if o != nil && !IsNil(o.Value) {
return true
}
diff --git a/model_update_setting_value_with_setting_id_model.go b/model_update_setting_value_with_setting_id_model.go
index c6d7a39..a7d2cf6 100644
--- a/model_update_setting_value_with_setting_id_model.go
+++ b/model_update_setting_value_with_setting_id_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -68,7 +68,7 @@ func (o *UpdateSettingValueWithSettingIdModel) GetRolloutRulesOk() ([]RolloutRul
// HasRolloutRules returns a boolean if a field has been set.
func (o *UpdateSettingValueWithSettingIdModel) HasRolloutRules() bool {
- if o != nil && IsNil(o.RolloutRules) {
+ if o != nil && !IsNil(o.RolloutRules) {
return true
}
@@ -101,7 +101,7 @@ func (o *UpdateSettingValueWithSettingIdModel) GetRolloutPercentageItemsOk() ([]
// HasRolloutPercentageItems returns a boolean if a field has been set.
func (o *UpdateSettingValueWithSettingIdModel) HasRolloutPercentageItems() bool {
- if o != nil && IsNil(o.RolloutPercentageItems) {
+ if o != nil && !IsNil(o.RolloutPercentageItems) {
return true
}
@@ -134,7 +134,7 @@ func (o *UpdateSettingValueWithSettingIdModel) GetValueOk() (*interface{}, bool)
// HasValue returns a boolean if a field has been set.
func (o *UpdateSettingValueWithSettingIdModel) HasValue() bool {
- if o != nil && IsNil(o.Value) {
+ if o != nil && !IsNil(o.Value) {
return true
}
diff --git a/model_update_setting_values_with_id_model.go b/model_update_setting_values_with_id_model.go
index b6b7be9..55c4897 100644
--- a/model_update_setting_values_with_id_model.go
+++ b/model_update_setting_values_with_id_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -62,7 +62,7 @@ func (o *UpdateSettingValuesWithIdModel) GetSettingValuesOk() ([]UpdateSettingVa
// HasSettingValues returns a boolean if a field has been set.
func (o *UpdateSettingValuesWithIdModel) HasSettingValues() bool {
- if o != nil && IsNil(o.SettingValues) {
+ if o != nil && !IsNil(o.SettingValues) {
return true
}
diff --git a/model_update_tag_model.go b/model_update_tag_model.go
index 178e3a8..3d1205b 100644
--- a/model_update_tag_model.go
+++ b/model_update_tag_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_user_comparator.go b/model_user_comparator.go
index e82fe96..abc6eca 100644
--- a/model_user_comparator.go
+++ b/model_user_comparator.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_user_condition_model.go b/model_user_condition_model.go
index 0a4398b..8cf066b 100644
--- a/model_user_condition_model.go
+++ b/model_user_condition_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the UserConditionModel type satisfies the MappedNullable interface at compile time
@@ -26,6 +28,8 @@ type UserConditionModel struct {
ComparisonValue ComparisonValueModel `json:"comparisonValue"`
}
+type _UserConditionModel UserConditionModel
+
// NewUserConditionModel instantiates a new UserConditionModel 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
@@ -134,6 +138,45 @@ func (o UserConditionModel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *UserConditionModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "comparisonAttribute",
+ "comparator",
+ "comparisonValue",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varUserConditionModel := _UserConditionModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varUserConditionModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = UserConditionModel(varUserConditionModel)
+
+ return err
+}
+
type NullableUserConditionModel struct {
value *UserConditionModel
isSet bool
diff --git a/model_user_model.go b/model_user_model.go
index ef76094..7984509 100644
--- a/model_user_model.go
+++ b/model_user_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_value_model.go b/model_value_model.go
index e535176..ef6bfbc 100644
--- a/model_value_model.go
+++ b/model_value_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_web_hook_http_method.go b/model_web_hook_http_method.go
index 28c9523..160128b 100644
--- a/model_web_hook_http_method.go
+++ b/model_web_hook_http_method.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_web_hook_request.go b/model_web_hook_request.go
index 24f45bc..28db62c 100644
--- a/model_web_hook_request.go
+++ b/model_web_hook_request.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the WebHookRequest type satisfies the MappedNullable interface at compile time
@@ -21,7 +23,7 @@ var _ MappedNullable = &WebHookRequest{}
// WebHookRequest struct for WebHookRequest
type WebHookRequest struct {
// The URL of the Webhook.
- Url string `json:"url"`
+ Url string `json:"url" validate:"regexp=^(https?:\\/\\/(?:www\\\\.|(?!www)|(?!a-zA-Z))[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]\\\\.[^\\\\s]{2,}|https?:\\/\\/(?:www\\\\.|(?!www)|(?!a-zA-Z))[a-zA-Z0-9]\\\\.[^\\\\s]{2,})$"`
// The HTTP body content.
Content NullableString `json:"content,omitempty"`
HttpMethod *WebHookHttpMethod `json:"httpMethod,omitempty"`
@@ -29,6 +31,8 @@ type WebHookRequest struct {
WebHookHeaders []WebhookHeaderModel `json:"webHookHeaders,omitempty"`
}
+type _WebHookRequest WebHookRequest
+
// NewWebHookRequest instantiates a new WebHookRequest 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
@@ -166,7 +170,7 @@ func (o *WebHookRequest) GetWebHookHeadersOk() ([]WebhookHeaderModel, bool) {
// HasWebHookHeaders returns a boolean if a field has been set.
func (o *WebHookRequest) HasWebHookHeaders() bool {
- if o != nil && IsNil(o.WebHookHeaders) {
+ if o != nil && !IsNil(o.WebHookHeaders) {
return true
}
@@ -201,6 +205,43 @@ func (o WebHookRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *WebHookRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "url",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varWebHookRequest := _WebHookRequest{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varWebHookRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WebHookRequest(varWebHookRequest)
+
+ return err
+}
+
type NullableWebHookRequest struct {
value *WebHookRequest
isSet bool
diff --git a/model_webhook_config.go b/model_webhook_config.go
index b4abe04..992ed10 100644
--- a/model_webhook_config.go
+++ b/model_webhook_config.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_webhook_environment.go b/model_webhook_environment.go
index 42278d1..3203614 100644
--- a/model_webhook_environment.go
+++ b/model_webhook_environment.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/model_webhook_header_model.go b/model_webhook_header_model.go
index cf98bae..6f27513 100644
--- a/model_webhook_header_model.go
+++ b/model_webhook_header_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -13,6 +13,8 @@ package configcatpublicapi
import (
"encoding/json"
+ "bytes"
+ "fmt"
)
// checks if the WebhookHeaderModel type satisfies the MappedNullable interface at compile time
@@ -21,13 +23,15 @@ var _ MappedNullable = &WebhookHeaderModel{}
// WebhookHeaderModel struct for WebhookHeaderModel
type WebhookHeaderModel struct {
// The HTTP header key.
- Key string `json:"key"`
+ Key string `json:"key" validate:"regexp=^[a-zA-Z0-9_\\\\-]*$"`
// The HTTP header value.
- Value string `json:"value"`
+ Value string `json:"value" validate:"regexp=^[a-zA-Z0-9\\\\- _\\\\\\\\:;.,\\/\\"'?!(){}\\\\[\\\\]@<>=+*#$&`|~^%]*$"`
// Indicates whether the header value is sensitive.
IsSecure *bool `json:"isSecure,omitempty"`
}
+type _WebhookHeaderModel WebhookHeaderModel
+
// NewWebhookHeaderModel instantiates a new WebhookHeaderModel 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
@@ -145,6 +149,44 @@ func (o WebhookHeaderModel) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
+func (o *WebhookHeaderModel) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "key",
+ "value",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varWebhookHeaderModel := _WebhookHeaderModel{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varWebhookHeaderModel)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WebhookHeaderModel(varWebhookHeaderModel)
+
+ return err
+}
+
type NullableWebhookHeaderModel struct {
value *WebhookHeaderModel
isSet bool
diff --git a/model_webhook_model.go b/model_webhook_model.go
index 2f6e10f..d210881 100644
--- a/model_webhook_model.go
+++ b/model_webhook_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -219,7 +219,7 @@ func (o *WebhookModel) GetWebHookHeadersOk() ([]WebhookHeaderModel, bool) {
// HasWebHookHeaders returns a boolean if a field has been set.
func (o *WebhookModel) HasWebHookHeaders() bool {
- if o != nil && IsNil(o.WebHookHeaders) {
+ if o != nil && !IsNil(o.WebHookHeaders) {
return true
}
diff --git a/model_webhook_signing_keys_model.go b/model_webhook_signing_keys_model.go
index d2b06f2..5f256af 100644
--- a/model_webhook_signing_keys_model.go
+++ b/model_webhook_signing_keys_model.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/response.go b/response.go
index 6529860..b265ff6 100644
--- a/response.go
+++ b/response.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
diff --git a/test/api_integrations_test.go b/test/api_integrations_test.go
new file mode 100644
index 0000000..bdcbd03
--- /dev/null
+++ b/test/api_integrations_test.go
@@ -0,0 +1,94 @@
+/*
+ConfigCat Public Management API
+
+Testing IntegrationsAPIService
+
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech);
+
+package configcatpublicapi
+
+import (
+ "context"
+ "github.com/stretchr/testify/assert"
+ "github.com/stretchr/testify/require"
+ "testing"
+ openapiclient "github.com/configcat/configcat-publicapi-go-client"
+)
+
+func Test_configcatpublicapi_IntegrationsAPIService(t *testing.T) {
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+
+ t.Run("Test IntegrationsAPIService CreateIntegration", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var productId string
+
+ resp, httpRes, err := apiClient.IntegrationsAPI.CreateIntegration(context.Background(), productId).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test IntegrationsAPIService DeleteIntegration", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var integrationId string
+
+ httpRes, err := apiClient.IntegrationsAPI.DeleteIntegration(context.Background(), integrationId).Execute()
+
+ require.Nil(t, err)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test IntegrationsAPIService GetIntegration", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var integrationId string
+
+ resp, httpRes, err := apiClient.IntegrationsAPI.GetIntegration(context.Background(), integrationId).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test IntegrationsAPIService GetIntegrations", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var productId string
+
+ resp, httpRes, err := apiClient.IntegrationsAPI.GetIntegrations(context.Background(), productId).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test IntegrationsAPIService UpdateIntegration", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var integrationId string
+
+ resp, httpRes, err := apiClient.IntegrationsAPI.UpdateIntegration(context.Background(), integrationId).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+}
diff --git a/utils.go b/utils.go
index 61c8205..f390ffb 100644
--- a/utils.go
+++ b/utils.go
@@ -1,7 +1,7 @@
/*
ConfigCat Public Management API
-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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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.
+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. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.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
@@ -12,7 +12,9 @@ Contact: support@configcat.com
package configcatpublicapi
import (
+ "bytes"
"encoding/json"
+ "fmt"
"reflect"
"time"
)
@@ -321,7 +323,7 @@ func NewNullableTime(val *time.Time) *NullableTime {
}
func (v NullableTime) MarshalJSON() ([]byte, error) {
- return v.value.MarshalJSON()
+ return json.Marshal(v.value)
}
func (v *NullableTime) UnmarshalJSON(src []byte) error {
@@ -346,3 +348,15 @@ func IsNil(i interface{}) bool {
type MappedNullable interface {
ToMap() (map[string]interface{}, error)
}
+
+// A wrapper for strict JSON decoding
+func newStrictDecoder(data []byte) *json.Decoder {
+ dec := json.NewDecoder(bytes.NewBuffer(data))
+ dec.DisallowUnknownFields()
+ return dec
+}
+
+// Prevent trying to import "fmt"
+func reportError(format string, a ...interface{}) error {
+ return fmt.Errorf(format, a...)
+}
\ No newline at end of file