diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 6e1452f..5f1782b 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -29,10 +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/CodeReferencesAPI.md docs/ComparisonValueListModel.md docs/ComparisonValueModel.md docs/ConditionModel.md @@ -41,7 +41,7 @@ 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 @@ -57,33 +57,33 @@ 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/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 @@ -94,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 @@ -110,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 @@ -124,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 @@ -152,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 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 65dc21e..015be24 100644 --- a/README.md +++ b/README.md @@ -42,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) @@ -49,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") ``` @@ -72,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", }) @@ -94,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, }) @@ -113,97 +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* | [**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 +*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 @@ -329,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 56b8768..cd6f502 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -5541,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 @@ -5930,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 @@ -5944,7 +5944,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -5976,7 +5976,7 @@ components: name: name description: description migratedConfigId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - evaluationVersion: null + evaluationVersion: v1 order: 0 properties: product: @@ -6024,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 @@ -6038,7 +6038,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -6046,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 @@ -6060,7 +6060,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -6087,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 @@ -6101,7 +6101,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -6109,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 @@ -6123,7 +6123,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -6146,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 @@ -6170,7 +6170,7 @@ components: name: name creatorFullName: creatorFullName isWatching: true - settingType: null + settingType: boolean key: key settingId: 0 order: 6 @@ -6275,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 @@ -6289,7 +6289,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -6297,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 @@ -6311,7 +6311,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -6338,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 @@ -6352,7 +6352,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -6360,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 @@ -6374,7 +6374,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -6397,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 @@ -6421,7 +6421,7 @@ components: name: name creatorFullName: creatorFullName isWatching: true - settingType: null + settingType: boolean key: key settingId: 0 order: 6 @@ -6444,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 @@ -6458,7 +6458,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -6466,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 @@ -6480,7 +6480,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -6507,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 @@ -6521,7 +6521,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -6529,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 @@ -6543,7 +6543,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -6566,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 @@ -6590,7 +6590,7 @@ components: name: name creatorFullName: creatorFullName isWatching: true - settingType: null + settingType: boolean key: key settingId: 0 order: 6 @@ -6611,7 +6611,7 @@ components: name: name description: description migratedConfigId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - evaluationVersion: null + evaluationVersion: v1 order: 0 properties: config: @@ -6633,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: @@ -6653,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 @@ -6677,7 +6677,7 @@ components: name: name creatorFullName: creatorFullName isWatching: true - settingType: null + settingType: boolean key: key settingId: 0 order: 6 @@ -6758,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: @@ -6778,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 @@ -6802,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: @@ -6829,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 @@ -6853,7 +6853,7 @@ components: name: name creatorFullName: creatorFullName isWatching: true - settingType: null + settingType: boolean key: key settingId: 0 order: 6 @@ -6873,7 +6873,7 @@ components: name: name description: description migratedConfigId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - evaluationVersion: null + evaluationVersion: v1 order: 0 properties: config: @@ -6913,7 +6913,7 @@ components: example: name: name description: description - evaluationVersion: null + evaluationVersion: v1 order: 0 properties: name: @@ -6975,7 +6975,7 @@ components: CreateIntegrationModel: additionalProperties: false example: - integrationType: null + integrationType: dataDog environmentIds: - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 @@ -7048,7 +7048,7 @@ components: canManageProductPreferences: true canManageIntegrations: true canDeleteSegments: true - accessType: null + accessType: readOnly canTagSetting: true canManageMembers: true canManageWebhook: true @@ -7060,7 +7060,7 @@ components: canRotateSdkKey: true canViewProductAuditLog: true canCreateOrUpdateTag: true - newEnvironmentAccessType: null + newEnvironmentAccessType: full canCreateOrUpdateSegments: true canCreateOrUpdateSetting: true properties: @@ -7172,7 +7172,7 @@ components: CreateSegmentModel: additionalProperties: false example: - comparator: null + comparator: isOneOf comparisonValue: comparisonValue name: name description: description @@ -7217,7 +7217,7 @@ components: value: "" hint: hint name: name - settingType: null + settingType: boolean key: key tags: - 0 @@ -7248,7 +7248,6 @@ components: description: The key of the Feature Flag or Setting. maxLength: 255 minLength: 1 - pattern: "^[a-zA-Z]+[a-zA-Z0-9_-]*$" type: string name: description: The name of the Feature Flag or Setting. @@ -7583,7 +7582,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 @@ -7592,7 +7591,7 @@ components: name: name creatorFullName: creatorFullName isWatching: true - settingType: null + settingType: boolean key: key settingId: 0 order: 6 @@ -7657,7 +7656,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 @@ -7666,7 +7665,7 @@ components: name: name creatorFullName: creatorFullName isWatching: true - settingType: null + settingType: boolean key: key settingId: 0 order: 6 @@ -7711,7 +7710,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 @@ -7720,7 +7719,7 @@ components: name: name creatorFullName: creatorFullName isWatching: true - settingType: null + settingType: boolean key: key settingId: 0 order: 6 @@ -7739,7 +7738,7 @@ components: IntegrationLinkModel: additionalProperties: false example: - integrationLinkType: null + integrationLinkType: trello description: description key: key url: url @@ -7766,7 +7765,16 @@ components: additionalProperties: false description: Details of the Integration. example: - integrationType: null + product: + productId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + organization: + organizationId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + name: name + description: description + order: 0 + reasonRequired: true + integrationType: dataDog environmentIds: - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 @@ -7778,6 +7786,8 @@ components: parameters: key: parameters properties: + product: + $ref: '#/components/schemas/ProductModel' integrationId: description: Identifier of the Integration. format: uuid @@ -7825,7 +7835,16 @@ components: additionalProperties: false example: integrations: - - integrationType: null + - product: + productId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + organization: + organizationId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + name: name + description: description + order: 0 + reasonRequired: true + integrationType: dataDog environmentIds: - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 @@ -7836,7 +7855,16 @@ components: - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 parameters: key: parameters - - integrationType: null + - product: + productId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + organization: + organizationId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + name: name + description: description + order: 0 + reasonRequired: true + integrationType: dataDog environmentIds: - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 @@ -7910,7 +7938,7 @@ components: JsonPatchOperation: additionalProperties: false example: - op: null + op: unknown path: path from: from value: "" @@ -8337,7 +8365,7 @@ components: canManageProductPreferences: true canManageIntegrations: true canDeleteSegments: true - accessType: null + accessType: readOnly canManageMembers: true canManageWebhook: true canUseExportImport: true @@ -8364,7 +8392,7 @@ components: name: name canViewProductAuditLog: true canCreateOrUpdateTag: true - newEnvironmentAccessType: null + newEnvironmentAccessType: full properties: permissionGroupId: description: Identifier of the Permission Group. @@ -8450,7 +8478,7 @@ components: PreferencesModel: additionalProperties: false example: - keyGenerationMode: null + keyGenerationMode: camelCase showVariationId: true mandatorySettingHint: true reasonRequiredEnvironments: @@ -8493,7 +8521,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 @@ -8722,10 +8750,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: @@ -8778,7 +8806,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: @@ -8874,7 +8902,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 @@ -8943,7 +8971,7 @@ components: name: name creatorFullName: creatorFullName isWatching: true - settingType: null + settingType: boolean key: key settingId: 0 order: 6 @@ -9006,10 +9034,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 @@ -9020,7 +9048,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -9028,10 +9056,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 @@ -9042,7 +9070,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -9069,10 +9097,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 @@ -9083,7 +9111,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -9091,10 +9119,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 @@ -9105,7 +9133,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -9132,7 +9160,7 @@ components: name: name creatorFullName: creatorFullName isWatching: true - settingType: null + settingType: boolean key: key settingId: 0 order: 6 @@ -9165,11 +9193,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 @@ -9187,7 +9215,7 @@ components: name: name description: description migratedConfigId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - evaluationVersion: null + evaluationVersion: v1 order: 0 settingTags: - color: color @@ -9270,7 +9298,7 @@ components: configId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 hint: hint name: name - settingType: null + settingType: boolean key: key settingId: 0 order: 6 @@ -9371,16 +9399,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: @@ -9397,7 +9425,7 @@ components: name: name creatorFullName: creatorFullName isWatching: true - settingType: null + settingType: boolean key: key settingId: 0 order: 6 @@ -9427,11 +9455,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 @@ -9449,7 +9477,7 @@ components: name: name description: description migratedConfigId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - evaluationVersion: null + evaluationVersion: v1 order: 0 settingTags: - color: color @@ -9564,10 +9592,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 @@ -9578,7 +9606,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -9586,10 +9614,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 @@ -9600,7 +9628,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -9709,10 +9737,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 @@ -9723,7 +9751,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -9731,10 +9759,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 @@ -9745,7 +9773,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -9772,10 +9800,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 @@ -9786,7 +9814,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -9794,10 +9822,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 @@ -9808,7 +9836,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -9863,10 +9891,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 @@ -9877,7 +9905,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -9885,10 +9913,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 @@ -9899,7 +9927,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -9926,10 +9954,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 @@ -9940,7 +9968,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -9948,10 +9976,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 @@ -9962,7 +9990,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -10023,10 +10051,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 @@ -10037,7 +10065,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -10045,10 +10073,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 @@ -10059,7 +10087,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -10086,10 +10114,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 @@ -10100,7 +10128,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -10108,10 +10136,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 @@ -10122,7 +10150,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -10157,10 +10185,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 @@ -10171,7 +10199,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -10179,10 +10207,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 @@ -10193,7 +10221,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -10220,10 +10248,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 @@ -10234,7 +10262,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -10242,10 +10270,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 @@ -10256,7 +10284,7 @@ components: doubleValue: 1.4658129805029452 comparisonAttribute: comparisonAttribute prerequisiteFlagCondition: - comparator: null + comparator: equals prerequisiteComparisonValue: stringValue: stringValue intValue: 0 @@ -10330,7 +10358,7 @@ components: canManageProductPreferences: true canManageIntegrations: true canDeleteSegments: true - accessType: null + accessType: readOnly canTagSetting: true canManageMembers: true canManageWebhook: true @@ -10342,7 +10370,7 @@ components: canRotateSdkKey: true canViewProductAuditLog: true canCreateOrUpdateTag: true - newEnvironmentAccessType: null + newEnvironmentAccessType: full canCreateOrUpdateSegments: true canCreateOrUpdateSetting: true properties: @@ -10446,7 +10474,7 @@ components: UpdatePreferencesRequest: additionalProperties: false example: - keyGenerationMode: null + keyGenerationMode: camelCase showVariationId: true mandatorySettingHint: true reasonRequiredEnvironments: @@ -10524,7 +10552,7 @@ components: UpdateSegmentModel: additionalProperties: false example: - comparator: null + comparator: isOneOf comparisonValue: comparisonValue name: name description: description @@ -10555,16 +10583,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: @@ -10594,16 +10622,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: @@ -10639,16 +10667,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: @@ -10659,16 +10687,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: @@ -10750,7 +10778,7 @@ components: additionalProperties: false description: Describes a condition that is based on user attributes. example: - comparator: null + comparator: isOneOf comparisonValue: listValue: - hint: hint @@ -10843,7 +10871,7 @@ components: - isSecure: true value: value key: key - httpMethod: null + httpMethod: get url: url content: content properties: @@ -10851,9 +10879,6 @@ components: description: The URL of the Webhook. maxLength: 1000 minLength: 7 - pattern: "^(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,})$" type: string content: description: The HTTP body content. @@ -10915,13 +10940,11 @@ components: description: The HTTP header key. maxLength: 255 minLength: 1 - pattern: "^[a-zA-Z0-9_\\-]*$" type: string value: description: The HTTP header value. maxLength: 1000 minLength: 1 - pattern: "^[a-zA-Z0-9\\- _\\\\:;.,\\/\"'?!(){}\\[\\]@<>=+*#$&`|~^%]*$" type: string isSecure: description: Indicates whether the header value is sensitive. @@ -10944,7 +10967,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 diff --git a/api_audit_logs.go b/api_audit_logs.go index 0004f62..1d09856 100644 --- a/api_audit_logs.go +++ b/api_audit_logs.go @@ -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 e962ca8..7e644d0 100644 --- a/api_code_references.go +++ b/api_code_references.go @@ -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,13 +222,13 @@ func (a *CodeReferencesApiService) V1CodeReferencesPostExecute(r CodeReferencesA return localVarHTTPResponse, nil } -type CodeReferencesApiV1SettingsSettingIdCodeReferencesGetRequest struct { +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) } @@ -239,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, @@ -251,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{} @@ -259,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 66f36ef..05a9af6 100644 --- a/api_configs.go +++ b/api_configs.go @@ -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 d00f0bb..6cde49f 100644 --- a/api_environments.go +++ b/api_environments.go @@ -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 98e3e14..58b197b 100644 --- a/api_feature_flag_setting_values.go +++ b/api_feature_flag_setting_values.go @@ -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 0d578c4..883ea2f 100644 --- a/api_feature_flag_setting_values_using_sdk_key.go +++ b/api_feature_flag_setting_values_using_sdk_key.go @@ -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 6318558..96bd668 100644 --- a/api_feature_flag_setting_values_using_sdk_key_v2.go +++ b/api_feature_flag_setting_values_using_sdk_key_v2.go @@ -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 b06074b..b019c0c 100644 --- a/api_feature_flag_setting_values_v2.go +++ b/api_feature_flag_setting_values_v2.go @@ -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 093cfe2..9c433a8 100644 --- a/api_feature_flags_settings.go +++ b/api_feature_flags_settings.go @@ -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 dd4aabc..6c04ecf 100644 --- a/api_integration_links.go +++ b/api_integration_links.go @@ -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 index 18ec5b7..4df1402 100644 --- a/api_integrations.go +++ b/api_integrations.go @@ -21,22 +21,22 @@ import ( ) -// IntegrationsApiService IntegrationsApi service -type IntegrationsApiService service +// IntegrationsAPIService IntegrationsAPI service +type IntegrationsAPIService service -type IntegrationsApiCreateIntegrationRequest struct { +type IntegrationsAPICreateIntegrationRequest struct { ctx context.Context - ApiService *IntegrationsApiService + ApiService *IntegrationsAPIService productId string createIntegrationModel *CreateIntegrationModel } -func (r IntegrationsApiCreateIntegrationRequest) CreateIntegrationModel(createIntegrationModel CreateIntegrationModel) IntegrationsApiCreateIntegrationRequest { +func (r IntegrationsAPICreateIntegrationRequest) CreateIntegrationModel(createIntegrationModel CreateIntegrationModel) IntegrationsAPICreateIntegrationRequest { r.createIntegrationModel = &createIntegrationModel return r } -func (r IntegrationsApiCreateIntegrationRequest) Execute() (*IntegrationModel, *http.Response, error) { +func (r IntegrationsAPICreateIntegrationRequest) Execute() (*IntegrationModel, *http.Response, error) { return r.ApiService.CreateIntegrationExecute(r) } @@ -68,10 +68,10 @@ The Parameters dictionary differs for each IntegrationType: @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 + @return IntegrationsAPICreateIntegrationRequest */ -func (a *IntegrationsApiService) CreateIntegration(ctx context.Context, productId string) IntegrationsApiCreateIntegrationRequest { - return IntegrationsApiCreateIntegrationRequest{ +func (a *IntegrationsAPIService) CreateIntegration(ctx context.Context, productId string) IntegrationsAPICreateIntegrationRequest { + return IntegrationsAPICreateIntegrationRequest{ ApiService: a, ctx: ctx, productId: productId, @@ -80,7 +80,7 @@ func (a *IntegrationsApiService) CreateIntegration(ctx context.Context, productI // Execute executes the request // @return IntegrationModel -func (a *IntegrationsApiService) CreateIntegrationExecute(r IntegrationsApiCreateIntegrationRequest) (*IntegrationModel, *http.Response, error) { +func (a *IntegrationsAPIService) CreateIntegrationExecute(r IntegrationsAPICreateIntegrationRequest) (*IntegrationModel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -88,7 +88,7 @@ func (a *IntegrationsApiService) CreateIntegrationExecute(r IntegrationsApiCreat localVarReturnValue *IntegrationModel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsApiService.CreateIntegration") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreateIntegration") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -159,13 +159,13 @@ func (a *IntegrationsApiService) CreateIntegrationExecute(r IntegrationsApiCreat return localVarReturnValue, localVarHTTPResponse, nil } -type IntegrationsApiDeleteIntegrationRequest struct { +type IntegrationsAPIDeleteIntegrationRequest struct { ctx context.Context - ApiService *IntegrationsApiService + ApiService *IntegrationsAPIService integrationId string } -func (r IntegrationsApiDeleteIntegrationRequest) Execute() (*http.Response, error) { +func (r IntegrationsAPIDeleteIntegrationRequest) Execute() (*http.Response, error) { return r.ApiService.DeleteIntegrationExecute(r) } @@ -176,10 +176,10 @@ 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 + @return IntegrationsAPIDeleteIntegrationRequest */ -func (a *IntegrationsApiService) DeleteIntegration(ctx context.Context, integrationId string) IntegrationsApiDeleteIntegrationRequest { - return IntegrationsApiDeleteIntegrationRequest{ +func (a *IntegrationsAPIService) DeleteIntegration(ctx context.Context, integrationId string) IntegrationsAPIDeleteIntegrationRequest { + return IntegrationsAPIDeleteIntegrationRequest{ ApiService: a, ctx: ctx, integrationId: integrationId, @@ -187,14 +187,14 @@ func (a *IntegrationsApiService) DeleteIntegration(ctx context.Context, integrat } // Execute executes the request -func (a *IntegrationsApiService) DeleteIntegrationExecute(r IntegrationsApiDeleteIntegrationRequest) (*http.Response, error) { +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") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeleteIntegration") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -251,13 +251,13 @@ func (a *IntegrationsApiService) DeleteIntegrationExecute(r IntegrationsApiDelet return localVarHTTPResponse, nil } -type IntegrationsApiGetIntegrationRequest struct { +type IntegrationsAPIGetIntegrationRequest struct { ctx context.Context - ApiService *IntegrationsApiService + ApiService *IntegrationsAPIService integrationId string } -func (r IntegrationsApiGetIntegrationRequest) Execute() (*IntegrationModel, *http.Response, error) { +func (r IntegrationsAPIGetIntegrationRequest) Execute() (*IntegrationModel, *http.Response, error) { return r.ApiService.GetIntegrationExecute(r) } @@ -269,10 +269,10 @@ 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 + @return IntegrationsAPIGetIntegrationRequest */ -func (a *IntegrationsApiService) GetIntegration(ctx context.Context, integrationId string) IntegrationsApiGetIntegrationRequest { - return IntegrationsApiGetIntegrationRequest{ +func (a *IntegrationsAPIService) GetIntegration(ctx context.Context, integrationId string) IntegrationsAPIGetIntegrationRequest { + return IntegrationsAPIGetIntegrationRequest{ ApiService: a, ctx: ctx, integrationId: integrationId, @@ -281,7 +281,7 @@ func (a *IntegrationsApiService) GetIntegration(ctx context.Context, integration // Execute executes the request // @return IntegrationModel -func (a *IntegrationsApiService) GetIntegrationExecute(r IntegrationsApiGetIntegrationRequest) (*IntegrationModel, *http.Response, error) { +func (a *IntegrationsAPIService) GetIntegrationExecute(r IntegrationsAPIGetIntegrationRequest) (*IntegrationModel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -289,7 +289,7 @@ func (a *IntegrationsApiService) GetIntegrationExecute(r IntegrationsApiGetInteg localVarReturnValue *IntegrationModel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsApiService.GetIntegration") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetIntegration") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -355,13 +355,13 @@ func (a *IntegrationsApiService) GetIntegrationExecute(r IntegrationsApiGetInteg return localVarReturnValue, localVarHTTPResponse, nil } -type IntegrationsApiGetIntegrationsRequest struct { +type IntegrationsAPIGetIntegrationsRequest struct { ctx context.Context - ApiService *IntegrationsApiService + ApiService *IntegrationsAPIService productId string } -func (r IntegrationsApiGetIntegrationsRequest) Execute() (*IntegrationsModel, *http.Response, error) { +func (r IntegrationsAPIGetIntegrationsRequest) Execute() (*IntegrationsModel, *http.Response, error) { return r.ApiService.GetIntegrationsExecute(r) } @@ -373,10 +373,10 @@ This endpoint returns the list of the Integrations 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 IntegrationsApiGetIntegrationsRequest + @return IntegrationsAPIGetIntegrationsRequest */ -func (a *IntegrationsApiService) GetIntegrations(ctx context.Context, productId string) IntegrationsApiGetIntegrationsRequest { - return IntegrationsApiGetIntegrationsRequest{ +func (a *IntegrationsAPIService) GetIntegrations(ctx context.Context, productId string) IntegrationsAPIGetIntegrationsRequest { + return IntegrationsAPIGetIntegrationsRequest{ ApiService: a, ctx: ctx, productId: productId, @@ -385,7 +385,7 @@ func (a *IntegrationsApiService) GetIntegrations(ctx context.Context, productId // Execute executes the request // @return IntegrationsModel -func (a *IntegrationsApiService) GetIntegrationsExecute(r IntegrationsApiGetIntegrationsRequest) (*IntegrationsModel, *http.Response, error) { +func (a *IntegrationsAPIService) GetIntegrationsExecute(r IntegrationsAPIGetIntegrationsRequest) (*IntegrationsModel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -393,7 +393,7 @@ func (a *IntegrationsApiService) GetIntegrationsExecute(r IntegrationsApiGetInte localVarReturnValue *IntegrationsModel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsApiService.GetIntegrations") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetIntegrations") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -459,19 +459,19 @@ func (a *IntegrationsApiService) GetIntegrationsExecute(r IntegrationsApiGetInte return localVarReturnValue, localVarHTTPResponse, nil } -type IntegrationsApiUpdateIntegrationRequest struct { +type IntegrationsAPIUpdateIntegrationRequest struct { ctx context.Context - ApiService *IntegrationsApiService + ApiService *IntegrationsAPIService integrationId string modifyIntegrationRequest *ModifyIntegrationRequest } -func (r IntegrationsApiUpdateIntegrationRequest) ModifyIntegrationRequest(modifyIntegrationRequest ModifyIntegrationRequest) IntegrationsApiUpdateIntegrationRequest { +func (r IntegrationsAPIUpdateIntegrationRequest) ModifyIntegrationRequest(modifyIntegrationRequest ModifyIntegrationRequest) IntegrationsAPIUpdateIntegrationRequest { r.modifyIntegrationRequest = &modifyIntegrationRequest return r } -func (r IntegrationsApiUpdateIntegrationRequest) Execute() (*IntegrationModel, *http.Response, error) { +func (r IntegrationsAPIUpdateIntegrationRequest) Execute() (*IntegrationModel, *http.Response, error) { return r.ApiService.UpdateIntegrationExecute(r) } @@ -502,10 +502,10 @@ The Parameters dictionary differs for each IntegrationType: @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 + @return IntegrationsAPIUpdateIntegrationRequest */ -func (a *IntegrationsApiService) UpdateIntegration(ctx context.Context, integrationId string) IntegrationsApiUpdateIntegrationRequest { - return IntegrationsApiUpdateIntegrationRequest{ +func (a *IntegrationsAPIService) UpdateIntegration(ctx context.Context, integrationId string) IntegrationsAPIUpdateIntegrationRequest { + return IntegrationsAPIUpdateIntegrationRequest{ ApiService: a, ctx: ctx, integrationId: integrationId, @@ -514,7 +514,7 @@ func (a *IntegrationsApiService) UpdateIntegration(ctx context.Context, integrat // Execute executes the request // @return IntegrationModel -func (a *IntegrationsApiService) UpdateIntegrationExecute(r IntegrationsApiUpdateIntegrationRequest) (*IntegrationModel, *http.Response, error) { +func (a *IntegrationsAPIService) UpdateIntegrationExecute(r IntegrationsAPIUpdateIntegrationRequest) (*IntegrationModel, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -522,7 +522,7 @@ func (a *IntegrationsApiService) UpdateIntegrationExecute(r IntegrationsApiUpdat localVarReturnValue *IntegrationModel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsApiService.UpdateIntegration") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdateIntegration") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_me.go b/api_me.go index 90940ae..6e4cbae 100644 --- a/api_me.go +++ b/api_me.go @@ -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 d50fd4b..bd8daa1 100644 --- a/api_members.go +++ b/api_members.go @@ -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 cd827a1..ae19453 100644 --- a/api_organizations.go +++ b/api_organizations.go @@ -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 961c770..27a316f 100644 --- a/api_permission_groups.go +++ b/api_permission_groups.go @@ -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 cb12c7c..f05d1ad 100644 --- a/api_products.go +++ b/api_products.go @@ -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 d94f3f6..3fa2bc4 100644 --- a/api_sdk_keys.go +++ b/api_sdk_keys.go @@ -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 c03338c..19e14f0 100644 --- a/api_segments.go +++ b/api_segments.go @@ -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 97b1b8f..7d89c80 100644 --- a/api_tags.go +++ b/api_tags.go @@ -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 034f003..dd8b42a 100644 --- a/api_webhooks.go +++ b/api_webhooks.go @@ -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 f135057..1ff456d 100644 --- a/client.go +++ b/client.go @@ -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,45 +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 - IntegrationsApi *IntegrationsApiService + IntegrationsAPI *IntegrationsAPIService - MeApi *MeApiService + MeAPI *MeAPIService - MembersApi *MembersApiService + MembersAPI *MembersAPIService - OrganizationsApi *OrganizationsApiService + OrganizationsAPI *OrganizationsAPIService - PermissionGroupsApi *PermissionGroupsApiService + PermissionGroupsAPI *PermissionGroupsAPIService - ProductsApi *ProductsApiService + ProductsAPI *ProductsAPIService - SDKKeysApi *SDKKeysApiService + SDKKeysAPI *SDKKeysAPIService - SegmentsApi *SegmentsApiService + SegmentsAPI *SegmentsAPIService - TagsApi *TagsApiService + TagsAPI *TagsAPIService - WebhooksApi *WebhooksApiService + WebhooksAPI *WebhooksAPIService } type service struct { @@ -107,26 +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.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) + 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 } @@ -220,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" @@ -513,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 { @@ -556,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 { @@ -584,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/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 e8308c9..a366254 100644 --- a/docs/CodeReferencesApi.md +++ b/docs/CodeReferencesApi.md @@ -1,12 +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 -[**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 @@ -24,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) + } } ``` @@ -88,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) + } } ``` @@ -152,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/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/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 index bccad68..8c0999d 100644 --- a/docs/IntegrationModel.md +++ b/docs/IntegrationModel.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Product** | Pointer to [**ProductModel**](ProductModel.md) | | [optional] **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] @@ -30,6 +31,31 @@ 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 +### GetProduct + +`func (o *IntegrationModel) GetProduct() ProductModel` + +GetProduct returns the Product field if non-nil, zero value otherwise. + +### GetProductOk + +`func (o *IntegrationModel) GetProductOk() (*ProductModel, bool)` + +GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProduct + +`func (o *IntegrationModel) SetProduct(v ProductModel)` + +SetProduct sets Product field to given value. + +### HasProduct + +`func (o *IntegrationModel) HasProduct() bool` + +HasProduct returns a boolean if a field has been set. + ### GetIntegrationId `func (o *IntegrationModel) GetIntegrationId() string` diff --git a/docs/IntegrationsAPI.md b/docs/IntegrationsAPI.md index 7ae2482..65889c0 100644 --- a/docs/IntegrationsAPI.md +++ b/docs/IntegrationsAPI.md @@ -1,14 +1,14 @@ -# \IntegrationsApi +# \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**](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 @@ -26,25 +26,25 @@ Create Integration 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. - 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) + 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) } ``` @@ -98,22 +98,22 @@ Delete Integration 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() { - 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) - } + 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) + } } ``` @@ -166,24 +166,24 @@ Get Integration 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() { - 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) + 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) } ``` @@ -236,24 +236,24 @@ List Integrations 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.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) + 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) } ``` @@ -306,25 +306,25 @@ Update Integration 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() { - 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) + 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) } ``` 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/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..f4cc54c 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:7.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/model_add_or_update_jira_integration_link_model.go b/model_add_or_update_jira_integration_link_model.go index 2943d4b..a6a849c 100644 --- a/model_add_or_update_jira_integration_link_model.go +++ b/model_add_or_update_jira_integration_link_model.go @@ -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_code_reference_model.go b/model_code_reference_model.go index a8c6836..c663115 100644 --- a/model_code_reference_model.go +++ b/model_code_reference_model.go @@ -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 8a3c2dd..c32708f 100644 --- a/model_code_reference_request.go +++ b/model_code_reference_request.go @@ -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 3398cde..704658b 100644 --- a/model_comparison_value_list_model.go +++ b/model_comparison_value_list_model.go @@ -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 1eb9870..68e9e20 100644 --- a/model_comparison_value_model.go +++ b/model_comparison_value_model.go @@ -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_config_setting_formula_model.go b/model_config_setting_formula_model.go index 9146986..79518b6 100644 --- a/model_config_setting_formula_model.go +++ b/model_config_setting_formula_model.go @@ -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 dbcf9d3..b21b558 100644 --- a/model_config_setting_formulas_model.go +++ b/model_config_setting_formulas_model.go @@ -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 a72ca0b..51ca422 100644 --- a/model_config_setting_value_model.go +++ b/model_config_setting_value_model.go @@ -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 14885c9..2a75186 100644 --- a/model_config_setting_values_model.go +++ b/model_config_setting_values_model.go @@ -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 49ccbce..81e8b0f 100644 --- a/model_connect_request.go +++ b/model_connect_request.go @@ -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 ea9549c..2c5fe17 100644 --- a/model_create_config_request.go +++ b/model_create_config_request.go @@ -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 ffc63e2..4304110 100644 --- a/model_create_environment_model.go +++ b/model_create_environment_model.go @@ -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 index b2f8df1..215e460 100644 --- a/model_create_integration_model.go +++ b/model_create_integration_model.go @@ -13,6 +13,8 @@ package configcatpublicapi import ( "encoding/json" + "bytes" + "fmt" ) // checks if the CreateIntegrationModel type satisfies the MappedNullable interface at compile time @@ -31,6 +33,8 @@ type CreateIntegrationModel struct { 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 @@ -191,6 +195,47 @@ func (o CreateIntegrationModel) ToMap() (map[string]interface{}, error) { 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 diff --git a/model_create_permission_group_request.go b/model_create_permission_group_request.go index 3c940ea..1def932 100644 --- a/model_create_permission_group_request.go +++ b/model_create_permission_group_request.go @@ -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 8a2bdfa..0a355fe 100644 --- a/model_create_product_request.go +++ b/model_create_product_request.go @@ -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 74df4f2..b40c277 100644 --- a/model_create_segment_model.go +++ b/model_create_segment_model.go @@ -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 5f6ecf9..fb377e9 100644 --- a/model_create_setting_initial_values.go +++ b/model_create_setting_initial_values.go @@ -13,6 +13,8 @@ package configcatpublicapi import ( "encoding/json" + "bytes" + "fmt" ) // checks if the CreateSettingInitialValues type satisfies the MappedNullable interface at compile time @@ -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 84f16d1..3f2951d 100644 --- a/model_create_tag_model.go +++ b/model_create_tag_model.go @@ -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_repository_reports_request.go b/model_delete_repository_reports_request.go index 2022495..6932df6 100644 --- a/model_delete_repository_reports_request.go +++ b/model_delete_repository_reports_request.go @@ -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_flag_reference.go b/model_flag_reference.go index 1790acf..2c854c0 100644 --- a/model_flag_reference.go +++ b/model_flag_reference.go @@ -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 18a8196..3ac11af 100644 --- a/model_initial_value.go +++ b/model_initial_value.go @@ -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_details_model.go b/model_integration_link_details_model.go index bf4fd20..8e27c7c 100644 --- a/model_integration_link_details_model.go +++ b/model_integration_link_details_model.go @@ -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_model.go b/model_integration_model.go index fec5810..8e53845 100644 --- a/model_integration_model.go +++ b/model_integration_model.go @@ -20,6 +20,7 @@ var _ MappedNullable = &IntegrationModel{} // IntegrationModel Details of the Integration. type IntegrationModel struct { + Product *ProductModel `json:"product,omitempty"` // Identifier of the Integration. IntegrationId *string `json:"integrationId,omitempty"` // Name of the Integration. @@ -50,6 +51,38 @@ func NewIntegrationModelWithDefaults() *IntegrationModel { return &this } +// GetProduct returns the Product field value if set, zero value otherwise. +func (o *IntegrationModel) GetProduct() ProductModel { + if o == nil || IsNil(o.Product) { + var ret ProductModel + return ret + } + return *o.Product +} + +// GetProductOk returns a tuple with the Product field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntegrationModel) GetProductOk() (*ProductModel, bool) { + if o == nil || IsNil(o.Product) { + return nil, false + } + return o.Product, true +} + +// HasProduct returns a boolean if a field has been set. +func (o *IntegrationModel) HasProduct() bool { + if o != nil && !IsNil(o.Product) { + return true + } + + return false +} + +// SetProduct gets a reference to the given ProductModel and assigns it to the Product field. +func (o *IntegrationModel) SetProduct(v ProductModel) { + o.Product = &v +} + // GetIntegrationId returns the IntegrationId field value if set, zero value otherwise. func (o *IntegrationModel) GetIntegrationId() string { if o == nil || IsNil(o.IntegrationId) { @@ -177,7 +210,7 @@ func (o *IntegrationModel) GetParametersOk() (*map[string]string, bool) { // HasParameters returns a boolean if a field has been set. func (o *IntegrationModel) HasParameters() bool { - if o != nil && IsNil(o.Parameters) { + if o != nil && !IsNil(o.Parameters) { return true } @@ -210,7 +243,7 @@ func (o *IntegrationModel) GetEnvironmentIdsOk() ([]string, bool) { // HasEnvironmentIds returns a boolean if a field has been set. func (o *IntegrationModel) HasEnvironmentIds() bool { - if o != nil && IsNil(o.EnvironmentIds) { + if o != nil && !IsNil(o.EnvironmentIds) { return true } @@ -243,7 +276,7 @@ func (o *IntegrationModel) GetConfigIdsOk() ([]string, bool) { // HasConfigIds returns a boolean if a field has been set. func (o *IntegrationModel) HasConfigIds() bool { - if o != nil && IsNil(o.ConfigIds) { + if o != nil && !IsNil(o.ConfigIds) { return true } @@ -265,6 +298,9 @@ func (o IntegrationModel) MarshalJSON() ([]byte, error) { func (o IntegrationModel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Product) { + toSerialize["product"] = o.Product + } if !IsNil(o.IntegrationId) { toSerialize["integrationId"] = o.IntegrationId } diff --git a/model_integrations_model.go b/model_integrations_model.go index 565f5d4..717312f 100644 --- a/model_integrations_model.go +++ b/model_integrations_model.go @@ -62,7 +62,7 @@ func (o *IntegrationsModel) GetIntegrationsOk() ([]IntegrationModel, bool) { // HasIntegrations returns a boolean if a field has been set. func (o *IntegrationsModel) HasIntegrations() bool { - if o != nil && IsNil(o.Integrations) { + if o != nil && !IsNil(o.Integrations) { return true } diff --git a/model_invite_members_request.go b/model_invite_members_request.go index e39b594..fada0d6 100644 --- a/model_invite_members_request.go +++ b/model_invite_members_request.go @@ -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 dfe812e..46e7d4c 100644 --- a/model_json_patch_operation.go +++ b/model_json_patch_operation.go @@ -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_modify_integration_request.go b/model_modify_integration_request.go index 6d8d15f..cd439ea 100644 --- a/model_modify_integration_request.go +++ b/model_modify_integration_request.go @@ -13,6 +13,8 @@ package configcatpublicapi import ( "encoding/json" + "bytes" + "fmt" ) // checks if the ModifyIntegrationRequest type satisfies the MappedNullable interface at compile time @@ -30,6 +32,8 @@ type ModifyIntegrationRequest struct { 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 @@ -164,6 +168,46 @@ func (o ModifyIntegrationRequest) ToMap() (map[string]interface{}, error) { 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 diff --git a/model_organization_member_model.go b/model_organization_member_model.go index d28e08f..3d9f42b 100644 --- a/model_organization_member_model.go +++ b/model_organization_member_model.go @@ -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 40d2869..01da6d1 100644 --- a/model_organization_members_model.go +++ b/model_organization_members_model.go @@ -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_percentage_option_model.go b/model_percentage_option_model.go index 6cc5827..cf09143 100644 --- a/model_percentage_option_model.go +++ b/model_percentage_option_model.go @@ -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 c542447..8025d53 100644 --- a/model_permission_group_model.go +++ b/model_permission_group_model.go @@ -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 4b70562..707bc00 100644 --- a/model_preferences_model.go +++ b/model_preferences_model.go @@ -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_flag_condition_model.go b/model_prerequisite_flag_condition_model.go index a22fef9..647ead4 100644 --- a/model_prerequisite_flag_condition_model.go +++ b/model_prerequisite_flag_condition_model.go @@ -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_reference_line.go b/model_reference_line.go index 775cc03..35b22ba 100644 --- a/model_reference_line.go +++ b/model_reference_line.go @@ -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 df63983..372214e 100644 --- a/model_reference_lines.go +++ b/model_reference_lines.go @@ -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 54109f8..1f634ae 100644 --- a/model_replace_setting_model.go +++ b/model_replace_setting_model.go @@ -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 59f5a0a..1e34c56 100644 --- a/model_rollout_percentage_item_model.go +++ b/model_rollout_percentage_item_model.go @@ -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_model.go b/model_rollout_rule_model.go index 6ecb6b2..469ff57 100644 --- a/model_rollout_rule_model.go +++ b/model_rollout_rule_model.go @@ -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_segment_condition_model.go b/model_segment_condition_model.go index 586af24..7167095 100644 --- a/model_segment_condition_model.go +++ b/model_segment_condition_model.go @@ -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_setting_formula_model.go b/model_setting_formula_model.go index b69c403..496d5c3 100644 --- a/model_setting_formula_model.go +++ b/model_setting_formula_model.go @@ -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 84dc30e..52c022b 100644 --- a/model_setting_model.go +++ b/model_setting_model.go @@ -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_value_model.go b/model_setting_value_model.go index fb073ec..81ea9a5 100644 --- a/model_setting_value_model.go +++ b/model_setting_value_model.go @@ -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_targeting_rule_model.go b/model_targeting_rule_model.go index 5863c20..5830b18 100644 --- a/model_targeting_rule_model.go +++ b/model_targeting_rule_model.go @@ -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_evaluation_formula_model.go b/model_update_evaluation_formula_model.go index 55c810a..10e04b7 100644 --- a/model_update_evaluation_formula_model.go +++ b/model_update_evaluation_formula_model.go @@ -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 b96b846..65d6e5d 100644 --- a/model_update_evaluation_formula_with_id_model.go +++ b/model_update_evaluation_formula_with_id_model.go @@ -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 c1cf2e0..8876f85 100644 --- a/model_update_evaluation_formulas_model.go +++ b/model_update_evaluation_formulas_model.go @@ -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 b2055aa..41a5ffc 100644 --- a/model_update_member_permissions_request.go +++ b/model_update_member_permissions_request.go @@ -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 4b61995..3f557ea 100644 --- a/model_update_permission_group_request.go +++ b/model_update_permission_group_request.go @@ -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 673dada..930cc16 100644 --- a/model_update_preferences_request.go +++ b/model_update_preferences_request.go @@ -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_setting_value_model.go b/model_update_setting_value_model.go index 838e035..fbb5b4c 100644 --- a/model_update_setting_value_model.go +++ b/model_update_setting_value_model.go @@ -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 e2aa703..a7d2cf6 100644 --- a/model_update_setting_value_with_setting_id_model.go +++ b/model_update_setting_value_with_setting_id_model.go @@ -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 645a0ce..55c4897 100644 --- a/model_update_setting_values_with_id_model.go +++ b/model_update_setting_values_with_id_model.go @@ -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_user_condition_model.go b/model_user_condition_model.go index d62688c..8cf066b 100644 --- a/model_user_condition_model.go +++ b/model_user_condition_model.go @@ -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_web_hook_request.go b/model_web_hook_request.go index fd64ab2..d400feb 100644 --- a/model_web_hook_request.go +++ b/model_web_hook_request.go @@ -13,6 +13,8 @@ package configcatpublicapi import ( "encoding/json" + "bytes" + "fmt" ) // checks if the WebHookRequest type satisfies the MappedNullable interface at compile time @@ -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_header_model.go b/model_webhook_header_model.go index c991bb8..1ffd6c3 100644 --- a/model_webhook_header_model.go +++ b/model_webhook_header_model.go @@ -13,6 +13,8 @@ package configcatpublicapi import ( "encoding/json" + "bytes" + "fmt" ) // checks if the WebhookHeaderModel type satisfies the MappedNullable interface at compile time @@ -28,6 +30,8 @@ type WebhookHeaderModel struct { 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 0a7a1e4..d210881 100644 --- a/model_webhook_model.go +++ b/model_webhook_model.go @@ -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/utils.go b/utils.go index 6c6a001..f390ffb 100644 --- a/utils.go +++ b/utils.go @@ -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